@import url("../fonts/fonts.css");

/* =========================================================
   conser GmbH – Design System
   ========================================================= */

:root {
  /* Brand */
  --navy-900: #071c30;
  --navy-800: #0b2942;
  --navy-700: #113f67;
  --navy-600: #17527f;
  --navy-500: #1a5f9b;
  --teal-500: #5f979f;
  --teal-400: #82b2b9;
  --teal-200: #c3dbdf;
  --mist: #eef2f5;
  --paper: #ffffff;

  --ink: #0d2135;
  --ink-soft: #4a5c6d;
  --line: rgba(17, 63, 103, 0.14);
  --line-soft: rgba(17, 63, 103, 0.08);

  /* Type */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.2rem, 1.35rem + 3.4vw, 4.05rem);
  --fs-h1: clamp(2rem, 1.25rem + 3vw, 3.4rem);
  --fs-h2: clamp(1.65rem, 1.1rem + 2.1vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.02rem + 0.75vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.06rem);
  --fs-small: 0.9rem;

  /* Space */
  --container: 1240px;
  --gutter: clamp(1.15rem, 0.7rem + 2vw, 2.5rem);
  --section-y: clamp(4rem, 2.5rem + 6vw, 8.5rem);

  /* Radii & shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(11, 41, 66, 0.06), 0 12px 28px -18px rgba(11, 41, 66, 0.35);
  --shadow-md: 0 8px 24px -12px rgba(11, 41, 66, 0.28), 0 32px 60px -36px rgba(11, 41, 66, 0.5);
  --shadow-lg: 0 20px 48px -20px rgba(11, 41, 66, 0.35), 0 48px 100px -50px rgba(11, 41, 66, 0.6);

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}

p { text-wrap: pretty; }

::selection { background: var(--navy-700); color: #fff; }

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

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

.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--mist { background: var(--mist); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--navy-700);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--teal-400);
  flex: none;
}
.eyebrow--light { color: var(--teal-200); }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.7;
}

.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--ink-soft); }

.on-dark { color: rgba(255, 255, 255, 0.82); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: rgba(255, 255, 255, 0.8); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-700);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.btn--light {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}
.btn--light:hover { background: #fff; color: var(--navy-800); }

.btn--accent { --btn-bg: var(--teal-400); --btn-fg: var(--navy-900); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
/* Helle Menüleiste: durchgehend weißer Streifen über dem Bild */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 6px 24px -18px rgba(11, 41, 66, 0.45);
}
.header.is-stuck { height: 72px; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
}

.brand { flex: none; display: block; }
.brand img {
  width: auto;
  height: clamp(38px, 3.4vw, 50px);
  transition: height 0.35s var(--ease), filter 0.35s var(--ease);
}
.header.is-stuck .brand img { height: 36px; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1.4vw, 1.1rem);
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink);
  border-radius: var(--r-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--teal-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__cta {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.2rem 0.55rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.header__cta:hover { transform: translateY(-2px); background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.header__cta:hover .header__cta-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.header__cta:hover .header__cta-label { color: rgba(255, 255, 255, 0.7); }
.header__cta-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy-700);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.header__cta-icon svg { width: 17px; height: 17px; }
.header__cta-text { display: grid; line-height: 1.25; }
.header__cta-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.header__cta-number { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

.burger {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateX(-50%) translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateX(-50%) translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(580px, 88svh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 28, 48, 0.72) 0%, rgba(7, 28, 48, 0.45) 38%, rgba(7, 28, 48, 0.9) 100%),
    linear-gradient(100deg, rgba(17, 63, 103, 0.7) 0%, rgba(17, 63, 103, 0.1) 62%);
}
.hero__inner { position: relative; max-width: 62rem; }
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  display: block;
  color: var(--teal-400);
}
.hero__lead {
  font-size: clamp(1.05rem, 0.95rem + 0.55vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 6vw, 6rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; }
}

/* ---------- Section head ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(2.4rem, 4vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.6rem, 2.2vw, 2.2rem);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--teal-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--teal-500);
}
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card__link {
  margin-top: auto;
  padding-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-600);
}
.card__link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__stretch::after { content: ""; position: absolute; inset: 0; }

/* ---------- Split (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* Einspaltig: immer zuerst das Bild, dann Überschrift und Text */
.split__media { order: -1; }

@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__media { order: 0; }
  .split--reverse .split__media { order: -1; }
}

