/* =============================================================
   Küstenwert Gebäudeservice GmbH – Design System
   Font: Plus Jakarta Sans · Navy #0B1A30 · Sea #0070B0 · Orange #FF8200
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #0B1A30;
  --navy-2:      #12243f;
  --navy-3:      #1b3252;
  --sea:         #0070B0;
  --sea-deep:    #003060;
  --sea-light:   #3f9bd6;
  --orange:      #FF8200;
  --orange-dark: #e56f00;
  --orange-soft: #fff2e2;
  --green:       #16a34a;
  --green-soft:  #e7f6ee;
  --jpfm:        #2563eb;
  --jpfm-dark:   #1e40af;

  --ink:         #0B1A30;
  --muted:       #56657c;
  --muted-2:     #7c8aa0;
  --line:        #e6ebf2;
  --line-2:      #eef2f7;

  --bg:          #ffffff;
  --bg-soft:     #f4f7fb;
  --bg-sand:     #faf6ef;

  --r-xl: 30px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(11,26,48,.06);
  --shadow-md: 0 12px 30px -12px rgba(11,26,48,.18);
  --shadow-lg: 0 30px 60px -22px rgba(11,26,48,.30);
  --shadow-orange: 0 14px 30px -10px rgba(255,130,0,.45);

  --container: 1200px;
  --pad: clamp(20px, 5vw, 40px);

  --ff: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.container--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--sand { background: var(--bg-sand); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--navy { background: var(--navy); color: #fff; position: relative; }
.section--navy h1,.section--navy h2,.section--navy h3 { color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-640 { max-width: 640px; }
.maxw-720 { max-width: 720px; }

/* ---------- Typography ---------- */
.display { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; }
.h-xl { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.h-md { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); line-height: 1.6; }
.text-muted { color: var(--muted); }
.text-orange { color: var(--orange); }
.text-sea { color: var(--sea); }
.balance { text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.section--navy .eyebrow { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--orange); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 26px; border-radius: var(--r-pill);
  background: var(--_bg); color: var(--_fg);
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--navy:hover { background: var(--navy-3); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--orange); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--sea);
  transition: gap .25s var(--ease), color .2s;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--orange); gap: .75em; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__emblem { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 800; font-size: 1.16rem; letter-spacing: .02em; color: var(--navy); }
.brand__sub { font-size: .64rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--orange); margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: center; padding: 9px 12px; border-radius: var(--r-pill);
  font-weight: 500; font-size: .96rem; color: var(--navy); white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--sea); }
.nav__links a.is-active { color: var(--sea); font-weight: 600; }

.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__right .btn { padding: 13px 20px; font-size: .94rem; }
.nav__phone-icon { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; transition: background .2s, border-color .2s; }
.nav__phone-icon svg { width: 19px; height: 19px; color: var(--orange); transition: color .2s; }
.nav__phone-icon:hover { background: var(--orange); border-color: var(--orange); }
.nav__phone-icon:hover svg { color: #fff; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--navy); white-space: nowrap; }
.nav__phone svg { width: 18px; height: 18px; color: var(--orange); }

/* dropdown for Leistungen */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 60;
}
/* invisible bridge over the 10px gap so the menu stays open while the pointer travels to it.
   It belongs to the always-present trigger (not the hidden panel), so it stays hoverable in the gap. */
.has-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.has-drop > a { cursor: default; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-md); }
.drop a:hover { background: var(--bg-soft); }
.drop .di { width: 34px; height: 34px; border-radius: 9px; background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center; flex-shrink: 0; }
.drop .di svg { width: 18px; height: 18px; }
.drop .dt { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; color: var(--navy); }
.drop .dt-new { margin-left: auto; align-self: center; background: var(--orange); color: #fff;
  font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px;
  border-radius: var(--r-pill); flex-shrink: 0; }

