/* =========================================================================
   Arimo Immobilien – Neues Design (immopromo-Stil), Phase 1: Globaler Rahmen
   Header (fix, Logo + Horizontal-Nav + DE/CH + Burger), Footer, Design-Tokens.
   Vollständig gescoped (.hdr / .ft / .mnav / .cs), damit bestehende Seiten
   während der Umstellung weiterlaufen. Seiten-Komponenten folgen unter body.nd.
   ========================================================================= */

:root{
  --pri:#38b6ab; --pri-dk:#30a398; --pri-lt:#38b6ab; --acc:#86dbd1; --mist:#e3f4f2;
  --ink:#1d1d1b; --txt:#2e2e2c; --mut:#6b6b68; --grey:#f7f6f4; --line:#e6e4e1;
  --head:'Poppins',system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:'Inter',system-ui,-apple-system,"Segoe UI",sans-serif;
  --ease:cubic-bezier(.2,.8,.2,1);
}

/* Neue Grundtypografie site-weit (Teil des Redesigns) */
body{font-family:var(--body);-webkit-font-smoothing:antialiased;padding-top:112px}
@media(max-width:760px){body{padding-top:76px}}

/* ---- Buttons (neues Design) ----------------------------------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--head);font-weight:600;font-size:16px;line-height:1.2;border-radius:999px;padding:16px 30px;background:var(--pri);color:#fff;border:1.5px solid var(--pri);transition:background .25s,border-color .25s,transform .25s var(--ease),box-shadow .25s;white-space:nowrap;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--pri-dk);border-color:var(--pri-dk);transform:translateY(-1px);box-shadow:0 12px 26px -14px rgba(56,182,171,.85);color:#fff}
.btn.sm{font-size:14.4px;padding:11px 22px}
.btn.ghost{background:transparent;color:var(--ink);border-color:rgba(29,29,27,.18)}
.btn.ghost:hover{border-color:var(--ink);box-shadow:none;background:transparent;color:var(--ink)}
.btn.ghost-lt{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.btn.ghost-lt:hover{border-color:#fff;background:rgba(255,255,255,.06);box-shadow:none;color:#fff}
.btn.dark{background:var(--ink);border-color:var(--ink)}
.btn.dark:hover{background:#000;border-color:#000}
.btn.arr::after{content:"›";font-size:1.15em;line-height:1}

/* ---- Header ---------------------------------------------------------- */
.hdr{position:fixed;inset:0 0 auto;z-index:100;height:112px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.16);transition:transform .35s var(--ease)}
.hdr.hide{transform:translateY(-100%)}
.hdr .hwrap{height:100%;display:flex;align-items:center;gap:28px;max-width:1480px;margin:0 auto;padding:0 56px}
.hdr .logo{width:258px;height:56px;flex:none;display:inline-block}
.hdr .logo img{width:100%;height:100%;object-fit:contain;display:block}
.hdr .mainnav{margin:0 auto}
.hdr .mainnav nav,.hdr nav.mod_navigation{display:block}
.hdr .mainnav ul{display:flex;gap:28px;margin:0;padding:0;list-style:none;white-space:nowrap;font-size:15px;font-weight:500}
.hdr .mainnav li{position:relative}
.hdr .mainnav a{display:inline-block;padding:6px 0;position:relative;color:var(--ink);transition:color .2s}
.hdr .mainnav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--pri);transform:scaleX(0);transition:transform .3s var(--ease)}
.hdr .mainnav a:hover{color:var(--pri)}
.hdr .mainnav a.active,.hdr .mainnav a.trail{color:var(--pri)}
.hdr .mainnav a.active::after,.hdr .mainnav a.trail::after,.hdr .mainnav a:hover::after{transform:none}
/* Aufklapp-Untermenü (z. B. Immobilien → Kaufen/Suchprofil) */
.hdr .mainnav li ul{position:absolute;left:-18px;top:100%;display:block;flex-direction:column;gap:0;min-width:210px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 40px -22px rgba(0,0,0,.35);padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s;z-index:5}
.hdr .mainnav li:hover>ul,.hdr .mainnav li:focus-within>ul{opacity:1;visibility:visible;transform:none}
.hdr .mainnav li ul a{display:block;padding:9px 14px;border-radius:9px;font-size:14.5px;white-space:nowrap}
.hdr .mainnav li ul a::after{display:none}
.hdr .mainnav li ul a:hover{background:var(--mist)}
.hdr .right{display:flex;align-items:center;gap:20px;flex:none;margin-left:auto}

