/* ============================================================
   Dominik Strempel — Redesign Prototyp
   Design System & Components
   ============================================================ */

/* ---------- Fonts (lokal gehostet) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Farben — Firmenfarben: Grün #254436 + Beige #E8E1D4 */
  --ink: #254436;          /* Marken-Grün (primär/dunkel) */
  --ink-soft: #2f5645;
  --bg: #f5f1ea;           /* heller Beige-Tint (Seitenhintergrund) */
  --bg-alt: #e8e1d4;       /* Marken-Beige (abgesetzte Sektionen) */
  --surface: #ffffff;
  --accent: #3d6b54;       /* mittleres Salbei-/Marken-Grün (Akzent) */
  --accent-deep: #254436;  /* tiefes Marken-Grün */
  --accent-soft: #b7c8bd;  /* helles Salbei */
  --text: #25302b;
  --muted: #5b6a61;
  --line: rgba(37, 68, 54, 0.12);
  --line-soft: rgba(37, 68, 54, 0.07);

  /* Typografie */
  --font-head: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type Scale (fluid) */
  --fs-display: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Spacing */
  --space-section: clamp(5rem, 3rem + 9vw, 9.5rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);

  /* Radien */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.04), 0 2px 8px rgba(14, 23, 38, 0.05);
  --shadow: 0 10px 30px -12px rgba(14, 23, 38, 0.18), 0 4px 12px -6px rgba(14, 23, 38, 0.08);
  --shadow-lg: 0 30px 70px -28px rgba(14, 23, 38, 0.32), 0 12px 28px -16px rgba(14, 23, 38, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.section__head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.section__title { font-size: var(--fs-h2); }
.section__lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.4s var(--ease); }
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--ink-soft);
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--surface);
}
.btn--gold {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(37, 68, 54, 0.45);
}
.btn--gold:hover { background: var(--accent-deep); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Magnetic wrapper keeps transforms isolated */
.magnetic { display: inline-flex; will-change: transform; }

/* Animated underline link */
.link-underline {
  position: relative;
  font-weight: 600;
  color: var(--ink);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease),
              box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.6rem;
  transition: padding-block 0.5s var(--ease);
}
.header.is-scrolled {
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 30px -20px rgba(14, 23, 38, 0.25);
}
.header.is-scrolled .header__inner { padding-block: 0.9rem; }
.header.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.4s var(--ease);
}
.brand:hover .brand__mark { background: var(--accent); }
.brand strong { font-weight: 500; }
.brand span { color: var(--muted); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-block: 0.25rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { display: inline-flex; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(37,68,54,0.10), transparent 60%),
    radial-gradient(900px 700px at 12% 88%, rgba(37,68,54,0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ece6db 100%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%);
  opacity: 0.7;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero__content { max-width: 620px; }
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 560;
  letter-spacing: -0.035em;
}
.hero__title em {
  font-style: normal;
  font-weight: 480;
  color: var(--accent);
}
.hero__tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero__tagline span { color: var(--accent-deep); }
.hero__text {
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 30ch;
  max-width: 52ch;
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__meta {
  margin-top: 3rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
}
.hero__stat-num span { color: var(--accent); }
.hero__stat-label {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Hero visual / portrait card */
.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}
.hero-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.hero-card__badge {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r);
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.hero-card__badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2fb574;
  box-shadow: 0 0 0 4px rgba(47,181,116,0.18);
  flex: none;
}
.hero-card__badge strong { font-size: 0.92rem; color: var(--ink); display: block; }
.hero-card__badge small { font-size: 0.78rem; color: var(--muted); }

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-float svg { width: 18px; height: 18px; color: var(--accent); }
.hero-float--top { top: 8%; left: -8%; }
.hero-float--bottom { bottom: 18%; right: -6%; }
.hero-float small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--ink);
  animation: scrollDrop 2.2s var(--ease) infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(300%); }
}

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}
/* Text-Variante (ohne Bild) */
.about__grid--text {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
}
.about__intro .section__title { margin-top: 1rem; }
.about__pullquote {
  margin: 2.2rem 0 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--accent-soft);
}
.about__pullquote p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
}
.about__pullquote cite {
  display: block; margin-top: 0.7rem;
  font-size: 0.85rem; font-style: normal;
  color: var(--accent-deep); font-weight: 600;
}

