/*
Theme Name: Würmer Beteiligungen
Theme URI: https://www.wuermer-beteiligungen.at
Author: Würmer Beteiligungen GmbH
Description: Eigenes Theme für die Würmer Beteiligungen GmbH – Startseite, Wohnungsinserate, Impressum und Datenschutz.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: wuermer
*/

:root{
  --orange:#ED7D31;
  --orange-text:#B85314;
  --orange-dark:#8A3D0E;
  --ink:#2B2B2B;
  --muted:#6B6B6B;
  --soft:#FFF6EF;
  --line:#F1E3D8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Century Gothic",CenturyGothic,"URW Gothic","Avant Garde",Futura,"Trebuchet MS",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.5}
img{max-width:100%;height:auto}
a{color:var(--orange-text)}a:hover{color:var(--orange-dark)}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.screen-reader-text{position:absolute;left:-9999px}

/* Kopf */
.site-header{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:10}
.admin-bar .site-header{top:32px}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand svg{flex:none}
.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-name{font-weight:700;font-size:19px;letter-spacing:.06em}
.brand-sub{font-size:12px;letter-spacing:.28em;color:var(--muted)}
.brand-tag{font-size:10px;letter-spacing:.26em;color:var(--orange-text);padding-top:3px}
.nav{display:flex;flex-wrap:wrap;gap:4px}
.nav a{padding:12px 14px;text-decoration:none;color:var(--ink);font-size:16px;border-radius:6px}
.nav a:hover{background:var(--soft);color:var(--ink)}
.nav a.cta{background:var(--orange-text);color:#fff}
.nav a.cta:hover{background:var(--orange-dark)}

/* Bereiche */
section{padding:88px 0}
.hero{background:var(--soft);padding:96px 0 104px}
.hero .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:56px}
.hero-text{flex:999 1 480px;min-width:0;display:flex;flex-direction:column;gap:22px}
.hero-art{flex:1 1 320px;min-width:0;display:flex;justify-content:center}
.hero-art svg{width:100%;max-width:420px;height:auto}
.eyebrow{margin:0;font-size:15px;letter-spacing:.18em;color:var(--orange-text);font-weight:700;text-transform:uppercase}
h1{margin:0;font-size:clamp(34px,5vw,52px);line-height:1.1}
h2{margin:0;font-size:clamp(28px,3.5vw,36px);line-height:1.2}
.lead{margin:0;font-size:19px;line-height:1.6;color:#4A4A4A;max-width:560px}
.btns{display:flex;flex-wrap:wrap;gap:12px;padding-top:6px}
.btn{display:inline-block;padding:15px 24px;border-radius:6px;font-size:17px;text-decoration:none;border:2px solid var(--orange-text)}
.btn-primary{background:var(--orange-text);color:#fff}
.btn-primary:hover{background:var(--orange-dark);border-color:var(--orange-dark);color:#fff}
.btn-ghost{color:var(--orange-text);background:transparent}
.btn-ghost:hover{background:#fff}
.head{display:flex;flex-direction:column;gap:10px;margin-bottom:36px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.card{border:1px solid var(--line);border-radius:12px;padding:28px;display:flex;flex-direction:column;gap:10px}
.card .label{font-size:14px;color:var(--muted)}
.card .value{font-size:22px;font-weight:700}
.note{margin-top:20px;background:var(--soft);border-radius:12px;padding:32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.note p{margin:0;font-size:18px;line-height:1.6;flex:999 1 420px;min-width:0}
.about{background:#FAFAFA}
.about .wrap{display:flex;flex-wrap:wrap;gap:48px}
.about .head{flex:1 1 280px;min-width:0;margin:0}
.about p{margin:0;flex:999 1 480px;min-width:0;font-size:18px;line-height:1.7;color:#4A4A4A}
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.contact-grid .label{display:block;font-size:14px;color:var(--muted);margin-bottom:6px}
.contact-grid .value{font-size:18px;line-height:1.5;text-decoration:none}

/* Wohnungsliste */
.flats{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.flat{border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:var(--ink);background:#fff;transition:box-shadow .15s}
.flat:hover{box-shadow:0 6px 24px rgba(0,0,0,.08);color:var(--ink)}
.flat-img{aspect-ratio:4/3;background:var(--soft);position:relative;display:flex;align-items:center;justify-content:center}
.flat-img img{width:100%;height:100%;object-fit:cover;display:block}
.flat-body{padding:22px;display:flex;flex-direction:column;gap:10px}
.flat-title{font-size:20px;font-weight:700;margin:0}
.facts{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:15px;color:#4A4A4A;margin:0;padding:0;list-style:none}
.price{font-size:20px;font-weight:700;color:var(--orange-text)}
.badge{position:absolute;top:14px;left:14px;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:700;background:#fff;color:var(--ink)}
.badge.free{background:var(--orange-text);color:#fff}
.badge.rented{background:var(--ink);color:#fff}

/* Wohnung Detailseite */
.flat-detail{padding:56px 0 96px}
.back{display:inline-block;margin-bottom:24px;text-decoration:none}
.flat-detail .layout{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start}
.flat-detail .main{flex:999 1 560px;min-width:0}
.flat-detail aside{flex:1 1 300px;min-width:0;border:1px solid var(--line);border-radius:12px;padding:28px;position:sticky;top:110px}
.gallery-main{border-radius:12px;overflow:hidden;background:var(--soft);aspect-ratio:4/3}
.gallery-main img{width:100%;height:100%;object-fit:cover;display:block}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin-top:10px}
.thumbs button{padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;cursor:pointer;background:none;aspect-ratio:1}
.thumbs button[aria-current="true"]{border-color:var(--orange)}
.thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.facts-table{width:100%;border-collapse:collapse;font-size:16px;margin:8px 0 20px}
.facts-table th{text-align:left;font-weight:400;color:var(--muted);padding:8px 12px 8px 0;border-bottom:1px solid var(--line)}
.facts-table td{text-align:right;padding:8px 0;border-bottom:1px solid var(--line);font-weight:700}
.entry{font-size:17px;line-height:1.7;color:#3A3A3A}
.entry h2{font-size:24px;margin:32px 0 10px}

/* Textseiten */
.legal{padding:72px 0 96px}
.legal .wrap{max-width:820px}
.legal h1{font-size:clamp(30px,4vw,40px);margin-bottom:28px}
.legal h2{font-size:22px;margin:36px 0 10px}
.legal p,.legal li{font-size:17px;line-height:1.7;color:#3A3A3A}

/* Fuß */
.site-footer{background:var(--ink);color:#E6E6E6}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-top:36px;padding-bottom:36px;font-size:14px;line-height:1.6}
.site-footer nav{display:flex;gap:20px}
.site-footer a{color:#F4B183}.site-footer a:hover{color:#fff}

@media (max-width:782px){.admin-bar .site-header{top:0;position:static}.flat-detail aside{position:static}}