/* DE/CH-Umschalter */
.cs{position:relative;display:inline-flex;gap:2px;padding:5px;border-radius:999px;background:#e8f5f3;border:1px solid #d6ece8}
.cs a{position:relative;z-index:1;display:inline-flex;align-items:center;gap:9px;padding:8px 16px 8px 9px;border-radius:999px;font-family:var(--head);font-size:14px;font-weight:600;color:#5d6a68;white-space:nowrap;transition:color .3s}
.cs a:hover{color:var(--ink)}
.cs a.on{color:var(--ink)}
.cs .ind{position:absolute;z-index:0;top:5px;bottom:5px;left:5px;border-radius:999px;background:#fff;box-shadow:0 4px 12px -4px rgba(29,29,27,.28);transition:transform .45s var(--ease),width .45s var(--ease)}
.cs .sh{display:none}
.fl{width:22px;height:22px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.fl.de{background:linear-gradient(#1d1d1b 0 33.4%,#dd0000 33.4% 66.7%,#ffce00 66.7%)}
.fl.ch{background:#da291c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='white' d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z'/%3E%3C/svg%3E") center/100% no-repeat}

/* Burger + mobiles Menü */
.hdr .burger{display:none;width:44px;height:44px;place-items:center;padding:0;background:none;border:0;cursor:pointer}
.hdr .burger i,.hdr .burger i::before,.hdr .burger i::after{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px;position:relative;transition:transform .3s,background .3s}
.hdr .burger i::before,.hdr .burger i::after{content:"";position:absolute;left:0}
.hdr .burger i::before{top:-7px}.hdr .burger i::after{top:7px}
.hdr.open .burger i{background:transparent}
.hdr.open .burger i::before{transform:translateY(7px) rotate(45deg)}
.hdr.open .burger i::after{transform:translateY(-7px) rotate(-45deg)}
.mnav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid var(--line);padding:12px 24px 24px;box-shadow:0 20px 30px -20px rgba(0,0,0,.25);max-height:calc(100vh - 112px);overflow:auto}
.mnav ul{list-style:none;margin:0;padding:0}
.mnav a{display:block;padding:12px 0;border-bottom:1px solid var(--line);font-weight:500;color:var(--ink)}
.mnav li ul a{padding-left:18px;color:var(--mut);font-weight:400}
.mnav .btn{display:flex;align-items:center;justify-content:center;margin-top:18px;width:100%;color:#fff}
.mnav .btn:hover{color:#fff}
.hdr.open .mnav{display:block}

@media(max-width:1280px){.hdr .mainnav{display:none}.hdr .burger{display:grid}.hdr .hwrap{justify-content:space-between;gap:16px}}
@media(max-width:1000px){.hdr .hwrap{padding:0 24px}}
@media(max-width:760px){.hdr{height:76px}.hdr .hwrap{padding:0 16px;gap:12px}.hdr .logo{width:188px;height:44px}.mnav{max-height:calc(100vh - 76px)}}
@media(max-width:560px){.cs a{padding:7px 12px 7px 7px;font-size:13px;gap:7px}.cs .lg{display:none}.cs .sh{display:inline}.fl{width:20px;height:20px}}

/* ---- Footer --------------------------------------------------------- */
.ft{background:var(--ink);color:rgba(255,255,255,.75);padding:72px 0 30px;font-size:14.5px;font-family:var(--body)}
.ft .fwrap{max-width:1180px;margin:0 auto;padding:0 24px}
.ft .g{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
.ft .logo{display:inline-block;width:200px;height:40px}
.ft .logo img{width:100%;height:100%;object-fit:contain;display:block}
.ft .about{margin:20px 0 0;max-width:320px;line-height:1.65;color:rgba(255,255,255,.72)}
.ft h4{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff;margin:0 0 16px}
.ft a{display:block;padding:4px 0;transition:color .2s;color:rgba(255,255,255,.75)}
.ft a:hover{color:var(--acc)}
.ft p{margin:0 0 4px}
.ft ul{list-style:none;margin:0;padding:0}
.ft .strong{font-weight:700;color:#fff;margin-top:10px}
.ft .bot{margin-top:56px;padding-top:24px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12.5px;color:rgba(255,255,255,.5)}
.ft .bot a{display:inline;color:rgba(255,255,255,.5)}
@media(max-width:900px){.ft .g{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.ft .g{grid-template-columns:1fr}}

/* Skip-Link */
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:#fff;color:var(--ink);padding:10px 16px;border-radius:0 0 8px 0}
.skip-link:focus{left:0}

/* =========================================================================
   Startseite (neues Design) – alle Komponenten unter body.nd gescoped,
   damit bestehende (noch nicht migrierte) Seiten unberührt bleiben.
   ========================================================================= */
body.nd{padding-top:0}
body.nd h1,body.nd h2,body.nd h3,body.nd h4{margin:0}
.nd .wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* Hero */
.nd .hero{position:relative;min-height:100svh;background:var(--ink);color:#fff;display:flex;align-items:center;text-align:center;overflow:hidden}
.nd .hero .media{position:absolute;inset:0}
.nd .hero .media img{width:100%;height:100%;object-fit:cover;transform:scale(1.06);animation:heroZoom 18s ease-out forwards}
@keyframes heroZoom{to{transform:scale(1)}}
.nd .hero .media::after{content:"";position:absolute;inset:0;background:radial-gradient(70% 60% at 85% 10%,rgba(56,182,171,.32),transparent 65%),linear-gradient(rgba(29,29,27,.74),rgba(29,29,27,.58) 40%,rgba(29,29,27,.9))}
.nd .hero .wrap{position:relative;z-index:2;width:100%;padding-top:150px;padding-bottom:40px}
.nd .chip{display:inline-flex;align-items:center;gap:10px;font-size:12.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.92);background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 18px;backdrop-filter:blur(6px)}
.nd .chip::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--pri-lt);box-shadow:0 0 0 4px rgba(56,182,171,.25)}
.nd .hero h1{margin-top:28px;font-family:var(--head);font-size:clamp(44px,6.2vw,92px);font-weight:800;line-height:1.06;letter-spacing:-.03em;color:#fff}
.nd .hero h1 .br{display:block;color:var(--acc)}
.nd .hero .lead{margin:26px auto 0;max-width:760px;font-size:clamp(17px,1.45vw,21px);line-height:1.55;color:rgba(255,255,255,.88)}
.nd .search{display:flex;align-items:center;gap:10px;max-width:680px;margin:40px auto 0;background:#fff;border-radius:999px;padding:8px 8px 8px 24px;box-shadow:0 24px 60px -18px rgba(29,29,27,.35);text-align:left}
.nd .search svg{width:26px;height:26px;flex:none}
.nd .search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px;height:38px}
.nd .search input::placeholder{color:#8b8b88}
.nd .search:focus-within{box-shadow:0 0 0 4px rgba(56,182,171,.35),0 24px 60px -18px rgba(29,29,27,.35)}
.nd .toast{max-width:680px;margin:14px auto 0;font-size:14px;color:#fff;background:rgba(56,182,171,.22);border:1px solid rgba(134,219,209,.45);border-radius:14px;padding:0 16px;max-height:0;opacity:0;overflow:hidden;transition:max-height .4s var(--ease),opacity .3s,padding .3s}
.nd .toast.on{max-height:140px;opacity:1;padding:12px 16px}
.nd .ticks{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 30px;margin-top:26px;font-size:13.5px;font-weight:600;color:rgba(255,255,255,.9)}
.nd .ticks span{display:inline-flex;align-items:center;gap:8px}
.nd .ticks span::before{content:"";width:14px;height:14px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386dbd1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")}
@media(max-width:760px){.nd .hero .wrap{padding-top:120px}.nd .search{flex-wrap:wrap;border-radius:26px;padding:10px}.nd .search svg{margin-left:10px}.nd .search .btn{width:100%}.nd .hero .lead{font-size:16.5px}}

/* Sektionen */
.nd .sec{padding:84px 0}
.nd .sec.grey{background:var(--grey)}
.nd .sec.ink{background:var(--ink);color:rgba(255,255,255,.78)}
.nd h2.t{font-family:var(--head);font-size:clamp(30px,2.9vw,41.6px);font-weight:700;line-height:1.14;letter-spacing:-.025em;color:var(--ink)}
.nd .ink h2.t{color:#fff}
.nd .lead2{margin-top:16px;font-size:16.8px;line-height:1.6;color:var(--mut);max-width:660px}
.nd .ink .lead2{color:rgba(255,255,255,.78)}
.nd .center{text-align:center}.nd .center .lead2{margin-inline:auto}

/* Leistungen + Kennzahlen-Karte */
.nd .split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;margin-top:48px}
.nd .props{display:grid;gap:30px}
.nd .prop{display:grid;grid-template-columns:46px 1fr;gap:0 20px}
.nd .prop::before{content:"";grid-row:span 2;width:46px;height:46px;border-radius:12px;background:var(--mist) no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338b6ab' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")}
.nd .prop h3{font-family:var(--head);font-size:17px;font-weight:600;color:var(--ink);line-height:1.4}
.nd .prop p{margin-top:8px;font-size:15px;color:var(--mut)}
.nd .calc{position:relative;background:var(--ink);color:#fff;border-radius:28px;padding:38px 36px;overflow:hidden;box-shadow:0 40px 70px -40px rgba(29,29,27,.7)}
.nd .calc::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 70% at 100% 0,rgba(56,182,171,.35),transparent 70%);pointer-events:none}
.nd .calc>*{position:relative}
.nd .calc .k{font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.nd .calc h3{margin-top:10px;font-family:var(--head);font-size:19px;font-weight:600}
.nd .calc .note1{margin-top:12px;font-size:14.5px;color:rgba(255,255,255,.72);line-height:1.55}
.nd .calc .note1 .rte>p{margin:0}
.nd .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}
.nd .stats .stat{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:18px 12px 14px;text-align:center}
.nd .stats .stat .rte>p{margin:0}
.nd .stats .stat b{display:block;font-family:var(--head);font-size:26px;font-weight:700;line-height:1.1;color:var(--acc)}
.nd .stats .stat span{font-size:12px;color:rgba(255,255,255,.7);margin-top:4px;display:block}
.nd .calc .fine{margin-top:22px;font-size:12.5px;color:rgba(255,255,255,.55)}
@media(max-width:900px){.nd .split{grid-template-columns:1fr;gap:40px}}
@media(max-width:520px){.nd .calc{padding:30px 22px}.nd .stats{gap:8px}.nd .stats div{padding:14px 10px}.nd .stats b{font-size:21px}.nd .stats span{font-size:11px}}

/* Für wen */
.nd .who{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px;text-align:left}
.nd .who .who-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;transition:transform .35s var(--ease),box-shadow .35s;height:100%}
.nd .who .who-card:hover{transform:translateY(-6px);box-shadow:0 30px 50px -34px rgba(29,29,27,.45)}
.nd .who .ph{border-radius:14px;overflow:hidden;aspect-ratio:3/2;background:var(--mist);margin-bottom:24px}
.nd .who .ph img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.nd .who .who-card:hover .ph img{transform:scale(1.05)}
.nd .who h3{font-family:var(--head);font-size:17.5px;font-weight:600;color:var(--ink)}
.nd .who .who-card>.content-text{margin-top:10px;font-size:15px;color:var(--mut);flex:1}
.nd .who .more{margin-top:22px}
.nd .who .more a{font-family:var(--head);font-size:14.4px;font-weight:600;color:var(--pri);display:inline-flex;gap:8px;align-items:center}
.nd .who .more a::before{content:"";position:absolute;inset:0}
.nd .who .more a::after{content:"›";font-size:1.2em;transition:transform .25s}
.nd .who .who-card:hover .more a::after{transform:translateX(4px)}
@media(max-width:900px){.nd .who{grid-template-columns:1fr;max-width:520px;margin-inline:auto}}

/* Schritte */
.nd .steps{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:56px}
.nd .steps::before{content:"";position:absolute;left:12.5%;right:12.5%;top:27px;border-top:2px dashed #d5d3cf}
.nd .step{position:relative;text-align:center}
.nd .step .n{width:56px;height:56px;margin:0 auto;border-radius:50%;background:#fff;border:2px solid #dcdad6;display:grid;place-items:center;font-family:var(--head);font-weight:700;font-size:17px;color:var(--pri);transition:background .4s,color .4s,border-color .4s}
.nd .step:hover .n{background:var(--pri);border-color:var(--pri);color:#fff}
.nd .step h3{margin-top:22px;font-family:var(--head);font-size:17px;font-weight:600;color:var(--ink)}
.nd .step p{margin:10px auto 0;max-width:240px;font-size:14.5px;color:var(--mut)}
.nd .pill{display:inline-block;margin-top:14px;background:var(--mist);color:var(--pri);font-size:12px;font-weight:600;border-radius:999px;padding:5px 12px}
@media(max-width:900px){.nd .steps{grid-template-columns:1fr 1fr;row-gap:44px}.nd .steps::before{display:none}}
@media(max-width:520px){.nd .steps{grid-template-columns:1fr}}

/* Angebote – Objektkarten (helle Sektion) */
.nd .angebote .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:48px}
.nd .angebote .card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s}
.nd .angebote .card:hover{transform:translateY(-6px);box-shadow:0 30px 50px -34px rgba(29,29,27,.45)}
.nd .angebote .card-img{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--mist)}
.nd .angebote .card-img img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.nd .angebote .card:hover .card-img img{transform:scale(1.05)}
.nd .angebote .country-tag{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.92);border-radius:999px;padding:5px 12px 5px 10px;font-size:12px;font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:7px}
.nd .angebote .country-tag p{margin:0}
.nd .angebote .card h3{font-family:var(--head);font-size:17px;font-weight:600;color:var(--ink);line-height:1.35;padding:20px 22px 0}
.nd .angebote .card h3 a{color:inherit}
.nd .angebote .card .price{font-family:var(--head);font-size:18px;font-weight:700;color:var(--pri);padding:8px 22px 0}
.nd .angebote .card dl.facts{display:grid;grid-template-columns:auto 1fr;gap:0;margin:16px 0 0;padding:16px 22px 22px;border-top:1px solid var(--line);font-size:14px}
.nd .angebote .card dl.facts dt{color:var(--mut);padding:5px 16px 5px 0}
.nd .angebote .card dl.facts dd{margin:0;text-align:right;font-weight:600;color:var(--ink);padding:5px 0}
.nd .angebote .card-stretch::after{content:"";position:absolute;inset:0}
.nd .angebote .empty{background:#fff;border:1px dashed var(--line);border-radius:22px;padding:40px;text-align:center;margin-top:40px}
.nd .angebote .empty h3{font-family:var(--head);font-size:18px;color:var(--ink);margin-bottom:8px}
.nd .angebote .empty p{color:var(--mut);max-width:520px;margin:0 auto}
.nd .angebote .btn{margin-top:40px}
@media(max-width:900px){.nd .angebote .cards{grid-template-columns:1fr;max-width:460px;margin-inline:auto}}

/* Warum Arimo */
.nd .why{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.nd .why .img{border-radius:24px;overflow:hidden;aspect-ratio:4/5;box-shadow:0 40px 70px -40px rgba(29,29,27,.6)}
.nd .why .img img{width:100%;height:100%;object-fit:cover}
.nd .why h2.t{font-size:clamp(32px,3.4vw,48px)}
.nd .chk{margin-top:30px;display:grid;grid-template-columns:1fr 1fr;gap:26px 30px}
@media(max-width:620px){.nd .why .chk{grid-template-columns:1fr}}
.nd .chk .ci{display:grid;grid-template-columns:18px 1fr;gap:4px 14px}
.nd .chk .ci::before{content:"";grid-row:span 2;width:18px;height:18px;border-radius:50%;margin-top:3px;background:var(--mist) no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338b6ab' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")}
.nd .chk h3{font-family:var(--head);font-size:15.5px;font-weight:600;color:var(--ink)}
.nd .chk p{font-size:14.5px;color:var(--mut)}
.nd .why .btn{margin-top:34px}
@media(max-width:900px){.nd .why{grid-template-columns:1fr;gap:40px}.nd .why .img{aspect-ratio:16/11}}

/* Banner */
.nd .banner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;background:#eaf6f4;border:1px solid #d3ece8;border-radius:22px;padding:34px 40px}
.nd .banner h3{font-family:var(--head);font-size:22px;font-weight:600;color:var(--ink)}
.nd .banner p{margin-top:6px;font-size:15px;color:var(--mut)}

/* FAQ (native faqpage) */
.nd .faqwrap{max-width:820px;margin:48px auto 0}
.nd .faqwrap .ce_faqpage>div,.nd .faqwrap dl{display:grid;gap:12px}
.nd .faqwrap details,.nd .faqwrap .faq-item{background:#fff;border:1px solid var(--line);border-radius:16px;transition:box-shadow .3s,border-color .3s}
.nd .faqwrap details[open]{box-shadow:0 20px 40px -30px rgba(29,29,27,.35);border-color:#d7d4cf}
.nd .faqwrap summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;font-family:var(--head);font-size:15.5px;font-weight:600;color:var(--ink)}
.nd .faqwrap summary::-webkit-details-marker{display:none}
.nd .faqwrap summary::after{content:"+";flex:none;width:26px;height:26px;border-radius:50%;background:var(--mist);color:var(--pri);display:grid;place-items:center;font-size:18px;font-weight:500;line-height:1;transition:transform .3s}
.nd .faqwrap details[open] summary::after{transform:rotate(45deg)}
.nd .faqwrap .faq-answer,.nd .faqwrap details>div:not(summary){padding:0 24px 22px;font-size:15px;color:var(--mut)}

/* CTA */
.nd .cta{position:relative;overflow:hidden;background:linear-gradient(150deg,#30a69b,#38b6ab 50%,#5ec9be);color:#fff;text-align:center;padding:104px 0}
.nd .cta::before{content:"";position:absolute;width:720px;height:720px;right:-200px;top:-360px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 65%)}
.nd .cta .wrap{position:relative}
.nd .cta h2{font-family:var(--head);font-size:clamp(30px,3.3vw,46px);font-weight:800;letter-spacing:-.03em;line-height:1.12;color:#fff}
.nd .cta p.l{margin:18px auto 0;max-width:560px;font-size:17px;color:rgba(255,255,255,.9)}
.nd .cta .ctabtns{margin-top:32px;display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* Schweiz-Band */
.nd .chband{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch;background:var(--ink);border-radius:24px;overflow:hidden;color:#fff}
.nd .chband .pic{min-height:320px;background-size:cover;background-position:center}
.nd .chband .txt{padding:48px}
.nd .chband h2{font-family:var(--head);font-size:clamp(26px,2.6vw,36px);font-weight:700;color:#fff}
.nd .chband p{margin-top:16px;color:rgba(255,255,255,.8);line-height:1.6}
.nd .chband .btn{margin-top:28px}
@media(max-width:860px){.nd .chband{grid-template-columns:1fr}.nd .chband .pic{min-height:220px}}

/* Reveal */
.nd .rv{opacity:0;transform:translateY(26px);transition:opacity .9s var(--ease),transform .9s var(--ease);transition-delay:var(--d,0s)}
.nd .rv.in{opacity:1;transform:none}
.nd .hero .rv{transition-duration:1.1s}
@media(prefers-reduced-motion:reduce){.nd .rv{opacity:1;transform:none}.nd .hero .media img{animation:none}}

/* ---- Contao-Wrapper-Anpassungen (body.nd) --------------------------- */
/* Buttons als native Hyperlink-Elemente: Klasse sitzt am Wrapper -> Padding auf den <a>, voll klickbar */
/* Auch auf Alt-Design-Seiten (ohne .nd): Wrapper nie als Pille rendern (sonst Doppel-Layer mit arimo.css .btn a) */
.content-hyperlink.btn{padding:0;border:0;background:none;overflow:visible}
/* Innerer Button-Link auf Alt-Seiten wieder als Pille (volle Rundung) wie im neuen Design */
.content-hyperlink.btn>a{border-radius:999px;padding:16px 30px}
.nd .content-hyperlink.btn{padding:0;border:0;background:none;overflow:visible}
.nd .content-hyperlink.btn>a{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:16px 30px;border-radius:999px;background:var(--pri);color:#fff;border:1.5px solid var(--pri);font-family:var(--head);font-weight:600;transition:background .25s,border-color .25s,transform .25s var(--ease),box-shadow .25s}
.nd .content-hyperlink.btn>a:hover{background:var(--pri-dk);border-color:var(--pri-dk);transform:translateY(-1px);box-shadow:0 12px 26px -14px rgba(56,182,171,.85)}
.nd .content-hyperlink.btn.ghost>a{background:transparent;color:var(--ink);border-color:rgba(29,29,27,.18)}
.nd .content-hyperlink.btn.ghost>a:hover{border-color:var(--ink);background:transparent;box-shadow:none}
.nd .content-hyperlink.btn.ghost-lt>a{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.nd .content-hyperlink.btn.ghost-lt>a:hover{border-color:#fff;background:rgba(255,255,255,.06);box-shadow:none}
.nd .content-hyperlink.btn.arr>a::after{content:"›";font-size:1.15em;line-height:1}
/* p-Margen in Text-Elementen zähmen */
.nd .content-text>.rte>p:first-child{margin-top:0}
.nd .content-text>.rte>p:last-child{margin-bottom:0}
/* eyebrow/lead2/note1 sitzen auf dem content-text-Wrapper */
.nd .lead2.content-text,.nd .note1.content-text{display:block}
.nd .step .n{display:grid;place-items:center}
.nd .step .n .rte,.nd .step .n .rte>p{margin:0;line-height:1}
.nd .pill .rte>p{margin:0}
.nd .cta .ctabtns .content-hyperlink{margin:0}

/* Diverses */
.nd .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nd .content-hyperlink.btn.dark>a{background:var(--ink);border-color:var(--ink);color:#fff}
.nd .content-hyperlink.btn.dark>a:hover{background:#000;border-color:#000}
.nd .cta .ctabtns{margin-top:32px;display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.nd .why .whybody>.content-hyperlink{margin-top:34px;display:inline-block}
.nd .banner .content-hyperlink{align-self:center}
.nd .chband .pic{padding:0}
.nd .chband .pic img{width:100%;height:100%;object-fit:cover;display:block}

/* Robuste Regeln für Contao-Figuren/FAQ unter body.nd */
.nd .who .ph,.nd .who .who-card>figure{margin:0;border-radius:14px;overflow:hidden;aspect-ratio:3/2;background:var(--mist)}
.nd .who .ph img,.nd .who .who-card>figure img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s var(--ease)}
.nd .why .img,.nd .why .whybody~figure,.nd .why>figure{margin:0;border-radius:24px;overflow:hidden;aspect-ratio:4/5;box-shadow:0 40px 70px -40px rgba(29,29,27,.6)}
.nd .why .img img,.nd .why>figure img{width:100%;height:100%;object-fit:cover;display:block}
.nd .faqwrap .faq{display:grid;gap:12px;max-width:none;margin:0}
.nd .faqwrap details{background:#fff;border:1px solid var(--line);border-radius:16px}
.nd .faqwrap .faq__answer{padding:0 24px 22px;font-size:15px;color:var(--mut)}
.nd .faqwrap .faq__answer p{margin:0}

/* Alt-CSS-Kollisionen unter body.nd neutralisieren (Transition) */
.nd .steps{counter-reset:none}
.nd .step{display:block;grid-template-columns:none;background:none;box-shadow:none;padding:0;counter-increment:none}
.nd .step::before{content:none;display:none}

/* =========================================================================
   Review-Korrekturen (26.10.2026) – Navigation, Schweiz-Band u. a.
   ========================================================================= */
/* Links im neuen Design nie browser-unterstreichen */
.hdr a,.hdr strong,.ft a,.mnav a,body.nd a{text-decoration:none}
/* Contao-Skip-Links / unsichtbare Elemente wirklich verstecken */
.hdr .invisible,.ft .invisible,.mnav .invisible{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Aktive Seite (Contao rendert <strong class="active">) wie aktiver Link */
.hdr .mainnav strong{display:inline-block;position:relative;padding:6px 0;font-weight:500;color:var(--ink)}
.hdr .mainnav strong.active{color:var(--pri)}
.hdr .mainnav strong.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--pri)}
.mnav strong{display:block;padding:12px 0;border-bottom:1px solid var(--line);font-weight:500;color:var(--pri)}
.ft strong{color:#fff;font-weight:500}
.ft .mod_navigation ul,.ft .mod_navigation li{list-style:none;margin:0;padding:0}

/* Schweiz-Band: Bild füllt die linke Hälfte vollständig */
.nd .chband{align-items:stretch}
.nd .chband .pic{height:100%;min-height:320px}
.nd .chband .pic .content-image,.nd .chband .pic figure,.nd .chband .pic picture{height:100%;margin:0;display:block}
.nd .chband .pic figure img,.nd .chband .pic img{width:100%;height:100%;object-fit:cover;display:block}
.nd .chband h2{line-height:1.12}
.nd .chband .txt{align-self:center}

/* Alt-Regel `button.btn, a.btn {border-radius:6px}` (Element+Klasse) überstimmen:
   Buttons im neuen Design sind Pillen. Betrifft Hero-<button> und Mobile-CTA-<a>. */
body.nd button.btn,.hdr a.btn,.hero button.btn{border-radius:999px;padding:16px 30px;background:var(--pri);color:#fff;border:1.5px solid var(--pri);font-size:16px;line-height:1.2}
body.nd button.btn:hover,.hdr a.btn:hover,.hero button.btn:hover{background:var(--pri-dk);border-color:var(--pri-dk);color:#fff}
.mnav a.btn{width:100%}

/* =========================================================================
   Immobilienbewertung – mehrstufiges Tool (26.10.2026)
   Aufbau wie arimo.ch: Start → Standort → Immobilie → Person → Danke.
   ========================================================================= */
.nd .imb{position:relative;max-width:960px;margin:0 auto}
.nd .imb-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nd .imb-form{position:relative}

/* Panels: mit JS immer nur einer sichtbar, ohne JS alle untereinander */
.nd .imb.is-js .imb-panel{display:none}
.nd .imb.is-js .imb-panel.is-active{display:block;animation:imbIn .35s ease both}
@keyframes imbIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.nd .imb-panel{margin-top:8px}
.nd .imb-panel+.imb-panel{margin-top:40px;padding-top:40px;border-top:1px solid var(--line)}
.nd .imb.is-js .imb-panel+.imb-panel{margin-top:0;padding-top:0;border-top:0}

/* Überschriften mit Icon */
.nd .imb h1,.nd .imb h2{font-family:Poppins,Inter,sans-serif;font-weight:600;color:var(--ink);font-size:clamp(26px,3.4vw,40px);line-height:1.15;margin:0 0 10px}
.nd .imb-h{display:flex;align-items:center;gap:14px}
.nd .imb-h svg{width:34px;height:34px;flex:0 0 auto;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nd .imb-sub{color:var(--muted,#5b6b70);font-size:18px;margin:0 0 26px}

/* Fortschritt oben rechts (1–2–3–4) */
.nd .imb-track{list-style:none;display:flex;align-items:center;gap:0;justify-content:flex-end;margin:0 0 26px;padding:0}
.nd .imb[data-step="0"] .imb-track{visibility:hidden}
.nd .imb-track li{display:flex;align-items:center}
.nd .imb-track li+li::before{content:"";width:34px;height:0;border-top:2px dotted #c7ced1;margin:0 6px}
.nd .imb-track li span{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#eef1f2;color:#9aa6aa;font-weight:600;font-size:15px}
.nd .imb-track li.is-done span,.nd .imb-track li.is-active span{background:var(--pri);color:#fff}

/* Intro: großer Icon-Flow */
.nd .imb-flow{display:flex;align-items:center;gap:0;margin:30px 0 34px}
.nd .imb-flow i{width:46px;height:0;border-top:2px dotted #c7ced1;margin:0 10px}
.nd .imb-flow__i{display:grid;place-items:center;width:52px;height:52px;flex:0 0 auto}
.nd .imb-flow__i svg{width:40px;height:40px;fill:none;stroke:#6b7a7e;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nd .imb-flow__i--ok svg{stroke:var(--pri)}

/* Schritt 1: Karte + Overlay-Box */
.nd .imb-map{position:relative;border-radius:16px;overflow:hidden;min-height:440px;display:grid;place-items:center}
.nd .imb-map__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.nd .imb-map__box{position:relative;z-index:1;width:min(560px,86%);background:rgba(38,52,56,.62);backdrop-filter:blur(1px);border-radius:12px;padding:30px 30px 34px;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.25)}
.nd .imb-map__q{font-family:Poppins,Inter,sans-serif;font-weight:600;font-size:clamp(24px,3vw,34px);line-height:1.15;margin:0 0 20px;color:#fff}
.nd .imb-map__box input{width:100%;border:0;border-radius:8px;padding:16px 18px;font-size:16px;background:#fff;color:var(--ink)}
.nd .imb-map__attr{position:absolute;right:8px;bottom:6px;z-index:1;font-size:11px;color:#f2f4f4;background:rgba(0,0,0,.35);padding:2px 7px;border-radius:5px}

/* Schritt 2: Objektart-Umschalter */
.nd .imb-type{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:26px 0 30px}
.nd .imb-type__lbl{color:var(--ink);font-size:17px}
.nd .imb-toggle{display:inline-flex;border:1.5px solid var(--pri);border-radius:8px;overflow:hidden}
.nd .imb-toggle label{margin:0;cursor:pointer;padding:13px 30px;font-weight:600;color:var(--pri);background:#fff;transition:.15s;user-select:none}
.nd .imb-toggle label+label{border-left:1.5px solid var(--pri)}
.nd .imb-toggle label.is-on{background:var(--pri);color:#fff}
.nd .imb-toggle input{position:absolute;opacity:0;width:0;height:0}

/* Schritt 2: Schieberegler */
.nd .imb-fields{display:block}
.nd .imb-fields[hidden],.nd .imb [hidden]{display:none}
.nd .imb-range{margin:0 0 26px}
.nd .imb-range label{display:block;color:var(--ink);font-size:17px;margin:0 0 10px}
.nd .imb-range__row{display:flex;align-items:center;gap:22px}
.nd .imb-range output{min-width:58px;text-align:right;font-weight:600;color:var(--ink);font-size:18px;font-variant-numeric:tabular-nums}
.nd input[type=range]{-webkit-appearance:none;appearance:none;flex:1;height:5px;border-radius:5px;background:linear-gradient(90deg,var(--pri) var(--p,40%),#e4e9ea var(--p,40%));outline:none}
.nd input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;border-radius:50%;background:var(--pri);border:3px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.25);cursor:pointer}
.nd input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--pri);border:3px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.25);cursor:pointer}
.nd input[type=range]::-moz-range-track{height:5px;border-radius:5px;background:transparent}

/* Schritt 3: Person */
.nd .imb-anrede{display:flex;gap:26px;margin:0 0 22px}
.nd .imb-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.nd .imb-grid .fld{margin:0}
.nd .imb-grid input{width:100%;border:1px solid var(--line);border-radius:10px;padding:16px 18px;font-size:16px;color:var(--ink);background:#fff}
.nd .imb-grid input:focus{border-color:var(--pri);outline:none;box-shadow:0 0 0 3px rgba(79,179,169,.18)}
.nd .imb-grund{border:0;margin:24px 0 10px;padding:0}
.nd .imb-grund legend{color:var(--ink);font-size:16px;padding:0;margin:0 0 12px}
.nd .imb-grund{display:flex;flex-wrap:wrap;gap:12px 26px}
.nd .imb-grund legend{flex:0 0 100%}
.nd label.chk,.nd label.rad{display:inline-flex;align-items:center;gap:9px;cursor:pointer;color:var(--ink);margin:0}
.nd label.chk input,.nd label.rad input{width:19px;height:19px;accent-color:var(--pri);margin:0;flex:0 0 auto}
.nd .imb-ds{display:flex;align-items:flex-start;gap:10px;margin:18px 0 0;font-size:15px;color:var(--muted,#5b6b70)}
.nd .imb-ds input{margin-top:2px}
.nd .imb-ds a{color:var(--pri);text-decoration:underline}

/* Navigation Zurück/Weiter */
.nd .imb-nav{display:flex;justify-content:space-between;gap:16px;margin-top:34px}
.nd .imb[data-step="1"] .imb-nav .imb-prev{visibility:hidden}
.nd .imb button.btn.ghost{background:#fff;color:var(--pri);border:1.5px solid var(--pri)}
.nd .imb button.btn.ghost:hover{background:var(--pri);color:#fff}

/* Fehler + Danke */
.nd .imb-errors{background:#fde8e6;border:1px solid #f3b4ad;color:#9a2a1c;border-radius:10px;padding:14px 18px;margin:0 0 24px}
.nd .imb-errors ul{margin:0;padding-left:18px}
.nd .imb-done{text-align:left;padding:30px 0}
.nd .imb-done p{font-size:18px;color:var(--muted,#5b6b70)}

@media(max-width:640px){
  .nd .imb-grid{grid-template-columns:1fr}
  .nd .imb-toggle{display:flex;width:100%}
  .nd .imb-toggle label{flex:1;text-align:center;padding:13px 10px}
  .nd .imb-flow i{width:22px}
  .nd .imb-flow__i{width:42px;height:42px}
  .nd .imb-flow__i svg{width:32px;height:32px}
  .nd .imb-map{min-height:380px}
  .nd .imb-nav{flex-direction:row}
}

/* =========================================================================
   Regionale Landingpages (Local SEO) – Hub + Ortsseiten (26.10.2026)
   ========================================================================= */
/* Breadcrumb */
.nd .crumbs{font-size:14px;color:var(--muted,#5b6b70);margin:0 0 18px}
.nd .crumbs a{color:var(--pri)}
.nd .crumbs strong{color:var(--ink);font-weight:600}
.nd .crumbs span{margin:0 6px;color:#aab4b7}

/* Hero der Regionsseiten */
.nd .twhero{background:linear-gradient(180deg,#eef9f7,#fff);border-bottom:1px solid var(--line);padding:150px 0 54px}
.nd .imbsec{padding-top:150px}
@media(max-width:760px){.nd .twhero{padding-top:100px}.nd .imbsec{padding-top:100px}}
.nd .twhero h1{font-family:Poppins,Inter,sans-serif;font-weight:700;color:var(--ink);font-size:clamp(30px,4.4vw,52px);line-height:1.1;margin:0 0 16px}
.nd .twhero .lead .rte p,.nd .twhero .lead p{font-size:clamp(17px,2vw,20px);color:#44555a;max-width:60ch;margin:0 0 18px}
.nd .twcta{display:flex;gap:14px;flex-wrap:wrap;margin-top:22px}

/* Nachfrage-Badges */
.nd .nfbadge{display:inline-block;margin:4px 0 0;padding:8px 16px;border-radius:999px;font-size:15px;background:#eef1f2;color:var(--ink)}
.nd .nf{display:inline-block;padding:3px 11px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
.nd .nf-sehrhoch,.nd .nfbadge.nf-sehrhoch{background:var(--pri);color:#fff}
.nd .nf-sehrhoch b,.nd .nfbadge.nf-sehrhoch b{color:#fff}
.nd .nf-hoch,.nd .nfbadge.nf-hoch{background:#dff2ef;color:#17776e}
.nd .nf-mittel,.nd .nfbadge.nf-mittel{background:#eef1f2;color:#5b6b70}

/* Fakten-Liste */
.nd .twfacts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:24px 0 0}
.nd .twfacts>div{background:#fff;padding:14px 18px}
.nd .twfacts dt{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#8a979b;margin:0 0 3px}
.nd .twfacts dd{margin:0;font-weight:600;color:var(--ink)}

/* Highlight-Liste mit Haken */
.nd .twhl{list-style:none;margin:20px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 28px}
.nd .twhl li{position:relative;padding-left:30px;color:var(--ink)}
.nd .twhl li::before{content:"";position:absolute;left:0;top:3px;width:18px;height:18px;border-radius:50%;background:var(--pri);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat}

/* FAQ-Akkordeon */
.nd .faq-ac{max-width:800px;margin:6px 0 0}
.nd .faq-item{border:1px solid var(--line);border-radius:10px;margin:0 0 12px;background:#fff;overflow:hidden}
.nd .faq-item summary{list-style:none;cursor:pointer;padding:18px 48px 18px 20px;font-weight:600;color:var(--ink);position:relative}
.nd .faq-item summary::-webkit-details-marker{display:none}
.nd .faq-item summary::after{content:"+";position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:22px;color:var(--pri);font-weight:400}
.nd .faq-item[open] summary::after{content:"–"}
.nd .faq-item .faq-a{padding:0 20px 18px;color:#44555a}
.nd .faq-item .faq-a p{margin:0}

/* Nachbarorte */
.nd .twnear{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-top:6px}
.nd .twnear a{display:inline-block;padding:9px 16px;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:15px}
.nd .twnear a:hover{border-color:var(--pri);color:var(--pri)}
.nd .twnear a.hub{border:0;color:var(--pri);font-weight:600}

/* Warum (2×2) */
.nd .why4{display:grid;grid-template-columns:1fr 1fr;gap:22px 30px;margin:10px 0 26px}
.nd .why4 .ci h3{margin:0 0 6px}
.nd .why4 .ci p{margin:0;color:#44555a}

/* Hub: Ortskarten + Tabelle */
.nd .ogrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:26px}
.nd .ocard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 22px 20px;transition:.15s}
.nd .ocard:hover{box-shadow:0 10px 30px rgba(0,0,0,.07);transform:translateY(-2px)}
.nd .ocard h3{margin:0 0 6px}
.nd .ocard .oloc p{margin:0 0 14px;color:#6b7a7e;font-size:15px}
.nd .ocard .more{color:var(--pri);font-weight:600}
.nd .nftable{overflow-x:auto;margin:22px 0 0}
.nd .nftable table{width:100%;border-collapse:collapse;font-size:15px}
.nd .nftable th,.nd .nftable td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line)}
.nd .nftable th{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#8a979b;font-weight:600}
.nd .nftable td a{color:var(--pri);font-weight:600}

@media(max-width:720px){
  .nd .twfacts,.nd .twhl,.nd .why4{grid-template-columns:1fr}
  .nd .ogrid{grid-template-columns:1fr}
}

/* =========================================================================
   Projekte-Übersicht + Neubau-Landingpage (26.10.2026)
   ========================================================================= */
.nd .projhero{position:relative;background:linear-gradient(rgba(18,24,27,.48),rgba(18,24,27,.66)),url(/files/arimo/img/villigen-projekt.jpg) center/cover;color:#fff;padding:168px 0 72px}
.nd .projhero .crumbs,.nd .projhero .crumbs a,.nd .projhero .crumbs strong{color:#fff}
.nd .projhero .crumbs a{opacity:.85}
.nd .projhero h1{color:#fff;font-family:Poppins,Inter,sans-serif;font-weight:700;font-size:clamp(32px,4.6vw,56px);line-height:1.08;margin:12px 0 14px}
.nd .projhero .lead .rte p,.nd .projhero .lead p{color:rgba(255,255,255,.92);font-size:clamp(17px,2vw,21px);max-width:62ch}
.nd .projhero .chip{display:inline-block;background:var(--pri);color:#fff;border-radius:999px;padding:7px 16px;font-size:14px;font-weight:600}
.nd .projhero .twcta{margin-top:24px}

/* Projekte-Übersicht Karten */
.nd .projgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,380px));gap:26px;margin-top:26px}
.nd .projcard{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.15s}
.nd .projcard:hover{box-shadow:0 14px 36px rgba(0,0,0,.09);transform:translateY(-2px)}
.nd .projcard__img{display:block}
.nd .projcard__img img{width:100%;height:230px;object-fit:cover;display:block}
.nd .projcard__body{padding:20px 24px 22px}
.nd .projtag{display:inline-block;font-size:13px;font-weight:600;color:var(--pri);margin:0 0 6px}
.nd .projcard__body h3{margin:0 0 8px}
.nd .projcard__body p{margin:0 0 14px;color:#5b6b70}
.nd .projcard .more{color:var(--pri);font-weight:600}
.nd .fine p{font-size:14px;color:#6b7a7e;margin-top:16px}
.nd .fine a{color:var(--pri);text-decoration:underline}

/* Referenzen (Backend-gepflegt) */
.nd .refgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:26px;margin-top:6px}
.nd .refcard{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.15s}
.nd .refcard:hover{box-shadow:0 12px 32px rgba(0,0,0,.08);transform:translateY(-2px)}
.nd .refcard__img img{width:100%;height:210px;object-fit:cover;display:block}
.nd .refcard__body{padding:20px 24px 22px}
.nd .reftag{display:inline-block;font-size:13px;font-weight:600;color:var(--pri);margin:0 0 6px}
.nd .refcard__body h3{margin:0 0 8px}
.nd .refcard__body .rte p{margin:0;color:#5b6b70}
.nd .ref-empty{color:#6b7a7e;font-size:17px;margin:0}

/* Dropdown: aktive Seite (Contao <strong class="active">) wie normaler Eintrag,
   KEIN Unterstrich/Inline-Layout aus der Top-Nav erben (Fix 26.10.) */
.hdr .mainnav li ul strong{display:block;padding:9px 14px;margin:0;border-radius:9px;font-size:14.5px;font-weight:600;color:var(--pri);background:var(--mist)}
.hdr .mainnav li ul strong::after,.hdr .mainnav li ul strong.active::after{content:none;display:none}

/* Interaktive Karte (Leaflet) in Schritt 1 des Bewertungstools */
.nd .imb-map__bg{background-size:cover;background-position:center;background-repeat:no-repeat}
.nd #imb-map-canvas.leaflet-container{background:#dfe7e2;cursor:grab}
.nd #imb-map-canvas.leaflet-container:active{cursor:grabbing}
.nd .imb-map__search{margin-top:12px;width:100%;border:0;border-radius:8px;padding:12px 16px;background:var(--pri);color:#fff;font-weight:600;font-size:15px;cursor:pointer;transition:.15s}
.nd .imb-map__search:hover{background:var(--pri-dk)}
.nd .imb-pin svg{display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.nd .imb-map .leaflet-control-attribution{font-size:10px;background:rgba(255,255,255,.72)}
.nd .imb-map .leaflet-control-attribution a{color:var(--pri)}

/* Immobilien-Untermenü horizontal (seitlich) statt hoher vertikaler Liste (26.10.) */
.hdr .mainnav li ul{display:flex;flex-direction:row;align-items:center;gap:4px;min-width:0;white-space:nowrap;left:-14px}
.hdr .mainnav li ul a,.hdr .mainnav li ul strong{display:inline-flex;align-items:center}

/* =========================================================================
   Formulargenerator im neuen Design (Verkauf, Suchprofil …) – 27.10.2026
   ========================================================================= */
.nd .ce_form{max-width:720px;margin:0 auto}
.nd .ce_form .formbody{display:flex;flex-wrap:wrap;gap:18px;margin:0;padding:0;border:0}
.nd .ce_form .widget{margin:0;flex:1 1 100%;min-width:0}
.nd .ce_form .widget.half{flex:1 1 calc(50% - 9px)}
.nd .ce_form label{display:block;font-size:15px;color:var(--ink);margin:0 0 7px;font-weight:500}
.nd .ce_form input[type=text],.nd .ce_form input[type=email],.nd .ce_form input[type=tel],.nd .ce_form input[type=number],.nd .ce_form input[type=url],.nd .ce_form select,.nd .ce_form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:14px 16px;font-size:16px;line-height:1.3;color:var(--ink);background:#fff;font-family:inherit;transition:border-color .15s,box-shadow .15s}
.nd .ce_form input:focus,.nd .ce_form select:focus,.nd .ce_form textarea:focus{outline:none;border-color:var(--pri);box-shadow:0 0 0 3px rgba(79,179,169,.18)}
.nd .ce_form textarea{min-height:140px;resize:vertical}
.nd .ce_form select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235b6b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px;padding-right:42px}
.nd .ce_form .widget-checkbox,.nd .ce_form .widget-submit,.nd .ce_form .submit.actions{flex:1 1 100%}
.nd .ce_form fieldset{border:0;padding:0;margin:0}
.nd .ce_form .checkbox label,.nd .ce_form .widget-checkbox label{display:inline;font-weight:400;font-size:15px;color:#5b6b70;margin:0}
.nd .ce_form .checkbox a,.nd .ce_form .widget-checkbox a{color:var(--pri);text-decoration:underline}
.nd .ce_form input[type=checkbox],.nd .ce_form input[type=radio]{width:19px;height:19px;accent-color:var(--pri);margin:0 8px 0 0;vertical-align:-4px}
.nd .ce_form button[type=submit]{border:0;border-radius:999px;padding:16px 36px;background:var(--pri);color:#fff;font-size:16px;font-weight:600;cursor:pointer;transition:.15s;font-family:inherit}
.nd .ce_form button[type=submit]:hover{background:var(--pri-dk)}
.nd .ce_form p.error,.nd .ce_form .error,.nd .ce_form label.error{color:#c0392b;font-size:14px;margin-top:6px}
.nd .ce_form input.error,.nd .ce_form select.error,.nd .ce_form textarea.error{border-color:#e0796f}
.nd .ce_form .confirmation,.nd .confirmation{background:#e7f6ef;border:1px solid #abe0c6;color:#1c7a4b;border-radius:10px;padding:16px 18px}
/* Formular-Abschnitt als Karte */
.nd .formcard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:40px 40px 44px;box-shadow:0 18px 50px -30px rgba(0,0,0,.25);max-width:800px;margin:0 auto}
@media(max-width:640px){.nd .ce_form .widget.half{flex:1 1 100%}.nd .formcard{padding:28px 22px 30px}}

/* ---- Kontaktseite (115) ---------------------------------------------- */
.nd .kontaktwrap{display:grid;grid-template-columns:.82fr 1.18fr;gap:44px;align-items:start;margin-top:14px}
.nd .kontaktinfo h3{font-family:var(--head);font-size:17px;font-weight:700;margin:24px 0 6px;color:var(--ink)}
.nd .kontaktinfo .content-headline:first-child h3,.nd .kontaktinfo>.content-headline:first-of-type h3{margin-top:0}
.nd .kontaktinfo p{color:var(--mut);line-height:1.65;margin:0}
.nd .kontaktinfo a{color:var(--pri);font-weight:500}
.nd .kontaktinfo a:hover{color:var(--pri-dk)}
@media(max-width:860px){.nd .kontaktwrap{grid-template-columns:1fr;gap:28px}}
