/* ==========================================================================
   K&V Mercantil GmbH – Corporate Website
   Basis: K&V Design System (Navy + Gold, Wix Madefor Text + Ledger)
   Layout: heller Header mit Goldlinie → Navy-Hero mit Goldkurve →
           helle Sektionen → Navy-Marken-Card → Leitsatz-Band →
           Kontakt → gespiegelte Kurve → Navy-Footer
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Wix Madefor Text";
  src: url("assets/fonts/wix-madefor-text-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ledger";
  src: url("assets/fonts/ledger-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Ledger";
  src: url("assets/fonts/ledger-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben (Markenhandbuch) */
  --navy-900: #0A1E39;
  --navy-700: #113A62;
  --gold-500: #F5C445;
  --off-white-50: #F5F5FC;
  --cream-100: #FFF2C6;
  --white: #FFFFFF;
  --turquesa-500: #00B1A6;
  --petroleo-700: #005D6C;
  --error-600: #B42318;

  /* Semantische Tokens */
  --surface: var(--off-white-50);
  --surface-raised: var(--white);
  --surface-accent: var(--cream-100);
  --surface-inverse: var(--navy-900);
  --text: var(--navy-900);
  --text-muted: #46566E;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #C3CCDA;
  --line: #DCE0EC;
  --line-inverse: rgba(255, 255, 255, 0.16);
  --on-accent: var(--navy-900);
  --focus: var(--navy-900);

  /* Typografie */
  --sans: "Wix Madefor Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Ledger", Georgia, "Times New Roman", serif;

  /* Abstände (4er-Raster) */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Formen */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(10, 30, 57, 0.06), 0 10px 28px rgba(10, 30, 57, 0.07);
  --shadow-raised: 0 2px 6px rgba(10, 30, 57, 0.08), 0 22px 48px rgba(10, 30, 57, 0.14);

  /* Layout */
  --container-max: 1200px;
  --gutter: var(--space-8);
  --section-y: var(--space-24);
  --text-max: 640px;
  --header-h: 84px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (max-width: 860px) {
  :root {
    --gutter: var(--space-4);
    --section-y: var(--space-16);
    --header-h: 68px;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-navy :focus-visible { outline-color: var(--gold-500); }

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--navy-900);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: block;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petroleo-700);
}
.on-navy .eyebrow { color: var(--gold-500); }

.h1-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: 21px;
  line-height: 28px;
  letter-spacing: -0.005em;
}

.lead {
  font-size: 19px;
  line-height: 30px;
  max-width: var(--text-max);
}

.muted { color: var(--text-muted); }

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

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 760px;
  margin-bottom: var(--space-12);
}

/* Doppelbogen aus dem Logo (Linienelement) */
.bow {
  display: block;
  width: 88px;
  height: auto;
  overflow: visible;
}
.bow path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.bow .bow-a { stroke: var(--navy-900); }
.bow .bow-b { stroke: var(--gold-500); }
.on-navy .bow .bow-a { stroke: #FFFFFF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold-500);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: #F8D274;
  box-shadow: 0 10px 24px rgba(245, 196, 69, 0.28);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-inverse);
  background: transparent;
}
.btn-outline-light:hover {
  background: #FFFFFF;
  color: var(--navy-900);
  border-color: #FFFFFF;
}

.btn-navy {
  background: var(--navy-900);
  color: var(--text-inverse);
}
.btn-navy:hover { background: var(--navy-700); }

.btn .arrow {
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--surface-raised);
  border-bottom: 2px solid var(--gold-500);
  transition: box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 30, 57, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
  transition: height .3s var(--ease-out);
}
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 12px); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* LOGO: assets/logo/kv-logo-navy-gold.png – bei neuem Logo nur die Datei ersetzen */
.brand img {
  height: 58px;
  width: auto;
  transition: height .3s var(--ease-out);
}
.site-header.is-scrolled .brand img { height: 48px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.main-nav ul {
  display: flex;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding-block: 6px;
}
.main-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.main-nav a:hover::after,
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: var(--space-6);
  border-left: 1px solid var(--line);
}
.lang-switch a {
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang-switch a:hover { color: var(--navy-900); border-color: var(--gold-500); }
.lang-switch a[aria-current="page"] { color: var(--navy-900); border-color: var(--gold-500); }
.lang-switch .sep { color: var(--line); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--navy-900);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
  content: "";
}
.nav-toggle span { top: 23px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .brand img { height: 46px; }
  .site-header.is-scrolled .brand img { height: 44px; }
  .site-header.is-scrolled .header-inner { height: var(--header-h); }
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed;
    inset: calc(var(--header-h) + 2px + env(safe-area-inset-top, 0px)) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-10);
    padding: var(--space-10) var(--gutter);
    background: var(--navy-900);
    color: var(--text-inverse);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .main-nav ul { flex-direction: column; gap: var(--space-6); }
  .main-nav a { font-size: 26px; font-weight: 700; }
  .lang-switch {
    border-left: 0;
    padding-left: 0;
    font-size: 18px;
    color: var(--text-inverse-muted);
  }
  .lang-switch a:hover,
  .lang-switch a[aria-current="page"] { color: var(--text-inverse); }
  .lang-switch .sep { color: var(--line-inverse); }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--text-inverse);
  isolation: isolate;
}
/* BILD: assets/img/hero-hafen.(webp|jpg) – Hafen zur blauen Stunde */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  transform-origin: 75% 55%;
  animation: hero-zoom 9s var(--ease-out) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 30, 57, 0.52);
}
.hero-inner {
  display: grid;
  gap: var(--space-6);
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(140px, 15vw, 210px);
  max-width: calc(760px + 2 * var(--gutter));
  margin-inline: 0;
}
@media (min-width: 1264px) {
  .hero-inner { margin-left: calc((100vw - var(--container-max)) / 2 - var(--gutter)); }
}
.hero .bow { width: 110px; margin-bottom: var(--space-2); }
.hero .lead { color: var(--text-inverse-muted); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

/* Gold gesäumte Kurve am Ende des Heros */
.curve {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(56px, 8vw, 120px);
  display: block;
  pointer-events: none;
}
.curve-bottom { bottom: -1px; }
.curve .fill { fill: var(--surface); }
.curve .rim {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

/* Lade-Choreografie im Hero */
.hero [data-enter] {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 1ms + 250ms);
}
.hero .bow path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease-out) forwards;
}
.hero .bow .bow-b { animation-delay: .35s; }
.hero .curve .rim {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease-out) .5s forwards;
}

