/* ==========================================================================
   Energieberatung Basaran – Stylesheet
   Farben aus dem Logo: Grün #3D7641, Creme #FDFAF5
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #3d7641;
  --green-600: #356a39;
  --green-700: #2c5a30;
  --green-800: #234a27;
  --green-900: #18351b;
  --green-50: #eef4ec;
  --green-100: #e0ebdc;
  --cream: #fdfaf5;
  --sand: #f6f0e5;
  --sand-200: #ede4d4;
  --line: #e3dccd;
  --ink: #18261a;
  --text: #34433a;
  --muted: #627066;
  --gold: #e6b955;
  --gold-600: #cf9f37;
  --error: #b3261e;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(24, 38, 26, .06), 0 2px 8px rgba(24, 38, 26, .05);
  --shadow: 0 2px 6px rgba(24, 38, 26, .05), 0 14px 40px rgba(24, 38, 26, .09);
  --wrap: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.55rem; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green-100); color: var(--ink); }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .98rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .ic { width: 1.1em; height: 1.1em; stroke-width: 2.2; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--cream); box-shadow: 0 6px 18px rgba(61, 118, 65, .28); }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green-900); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-gold:hover { background: #efc768; color: var(--green-900); }
.btn-ghost-light { color: var(--cream); border-color: rgba(253, 250, 245, .45); }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--green); }
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-outline:hover .ic { transform: none; }
.btn-ghost-light:hover { background: rgba(253, 250, 245, .1); border-color: var(--cream); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--gold); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 245, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(24, 38, 26, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: auto; height: 46px; }
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); line-height: 1; }
.brand-top { font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.brand-name { font-size: 1.65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover { color: var(--green-800); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { padding: .65em 1.2em; font-size: .92rem; }
.nav a.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-800); white-space: nowrap; }
.nav-phone .ic { width: 18px; height: 18px; color: var(--green); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 24px; height: 24px; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    radial-gradient(900px 600px at 78% 45%, rgba(255, 255, 255, .09), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(0, 0, 0, .16), transparent 60%),
    var(--green);
}
.hero::after { /* feines Korn */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 104px; }
.hero h1 { color: var(--cream); margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--gold); white-space: nowrap; }
.hero .lead { font-size: 1.2rem; line-height: 1.6; color: rgba(253, 250, 245, .9); max-width: 36em; }
.hero-points { display: grid; gap: 10px; margin: 26px 0 36px; }
.hero-points li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--cream); }
.hero-points .ic { margin-top: 2px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(230, 185, 85, .2); color: var(--gold); stroke-width: 2.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-call { margin: 24px 0 0; color: rgba(253, 250, 245, .78); font-weight: 600; }
.hero-call a { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(253, 250, 245, .35); }
.hero-call a:hover { color: var(--gold); border-color: var(--gold); }
.hero-call .ic { width: 18px; height: 18px; color: var(--gold); }

.hero-visual { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1; }
.badge { position: absolute; inset: 0; }
.badge::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 70%); }
.badge img { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-ring { animation: spin 120s linear infinite; }
.badge-mark { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .18)); animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: var(--cream); color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2); font-size: .9rem; line-height: 1.25;
}
.chip strong { display: block; color: var(--ink); font-size: 1rem; }
.chip .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--green-50); color: var(--green); }
.chip-a { left: -10%; bottom: -1%; }
.chip-b { right: -10%; top: 1%; }

/* Trust ------------------------------------------------------------------ */
.trust { position: relative; z-index: 2; margin-top: -52px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--green); }
.stat-label { font-size: .92rem; color: var(--muted); line-height: 1.4; }

