/* =====================================================================
   KLAREKANTE HAUSVERWALTUNG — Stylesheet
   Ästhetik: architektonisch-editorial · scharfe Kanten · Präzision
   Farben:  Papier-Creme / Tannengrün / Terrakotta
   ===================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --paper:      #F1ECE1;   /* Hintergrund, warmes Papier */
  --paper-2:    #E7E0D0;   /* leicht getönte Fläche */
  --ink:        #16150E;   /* Text, warmes Fast-Schwarz */
  --ink-soft:   #55513F;   /* gedämpfter Text */
  --pine:       #2e2a63;   /* Markenindigo (dunkle Sektionen, Navigation) – identisch zur Primärfarbe des Portals */
  --pine-deep:  #1b1941;
  --sage:       #45408a;   /* Akzentindigo, Basis */
  --sage-deep:  #2e2a63;   /* Akzentindigo, kräftig (Text auf hellem Grund) */
  --sage-light: #a4a1c7;   /* Akzentindigo, hell (auf dunklen Sektionen) */
  --clay:       #C0562F;   /* Terrakotta – nur noch als seltener Einzelakzent */
  --clay-deep:  #9E4322;
  --line:       rgba(22, 21, 14, 0.16);
  --line-soft:  rgba(22, 21, 14, 0.08);
  --line-light: rgba(241, 236, 225, 0.18);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Space Mono", "Courier New", monospace;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Alles hat scharfe Kanten — "klare Kante". */
* { border-radius: 0 !important; }

/* ---------- Layout-Helfer ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }

/* ---------- Körnung / Textur ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Sichtbarer Fokus für Tastaturbedienung (WCAG 2.4.7 / 2.4.13) ----------
   Deutlicher, markenkonformer Indikator für alle interaktiven Elemente.
   :focus-visible zeigt den Ring nur bei Tastatur-/Nicht-Zeiger-Fokus. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 2px;
}
/* Auf dunklen Sektionen heller Ring für ausreichenden Kontrast */
.principles a:focus-visible,
.contact a:focus-visible,
.principles summary:focus-visible {
  outline-color: var(--sage-light);
}
/* Fallback für Browser ohne :focus-visible-Unterstützung */
.no-focus-visible a:focus,
.no-focus-visible button:focus { outline: 3px solid var(--sage-deep); outline-offset: 2px; }
/* <main> erhält beim Skip-Link-Sprung keinen sichtbaren Rahmen */
main:focus { outline: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--ink); background: color-mix(in srgb, var(--paper) 94%, transparent); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }

/* Wortmarke */
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; flex: none; position: relative;
  background: var(--pine);
  clip-path: polygon(0 0, 100% 0, 100% 100%);   /* scharfe Ecke */
}
.brand-mark::after {
  content: ""; position: absolute; left: -6px; bottom: -6px;
  width: 12px; height: 12px; background: var(--clay);
}
.brand-mark.small { width: 18px; height: 18px; }
.brand-logo { display: block; height: 74px; width: auto; }
.footer-logo { height: 64px; }
/* Logo wird ausschließlich auf reinem Weiß gezeigt (wie in der
   Original-Datei), nie transparent über der Papier-/Sektionsfarbe. */
.brand-logo-plate {
  display: inline-flex; align-items: center; background: #ffffff;
  padding: 0.5rem 0.85rem;
}
.brand-text {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.01em; line-height: 1; display: flex; align-items: baseline; gap: 0.15em;
}
.brand-text em { font-style: normal; color: var(--sage-light); }
.brand-text small {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.5rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
  margin-left: 0.35em; align-self: center;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 0.25rem 0; color: var(--ink);
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--sage); transition: width 0.3s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--pine); color: var(--paper) !important;
  padding: 0.55rem 1.1rem !important; font-weight: 600;
  transition: background 0.25s var(--ease);
}
.nav-cta:hover { background: var(--sage-deep); }

.nav-portal {
  border: 1.5px solid var(--pine); color: var(--pine) !important;
  padding: 0.5rem 1rem !important; font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-portal::after { content: none !important; }
.nav-portal:hover { background: var(--pine); color: var(--paper) !important; }

.mobile-nav-portal { color: var(--pine) !important; font-weight: 700 !important; }

/* Burger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; margin-right: -8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { padding: 1rem var(--pad); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a:hover { background: var(--paper-2); color: var(--sage); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem); overflow: hidden; }
/* dezentes Rasterlinien-Muster */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 78%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sage-deep); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.75rem);
  font-weight: 600; line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.hero-title-long { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; }