.nav__menu { display: none; }  /* mobile drawer — hidden on desktop */
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; position: relative;
}
.nav__toggle span { position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: var(--navy); border-radius: 2px; transition: background .2s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav__toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 100px); overflow: clip; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(0,112,176,.10), transparent 60%),
    radial-gradient(760px 460px at 5% 0%, rgba(255,130,0,.07), transparent 55%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero__lead { max-width: 34ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero__trust-item { display: flex; align-items: center; gap: 11px; }
.hero__trust-item svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }
.hero__trust-item b { font-weight: 700; display: block; font-size: .96rem; color: var(--navy); line-height: 1.2; }
.hero__trust-item span { font-size: .82rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.hero__badge {
  position: absolute; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.hero__badge--tl { top: 22px; left: -26px; }
.hero__badge--br { bottom: 26px; right: -22px; }
.hero__badge .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.hero__badge .ic svg { width: 22px; height: 22px; }
.hero__badge .num { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.hero__badge .lbl { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* wave divider */
.wave-divider { display: block; width: 100%; height: auto; }
.wave-divider path { fill: currentColor; }

/* ---------- USP / trust bar ---------- */
.usp-grid { grid-template-columns: repeat(3, 1fr); }
.usp {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  display: flex; gap: 18px; align-items: flex-start; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.usp__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center; flex-shrink: 0; }
.usp__ic svg { width: 26px; height: 26px; }
.usp h3 { font-size: 1.14rem; margin-bottom: 6px; }
.usp p { color: var(--muted); font-size: .96rem; }

/* ---------- Section head ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head p { margin-top: 16px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.sec-head--split .sh-copy { max-width: 620px; }

/* ---------- Services grid ---------- */
.services { grid-template-columns: repeat(3, 1fr); }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px 30px;
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  min-height: 100%;
}
.svc-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--sea)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card__num { position: absolute; top: 22px; right: 26px; font-size: 2.6rem; font-weight: 800; color: var(--line);
  letter-spacing: -.04em; transition: color .3s; line-height: 1; }
.svc-card:hover .svc-card__num { color: var(--orange-soft); }
.svc-card__ic { width: 58px; height: 58px; border-radius: 16px; background: var(--navy); color: #fff;
  display: grid; place-items: center; margin-bottom: 22px; transition: background .3s; }
.svc-card__ic svg { width: 28px; height: 28px; }
.svc-card:hover .svc-card__ic { background: var(--orange); }
.svc-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: .97rem; margin-bottom: 22px; }
.svc-card .link-arrow { margin-top: auto; }

/* featured "Neu" service banner (homepage) */
.svc-feature { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; margin-top: clamp(22px, 3vw, 32px);
  border-radius: var(--r-xl); overflow: hidden; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-feature:hover { transform: translateY(-5px); box-shadow: 0 40px 70px -24px rgba(11,26,48,.5); }
.svc-feature__body { padding: clamp(28px, 4vw, 50px); position: relative; z-index: 2; }
.svc-feature__ic { width: 58px; height: 58px; border-radius: 16px; background: var(--orange); color: #fff;
  display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-orange); }
.svc-feature__ic svg { width: 28px; height: 28px; }
.svc-feature h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.05rem); letter-spacing: -.025em; margin-bottom: 12px; }
.svc-feature p { color: rgba(255,255,255,.82); max-width: 46ch; margin-bottom: 22px; }
.svc-feature__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.svc-feature__chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .9rem; font-weight: 500; }
.svc-feature__chips svg { width: 15px; height: 15px; color: var(--orange); }
.svc-feature__media { position: relative; min-height: 260px; }
.svc-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-feature__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 2%, rgba(11,26,48,.45) 45%, rgba(11,26,48,.15)); }
.badge-new { position: absolute; top: 22px; right: 22px; z-index: 3; background: var(--orange); color: #fff;
  font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: 7px 15px;
  border-radius: var(--r-pill); box-shadow: var(--shadow-orange); display: inline-flex; align-items: center; gap: 7px; }
.badge-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (max-width: 820px) {
  .svc-feature { grid-template-columns: 1fr; }
  .svc-feature__media { order: -1; min-height: 190px; }
  .svc-feature__media::after { background: linear-gradient(180deg, rgba(11,26,48,.2), var(--navy)); }
}