/* Sections --------------------------------------------------------------- */
.section { padding: 112px 0; }
.section-alt { background: var(--sand); }
.section-green { background: var(--green-800); color: rgba(253, 250, 245, .86); position: relative; overflow: hidden; }
.section-green::before {
  content: ''; position: absolute; right: -120px; top: -40px; width: 520px; height: 1515px; opacity: .05;
  background: url('/img/mark-cream.svg') no-repeat center / contain; transform: rotate(12deg); pointer-events: none;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p:last-child { font-size: 1.12rem; color: var(--muted); }
.section-head-light h2 { color: var(--cream); }
.section-head-light p:last-child { color: rgba(253, 250, 245, .8); }

.problem { padding-top: 136px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.split p { font-size: 1.1rem; }
.check-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.check-card-title { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin-bottom: 18px; }
.check-card-title .ic { color: var(--green); width: 28px; height: 28px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ic { color: var(--green); margin-top: 3px; stroke-width: 2.4; }
.check-list-compact { margin: 26px 0 32px; }
.check-list-compact li { font-weight: 600; color: var(--ink); }

/* Cards ------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 30px 30px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-100); }
.card h3 { margin-top: 22px; }
.card p { margin: 0; color: var(--muted); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 15px; background: var(--green-50); color: var(--green); }
.card-icon .ic { width: 27px; height: 27px; }

/* Steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 38px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--green-100) 0 10px, transparent 10px 18px); }
.step { position: relative; text-align: center; padding: 0 14px; }
.step-num {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; border-radius: 50%; margin-bottom: 24px;
  background: var(--green); color: var(--cream); font: 700 2.3rem/1 var(--serif);
  box-shadow: 0 0 0 10px var(--cream), 0 12px 30px rgba(61, 118, 65, .3);
}
.step p { color: var(--muted); max-width: 22em; margin: 0 auto; }

/* Duo -------------------------------------------------------------------- */
.duo { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.duo-col { border-radius: var(--radius); padding: 36px; background: rgba(253, 250, 245, .06); border: 1px solid rgba(253, 250, 245, .14); }
.duo-col h3 { color: var(--cream); margin-bottom: 22px; }
.duo-col-strong { background: var(--cream); border-color: var(--cream); color: var(--text); }
.duo-col-strong h3 { color: var(--ink); }
.duo-list { display: grid; gap: 14px; }
.duo-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.duo-list .ic { margin-top: 3px; stroke-width: 2.4; color: var(--gold); }
.duo-col-strong .duo-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.duo-col-strong .duo-list .ic { color: var(--green); }
.duo-highlight { margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(253, 250, 245, .18); color: var(--gold); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }

/* Über mich -------------------------------------------------------------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 80% at 30% 20%, var(--green-600), var(--green-900));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.portrait::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(253, 250, 245, .35); border-radius: 20px; pointer-events: none; }
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-tag {
  position: absolute; left: 26px; bottom: 26px; z-index: 1; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 12px; border-radius: 999px; background: rgba(35, 74, 39, .88); color: var(--cream);
  font-weight: 700; font-size: .88rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.portrait-tag img { width: 9px; height: auto; }
.portrait-caption { margin: 18px 0 0; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.portrait-caption span { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--muted); }
.about-copy p { font-size: 1.1rem; }
.quote { margin: 30px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--gold); }
.quote p { margin: 0; font: italic 600 1.7rem/1.3 var(--serif); color: var(--green-800); }
.about-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.about-facts span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-weight: 600; font-size: .92rem; }
.about-facts .ic { width: 18px; height: 18px; }

/* Zielgruppen ------------------------------------------------------------ */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.audience-card h3 { margin-top: 22px; font-size: 1.85rem; }
.audience-card > p { color: var(--muted); }
.mini-list { display: grid; gap: 10px; margin: 6px 0 28px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.mini-list .ic { color: var(--green); margin-top: 3px; stroke-width: 2.4; }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--green); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* FAQ -------------------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; line-height: 1.25; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-50);
  background-image: linear-gradient(var(--green), var(--green)), linear-gradient(var(--green), var(--green));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform .25s, background-color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--green-100); }
.faq summary:hover { color: var(--green-800); }
.faq details p { margin: -6px 0 24px; color: var(--muted); max-width: 40em; }

/* Formular --------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.form-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.form-intro > p { font-size: 1.1rem; }
.contact-box { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin-bottom: 12px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .ic { color: var(--green); margin-top: 3px; }
a.contact-line:hover { color: var(--green-800); }

.form { background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-body { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-plz { grid-template-columns: 150px 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-group legend { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { margin-bottom: 10px; padding: 0; }
.req { color: var(--green); }
.optional { font-weight: 500; color: var(--muted); font-size: .88rem; }
input[type='text'], input[type='email'], input[type='tel'], select, textarea {
  width: 100%; font: 500 1rem/1.4 var(--sans); color: var(--ink);
  padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--sand-200); background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #a39c8f; }
input:hover, select:hover, textarea:hover { border-color: #d9cfbb; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(61, 118, 65, .14); }
.field.has-error input, .field.has-error select, .contact-pair.has-error input { border-color: var(--error); background: #fff8f7; }
.field-error { margin: 0; font-size: .86rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.hint { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.hint strong { color: var(--ink); }
.contact-pair { padding: 18px; border-radius: var(--radius-sm); background: var(--green-50); }
.contact-pair.has-error { background: #fdf0ee; }
.contact-pair input { background: #fff; }
.contact-pair > .field-error { margin-top: 10px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented-3 { grid-template-columns: repeat(3, 1fr); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 100%;
  padding: 13px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--sand-200); background: var(--cream);
  font-weight: 700; font-size: .95rem; color: var(--text); transition: all .2s; text-align: center;
}
.segmented span .ic { color: var(--muted); }
.segmented label:hover span { border-color: #d9cfbb; }
.segmented input:checked + span { border-color: var(--green); background: var(--green-50); color: var(--green-800); box-shadow: inset 0 0 0 1px var(--green); }
.segmented input:checked + span .ic { color: var(--green); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.consumption-title { margin: 0 0 10px; font-weight: 700; font-size: .92rem; color: var(--ink); }
.input-unit { display: flex; align-items: stretch; border-radius: var(--radius-sm); }
.input-unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-unit .unit, .input-unit select {
  flex: none; display: flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--sand-200); border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sand); font-weight: 700; font-size: .88rem; color: var(--muted);
}
.input-unit select {
  width: auto; cursor: pointer; padding-right: 32px; color: var(--ink);
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23627066' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
}
.field.has-error .input-unit .unit, .field.has-error .input-unit select { border-color: var(--error); }

.field-check { gap: 4px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: .93rem !important; color: var(--text) !important; cursor: pointer; line-height: 1.5; }
.checkbox input {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid #cfc5b1; background: var(--cream);
  appearance: none; -webkit-appearance: none; cursor: pointer; display: grid; place-content: center; transition: all .15s;
}
.checkbox input::after { content: ''; width: 11px; height: 6px; border: solid var(--cream); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checkbox input:checked { background: var(--green); border-color: var(--green); }
.checkbox input:checked::after { opacity: 1; }
.field.has-error .checkbox input { border-color: var(--error); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }
.form-note { margin: 0; font-size: .84rem; color: var(--muted); text-align: center; }
.btn[aria-busy='true'] { opacity: .75; pointer-events: none; }
.btn[aria-busy='true'] .ic { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

.form-success { text-align: center; padding: 40px 10px; }
.form-success:focus { outline: none; }
.success-icon { display: inline-flex; width: 76px; height: 76px; border-radius: 50%; align-items: center; justify-content: center; background: var(--green-50); color: var(--green); margin-bottom: 18px; }
.success-icon .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.form-success h3 { font-size: 2rem; }
.form-success p { color: var(--muted); max-width: 30em; margin: 0 auto; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: rgba(253, 250, 245, .74); padding: 72px 0 0; font-size: .96rem; }
.footer-inner { display: grid; grid-template-columns: auto 1.2fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand img { width: 150px; height: 150px; }
.footer-title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--cream); margin-bottom: 14px; }
.site-footer a { color: rgba(253, 250, 245, .86); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(253, 250, 245, .12); font-size: .86rem; }
.footer-bottom p { margin: 0; }

.mobile-cta { display: none; }

/* Unterseiten (Impressum, Datenschutz, Danke, 404) ----------------------- */
.page-hero { background: var(--green); color: var(--cream); padding: 72px 0 64px; }
.page-hero h1 { color: var(--cream); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; }
.page-hero .eyebrow { color: var(--gold); }
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.9rem; margin-top: 1.6em; }
.legal .wrap > h2:first-child, .legal .wrap > p:first-child { margin-top: 0; }
.legal h3 { font-size: 1.35rem; margin-top: 1.4em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .3em; }
.todo { background: #fff3cd; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.simple { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.simple h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.simple p { max-width: 34em; color: var(--muted); }
.simple ul { margin: 0 0 24px; color: var(--error); font-weight: 600; }
.simple .big-mark { width: 54px; height: auto; margin-bottom: 24px; }

/* Einblend-Animation ----------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (min-width: 921px) and (max-width: 1240px) {
  .nav a.nav-phone { display: none; }
}

@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .hero-inner { grid-template-columns: 1fr .8fr; gap: 32px; }
  .chip-a { left: -4%; }
  .chip-b { right: -4%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .about { gap: 56px; }
  .duo-col-strong .duo-list { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav a.nav-phone { color: var(--green-800); }
  .nav {
    /* absolut zum Header: backdrop-filter macht den Header zum Bezugsrahmen für position:fixed */
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px;
    background: var(--cream); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 18px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav-cta { margin-top: 24px; padding: 1em; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; padding-bottom: 100px; text-align: left; }
  .hero-visual { width: min(320px, 76vw); }
  .chip { padding: 9px 12px; font-size: .8rem; }
  .chip strong { font-size: .9rem; }
  .chip .ic { width: 28px; height: 28px; padding: 6px; }
  .chip-a { left: -8%; bottom: -2%; }
  .chip-b { right: -8%; top: 0; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .section { padding: 84px 0; }
  .problem { padding-top: 100px; }
  .split, .about, .faq-wrap, .form-layout { grid-template-columns: 1fr; gap: 44px; }
  .faq-wrap .section-head, .form-intro { position: static; }
  .faq-wrap .section-head { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { top: 0; bottom: 0; left: 38px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--green-100) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 78px 1fr; column-gap: 24px; text-align: left; padding: 0; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; margin-bottom: .25em; }
  .step p { margin: 0; max-width: none; }
  .duo { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; }
  .audience { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .eyebrow { letter-spacing: .12em; }
  .brand-mark { height: 38px; }
  .brand-top { font-size: .7rem; }
  .brand-name { font-size: 1.35rem; }
  .hero .lead { font-size: 1.08rem; }
  .hero h1 em { white-space: normal; }
  .hero-actions .btn { width: 100%; }
  .trust { margin-top: -44px; }
  .stat { padding: 20px 18px; }
  .stat-num { font-size: 1.75rem; }
  .stat-label { font-size: .84rem; }
  .section { padding: 68px 0; }
  .problem { padding-top: 84px; }
  .section-head { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
  .card, .audience-card, .duo-col, .check-card { padding: 26px 22px; }
  .form { padding: 24px 18px; border-radius: 20px; }
  .row, .row-plz { grid-template-columns: 1fr; }
  .row-plz { grid-template-columns: 110px 1fr; }
  .segmented span { gap: 7px; padding: 12px 8px; font-size: .9rem; }
  .segmented-3 span { flex-direction: column; gap: 4px; font-size: .88rem; padding: 12px 6px; }
  .faq summary { font-size: 1.22rem; padding: 20px 0; }
  .quote p { font-size: 1.45rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding-bottom: 76px; }
  .header-inner > .nav-cta { padding: .6em 1em; font-size: .85rem; }
  .mobile-cta {
    display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253, 250, 245, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { padding: .85em 1.1em; }
  .hero-call { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