.hero-title .accent { color: var(--sage); font-style: italic; }
.hero-title .outline {
  color: transparent; -webkit-text-stroke: 2px var(--ink); text-stroke: 2px var(--ink);
}
.hero-lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 42ch; color: var(--ink-soft); margin-bottom: 1.25rem; }
.hero-lead-support { font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.08rem); max-width: 46ch; color: var(--ink-soft); margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.6rem; text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 rgba(22,21,14,0.001); }
.btn-primary:hover { background: var(--sage-deep); border-color: var(--sage-deep); transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--sage); }
.btn-block { width: 100%; margin-top: 0.5rem; }

/* Hero-Visual: abstrakte Fassade */
.hero-visual { position: relative; justify-self: center; }
.facade {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  width: min(340px, 70vw); aspect-ratio: 4 / 5; padding: 18px;
  background: var(--pine); border: 1.5px solid var(--ink);
  box-shadow: 14px 14px 0 var(--sage);
}
.facade .win { background: transparent; border: 1.5px solid var(--line-light); }
.facade .win.on { background: rgba(241,236,225,0.9); border-color: transparent; }
.facade .win.on.clay { background: var(--clay); }
.facade-tag {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--paper); border: 1.5px solid var(--ink); padding: 0.85rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.15rem; box-shadow: 5px 5px 0 var(--ink);
}
.tag-num { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--sage-deep); }
.tag-label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); line-height: 1.3; }

/* =====================================================================
   KENNZAHLEN
   ===================================================================== */
.stats { border-block: 1.5px solid var(--ink); background: var(--paper-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat {
  padding: clamp(1.75rem, 4vw, 2.75rem) 1.5rem; text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

/* =====================================================================
   SECTION-KÖPFE (gemeinsam)
   ===================================================================== */
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-kicker { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 1rem; }
.section-kicker.light { color: var(--sage-light); }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.section-title.light { color: var(--paper); }
.section-intro { margin-top: 1.25rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; }

/* =====================================================================
   LEISTUNGEN — Karten
   ===================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.card {
  position: relative; padding: clamp(1.75rem, 3vw, 2.5rem);
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  background: var(--paper); transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 0; background: var(--sage);
  transition: height 0.35s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card:hover::before { height: 100%; }
.card-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--sage-deep); letter-spacing: 0.05em; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0.75rem 0 0.6rem; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* =====================================================================
   PRINZIPIEN — dunkle Sektion
   ===================================================================== */
.principles { background: var(--pine); color: var(--paper); }
.principles .section-intro { color: rgba(241,236,225,0.7); }
.principle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-light); }
.principle {
  display: flex; gap: 1.25rem; padding: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line-light);
}
.principle:nth-child(odd) { border-right: 1px solid var(--line-light); }
.p-index { font-family: var(--font-mono); font-size: 0.95rem; color: var(--sage-light); flex: none; padding-top: 0.35rem; }
.principle h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--paper); }
.principle p { color: rgba(241,236,225,0.72); font-size: 0.98rem; }

/* =====================================================================
   IHRE VORTEILE
   ===================================================================== */
.advantages { background: var(--paper); border-top: 1.5px solid var(--ink); }
.advantage-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem;
  max-width: 900px;
}
.advantage-list li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 1.05rem; color: var(--ink); padding-block: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.a-mark {
  flex: none; width: 10px; height: 10px; margin-top: 0.55rem;
  background: var(--sage); clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* =====================================================================
   ABLAUF — Schritte
   ===================================================================== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; border-top: 1.5px solid var(--ink); }
