/* =========================================================
   Trautwein GmbH – Stylesheet
   Lokale Schriften, DSGVO-konform, Mobile First
   ========================================================= */

/* ---------- Lokale Schriften (Variable Fonts) ---------- */
@font-face {
  font-family: "Lexend";
  src: url("/assets/fonts/lexend-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/sourcesans3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --navy: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #334155;

  --brand: #006ab3;
  --brand-600: #0a7cc9;
  --brand-700: #00568f;
  --brand-050: #eaf4fb;

  --ink: #0b1220;
  --text: #1f2a3a;
  --muted: #5a6b80;
  --muted-light: #9fb2c7;

  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --bg-dark: #0f172a;
  --border: #e4ebf3;
  --border-strong: #d3dde9;

  --wowobot: #22b8e0;

  --maxw: 1180px;
  --maxw-narrow: 820px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow: 0 6px 20px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14), 0 8px 20px rgba(15, 23, 42, .08);
  --shadow-brand: 0 14px 30px rgba(0, 106, 179, .28);

  --space-section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-h: 74px;
}

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

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

body {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: "Lexend", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }

ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -120px;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 2000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

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

.section { padding-block: var(--space-section); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #cdd9e8; }
.section--dark h2 { color: #fff; }

.section__head { max-width: 720px; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.section__sub { color: var(--muted); font-size: 1.12rem; margin-top: .9rem; }
.section__sub--light { color: #aab9cc; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 1rem;
}
.eyebrow--center { justify-content: center; }
.section--dark .eyebrow { color: #4fb0e6; }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 106, 179, .15);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; min-height: 54px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0, 106, 179, .36); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, .7);
  border-color: var(--border-strong);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { color: var(--brand-700); border-color: var(--brand); transform: translateY(-2px); background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__name span { color: var(--brand); }
.brand__name--light { color: #fff; }
.brand__tag { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.7rem; align-items: center; }
.nav__list a {
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: .98rem;
  color: var(--text);
  position: relative;
  padding: .3rem 0;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width .25s var(--ease);
}
.nav__list a:hover { color: var(--brand-700); }
.nav__list a:hover::after { width: 100%; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  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(15, 23, 42, .5);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-overlay.is-visible { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(0, 106, 179, .14), transparent 60%),
    radial-gradient(700px 500px at -5% 20%, rgba(15, 23, 42, .06), transparent 55%),
    linear-gradient(180deg, #f7fafd, #ffffff 60%);
  z-index: -1;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(700px 400px at 70% 10%, #000, transparent 75%);
          mask-image: radial-gradient(700px 400px at 70% 10%, #000, transparent 75%);
  opacity: .5;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero__lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--muted); margin-top: 1.3rem; max-width: 36ch; }
.hero__lead strong { color: var(--text); }
.hero h1 { margin-top: .3rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 4vw, 2.6rem);
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong {
  font-family: "Lexend", sans-serif;
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 700;
}
.hero__badges span { font-size: .85rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__card {
  position: relative;
  background: linear-gradient(160deg, #ffffff, #eef4fa);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}
.hero__card img { border-radius: var(--radius); width: 100%; }
.hero__chip {
  position: absolute;
  left: -8px; bottom: -18px;
  display: flex; align-items: center; gap: .7rem;
  background: var(--navy);
  color: #fff;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: .82rem;
  line-height: 1.2;
}
.hero__chip strong { color: #ffd66b; }
.hero__chip svg { width: 26px; height: 26px; fill: none; stroke: #ffd66b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--border); background: var(--bg); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding-block: clamp(1.5rem, 3vw, 2.2rem);
}
.trust__item { display: flex; align-items: center; gap: .85rem; padding: .6rem clamp(.3rem, 2vw, 1.2rem); }
.trust__item svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.trust__item p { font-size: .92rem; color: var(--muted); line-height: 1.3; }
.trust__item strong { display: block; font-family: "Lexend", sans-serif; color: var(--ink); font-size: 1rem; font-weight: 600; }

/* ---------- Cards (Leistungen) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-600));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-050);
  margin-bottom: 1.1rem;
  transition: background .3s var(--ease);
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--brand-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--brand); }
.card:hover .card__icon svg { stroke: #fff; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card--accent { background: linear-gradient(165deg, #06243b, #0f172a); border-color: #0f172a; color: #cfe0f0; }
.card--accent h3 { color: #fff; }
.card--accent p { color: #a9c0d6; }
.card--accent .card__icon { background: rgba(255, 255, 255, .1); }
.card--accent .card__icon svg { stroke: #6cc4f2; }
.card--accent:hover .card__icon { background: var(--brand); }
.card--accent:hover .card__icon svg { stroke: #fff; }
.card__link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-family: "Lexend", sans-serif; font-weight: 600; font-size: .92rem;
  color: #6cc4f2;
}
.card__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.card__link:hover { color: #fff; }
.card__link:hover svg { transform: translateX(4px); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about__stat {
  position: absolute; right: -6px; bottom: -22px;
  background: var(--brand);
  color: #fff;
  padding: 1rem 1.3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-brand);
  line-height: 1.1;
}
.about__stat strong { display: block; font-family: "Lexend", sans-serif; font-size: 1.9rem; font-weight: 700; }
.about__stat span { font-size: .82rem; opacity: .92; }
.about__content > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.6rem; }

.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand), var(--border));
}
.timeline__item { position: relative; padding-bottom: 1.3rem; display: flex; flex-direction: column; gap: .1rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -1.6rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-050);
}
.timeline__year { font-family: "Lexend", sans-serif; font-weight: 700; color: var(--brand-700); }
.timeline__text { color: var(--muted); font-size: .98rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2.5vw, 1.5rem); }
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__num {
  font-family: "Lexend", sans-serif; font-weight: 800; font-size: 1.6rem;
  color: var(--brand);
  opacity: .35;
  margin-bottom: .5rem;
}
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; counter-reset: step; }
.step {
  position: relative;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.6rem;
}
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  font-family: "Lexend", sans-serif; font-weight: 700; font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  box-shadow: var(--shadow-brand);
  margin-bottom: 1rem;
}
.step h3 { color: #fff; margin-bottom: .4rem; }
.step p { color: #a9bdd2; font-size: .96rem; }
.steps__cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: .8rem; }
.acc__item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.acc__item.is-open { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.acc__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: "Lexend", sans-serif; font-weight: 600; font-size: 1.02rem; color: var(--ink);
  min-height: 56px;
}
.acc__trigger svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.acc__item.is-open .acc__trigger svg { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__panel > * { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { color: var(--muted); padding: 0 1.3rem 1.3rem; font-size: .98rem; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.location__address { font-style: normal; color: var(--muted); margin: 1.2rem 0 1.8rem; line-height: 1.7; }
.location__address strong { color: var(--ink); font-family: "Lexend", sans-serif; }
.map-placeholder {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, #eef4fa, #dbe7f2),
    var(--bg-alt);
  box-shadow: var(--shadow);
}
.map-placeholder__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-placeholder__grid path { fill: none; stroke: #c4d6e6; stroke-width: 1; }
.map-placeholder__grid .map-road { stroke: #9fc1dd; stroke-width: 6; stroke-linecap: round; opacity: .8; }
.map-placeholder__pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  text-align: center;
}
.map-placeholder__pin svg { width: 46px; height: 46px; fill: var(--brand); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 6px 10px rgba(0, 106, 179, .4)); }
.map-placeholder__pin span {
  background: #fff; color: var(--ink); font-family: "Lexend", sans-serif; font-weight: 600; font-size: .82rem;
  padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact__intro > p { color: var(--muted); margin-top: .8rem; }
.contact__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list div { display: flex; flex-direction: column; }
.contact__list span:first-child { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-light); font-weight: 600; }
.contact__list a, .contact__list div > span:last-child { color: var(--ink); font-weight: 500; }
.contact__list a:hover { color: var(--brand); }
.placeholder-text { color: var(--muted-light) !important; font-style: italic; font-weight: 400 !important; }

.contact__form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-family: "Lexend", sans-serif; font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: .45rem; }
.field label span { color: var(--brand); }
.field input, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  color: var(--ink);
  padding: .85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fcfdfe;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 106, 179, .12);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.field__error { color: #dc2626; font-size: .84rem; margin-top: .35rem; min-height: 0; }

.field--check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.field--check input {
  width: 22px; height: 22px; min-height: 22px; margin-top: 2px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.field--check label { font-family: "Source Sans 3", sans-serif; font-weight: 400; font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.5; }
.field--check .field__error { grid-column: 1 / -1; }

.form__status { margin-top: 1rem; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form__status.is-success { color: #15803d; }
.form__status.is-error { color: #dc2626; }
.form__note { margin-top: 1rem; font-size: .82rem; color: var(--muted-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aab9cc; 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 { margin-bottom: 1rem; }
.footer__desc { font-size: .94rem; max-width: 32ch; color: #8da2ba; }
.footer__nav h3, .footer__contact h3 {
  font-family: "Lexend", sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: #fff; margin-bottom: 1rem;
}
.footer__nav ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a { color: #aab9cc; font-size: .96rem; }
.footer__nav a:hover { color: #fff; }
.footer__contact address { font-style: normal; font-size: .96rem; line-height: 1.9; color: #aab9cc; }
.footer__contact a { color: #aab9cc; }
.footer__contact a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: center;
  text-align: center;
}
.footer__copy { font-size: .85rem; color: #7e93ac; }
.footer__powered { font-size: .9rem; color: #7e93ac; }
.footer__powered a { color: var(--wowobot); font-weight: 600; }
.footer__powered a:hover { color: var(--wowobot); text-decoration: underline; }

/* ---------- Legal / Subpages ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); min-height: 60vh; }
.legal h1 { margin-bottom: 1.5rem; }
.legal__notice {
  background: var(--brand-050);
  border: 1px solid #bfe0f3;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.legal__notice strong { color: var(--brand-700); }
.legal__block { margin-bottom: 2rem; }
.legal__block h2 { font-size: 1.25rem; margin-bottom: .7rem; }
.legal__block p { color: var(--muted); margin-bottom: .8rem; }
.legal__block strong { color: var(--ink); }
.legal .placeholder-text { display: inline-block; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.notfound__code { font-family: "Lexend", sans-serif; font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; opacity: .9; }
.notfound h1 { margin: .5rem 0 1rem; }
.notfound p { color: var(--muted); margin-bottom: 2rem; max-width: 40ch; }

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

/* =========================================================
   RESPONSIVE – ab Tablet/Desktop
   ========================================================= */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { border-right: 1px solid var(--border); }
  .trust__item:last-child { border-right: none; }
  .about { grid-template-columns: 1fr 1fr; }
  .location { grid-template-columns: 1.05fr .95fr; }
  .contact { grid-template-columns: 1fr 1.1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
}

@media (min-width: 920px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .card--accent { grid-column: span 1; }
}

/* ---------- Mobile menu (bis 880px) ---------- */
@media (max-width: 880px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    /* Explizite Höhe statt top/bottom: der backdrop-filter des Headers bildet
       einen Containing-Block für fixed-Elemente – daher volle Viewporthöhe erzwingen. */
    height: 100vh;
    height: 100dvh;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.6rem 2rem;
    background: #fff;
    box-shadow: -20px 0 50px rgba(15, 23, 42, .18);
    transform: translateX(105%);
    transition: transform .35s var(--ease);
    z-index: 999;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--border); }
  .nav__list a {
    display: block;
    padding: 1.05rem .2rem;
    font-size: 1.1rem;
  }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 1.5rem; width: 100%; }
}

@media (min-width: 881px) {
  .nav-overlay { display: none !important; }
  /* Glas-Effekt nur auf Desktop: dort ist die Navigation inline und der
     backdrop-filter bildet keinen störenden Containing-Block für die Off-Canvas-Nav. */
  .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); }
}

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