.about__media { position: relative; }
.about__img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}
.about__img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.about__accent {
  position: absolute;
  inset: auto -1.4rem -1.4rem auto;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-lg);
  z-index: -1;
}
.about__quote {
  position: absolute;
  left: -1.6rem; bottom: 2rem;
  max-width: 230px;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.about__quote p { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.about__quote cite { display: block; margin-top: 0.6rem; font-size: 0.8rem; font-style: normal; color: var(--accent-deep); font-weight: 600; }

.about__body p + p { margin-top: 1.25rem; }
.about__body .lead { font-size: var(--fs-lead); color: var(--text); }
.about__body .muted { color: var(--muted); }

.about__list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2rem;
  list-style: none;
  padding: 0;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}
.about__list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

/* ============================================================
   Steps / Process
   ============================================================ */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.4rem 2rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.step:hover::before { transform: scaleX(1); }
.step__num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-soft);
  transition: color 0.5s var(--ease);
}
.step:hover .step__num { color: var(--accent); }
.step__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  margin: 1.4rem 0 1.3rem;
  border-radius: 14px;
  background: var(--bg-alt);
  color: var(--accent-deep);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.step:hover .step__icon { background: var(--ink); color: var(--accent-soft); }
.step__icon svg { width: 24px; height: 24px; }
.step__title { font-size: var(--fs-h3); margin-bottom: 0.7rem; }
.step__text { color: var(--muted); font-size: 0.98rem; }
.steps__cta { margin-top: 3rem; text-align: center; }

/* ============================================================
   Reviews
   ============================================================ */