.step { position: relative; padding: 2rem clamp(1.25rem, 2vw, 1.75rem) 2.25rem; border-right: 1px solid var(--line); }
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); display: block; margin-bottom: 1rem;
  transition: color 0.3s var(--ease), -webkit-text-stroke-color 0.3s var(--ease);
}
.step:hover .step-num { color: var(--sage-deep); -webkit-text-stroke-color: var(--sage-deep); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* =====================================================================
   ÜBER UNS
   ===================================================================== */
.about, .trust { background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.portrait-placeholder {
  aspect-ratio: 4 / 5; background: var(--pine);
  border: 1.5px solid var(--ink); box-shadow: 14px 14px 0 var(--sage);
  display: grid; place-items: center;
}
.portrait-placeholder span {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.85rem; color: rgba(241,236,225,0.6); text-align: center; line-height: 1.8;
}
.portrait-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1.5px solid var(--ink); box-shadow: 14px 14px 0 var(--pine);
}
.about-copy .section-title { margin-top: 0.5rem; }
.about-lead { font-size: 1.2rem; margin: 1.5rem 0 1rem; }
.about-copy p { color: var(--ink-soft); }
.pull-quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.4;
  color: var(--ink); border-left: 4px solid var(--sage); padding-left: 1.25rem; margin: 1.75rem 0 1rem;
}
.signature { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.05em; color: var(--ink); text-transform: uppercase; }

/* =====================================================================
   DIGITALES EIGENTÜMERPORTAL
   ===================================================================== */
.portal-showcase, .faq { background: var(--paper); border-top: 1.5px solid var(--ink); }
.einsatzgebiet { background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.portal-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.portal-lead { margin-top: 1rem; color: var(--ink-soft); max-width: 52ch; }

.portal-features, .trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 2.5rem 0; }
.portal-feature, .trust-item {
  display: flex; gap: 1rem; padding: 1.5rem;
  background: var(--paper); border: 1.5px solid var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.portal-feature:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--sage); }
.portal-feature-icon, .trust-icon { flex: none; width: 38px; height: 38px; color: var(--sage-deep); }
.portal-feature-icon svg, .trust-icon svg { width: 100%; height: 100%; }
.portal-feature h3, .trust-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.portal-feature p, .trust-item p { font-size: 0.9rem; color: var(--ink-soft); }
.trust-icon.pending { color: var(--ink-soft); }
/* Bei ungerader Anzahl Punkte nimmt der letzte die volle Breite ein, damit im
   2-spaltigen Raster keine leere Lücke entsteht. */
.trust-grid > .trust-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.portal-actions { margin-top: 0.5rem; }
.portal-note { margin-top: 0.85rem; font-size: 0.82rem; color: var(--ink-soft); max-width: 40ch; }

/* Hinweis auf die native iOS-App, eigener Block unterhalb des Portal-CTA.
   Badge = offizielles, unverändertes Apple-Artwork (brand/app-store-badge-de.svg,
   bezogen über Apples Marketing-Tools-API) – Apple-Vorgabe: Mindesthöhe 40px
   on-screen, Badge weder verzerren noch einfärben. */
.portal-app-store { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.portal-app-store-label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.portal-app-store-badge { display: inline-block; line-height: 0; }
.portal-app-store-badge img { display: block; height: 44px; width: auto; }

/* Visual: Phone-Mockup + QR-Code */
.portal-visual { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }

.phone-mockup {
  position: relative; width: min(230px, 58vw); aspect-ratio: 9 / 18.4;
  background: var(--ink); padding: 12px 9px;
  box-shadow: 14px 14px 0 var(--sage);
  border-radius: 2.4rem !important;
  transition: transform 0.4s var(--ease);
}
.portal-visual:hover .phone-mockup { transform: translateY(-4px); }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 18px; background: var(--ink);
  border-radius: 0 0 12px 12px !important; z-index: 2;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--paper); border-radius: 1.7rem !important;
}
.phone-screen-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.phone-screen-slide.is-active { opacity: 1; }

.portal-qr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; max-width: 280px; }
.portal-qr-code { background: var(--paper); border: 1.5px solid var(--ink); padding: 10px; }
.portal-qr-caption { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.portal-qr-hint { font-size: 0.8rem; color: var(--ink-soft); }

/* =====================================================================
   HÄUFIGE FRAGEN — reines CSS-Akkordion (details/summary, kein JS)
   ===================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; max-width: 760px; }
.faq-item { background: var(--paper); border: 1.5px solid var(--ink); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 1.5rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; display: inline-block;
  font-family: var(--font-mono); font-size: 1.3rem; line-height: 1; color: var(--sage-deep);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }

/* =====================================================================
   KONTAKT — dunkle Sektion
   ===================================================================== */
.contact { background: var(--pine-deep); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-intro { color: rgba(241,236,225,0.72); margin: 1.25rem 0 2rem; max-width: 40ch; }
.contact-list { list-style: none; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: 0.25rem; border-top: 1px solid var(--line-light); padding-top: 1.25rem; }
.c-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage-light); }
.contact-list a { color: var(--paper); text-decoration: none; font-size: 1.1rem; transition: color 0.2s; }
.contact-list a:hover { color: var(--sage-light); }
.contact-list span { color: rgba(241,236,225,0.85); }