@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-12), 7vw, 112px);
  align-items: center;
}
.about-text { display: grid; gap: var(--space-6); min-width: 0; }
.about-text .h2 { margin-bottom: var(--space-2); }
.about-text p { max-width: var(--text-max); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-6) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.facts div { padding-right: var(--space-4); }
.facts div + div { padding-left: var(--space-4); border-left: 2px solid var(--gold-500); }
.facts dt {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.facts dd {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
}

.about-media {
  position: relative;
  margin: 0;
  /* Quadrate ragen immer zur Hälfte (28px) in die untere linke Bildecke */
  padding: 0 0 28px 28px;
}
/* BILD: assets/img/ueber-uns-herkunft.(webp|jpg) – Zuckerrohrfelder */
.about-media .frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  box-shadow: var(--shadow-card);
}
.about-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.about-media:hover .frame img { transform: scale(1.04); }
/* GRAFIK: assets/grafik/quadrate.png – überlappende Quadrate */
.about-media .squares {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: auto;
}

/* ---------- Kernbereiche ---------- */
.areas { padding-top: 0; }
.areas .container > .rule {
  height: 1px;
  background: var(--line);
  margin-bottom: var(--section-y);
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.area-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.area-card:hover { box-shadow: var(--shadow-raised); transform: translateY(-4px); }
.area-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
/* ICONS: assets/icons/*.png auf Creme-Kachel */
.icon-tile {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--surface-accent);
}
.icon-tile img { width: 40px; height: 40px; object-fit: contain; }
.area-step {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.area-card p { color: var(--text-muted); }

/* ---------- Marken ---------- */
.brands { padding-top: 0; }
.brand-grid {
  display: grid;
  gap: var(--space-6);
}
.brand-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
/* BILD: assets/img/marke-fronteira.(webp|jpg) – Fronteira-Flaschen */
.brand-media {
  position: relative;
  margin: 0;
  min-height: 360px;
  overflow: hidden;
}
.brand-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transition: transform 1.6s var(--ease-out);
}
.brand-card:hover .brand-media img { transform: scale(1.04); }
.brand-body {
  display: grid;
  align-content: center;
  gap: var(--space-4);
  padding: clamp(var(--space-8), 5vw, 72px);
  min-width: 0;
}
.brand-body .h2 { font-size: clamp(28px, 3vw, 36px); }
.claim-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  color: var(--gold-500);
}
.brand-body p { color: var(--text-inverse-muted); max-width: 52ch; }
.brand-body .claim-serif { color: var(--gold-500); max-width: none; }
.brand-body .btn { justify-self: start; margin-top: var(--space-4); }