.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.split__media::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 55%;
  height: 55%;
  border: 1px solid var(--teal-400);
  border-radius: var(--r-xl);
  z-index: -1;
}
.split__media--tall img { aspect-ratio: 3 / 4; max-height: 640px; }
.split__body h2 { font-size: var(--fs-h2); margin-bottom: 1.2rem; }

/* ---------- Feature band (dark, bg image) ---------- */
.band {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(7, 28, 48, 0.96) 0%, rgba(11, 41, 66, 0.9) 50%, rgba(17, 63, 103, 0.78) 100%);
}
.band .section-head { max-width: 54rem; }
.band .section-head h2 { color: #fff; }
.band .section-head p { color: rgba(255, 255, 255, 0.78); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(2rem, 3vw, 3rem);
}

/* Feste Dreier-Aufteilung (6 Punkte = 3 Spalten x 2 Zeilen) */
@media (min-width: 900px) {
  .pillars--3 { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  padding: 1.6rem 1.5rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pillar:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); border-color: var(--teal-400); }
.pillar__bar { width: 40px; height: 3px; background: var(--teal-400); border-radius: 3px; margin-bottom: 1.1rem; }
.pillar p { font-size: 0.97rem; color: rgba(255, 255, 255, 0.86); font-weight: 500; line-height: 1.6; }

.subheading {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin-top: 2.2rem;
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.chip {
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--mist);
  border: 1px solid var(--line-soft);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-700);
}

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.contact__media { position: absolute; inset: 0; z-index: -2; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(7, 28, 48, 0.95), rgba(17, 63, 103, 0.88));
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.form-card h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 1.5rem; }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.05rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field .req { color: #c8462f; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfcfd;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa8b5; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(26, 95, 155, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.consent input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--navy-700); flex: none; }
.consent a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }

.form-note { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-soft); text-align: center; }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--navy-700); }
.form-status:empty { display: none; }
.form-status--ok,
.form-status--error { padding: 0.9rem 1.1rem; border-radius: var(--r-sm); line-height: 1.55; }
.form-status--ok { background: #e7f3ef; color: #1d5b46; }
.form-status--error { background: #fbeceb; color: #8a2a22; }
.form-status a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
#kontaktformular button[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

/* Honeypot gegen Spam-Bots: für Menschen unsichtbar */
.hp-field { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.contact__aside h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 1rem; }
.contact__aside > p { color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; }

.info-list { display: grid; gap: 0.85rem; list-style: none; padding: 0; }
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.info-item:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(4px); border-color: var(--teal-400); }
.info-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(130, 178, 185, 0.22);
  color: var(--teal-200);
}
.info-item__icon svg { width: 19px; height: 19px; }
.info-item__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-200);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.info-item__value { display: block; color: #fff; font-weight: 600; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding-block: clamp(3rem, 5vw, 5rem) 0; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer__logo {
  height: 54px;
  width: auto;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 1.2rem;
}
.footer p, .footer a { font-size: 0.95rem; }
.footer a { transition: color 0.2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer__bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700) 55%, var(--navy-600));
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 178, 185, 0.3), transparent 62%);
}
/* Eyebrow ohne Zeilenhöhen-Polster, damit der Abstand oben optisch dem unten entspricht */
.page-hero .eyebrow { display: flex; width: fit-content; line-height: 1; margin: 0 0 1.4rem; }
.page-hero h1 { font-size: var(--fs-h1); color: #fff; position: relative; }
.page-hero p { color: rgba(255, 255, 255, 0.75); margin-top: 0.8rem; position: relative; }

.legal { padding-block: clamp(3rem, 5vw, 5.5rem); }
.legal__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1000px) {
  .legal__layout { grid-template-columns: 250px minmax(0, 1fr); }
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy-500); margin-bottom: 1rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 0.55rem; counter-reset: toc; }
.toc a {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 2px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc a:hover { color: var(--navy-700); border-color: var(--teal-400); }
@media (max-width: 999px) { .toc { display: none; } }

.legal__content { max-width: 74ch; }
.legal__content h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  margin: 3rem 0 1.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal__content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__content h3 { font-size: 1.12rem; margin: 2rem 0 0.7rem; color: var(--navy-700); }
.legal__content h4 { font-size: 1rem; margin: 1.4rem 0 0.5rem; font-weight: 700; }
.legal__content p, .legal__content li { color: var(--ink-soft); }
.legal__content p + p { margin-top: 0.9rem; }
.legal__content ul { margin: 0.9rem 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal__content a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal__content .upper { font-size: 0.92rem; }

.address-card {
  background: var(--mist);
  border-radius: var(--r-md);
  padding: 1.5rem 1.7rem;
  margin: 1.2rem 0;
  border-left: 3px solid var(--teal-400);
}
.address-card p { color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, calc(100% + 2rem));
  z-index: 120;
  width: min(100% - 2rem, 940px);
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  padding: clamp(1.3rem, 2.4vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0.4s;
}
.cookie.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookie h2 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.cookie p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; }
.cookie__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; }
@media (max-width: 780px) { .cookie__main { grid-template-columns: 1fr; } }
.cookie__actions { display: grid; gap: 0.55rem; min-width: 190px; }
.cookie__actions .btn { padding: 0.75rem 1.3rem; font-size: 0.9rem; }
.cookie__prefs {
  display: none;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
}
.cookie.is-expanded .cookie__prefs { display: flex; }
.switch { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 40px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #cfd8e0;
  position: relative;
  transition: background 0.25s var(--ease);
  flex: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease);
}
.switch input:checked + .switch__track { background: var(--navy-700); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:disabled + .switch__track { opacity: 0.65; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--teal-400); outline-offset: 2px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover { background: var(--navy-500); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.09s; }
[data-reveal][data-delay="2"] { transition-delay: 0.18s; }
[data-reveal][data-delay="3"] { transition-delay: 0.27s; }
[data-reveal][data-delay="4"] { transition-delay: 0.36s; }
[data-reveal][data-delay="5"] { transition-delay: 0.45s; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1080px) {
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    margin: 0;
    background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }

  /* Logo und Burger bleiben über dem Menü-Overlay sichtbar */
  body.nav-open .brand,
  body.nav-open .burger { position: relative; z-index: 2; }
  body.nav-open .brand img { filter: brightness(0) invert(1); }
  body.nav-open .burger { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .nav__link {
    color: #fff !important;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 700;
    padding: 0.45rem 0;
  }
  .nav__link::after { left: 0; right: auto; width: 44px; bottom: 0.1rem; }
  .nav__cta { display: flex; flex-direction: column; gap: 0.8rem; }
  .nav__cta a { color: #fff; }
  .nav__phone { font-size: 1.15rem; font-weight: 700; color: var(--teal-400) !important; }
}

@media (min-width: 1081px) {
  .nav__cta { display: none; }
}

/* Großgeschriebene Menüpunkte brauchen mehr Platz – knapp oberhalb des Burger-Umbruchs enger setzen */
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav__link { padding-inline: 0.5rem; letter-spacing: 0.03em; }
  .nav__link::after { left: 0.5rem; right: 0.5rem; }
}

@media (max-width: 640px) {
  .hero__scroll { display: none; }
  .split__media::before { display: none; }
  .footer__bottom { justify-content: flex-start; }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .cookie, .to-top, .hero__scroll { display: none !important; }
  body { color: #000; }
}

/* ---------- Motion preferences ---------- */
@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
