/* ============ Self-hosted Jost (GDPR-konform, keine Google-Verbindung) ============ */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jost-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jost-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Tokens ============ */
:root {
  --navy:        #1b1f24;   /* anthracite — dark sections */
  --navy-2:      #2b3139;
  --blue:        #3a444e;   /* graphite steel — primary */
  --steel:       #5c6773;
  --accent:      #ef6c1a;   /* construction orange */
  --accent-dark: #d2570d;
  --ink:         #1b1f24;
  --body:        #4b525a;
  --muted:       #828a93;
  --line:        #e4e6e9;
  --bg:          #ffffff;
  --bg-alt:      #f3f4f6;   /* cool concrete grey */
  --radius:      6px;
  --shadow-sm:   0 1px 3px rgba(20, 23, 28, .08);
  --shadow-card: 0 4px 22px rgba(20, 23, 28, .10);
  --shadow:      0 16px 40px rgba(20, 23, 28, .16);
  --max:         1340px;
  --font:        'Jost', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif:       'Jost', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Scale every font up by 20% — all type uses rem, so it scales from here */
html { font-size: 120%; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* Fallback for no-JS / reduced-motion */
html:not(.lenis) { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--light { color: #f6a96a; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em; padding: 13px 26px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
/* Secondary hero action — a subdued text link, not an outlined button */
.hero__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 600; font-size: .95rem; padding: 13px 4px;
  position: relative;
}
.hero__link::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.hero__link:hover::after { transform: scaleX(1); }
.hero__link:hover .btn__arrow { transform: translateX(4px); }
.btn--block { width: 100%; }
/* Arrow affordance — nudges right on hover (the icon moves, not the button) */
.btn__arrow { width: 18px; height: 18px; margin-left: 9px; stroke-width: 2.4; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============ Top bar ============ */
.topbar { background: var(--navy); color: #b3b9c0; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar__contact { display: flex; align-items: center; gap: 16px; }
.topbar__contact a:hover { color: #fff; }
.topbar__div { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 2px 14px rgba(20, 23, 28, .06); transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: 0 6px 22px rgba(20, 23, 28, .12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo__img { height: 62px; width: auto; display: block; }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__text { font-size: 1.3rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.logo__text span { color: var(--accent); }
.logo--light .logo__text { color: #fff; }

.nav__list { display: flex; align-items: center; gap: 26px; list-style: none; }
.header__cta { flex-shrink: 0; }
.nav { flex-shrink: 0; }
.nav__link {
  font-weight: 600; font-size: .92rem; color: var(--body); position: relative; padding: 4px 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .22s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 7px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 32px; height: 3px; border-radius: 2px; background: var(--ink); transition: .3s; }

/* ---- Mega menu trigger ---- */
.nav__trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font); font-weight: 600; font-size: .92rem; color: var(--body);
  background: none; border: 0; padding: 4px 0; cursor: pointer; position: relative;
}
.nav__trigger::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .22s ease;
}
.nav__trigger:hover { color: var(--ink); }
.nav__trigger:hover::after,
.nav__trigger[aria-expanded="true"]::after { width: 100%; }
.nav__trigger[aria-expanded="true"] { color: var(--ink); }
.nav__chev { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .25s ease; }
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

/* ---- Mega menu panel (opens on click) ---- */
.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 26px 0; }
.mega__item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 10px;
  transition: background .2s ease;
}
.mega__item:hover { background: var(--bg-alt); }
.mega__icon {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(145deg, #eef0f2, #e2e5e9); border-radius: 10px;
  box-shadow: 0 4px 12px rgba(58, 68, 78, .14); transition: background .2s ease;
}
.mega__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; transition: stroke .2s ease; }
.mega__item:hover .mega__icon { background: linear-gradient(145deg, var(--accent), var(--accent-dark)); }
.mega__item:hover .mega__icon svg { stroke: #fff; }
.mega__body { display: flex; flex-direction: column; line-height: 1.3; }
.mega__body strong { color: var(--ink); font-size: .95rem; font-weight: 600; }
.mega__body small { color: var(--muted); font-size: .8rem; }

/* ============ Hero ============ */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--navy); }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,23,28,.97) 0%, rgba(20,23,28,.85) 35%, rgba(20,23,28,.45) 70%, rgba(20,23,28,.12) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 110px 24px 96px; }
.hero__content { max-width: 860px; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5.3vw, 3.5rem); margin-bottom: 22px; }
.hero__text { color: #d7dadf; font-size: 1.12rem; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__microcopy { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: #c4c9cf; }
.hero__microcopy svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 2.2; flex-shrink: 0; }

.hero__stripe { position: relative; z-index: 1; background: rgba(0,0,0,.22); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 12px 0; }
.stat { padding: 22px 16px; text-align: center; }
.stat strong { display: block; font-size: 1.85rem; color: #fff; font-weight: 700; }
.stat strong::after {
  content: ''; display: block; width: 30px; height: 3px; margin: 12px auto 10px;
  background: var(--accent); border-radius: 2px;
}
.stat span { font-size: .82rem; color: #aab1b9; letter-spacing: .02em; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 16px; }
.section__sub { color: var(--muted); font-size: 1.06rem; }

/* ============ Grids ============ */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============ Service cards ============ */
.service-card {
  background: #fff; border-radius: 12px;
  padding: 36px 30px; box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card__icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: linear-gradient(145deg, #eef0f2, #e2e5e9);
  border-radius: 14px; margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(58, 68, 78, .16);
  transition: background .25s ease, box-shadow .25s ease;
}
.service-card__icon svg { width: 27px; height: 27px; fill: none; stroke: var(--blue); stroke-width: 2; transition: stroke .25s ease; }
.service-card:hover .service-card__icon {
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(239, 108, 26, .34);
}
.service-card:hover .service-card__icon svg { stroke: #fff; }
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; }

/* ============ About ============ */
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.about__badge {
  position: absolute; right: -18px; bottom: 28px; background: var(--navy); color: #fff;
  padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.about__badge strong { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.about__badge span { font-size: .78rem; color: #b3b9c0; display: block; margin-top: 6px; max-width: 110px; }
.about__content > p { margin-bottom: 26px; font-size: 1.04rem; }
.checklist { list-style: none; margin: 0 0 32px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--body); }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fbe6d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef6c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ============ Process ============ */
.process__step { position: relative; padding: 8px 0; }
.process__num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600;
  color: var(--line); display: block; margin-bottom: 10px;
}
.process__step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.process__step p { color: var(--muted); font-size: .95rem; }

/* ============ Reviews ============ */
.review-card {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-card);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card__stars { color: var(--accent); letter-spacing: 3px; font-size: 1.05rem; }
.review-card p { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); line-height: 1.6; }
.review-card footer strong { display: block; color: var(--ink); font-size: .95rem; }
.review-card footer span { color: var(--muted); font-size: .85rem; }

/* ============ CTA banner ============ */
.cta-banner { background: var(--navy); color: #fff; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 24px; }
.cta-banner h2 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.cta-banner p { color: #c4c9cf; }

/* ============ Contact ============ */
.contact__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact__lead { margin-bottom: 30px; color: var(--muted); font-size: 1.04rem; }
.contact__list { list-style: none; display: grid; gap: 20px; }
.contact__list li { display: flex; align-items: center; gap: 16px; color: var(--ink); font-weight: 500; }
.contact__list svg {
  width: 44px; height: 44px; padding: 11px; box-sizing: border-box;
  fill: none; stroke: var(--blue); stroke-width: 2; flex-shrink: 0;
  background: linear-gradient(145deg, #eef0f2, #e2e5e9); border-radius: 12px;
  box-shadow: 0 5px 14px rgba(58, 68, 78, .16);
}

.contact__form {
  background: #fff; border-radius: 12px;
  padding: 38px; display: grid; gap: 18px; box-shadow: var(--shadow-card);
}
.contact__form label { display: grid; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact__form input, .contact__form select, .contact__form textarea {
  font-family: var(--font); padding: 13px 15px; border: 0;
  border-radius: 8px; font-size: .95rem; color: var(--ink);
  background: var(--bg-alt); font-weight: 400;
  box-shadow: inset 0 1px 2px rgba(20, 23, 28, .06);
  transition: box-shadow .2s ease, background .2s ease;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(239, 108, 26, .22);
}
.contact__form textarea { resize: vertical; }
.contact__form label.form-consent { display: flex; align-items: flex-start; gap: 11px; font-size: .82rem; font-weight: 400; color: var(--body); cursor: pointer; }
.form-consent input { width: 19px; height: 19px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.form-consent span { line-height: 1.55; }
.form-consent a { color: var(--accent); text-decoration: underline; }
.altcha {
  margin: 2px 0;
  --altcha-max-width: 100%;
  --altcha-border-radius: 8px;
  --altcha-border-width: 0px;
  --altcha-color-base: var(--bg-alt);
  --altcha-color-border: transparent;
  --altcha-color-border-focus: transparent;
}
.altcha:focus-within { outline: none; }
/* Honeypot — für Menschen unsichtbar, von Bots ausgefüllt */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
/* Erfolgsmeldung statt Formular */
.contact__form[hidden] { display: none; }
.form-success { background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); padding: 44px 32px; text-align: center; }
.form-success__icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: #e7f4ec; display: grid; place-items: center; }
.form-success__icon svg { width: 32px; height: 32px; fill: none; stroke: #1e7a44; stroke-width: 3; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
/* Optionaler Bild-Upload */
.label-opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
/* Eigener Datei-Button (deutsch, browserunabhängig) — nativer Button wird ausgeblendet */
.filefield { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filefield input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filefield__btn { font-family: var(--font); font-weight: 600; font-size: .85rem; border-radius: 6px; padding: 11px 18px; background: var(--ink); color: #fff; white-space: nowrap; transition: background .2s ease; }
.filefield:hover .filefield__btn, .filefield:focus-within .filefield__btn { background: var(--accent); }
.filefield:focus-within .filefield__btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.filefield__name { font-size: .85rem; font-weight: 400; color: var(--muted); }
.form-filehint { font-size: .78rem; color: var(--muted); }
.form-filelist { font-size: .82rem; color: var(--body); }
.form-filelist.is-error { color: #b3541e; }
.form-hint { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .8rem; color: var(--muted); margin-top: -4px; }
.form-hint svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.form-note { color: #1e7a44; font-weight: 600; font-size: .92rem; text-align: center; }

/* ---------- Mehrstufiges Formular (Quote-Wizard) ---------- */
.qform { gap: 24px; }
/* Fortschrittsanzeige */
.qf-stepper { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.qf-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.qf-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #e4e6e9; z-index: 0; }
.qf-step:first-child::before { display: none; }
.qf-step.is-done::before { background: var(--accent); }
.qf-step-num {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: #e4e6e9; color: var(--muted);
  font-weight: 700; font-size: .9rem; transition: background .25s ease, color .25s ease;
}
.qf-step.is-active .qf-step-num { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(239,108,26,.18); }
.qf-step.is-done .qf-step-num { background: var(--ink); color: #fff; }
.qf-step-label { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.qf-step.is-active .qf-step-label, .qf-step.is-done .qf-step-label { color: var(--ink); }
/* Panels */
.qf-panel { border: 0; padding: 0; margin: 0; min-inline-size: 0; display: none; }
.qf-panel.is-active { display: grid; gap: 18px; animation: qfFade .35s ease; }
@keyframes qfFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.qf-step-head { display: grid; gap: 4px; }
.qf-step-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.qf-step-title { font-size: 1.32rem; }
.qf-step-sub { color: var(--muted); font-size: .92rem; line-height: 1.5; }
/* Auswahl-Karten */
.qf-options { display: grid; gap: 12px; }
.qf-option { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 10px; background: var(--bg-alt); cursor: pointer; transition: box-shadow .2s ease, background .2s ease; }
.qf-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.qf-option::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #c7ccd2; margin-top: 1px; transition: box-shadow .2s ease; }
.qf-option:hover { background: #eceef1; }
.qf-option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(239,108,26,.25); }
.qf-option:has(input:checked) { background: #fff; box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }
.qf-option:has(input:checked)::before { box-shadow: inset 0 0 0 7px var(--accent); }
.qf-option-body { display: grid; gap: 3px; }
.qf-option-title { font-size: .98rem; font-weight: 700; color: var(--ink); }
.qf-option-text { font-size: .85rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
/* Navigation */
.qf-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.qf-actions .btn { flex: 1; }
.qf-back-btn {
  font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--body);
  background: none; border: 0; padding: 13px 10px; cursor: pointer; transition: color .2s ease;
}
.qf-back-btn:hover { color: var(--ink); }
.qf-step-error { color: #b3541e; font-weight: 600; font-size: .88rem; margin: -4px 0 0; }

/* ============ Footer ============ */
.footer { background: var(--navy); color: #aab1b9; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 24px 48px; }
.footer__logo { display: inline-block; }
/* „light bg"-Logo auf dunklem Footer: als weiße Variante, ohne Kasten */
.footer__logo img { height: 46px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .9; }
.footer__brand p { margin-top: 18px; font-size: .92rem; max-width: 300px; line-height: 1.7; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.footer__col a { display: block; font-size: .92rem; margin-bottom: 11px; color: #aab1b9; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__note { display: block; margin-top: 14px; font-size: .82rem; color: #828a93; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; font-size: .85rem; }
.footer__legal a:hover { color: var(--accent); }
.footer__credit { color: inherit; text-decoration: underline; }
.footer__credit:hover { color: var(--accent); }

/* ============ Image fallback ============ */
.img-fallback { background: linear-gradient(135deg, var(--navy-2), var(--blue)) !important; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .container { padding: 0 28px; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 520px; }
  .about__media img { aspect-ratio: 16/10; }
  .about__badge { right: 20px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  /* Slightly reduce the global type scale so it fits comfortably on phones */
  html { font-size: 112%; }
  .container { padding: 0 20px; }

  /* Topbar: show only contact, condensed */
  .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar { font-size: .8rem; }

  /* Header + slide-down mobile menu anchored to the header */
  .header__inner { height: 72px; gap: 12px; }
  .logo__img { height: 46px; }
  .header__cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
    padding: 6px 0; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { padding: 0 20px; }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__link { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  /* Mega menu becomes an inline accordion on mobile */
  .nav__list li.nav__item { padding: 0; }
  .nav__trigger {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 1rem;
  }
  .nav__trigger::after { display: none; }
  .nav__chev { width: 18px; height: 18px; }
  .mega {
    position: static; box-shadow: none; transform: none;
    opacity: 1; visibility: visible; display: none; background: var(--bg-alt);
  }
  .mega.open { display: block; }
  .mega .container { padding: 0; max-width: none; }
  .mega__grid { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
  .mega__item { padding: 12px 20px; border-radius: 0; }
  .mega__icon { width: 40px; height: 40px; }

  /* Stacked layouts */
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__inner { padding: 64px 20px 56px; }
  .hero__content { max-width: 100%; }
  .hero-br { display: none; }
  .hero__text { font-size: 1.05rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 8px 0; }
  .stat { padding: 18px 8px; }
  .stat strong { font-size: 1.55rem; }

  .about__badge { position: static; margin: -28px auto 0; width: max-content; right: auto; bottom: auto; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
  .cta-banner__inner { flex-direction: column; text-align: center; padding: 48px 20px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 56px 20px 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 44px; }
}

@media (max-width: 420px) {
  html { font-size: 106%; }
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand p { margin-inline: auto; }
}

/* ============ Subpages (Leistungen) ============ */
.container--narrow { max-width: 860px; }

/* Page hero with photo background + dark gradient overlay */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff; padding: 56px 0 64px;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,23,28,.96) 0%, rgba(20,23,28,.86) 38%, rgba(20,23,28,.55) 72%, rgba(20,23,28,.25) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 12px 0 16px; max-width: 20ch; }
.page-hero__intro { color: #c4c9cf; font-size: 1.12rem; max-width: 62ch; margin-bottom: 28px; }
.page-hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.page-hero__actions .hero__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .85rem; color: #97a0a9; }
.breadcrumb a { color: #c4c9cf; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* Detail layout: content + sticky aside */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 52px; align-items: start; }
.detail__lead { font-size: 1.12rem; margin: 6px 0 28px; }
.detail__sub { font-size: 1.25rem; margin: 26px 0 18px; }
.checklist--2col { grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.detail__aside { position: sticky; top: 110px; }
.aside-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); padding: 28px; }
.aside-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.aside-card__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--ink); }
.aside-card__phone svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; }

/* Benefit cards */
.benefit-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-card); padding: 30px 28px; }
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit-card p { color: var(--muted); font-size: .95rem; }

/* Related service cards (clickable, zentriert) */
.related-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.related-grid .service-card { flex: 0 1 360px; max-width: 420px; }
.service-card--link { display: block; color: inherit; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.service-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s ease; }
.service-card--link:hover .service-card__more svg { transform: translateX(4px); }

/* FAQ accordion (native <details>) */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: 10px; box-shadow: var(--shadow-card); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 1.02rem; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.6; flex-shrink: 0; transition: transform .25s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 20px; }
.faq__answer p { color: var(--body); }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 36px; }
  .detail__aside { position: static; }
  .checklist--2col { grid-template-columns: 1fr; }
}

/* Legal pages (Impressum / Datenschutz) */
.legal { line-height: 1.75; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 12px; }
.legal a { color: var(--accent); word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal__credits { list-style: none; display: grid; gap: 5px; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.legal__note { background: var(--bg-alt); border-radius: 10px; padding: 16px 18px; font-size: .92rem; color: var(--body); margin-bottom: 28px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