/* Formular */
.contact-form { background: var(--paper); color: var(--ink); padding: clamp(1.75rem, 3vw, 2.5rem); border: 1.5px solid var(--ink); box-shadow: 12px 12px 0 var(--sage); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin-bottom: 1.1rem; display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.field .req { color: var(--clay-deep); }
.field .field-opt { text-transform: none; letter-spacing: 0; color: rgba(85,81,63,0.7); font-size: 0.68rem; }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  padding: 0.7rem 0.85rem; width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355513F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(85,81,63,0.5); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pine); box-shadow: 3px 3px 0 var(--sage); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 120px; }

/* Zwei-spaltige Feldzeile (bricht mobil auf eine Spalte um) */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* Feldbezogene Fehlerzustände */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--clay-deep); box-shadow: 3px 3px 0 rgba(192,86,47,0.25);
}
.field-error { color: var(--clay-deep); font-size: 0.82rem; font-weight: 600; }
.form-required-hint { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.form-required-hint .req { color: var(--clay-deep); }
.form-privacy-note { margin-top: 0.9rem; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.form-privacy-note a { color: var(--sage-deep); text-decoration: underline; }

.form-note { margin-top: 0.9rem; font-size: 0.9rem; min-height: 1.2em; }
.form-note.ok { color: var(--pine); font-weight: 600; }
.form-note.err { color: var(--clay-deep); font-weight: 600; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--paper); color: var(--ink); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-brand .brand-text { color: var(--ink); }
.footer-brand .brand-mark { background: var(--ink); }
.footer-claim { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-top: 1rem; color: var(--ink-soft); }
.footer-nav, .footer-legal { display: grid; gap: 0.7rem; align-content: start; }
.footer-nav a, .footer-legal a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; width: fit-content; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--sage-deep); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-block: 1.5rem 2rem; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.03em; }

/* =====================================================================
   RECHTSSEITEN (Impressum / Datenschutz)
   ===================================================================== */
.legal { max-width: 780px; padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -0.025em; line-height: 1; margin-bottom: 2rem; }
.legal-hinweis { background: var(--paper-2); border-left: 4px solid var(--sage); padding: 1rem 1.25rem; margin-bottom: 2.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.legal p { color: var(--ink-soft); margin-bottom: 0.5rem; }
.legal ul { color: var(--ink-soft); margin: 0 0 0.75rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.3rem; }
.legal a { color: var(--sage-deep); }
.legal-back { margin-top: 3rem; font-family: var(--font-mono); font-size: 0.85rem; }
.legal-back a { text-decoration: none; }

/* =====================================================================
   REVEAL-ANIMATION (per JS aktiviert)
   Der Ausgangszustand opacity:0 wird NUR gesetzt, wenn JavaScript aktiv
   ist (Klasse .js am <html>). Ohne JS bleibt der Inhalt vollständig
   sichtbar – kein Inhalt hängt an der Skriptausführung.
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  /* Bei ungerader Anzahl Punkte nimmt der letzte im 2-spaltigen Raster die
     volle Breite ein, damit keine leere Lücke entsteht. */
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .principle-list { grid-template-columns: 1fr; }
  .principle:nth-child(odd) { border-right: none; }
  .advantage-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 340px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-visual { margin-top: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .portal-features, .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-block: 2rem; }
  .hero-title-long { font-size: clamp(1.15rem, 5.2vw, 1.4rem); margin-bottom: 1.25rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 1rem; }
  .hero-lead-support { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .btn { width: 100%; }
  /* Feldzeilen einspaltig, damit die Eingaben nicht zu schmal werden */
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Bewegung reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