/* ---------- Stats ---------- */
.stats { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(120deg, #fff, #bcd6ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--navy .stat__num { }
.stat__num .suffix { -webkit-text-fill-color: var(--orange); color: var(--orange); }
.stat__label { margin-top: 12px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.66); font-weight: 600; }
.stat--light .stat__num { background: linear-gradient(120deg, var(--navy), var(--sea)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat--light .stat__label { color: var(--muted); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4/5; }
.split__badge { position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.split__badge .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.split__badge .ic svg { width: 24px; height: 24px; }
.split__badge b { display: block; font-size: 1.05rem; color: var(--navy); }
.split__badge span { font-size: .82rem; color: var(--muted); }

.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.check-list .ck svg { width: 15px; height: 15px; }
.check-list b { color: var(--navy); }
.check-list p { color: var(--muted); font-size: .95rem; margin-top: 1px; }

/* ---------- Steps / process ---------- */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num { width: 54px; height: 54px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--orange); margin-bottom: 20px;
  box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.step h3 { font-size: 1.16rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.steps--line .step:not(:last-child)::before {
  content: ""; position: absolute; top: 27px; left: 54px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 1;
}
.section--navy .step__num { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--orange); }
.section--navy .step p { color: rgba(255,255,255,.7); }
.section--navy .steps--line .step:not(:last-child)::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 8px, transparent 8px 16px); }

/* ---------- Synergy / partner band ---------- */
.partner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.partner__card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); padding: clamp(28px,4vw,44px); }
.partner__logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.partner__logo img { width: 60px; }
.partner__logo b { font-size: 1.1rem; color: #fff; }
.partner__logo span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Testimonials ---------- */
.quotes { grid-template-columns: repeat(3, 1fr); }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px; display: flex; flex-direction: column; }
.quote__stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--orange); }
.quote__stars svg { width: 18px; height: 18px; }
.quote p { color: var(--navy); font-size: 1.02rem; line-height: 1.6; margin-bottom: 22px; }
.quote__by { margin-top: auto; display: flex; align-items: center; gap: 13px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--sea), var(--navy)); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.quote__by b { display: block; font-size: .96rem; color: var(--navy); }
.quote__by span { font-size: .84rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq__item.is-open { border-color: transparent; box-shadow: var(--shadow-md); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 1.06rem; color: var(--navy); }
.faq__q .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, transform .3s var(--ease); position: relative; }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), background .3s; }
.faq__q .pm::before { width: 13px; height: 2px; }
.faq__q .pm::after  { width: 2px; height: 13px; }
.faq__item.is-open .pm { background: var(--orange); }
.faq__item.is-open .pm::before, .faq__item.is-open .pm::after { background: #fff; }
.faq__item.is-open .pm::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a-inner { padding: 0 24px 24px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta-band__deco { position: absolute; inset: 0; z-index: 1; opacity: .5; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.contact__info { display: grid; gap: 14px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .3s, box-shadow .3s; }
.info-row:hover { box-shadow: var(--shadow-sm); }
.info-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .lbl { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-row a, .info-row .val { font-size: 1.08rem; font-weight: 600; color: var(--navy); }
.info-row a:hover { color: var(--orange); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--navy); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); background: #fff; box-shadow: 0 0 0 4px rgba(0,112,176,.10); }
.field textarea { resize: vertical; min-height: 130px; }
.form__consent { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 22px; }
.form__consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.form__note { margin-top: 16px; font-size: .86rem; color: var(--muted); text-align: center; }
.form__success { display: none; text-align: center; padding: 20px; }
.form.is-sent .form__success { display: block; }
.form.is-sent .form__body { display: none; }
.form__success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin: 0 auto 18px; }
.form__success .ok svg { width: 32px; height: 32px; }

/* ---------- Coverage / area ---------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.area-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--navy); }
.area-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(40px,5vw,64px); background: var(--navy); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--navy) 30%, rgba(11,26,48,.72) 62%, rgba(11,26,48,.5)); }
.page-hero__inner { position: relative; z-index: 2; max-width: 780px; }
.page-hero h1 { color: #fff; margin: 16px 0 18px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: clamp(1.05rem,1.5vw,1.24rem); max-width: 60ch; }
.page-hero .eyebrow { color: var(--orange); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.page-hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* service intro two-col */
.svc-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,64px); align-items: center; }
.svc-intro__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }

/* feature list grid (service detail) */
.features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__ic { width: 48px; height: 48px; border-radius: 13px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* pill list */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .95rem; }
.pill-list li svg { width: 16px; height: 16px; color: var(--orange); }

/* generic content card + column helper (careers page etc.) */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.card > h3 { font-size: 1.24rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.card__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center; flex-shrink: 0; }
.card__ic svg { width: 23px; height: 23px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* highlighted note / honest-positioning box */
.note-box { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: var(--r-md); padding: 20px 22px; margin-top: 24px; }
.note-box > b { display: flex; align-items: center; gap: 10px; color: var(--navy); margin-bottom: 8px; font-size: 1.04rem; }
.note-box > b svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.note-box p { color: var(--muted); font-size: .95rem; }

/* ============ Kundenportal landing page ============ */
.phero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.phero__lead { max-width: 42ch; margin: 22px 0 30px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem,1.5vw,1.24rem); }
.phero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* portal / device mockup */
.mock-wrap { position: relative; }
.mock { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink);
  transform: perspective(1500px) rotateY(-7deg) rotateX(2deg); transition: transform .55s var(--ease); }
.mock:hover { transform: perspective(1500px) rotateY(0) rotateX(0); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; }
.mock__dot:nth-child(1){ background:#ff5f57 } .mock__dot:nth-child(2){ background:#febc2e } .mock__dot:nth-child(3){ background:#28c840 }
.mock__url { margin-left: 8px; font-size: .72rem; color: var(--muted-2); background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.mock__obj { font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.mock__sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.mock__badge { background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-size: .74rem; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.mock__list { padding: 2px 12px 6px; }
.mock__list li { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--line-2); }
.mock__list li:last-child { border-bottom: 0; }
.mock__ic { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-soft); color: var(--sea); display: grid; place-items: center; flex-shrink: 0; }
.mock__ic svg { width: 17px; height: 17px; }
.mock__txt { flex: 1; min-width: 0; }
.mock__txt b { display: block; font-size: .86rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__txt span { font-size: .72rem; color: var(--muted); }
.st { font-size: .67rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st--new { background: #eef1f6; color: #64748b; }
.st--free { background: #e6f1fb; color: var(--sea); }
.st--prog { background: var(--orange-soft); color: var(--orange-dark); }
.st--done { background: var(--green-soft); color: var(--green); }
.mock__foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; background: #f7fafc; border-top: 1px solid var(--line); }
.mock__cta { display: inline-flex; align-items: center; gap: 7px; background: var(--orange); color: #fff; font-weight: 600; font-size: .82rem; padding: 9px 15px; border-radius: 999px; }
.mock__foot-note { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: var(--muted); }
.mock__foot-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.mock-chip { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md); padding: 12px 15px;
  display: flex; align-items: center; gap: 11px; z-index: 3; }
.mock-chip .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.mock-chip .ic svg { width: 20px; height: 20px; }
.mock-chip b { display: block; font-size: 1.05rem; color: var(--navy); line-height: 1; }
.mock-chip span { font-size: .74rem; color: var(--muted); }
.mock-chip--bl { bottom: -22px; left: -20px; }

/* role cards (Hausverwaltung / Eigentümer / Mieter) */
.roles { grid-template-columns: repeat(3, 1fr); }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.role:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.role__ic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; }
.role__ic svg { width: 27px; height: 27px; }
.role h3 { font-size: 1.26rem; margin-bottom: 10px; }
.role > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.role ul { display: grid; gap: 10px; }
.role li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--navy); }
.role li svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* JP-FM software partner */
.jpfm { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 4vw, 52px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.jpfm::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--jpfm), var(--jpfm-dark)); }
.jpfm__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.jpfm__brand img { width: 54px; height: 54px; }
.jpfm__brand .wm { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--navy); }
.jpfm__brand .wm b { color: var(--jpfm); font-weight: 800; }
.jpfm h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.jpfm > div > p { color: var(--muted); margin-bottom: 8px; }
.jpfm__by { font-size: .9rem; color: var(--muted); margin-top: 20px; }
.jpfm__by a { color: var(--jpfm); font-weight: 600; text-decoration: underline; }
.jpfm__list { display: grid; gap: 14px; }
.jpfm__list li { display: flex; gap: 12px; align-items: flex-start; }
.jpfm__list .ck { width: 27px; height: 27px; border-radius: 8px; background: #e7eefc; color: var(--jpfm); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.jpfm__list .ck svg { width: 15px; height: 15px; }
.jpfm__list b { color: var(--navy); font-size: .96rem; }
.jpfm__list span { display: block; font-size: .84rem; color: var(--muted); margin-top: 1px; }
.btn--jpfm { background: var(--jpfm); color: #fff; box-shadow: 0 14px 30px -10px rgba(37,99,235,.5); }
.btn--jpfm:hover { background: var(--jpfm-dark); }

@media (max-width: 940px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__media { max-width: 480px; margin-inline: auto; }
  .mock, .mock:hover { transform: none; }
  .roles { grid-template-columns: 1fr; }
  .jpfm { grid-template-columns: 1fr; }
}

/* related services */
.related { grid-template-columns: repeat(3, 1fr); }
.related-card { display: flex; gap: 16px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.related-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background .3s; }
.related-card:hover .ic { background: var(--orange); }
.related-card .ic svg { width: 22px; height: 22px; }
.related-card b { font-size: 1.02rem; color: var(--navy); display: block; }
.related-card span { font-size: .86rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding-top: clamp(56px, 7vw, 88px); position: relative; }
.footer a { color: rgba(255,255,255,.72); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .brand__name { color: #fff; }
.footer__about { margin-top: 20px; max-width: 34ch; font-size: .95rem; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer__social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer__social svg { width: 19px; height: 19px; color: #fff; }
.footer__col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: .96rem; }
.footer__contact-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: .95rem; }
.footer__contact-row svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .88rem; }
.footer__bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__brand .brand__emblem { width: 52px; }

/* ---------- Reveal animation (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
/* Nav → hamburger below 1200px (6 items + Login + CTA only fit side by side at ≥1200) */
@media (max-width: 1200px) {
  .nav__links, .nav__right > .btn, .nav__phone-icon { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__menu {
    position: fixed; inset: 80px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 20px var(--pad) 30px; display: none; z-index: 90;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  body.nav-open .nav__menu { display: block; }
  body.nav-open { overflow: hidden; }
  .nav__menu .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__menu .nav__links a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-md); }
  .nav__menu .drop { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 12px; }
  .nav__menu .has-drop::after { display: none; }
  .nav__menu .has-drop { display: flex; flex-direction: column; }
  .nav__menu .mobile-cta { margin-top: 18px; display: grid; gap: 10px; }
  .nav__menu .nav__phone { display: inline-flex; margin-top: 16px; }
}
@media (max-width: 1080px) {
  .services, .quotes, .related { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .steps--line .step::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; margin-inline: auto; order: -1; }
  .hero__media img { aspect-ratio: 16/11; }
  .hero__lead { max-width: 52ch; }
  .split, .partner, .contact, .svc-intro { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .usp-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sec-head--split { flex-direction: column; align-items: flex-start; }
  .contact__info { order: 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .services, .quotes, .features, .related { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__badge--tl { left: 8px; top: 12px; }
  .hero__badge--br { right: 8px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero__cta .btn, .page-hero__cta .btn, .cta-band .btn { width: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
