/* ============================================================
   Steuerkanzlei Andreas Currle — Stylesheet
   Farbwelt abgeleitet aus dem Logo (Blau #173C8A / Grün #4AA481)
   Mobile-First · DSGVO-konform (lokale/Systemfonts, keine CDNs)
   ============================================================ */

/* ---------- Lokale Schriften (Self-Hosting vorbereitet) ----------
   Bei Bedarf echte .woff2-Dateien nach /assets/fonts/ legen und die
   @font-face-Blöcke aktivieren. Standardmäßig werden hochwertige
   System-Schriften genutzt – komplett ohne externe Requests. */
/*
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
*/

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --ink: #0E2349;          /* Headlines / dunkles Navy */
  --blue: #173C8A;         /* Logo-Blau, Primärfarbe */
  --blue-600: #1d479e;
  --blue-700: #142f66;
  --green: #2E8B68;        /* Logo-Grün, kontraststark für Text */
  --green-bright: #4AA481; /* Logo-Grün original, für Flächen/Akzente */
  --bg: #F5F7FB;           /* kühles Off-White */
  --bg-alt: #ECF1F7;
  --surface: #FFFFFF;
  --text: #2A3242;
  --muted: #5B6678;
  --border: #E2E8F1;
  --border-strong: #cdd7e5;

  /* Typografie */
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --container: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 35, 73, .05), 0 2px 8px rgba(14, 35, 73, .04);
  --shadow: 0 10px 30px rgba(14, 35, 73, .08);
  --shadow-lg: 0 24px 60px rgba(14, 35, 73, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --space-section: clamp(4.5rem, 9vw, 8rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:focus-within { scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
}

::selection { background: var(--green-bright); color: #fff; }

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding-block: var(--space-section); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-intro { color: var(--muted); font-size: 1.075rem; margin-top: 1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--green-bright);
  vertical-align: middle;
  margin-right: .6rem;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.2rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(23, 60, 138, .25); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 60, 138, .32); }
.btn-ghost { color: var(--ink); border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-soft { background: var(--bg-alt); color: var(--ink); }
.btn-soft:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-soft:hover svg { transform: translateX(3px); }
.btn-soft svg { transition: transform .25s var(--ease); }
.btn-block { width: 100%; }

/* ---------- Logo-Marke ---------- */
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 34px; height: 34px;
  flex: none;
}
.brand-mark .sq { border-radius: 4px; }
.sq-1, .sq-2, .sq-3 { background: var(--blue); }
.sq-4 { background: var(--green-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 251, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(245, 247, 251, .94);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 600; color: var(--ink); font-size: 1.12rem; }
.brand-sub { font-size: .68rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: .4rem; }
.nav > a {
  padding: .55rem .85rem;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav > a:hover { background: var(--bg-alt); color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  margin-left: .4rem;
  padding: .65rem 1.25rem !important;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(23, 60, 138, .22);
}
.nav-cta:hover { background: var(--blue-600) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 35, 73, .35);
  z-index: 90;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-overlay.is-active { opacity: 1; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.85rem, 5.4vw, 4rem);
  letter-spacing: -.02em;
  margin: .4rem 0 1.2rem;
  /* Ganze Wörter umbrechen – keine Silbentrennung, keine abgeschnittenen Wörter */
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2rem; }
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.hero-trust li { font-size: .88rem; color: var(--muted); min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.hero-trust strong { display: block; font-family: var(--font-serif); font-size: clamp(1.05rem, 3.6vw, 1.3rem); color: var(--ink); }

/* Hero visual */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-card {
  background: linear-gradient(160deg, #fff 0%, #f3f7fc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(74, 164, 129, .18), transparent 70%);
  top: -60px; right: -60px;
}
.hero-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 92px; height: 92px;
  margin-bottom: 1.8rem;
}
.hero-mark .sq { border-radius: 10px; }
.hero-card-lines { display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.hero-card-lines span { height: 12px; border-radius: 6px; background: var(--bg-alt); }
.hero-card-lines span:nth-child(1) { width: 90%; }
.hero-card-lines span:nth-child(2) { width: 70%; }
.hero-card-lines span:nth-child(3) { width: 80%; }
.hero-card-foot {
  display: flex; align-items: center; gap: .55rem;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  padding-top: 1.3rem; border-top: 1px solid var(--border);
}
.hero-card-foot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(74,164,129,.2); }
.hero-badge {
  position: absolute;
  bottom: -22px; left: -18px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-badge-num { display: block; font-family: var(--font-serif); font-size: 1.7rem; line-height: 1; color: #fff; }
.hero-badge-label { font-size: .72rem; color: #aab8d4; letter-spacing: .04em; }

/* ---------- Bild-Platzhalter (clean, neutral) ---------- */
.hero-photo, .feature-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  background:
    radial-gradient(130% 90% at 75% 8%, rgba(74, 164, 129, .16), transparent 55%),
    linear-gradient(160deg, #e9eff7 0%, #d7e2f0 100%);
  color: #a7b4ca;
  overflow: hidden;
}
.hero-photo img, .feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-ico { width: 54px; height: 54px; }
.hero-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-photo-foot {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; justify-content: flex-end; gap: .55rem;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  /* Text nach rechts, damit er nicht vom 2007-Badge verdeckt wird */
  padding: .65rem 1rem .65rem 9rem;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  text-align: right;
  box-shadow: var(--shadow-sm);
}
.hero-photo-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(74,164,129,.2); flex: none; }

/* ---------- Trust Bar ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  padding-block: clamp(2rem, 4vw, 2.8rem);
}
.trust-item { text-align: center; padding-inline: .5rem; }
.trust-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--blue);
  font-weight: 600;
}
.trust-label { font-size: .88rem; color: var(--muted); }

/* ---------- Cards / Leistungen ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--blue);
  margin-bottom: 1.2rem;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--blue); color: #fff; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .96rem; }

.card-feature {
  background: linear-gradient(165deg, var(--ink) 0%, #14306b 100%);
  border-color: transparent;
  color: #d9e2f3;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
.feature-media { min-height: 200px; }
.feature-body { padding: 1.8rem; }
.card-feature h3 { color: #fff; }
.card-feature p { color: #b9c6e0; }
.card-feature .card-icon { background: rgba(255,255,255,.1); color: var(--green-bright); }
.card-feature:hover .card-icon { background: var(--green-bright); color: #fff; }
.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: none;
  color: var(--green-bright);
  font-weight: 600;
  font-size: .92rem;
  padding: .9rem 0 0;
  margin-top: .3rem;
}
.card-toggle svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.card-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.card-detail { overflow: hidden; }
.card-detail ul {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.card-detail li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .92rem;
  color: #cdd8ee;
}
.card-detail li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
}

/* ---------- Über uns ---------- */
.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about-visual { position: relative; }
.ph-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-alt), #dde7f2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: var(--border-strong);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ph-portrait svg { width: 88px; height: 88px; }
.ph-tag {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  padding: .35rem .8rem;
  border-radius: 999px;
}
.about-quote {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-top: 1.2rem;
  box-shadow: var(--shadow);
}
.about-quote p { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: #fff; }
.about-quote span { display: block; margin-top: .7rem; font-size: .85rem; color: #9fb0d2; }
.about-copy h2 { margin: .3rem 0 1.2rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.about-points { display: grid; gap: .7rem; margin-top: 1.6rem; }
.about-points li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
  color: var(--ink);
}
.about-points li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-bright)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ---------- Warum wir ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  border-top: 3px solid var(--green-bright);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 600;
}
.why-item h3 { margin: .5rem 0 .5rem; }
.why-item p { color: var(--muted); font-size: .96rem; }

/* ---------- Ablauf ---------- */
.process { background: var(--surface); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Standort ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.map-placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  min-height: 280px;
}
.map-art { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.map-pin { transform-origin: center bottom; animation: pin-bob 3s var(--ease) infinite; }
.map-pin-2 { animation-delay: .6s; }
@keyframes pin-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.map-note {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: .7rem 1rem;
  font-size: .8rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.location-cards { display: grid; gap: 1.2rem; }
.loc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.loc-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.loc-tag-blue { background: rgba(23,60,138,.1); color: var(--blue); }
.loc-tag-green { background: rgba(74,164,129,.15); color: var(--green); }
.loc-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.loc-card address { font-style: normal; color: var(--muted); margin-bottom: 1rem; }
.loc-contact { display: grid; gap: .4rem; margin-bottom: 1.3rem; }
.loc-contact div { display: flex; gap: .6rem; font-size: .95rem; }
.loc-contact dt { color: var(--muted); min-width: 58px; }
.loc-contact dd { color: var(--ink); font-weight: 500; }
.loc-contact a:hover { color: var(--blue); }

/* ---------- Kontakt ---------- */
.contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-intro p { color: var(--muted); margin-top: 1rem; }
.contact-direct { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-direct li { display: flex; align-items: center; gap: .9rem; font-size: 1rem; }
.contact-direct a:hover { color: var(--blue); }
.ci {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px; background: var(--bg-alt); color: var(--blue);
}
.ci svg { width: 20px; height: 20px; }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.2rem);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23,60,138,.1);
}
.field input.invalid, .field textarea.invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.1); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .9rem;
  color: var(--muted);
  margin: .5rem 0 1.4rem;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent a { color: var(--blue); text-decoration: underline; }
.consent.invalid span { color: #d64545; }

.form-hint { font-size: .8rem; color: var(--muted); margin-top: .9rem; text-align: center; }
.form-status { margin-top: 1rem; font-size: .95rem; font-weight: 500; text-align: center; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #d64545; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9c6e0;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
}
.footer-brand .brand-mark { margin-bottom: 1rem; }
.footer-brand .sq-1, .footer-brand .sq-2, .footer-brand .sq-3 { background: #4f6aa8; }
.footer-name { font-family: var(--font-serif); font-size: 1.25rem; color: #fff; }
.footer-role { font-size: .8rem; color: #8a9bc1; margin-bottom: .9rem; }
.footer-desc { font-size: .92rem; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .35rem 0; font-size: .93rem; color: #aebbd8; transition: color .2s; }
.footer-col a:hover { color: var(--green-bright); }
.footer-col address { font-style: normal; font-size: .93rem; line-height: 1.9; color: #aebbd8; }
.footer-col address a:hover { color: var(--green-bright); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1.3rem;
  font-size: .85rem;
  color: #8a9bc1;
}
.footer-legal a { color: #aebbd8; }
.footer-legal a:hover { color: var(--green-bright); }
.powered { font-size: .85rem; color: #8a9bc1; }
.powered a { color: #22b8e0; font-weight: 600; }
.powered a:hover { text-decoration: underline; }

/* ---------- Rechtliche Seiten / einfache Header ---------- */
.subheader {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.subheader .eyebrow { color: var(--green-bright); }
.subheader h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content address { color: var(--text); margin-bottom: 1rem; font-style: normal; line-height: 1.8; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content ul { display: grid; gap: .5rem; margin: 0 0 1.2rem 1.2rem; list-style: disc; }
.note {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  border-left: 4px solid #e0b528;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: #6b5510;
  font-size: .92rem;
  margin: 1.5rem 0;
}
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2.5rem; font-weight: 600; color: var(--blue); }
.back-link:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}
.error-page h1 { font-size: clamp(4rem, 18vw, 9rem); color: var(--blue); line-height: 1; }
.error-page p { color: var(--muted); margin: 1rem 0 2rem; font-size: 1.1rem; }

/* ---------- Reveal-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 600px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .location-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-feature { grid-column: span 3; grid-template-columns: minmax(0, 320px) 1fr; align-items: stretch; }
  .feature-media { min-height: 100%; }
  .feature-body { padding: clamp(2rem, 3vw, 2.8rem); align-self: center; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: .85fr 1.15fr; }
  .location-grid { grid-template-columns: 1.1fr .9fr; }
  .location-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Mobile-Navigation ---------- */
@media (max-width: 899px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .3rem;
    background: var(--surface);
    padding: 6rem 1.5rem 2rem;
    box-shadow: -20px 0 50px rgba(14,35,73,.18);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 95;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a {
    padding: 1rem .9rem;
    font-size: 1.05rem;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav > a:last-of-type { border-bottom: none; }
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: none !important;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .map-pin { animation: none; }
}