.reviews__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.reviews__score {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.reviews__score b { font-family: var(--font-head); font-size: 2rem; color: var(--ink); line-height: 1; }
.reviews__score .stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.reviews__score small { color: var(--muted); font-size: 0.8rem; display: block; margin-top: 2px; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.review__text {
  font-family: var(--font-head);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 350;
}
.review__author { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.review__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-alt);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 1rem;
  flex: none;
}
.review__author strong { font-size: 0.95rem; color: var(--ink); display: block; font-weight: 600; }
.review__author small { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   Contact
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: calc(var(--r-lg) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact__aside {
  background: var(--ink);
  color: #fff;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  position: relative;
  overflow: hidden;
}
.contact__aside::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183,200,189,0.30), transparent 65%);
}
.contact__aside .eyebrow { color: var(--accent-soft); }
.contact__aside .eyebrow::before { background: var(--accent-soft); }
.contact__aside h2 { color: #fff; font-size: var(--fs-h2); }
.contact__aside p { color: rgba(255,255,255,0.7); margin-top: 1rem; max-width: 36ch; }
.contact__details { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1.3rem; position: relative; z-index: 1; }
.contact__details li { display: flex; align-items: center; gap: 1rem; }
.contact__details .ico {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--accent-soft);
}
.contact__details .ico svg { width: 20px; height: 20px; }
.contact__details small { display: block; color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.contact__details a, .contact__details span { color: #fff; font-weight: 500; font-size: 1.02rem; }
.contact__socials { margin-top: 2.4rem; display: flex; gap: 0.8rem; position: relative; z-index: 1; }
.contact__socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.contact__socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.contact__socials svg { width: 19px; height: 19px; }

.contact__form-wrap { background: var(--surface); padding: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37,68,54,0.14);
}
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.4rem; }
.form-consent input { margin-top: 3px; accent-color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand { color: #fff; }
.footer .brand span { color: rgba(255,255,255,0.55); }
.footer__about { margin-top: 1.2rem; max-width: 34ch; font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.footer__col a { font-size: 0.95rem; color: rgba(255,255,255,0.62); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent-soft); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer__bottom a { color: rgba(255,255,255,0.62); }
.footer__bottom a:hover { color: var(--accent-soft); }

/* ============================================================
   Scroll Reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.94); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__scroll-line::after { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; margin-top: 1rem; max-width: 380px; }
  .hero-float--top { left: 0; }
  .hero-float--bottom { right: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .steps__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .reviews__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .contact__panel { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    position: fixed;
    inset: 78px 1rem auto 1rem;
    padding: 1.2rem;
    background: var(--surface);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links .nav__link { font-size: 1.1rem; padding: 0.6rem 0; width: 100%; }
  .hero__meta { gap: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .about__quote { position: static; margin-top: 1.4rem; max-width: none; }
  .hero-float { display: none; }
}

/* ============================================================
   WordPress-Integration (Extendable Child)
   ============================================================ */

/* WP injiziert eigene Abstände — hier neutralisieren, damit unser Layout greift. */
.wp-site-blocks { margin-block: 0 !important; }
:where(.wp-site-blocks) > * { margin-block: 0; }
body { margin: 0; }

/* ---------- Unterseiten: Impressum / Datenschutz & generische Seiten ---------- */
.legal-page {
  padding-top: clamp(7rem, 5rem + 6vw, 10rem);
  padding-bottom: var(--space-section);
  padding-inline: var(--gutter);
  max-width: 880px;
  margin-inline: auto;
}
.legal-page__head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.legal-page .eyebrow { margin-bottom: 1rem; }
.legal-page__title {
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
/* Inhalt der Rechtstexte (Gutenberg-Blöcke) im neuen Look */
.legal-page :where(h2, h3, h4) {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}
.legal-page :where(h2) { font-size: var(--fs-h3); }
.legal-page :where(p, li) { color: var(--text); line-height: 1.7; }
.legal-page :where(p) { margin-bottom: 1.1rem; }
.legal-page :where(a) { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-page :where(a):hover { color: var(--ink); }
.legal-page :where(ul, ol) { padding-left: 1.3rem; margin-bottom: 1.3rem; }
.legal-page :where(li) { margin-bottom: 0.5rem; }
.legal-page :where(strong) { color: var(--ink); }
.legal-page :where(hr) { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.legal-page :where(table) { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.legal-page :where(th, td) { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); }

/* ---------- Contact Form 7 — im Stil unseres Formulars ---------- */
.contact__form-wrap .wpcf7 { margin: 0; }
.contact__form-wrap .wpcf7-form p { margin: 0 0 1.2rem; }
.contact__form-wrap .wpcf7-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.contact__form-wrap .wpcf7-form input[type="text"],
.contact__form-wrap .wpcf7-form input[type="email"],
.contact__form-wrap .wpcf7-form input[type="tel"],
.contact__form-wrap .wpcf7-form select,
.contact__form-wrap .wpcf7-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.contact__form-wrap .wpcf7-form textarea { min-height: 120px; resize: vertical; }
.contact__form-wrap .wpcf7-form :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(37,68,54,0.14);
}
.contact__form-wrap .wpcf7-form .wpcf7-submit {
  width: 100%;
  margin-top: 0.4rem;
  padding: 1.1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact__form-wrap .wpcf7-form .wpcf7-submit:hover { background: var(--ink-soft); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.contact__form-wrap .wpcf7-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.contact__form-wrap .wpcf7-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.contact__form-wrap .wpcf7 .wpcf7-response-output { border-radius: var(--r-sm); margin: 1rem 0 0; font-size: 0.9rem; }
.contact__form-wrap .wpcf7-not-valid-tip { color: #b3261e; font-size: 0.8rem; }
.contact__form-wrap .wpcf7-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 760px) { .contact__form-wrap .wpcf7-form .two-col { grid-template-columns: 1fr; } }


/* ---------- Mobile: Hero-Bild VOR dem Text + Abstände ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 8rem; padding-bottom: 8rem; }
  .hero__visual { order: -1; margin-top: 1rem; margin-bottom: 1.5rem; max-width: 340px; }
  .hero__content { order: 0; }
  .hero__scroll { bottom: 1.6rem; }
  .hero__scroll-line { height: 28px; }
}


/* ============================================================
   Mitglieder-Login (Ultimate Member) — Seite /login/ (ID 142)
   ============================================================ */
body.page-id-142 .legal-page { max-width: 470px; padding-top: clamp(7rem,5rem+5vw,9rem); }
body.page-id-142 .legal-page__head { display: none; }
body.page-id-142 :is(.entry-content, .wp-block-post-content) {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
}
.auth__back { display:inline-flex; align-items:center; gap:0.5rem; font-size:0.86rem; font-weight:500; color:var(--muted); margin-bottom:1.4rem; text-decoration:none; }
.auth__back:hover { color:var(--ink); }
.auth__back svg { width:16px; height:16px; }
.auth__brand { display:inline-flex; align-items:center; gap:0.7rem; font-family:var(--font-head); font-size:1.05rem; color:var(--ink); margin-bottom:1.4rem; text-decoration:none; }
.auth__brand .brand__mark { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:var(--ink); color:#fff; font-size:0.9rem; font-weight:600; }
.auth__brand-txt span { color:var(--muted); font-weight:400; font-size:0.9rem; }
.auth__title { font-family:var(--font-head); font-size:clamp(1.5rem,1.2rem+1vw,1.9rem); font-weight:500; color:var(--ink); margin:0; letter-spacing:-0.02em; }
.auth__sub { color:var(--muted); margin:0.4rem 0 1.5rem; }
.role-switch { display:grid; grid-template-columns:1fr 1fr; gap:0.35rem; padding:0.3rem; background:var(--bg-alt); border-radius:var(--r-pill); margin-bottom:1.5rem; }
.role-switch input { position:absolute; opacity:0; pointer-events:none; }
.role-switch label { display:flex; align-items:center; justify-content:center; padding:0.6rem 1rem; border-radius:var(--r-pill); font-size:0.9rem; font-weight:600; color:var(--muted); cursor:pointer; transition:background-color .35s var(--ease),color .35s var(--ease),box-shadow .35s var(--ease); }
.role-switch input:checked + label { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
.auth__note { text-align:center; font-size:0.9rem; color:var(--muted); margin:1.4rem 0 0; }
.auth__secure { display:flex; align-items:center; justify-content:center; gap:0.5rem; margin-top:1.3rem; padding-top:1.2rem; border-top:1px solid var(--line-soft); font-size:0.8rem; color:var(--muted); }
.auth__secure svg { width:15px; height:15px; color:var(--accent-deep); }

/* UM-Formular ans Design anpassen */
.um.um-138, .um { max-width:none !important; margin:0 !important; }
.um .um-form { padding:0 !important; }
.um .um-form .um-field { padding:0 0 1rem !important; }
.um .um-form .um-field-label label { font-size:0.8rem !important; font-weight:600 !important; color:var(--ink) !important; margin-bottom:0.4rem !important; }
.um .um-form input[type=text], .um .um-form input[type=email], .um .um-form input[type=password], .um .um-form input[type=tel] {
  width:100% !important; padding:0.85rem 1rem !important; font:inherit !important; font-size:0.95rem !important; line-height:1.4 !important;
  color:var(--text) !important; background:var(--bg) !important; border:1px solid var(--line) !important; border-radius:var(--r-sm) !important; height:auto !important; box-shadow:none !important;
}
.um .um-form input:focus { border-color:var(--accent) !important; background:var(--surface) !important; box-shadow:0 0 0 4px rgba(37,68,54,0.14) !important; outline:none !important; }
.um .um-form input[type=submit].um-button, .um .um-button:not(.um-alt) {
  background:var(--ink) !important; color:#fff !important; border:none !important; border-radius:var(--r-pill) !important;
  padding:0.95rem 1.6rem !important; font-weight:600 !important; width:100% !important; height:auto !important; box-shadow:var(--shadow) !important; transition:background-color .35s var(--ease) !important;
}
.um .um-form input[type=submit].um-button:hover, .um .um-button:not(.um-alt):hover { background:var(--ink-soft) !important; }
.um .um-form a { color:var(--accent-deep) !important; }
.um .um-field-checkbox-option, .um .um-form label { color:var(--muted) !important; }


/* ---------- Header enger packen (zwei Login-Buttons) ---------- */
.brand strong, .brand span { white-space: nowrap; }
.nav { gap: 1.5rem; }
.nav__links { gap: 1.35rem; }
.nav__link { white-space: nowrap; }
.header-actions { gap: 0.75rem; }
.nav__cta .link-underline { font-size: 0.84rem; white-space: nowrap; }
@media (max-width: 1180px) {
  .nav { gap: 1.1rem; }
  .nav__links { gap: 1rem; }
  .nav__link, .nav__cta .link-underline { font-size: 0.82rem; }
  .btn--primary { padding: 0.8rem 1.2rem; }
}


/* Rollen-Umschalter: Icons */
.role-switch label { gap: 0.5rem; }
.role-switch label svg { width: 17px; height: 17px; }


/* ---------- Login-Karte (page-with-title) Korrektur ---------- */
body.page-id-142 .wp-block-post-title { display: none !important; }
body.page-id-142 :is(.entry-content, .wp-block-post-content) {
  max-width: 440px !important;
  margin-inline: auto !important;
  margin-top: clamp(6.5rem, 4rem + 6vw, 9rem) !important;
  margin-bottom: 3rem !important;
}
/* Register-Button auf dem Login ausblenden (Konten nur manuell) */
.um-login .um-button.um-alt,
.um .um-button.um-alt,
.um-login a[href*="register" i],
.um-login a[href*="registrieren" i] { display: none !important; }