/* ---------- Leitsatz-Band ---------- */
.statement {
  position: relative;
  overflow: hidden;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding-block: clamp(80px, 10vw, 128px);
  text-align: center;
  isolation: isolate;
}
/* GRAFIK: assets/grafik/globus.png – Wasserzeichen */
.statement .globe {
  position: absolute;
  z-index: -1;
  width: clamp(320px, 42vw, 560px);
  aspect-ratio: 1;
  right: -8%;
  top: 50%;
  margin-top: calc(clamp(320px, 42vw, 560px) / -2);
  background: #FFFFFF;
  -webkit-mask: url("assets/grafik/globus.png") center / contain no-repeat;
  mask: url("assets/grafik/globus.png") center / contain no-repeat;
  opacity: 0.08;
  animation: spin 160s linear infinite;
}
.statement .container { display: grid; justify-items: center; gap: var(--space-6); }
.statement blockquote { margin: 0; }
.statement .claim {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.15;
  max-width: 18ch;
  text-wrap: balance;
}
.statement .claim-line {
  display: block;
  width: 72px;
  height: 3px;
  margin: var(--space-6) auto 0;
  background: var(--gold-500);
  border-radius: 2px;
  transform-origin: center;
}
.statement .signature {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(var(--space-12), 6vw, 96px);
  align-items: start;
}
.contact-info { display: grid; gap: var(--space-6); min-width: 0; }
.contact-info .lead { color: var(--text-muted); font-size: 18px; line-height: 28px; }
.contact-list {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-2) 0 0;
}
.contact-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.contact-list dt { color: var(--text-muted); font-size: 14px; }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.text-link {
  position: relative;
  text-decoration: none;
}
.text-link:hover::after { transform: scaleX(1); }

/* BILD: assets/img/kontakt-frankfurt.(webp|jpg) – Mainufer Frankfurt */
.contact-media {
  margin: var(--space-4) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  max-width: 100%;
}
.contact-media img { width: 100%; height: 100%; object-fit: cover; }

.form-card {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  min-width: 0;
}
.form-card h3 { margin-bottom: var(--space-6); }
.form { display: grid; gap: var(--space-6); }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-weight: 600; font-size: 15px; }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: #B9C1D4; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px rgba(245, 196, 69, 0.55);
}
.field .error {
  color: var(--error-600);
  font-size: 14px;
  line-height: 20px;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--error-600); }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field .hint { color: var(--text-muted); font-size: 13px; line-height: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  font-size: 15px;
  line-height: 23px;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--navy-900);
}
.check a { font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }
.check .error { grid-column: 2; color: var(--error-600); font-size: 14px; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.form-foot small { color: var(--text-muted); font-size: 14px; }
.form-status {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-accent);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding-top: clamp(96px, 11vw, 160px);
}
.curve-top { top: -1px; }
.curve-top .fill { fill: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
/* LOGO: assets/logo/kv-logo-weiss.png – nur auf Navy */
.footer-brand img { height: 76px; width: auto; }
.footer-brand .tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.site-footer h2 {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-bottom: var(--space-4);
}
.site-footer address { font-style: normal; color: var(--text-inverse); line-height: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { text-decoration: none; position: relative; }
.site-footer a:hover { color: var(--gold-500); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line-inverse);
  font-size: 14px;
  color: var(--text-inverse-muted);
}

/* ---------- Rechtliche Seiten ---------- */
.page-hero {
  position: relative;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  overflow: hidden;
}
.page-hero .inner {
  display: grid;
  gap: var(--space-4);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(110px, 12vw, 160px);
}
.page-hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.12; }
.page-hero .curve .rim { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.legal {
  padding-block: var(--space-12) var(--section-y);
}
.legal-body {
  max-width: 760px;
  display: grid;
  gap: var(--space-4);
}
.legal-body h2 {
  font-size: 22px;
  line-height: 30px;
  margin-top: var(--space-8);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p,
.legal-body li { color: var(--text); }
.legal-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal-body a { text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-body .note {
  padding: var(--space-4) var(--space-6);
  background: var(--surface-accent);
  border-radius: var(--radius-md);
}

/* ---------- Scroll-Animationen ---------- */
/* Nur aktiv, wenn script.js läuft. Ohne JavaScript ist alles sofort sichtbar. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js-reveal [data-reveal="fade"] { transform: none; }
.js-reveal [data-reveal="zoom"] { transform: scale(0.96); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

.js-reveal .about-media .frame img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.js-reveal .about-media.is-visible .frame img { transform: scale(1); }
.js-reveal .about-media.is-visible:hover .frame img { transform: scale(1.04); }

.js-reveal .statement .claim-line { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .5s; }
.js-reveal .statement .is-visible .claim-line { transform: scaleX(1); }

.js-reveal .site-footer .curve .rim { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-out); }
.js-reveal .site-footer.is-visible .curve .rim { stroke-dashoffset: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .brand-card { grid-template-columns: minmax(0, 1fr); }
  .brand-media { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { max-width: 520px; }
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .h1-serif { font-size: 36px; line-height: 44px; }
  .h2 { font-size: 30px; line-height: 38px; }
  .lead { font-size: 18px; line-height: 28px; }
  .contact-media { display: none; }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .facts div + div { padding-left: var(--space-4); }
  .facts div { border-left: 2px solid var(--gold-500); padding-left: var(--space-4); }
  .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero-actions .btn { width: 100%; }
  .area-card { padding: var(--space-6); }
  .brand-body { padding: var(--space-6); }
  .brand-body .btn { justify-self: stretch; padding-inline: var(--space-4); font-size: 15px; }
  .hero::before { background: rgba(10, 30, 57, 0.7); }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .hero .bow path, .hero .curve .rim { stroke-dashoffset: 0; }
  .statement .globe { animation: none; }
}
