/*
Theme Name: Roberts Fahrschule 2punkt0
Description: Landingpage der Fahrschule 2 Punkt 0 GmbH. Erzeugt aus der statischen Seite mit wordpress/build-theme.py.
Version: 1.0.37
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rofa2punkt0
*/

/* ---------- Schriften ---------- */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/barlow-condensed-v13-latin-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/barlow-condensed-v13-latin-900italic.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2');
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg:          #161515;
  --bg-alt:      #111111;
  --bg-dark:     #080808;
  --bg-team:     #0a0a0a;
  --bg-footer:   #060606;
  --surface:     #131313;
  --border:      #1e1e1e;
  --border-soft: #1a1a1a;
  --fg:          #f5f2ee;
  --accent:      #ff0000;
  --accent-hover:#c42510;
  --whatsapp:    #25D366;
  --whatsapp-hover:#1eb257;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --maxw: 1300px;

  --img-hero:      url("images/hero.webp");
  --img-why:       url("images/why-us.webp");
  --img-gallery-1: url("images/gallery-1.webp");
  --img-gallery-2: url("images/gallery-2.webp");
  --img-gallery-3: url("images/gallery-3.webp");
  --img-gallery-4: url("images/gallery-4.webp");
  --img-gallery-5: url("images/gallery-5.webp");
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; }
.accent-text { color: var(--accent); }
.eyebrow {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.headline {
  font-family: var(--font-display); font-weight: 900;
  line-height: 0.92; text-transform: uppercase;
}
.headline em      { font-style: italic; color: var(--accent); }
.headline em.plain{ font-style: italic; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 2px; font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 15px 30px;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline  {
  border: 1px solid rgba(245,242,238,.25); color: var(--fg);
  font-weight: 400; backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--fg); }
.btn-whatsapp {
  background: var(--whatsapp); color: #fff;
  padding: 18px 38px; font-size: 14px; font-weight: 700; letter-spacing: 1px;
}
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: #fff; }
.btn-lg-outline {
  border: 1px solid rgba(245,242,238,.2); color: var(--fg);
  padding: 18px 38px; font-size: 14px; font-weight: 400; letter-spacing: 1px;
}
.btn-lg-outline:hover { border-color: var(--fg); }

.contact-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1a1a1a; border: 1px solid #2a2a2a;
  padding: 13px 20px; border-radius: 2px;
  font-size: 13px; font-weight: 500;
  transition: border-color .2s;
}
.contact-chip:hover { border-color: var(--accent); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s, box-shadow .3s;
}
.site-nav.scrolled {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.nav-brand { display: flex; align-items: center; line-height: 0; gap: 20px; }
.nav-logo { display: block; width: auto; height: 64px; }
.nav-divider { width: 1px; height: 40px; background: rgba(255,255,255,.25); }
.nav-logo-partner { display: block; width: auto; height: 40px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
}
.nav-link { opacity: .6; transition: opacity .2s; }
.nav-link:hover { opacity: 1; }
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 10px 22px; border-radius: 2px;
  font-weight: 600; letter-spacing: 1px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent-hover); }
@media (min-width: 901px) {
  .nav-links { font-size: 13px; }
  .nav-cta { padding: 12px 26px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 110vh; min-height: 640px;
  overflow: hidden; display: flex; align-items: flex-end;
  padding-top: 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--img-hero) 100% 40% / cover no-repeat;
}
@media (min-width: 901px) {
  .hero-bg { left: 10%; right: -10%; }
}

/* ---------- Hero-Animation ---------- */
.hero-bg { container-type: size; }
.hero-stage {
  position: absolute; right: 0;
  width:  max(100cqw, 150cqh);
  height: max(100cqh, 66.6667cqw);
  top: calc((100cqh - max(100cqh, 66.6667cqw)) * .4);
  background: var(--img-hero) center / 100% 100% no-repeat;
  transform-origin: 82% 55%;
  will-change: transform;
  backface-visibility: hidden;
  animation: heroZoom 12s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
@keyframes heroZoom {
  from { transform: translate3d(0, 0, 0) scale3d(1, 1, 1); }
  to   { transform: translate3d(0, 0, 0) scale3d(1.12, 1.12, 1); }
}

.hero-light {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0;
  animation: heroBlink 1.5s ease-out 1.1s 1 both;
}
.hero-light--drl {
  left: 63.8%; top: 39.2%; width: 14%; height: 5.4%;
  background: radial-gradient(closest-side, #fff 0%, #fff 30%, rgba(225,240,255,.8) 55%, rgba(200,225,255,0) 100%);
}
.hero-light--corner {
  left: 64.6%; top: 41%; width: 5%; height: 7.5%;
  background: radial-gradient(closest-side, #fff 0%, rgba(235,245,255,.9) 40%, rgba(220,235,255,0) 100%);
}
.hero-light--bloom {
  left: 56%; top: 31%; width: 34%; height: 23%;
  background: radial-gradient(closest-side, rgba(220,238,255,.9) 0%, rgba(210,232,255,.45) 40%, rgba(210,232,255,0) 100%);
}
@keyframes heroBlink {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  28%  { opacity: 0; }
  44%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage, .hero-light { animation: none; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #0d0d0d 40%, rgba(13,13,13,.55) 65%, rgba(168, 35, 35, 0.1) 80%);
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 220px;
  background: linear-gradient(to top, #0d0d0d, transparent);
}
.hero-content {
  position: relative; z-index: 2; 
  padding: 0 48px 100px; max-width: 780px;
}
.hero-title {
  margin: 0; line-height: 0;
  animation: heroIn .9s cubic-bezier(.16,1,.3,1) .15s both;
}
.hero-logo {
  display: block; width: clamp(300px, 52vw, 640px); max-width: 100%; height: auto;
}
.hero-lead {
  margin-top: 24px; max-width: 420px;
  font-size: 17px; font-weight: 300; opacity: .7; line-height: 1.65;
  text-wrap: pretty;
  animation: heroIn .9s cubic-bezier(.16,1,.3,1) .4s both;
}
.hero-actions {
  display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap;
  animation: heroIn .9s cubic-bezier(.16,1,.3,1) .6s both;
}
.hero-scroll {
  position: absolute; bottom: 110px; right: 48px; z-index: 2;
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase; opacity: .60;
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--maxw); margin: 0 auto; }
.stat { padding: 36px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 54px; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { margin-top: 6px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }

/* ---------- Klassen ---------- */
.classes { padding: 100px 48px 48px; max-width: var(--maxw); margin: 0 auto; }
.classes-head { margin-bottom: 56px; }
.classes-title { font-size: clamp(48px, 6vw, 84px); }
.group-label {
  margin: 36px 0 16px; padding-bottom: 12px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  opacity: .35; border-bottom: 1px solid var(--border-soft);
}
.group-label--first { margin-top: 0; }
.classes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px; }

/* ---------- Flip-Kacheln ---------- */
.kcard {
  position: relative;
  height: 176px;
  perspective: 1100px;
  cursor: pointer;
}
.kcard-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .kcard:hover .kcard-inner { transform: rotateY(180deg); }
}
.kcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.kcard-face {
  position: absolute; inset: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.kcard-photo {
  background: #0d0d0d center / cover no-repeat;
  transition: border-color .2s;
}
.kcard-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%);
}
.kcard-photo-label {
  position: absolute; left: 20px; bottom: 14px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 64px; line-height: 1; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.kcard-photo-label--sm { font-size: 38px; }
.kcard-photo-label--accent { color: var(--accent); }
.kcard-photo .badge { z-index: 1; }

.kcard-info {
  transform: rotateY(180deg);
  background: var(--surface);
  padding: 28px 24px;
  border-color: var(--accent);
}
.kcard--featured .kcard-info { background: #180603; }
.kcard--seminar .kcard-info { background: #1a0d02; }
.kcard-more {
  position: absolute; left: 24px; bottom: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
}
.kcard-more::after { content: " +"; }

@media (prefers-reduced-motion: reduce) {
  .kcard-inner { transition: none; }
}

.kcard-label { font-family: var(--font-display); font-size: 44px; font-weight: 900; line-height: 1; }
.kcard-label--accent { color: var(--accent); }
.kcard-label--sm { font-size: 28px; line-height: 1.2; }
.kcard-title { margin: 8px 0 4px; font-size: 13px; font-weight: 500; }
.kcard-sub { font-size: 12px; opacity: .8; line-height: 1.5; }

/* ---------- Klassen-Details (Dialog) ---------- */
.kdialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto; padding: 0; overflow: auto;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.kdialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.kdialog[open] { animation: kdIn .28s cubic-bezier(.16,1,.3,1); }
@keyframes kdIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
html:has(.kdialog[open]) { overflow: hidden; }

.kdialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.kdialog-close:hover { background: var(--accent); }
.kdialog-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.kdialog-media {
  position: relative; aspect-ratio: 16 / 9;
  background: #0d0d0d center / cover no-repeat;
}
.kdialog-media.is-empty { aspect-ratio: auto; height: 110px; }
.kdialog-media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, rgba(19,19,19,.3) 45%, rgba(0,0,0,0) 100%);
}
.kdialog-label {
  position: absolute; left: 28px; bottom: 6px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 72px; line-height: 1; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.kdialog-label.is-accent { color: var(--accent); }
.kdialog-label.is-sm { font-size: 48px; }

.kdialog-body { padding: 16px 28px 28px; }
.kdialog-title {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 900; font-size: 26px;
  text-transform: uppercase; letter-spacing: .5px; line-height: 1.1;
}
.kdialog-sub { margin: 0 0 20px; font-size: 13px; opacity: .7; }
.kdialog-sub:empty { display: none; }
.kdialog-text h4 {
  margin: 20px 0 6px;
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  color: var(--accent);
}
.kdialog-text h4:first-child { margin-top: 0; }
.kdialog-text p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; opacity: .85; text-wrap: pretty; }
.kdialog-cta { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .kdialog[open] { animation: none; }
}
@media (max-width: 560px) {
  .kdialog-label { left: 20px; font-size: 56px; }
  .kdialog-body { padding: 14px 20px 24px; }
}
.badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  padding: 3px 9px; text-transform: uppercase; border-radius: 1px;
}

/* ---------- Ablauf / So funktioniert's ---------- */
.steps { padding: 56px 48px 100px; max-width: var(--maxw); margin: 0 auto; }
.steps-head {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: start; margin-bottom: 72px;
}
.steps-title { font-size: clamp(40px, 5vw, 72px); }
.steps-intro {
  justify-self: end; max-width: 360px; margin-top: 10px;
  font-size: 16px; font-weight: 300; opacity: .85; line-height: 1.7;
  text-wrap: pretty;
}
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  list-style: none; margin: 0; padding: 0;
}
.step-num {
  display: flex; align-items: flex-start; gap: 16px;
  font-family: var(--font-display); font-weight: 900; font-size: 34px;
  color: var(--accent); line-height: 1; margin-bottom: 22px;
}
.step-num::after {
  content: ""; flex: 1; height: 1px; margin-top: .32em;
  background: var(--border);
}
.step-title {
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px;
}
.step-text {
  margin: 0; font-size: 14px; font-weight: 300; opacity: .85;
  line-height: 1.7; text-wrap: pretty;
}

/* ---------- Warum Roberts ---------- */
.why {
  position: relative; overflow: hidden; background: var(--bg-dark);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; max-width: var(--maxw); margin: 0 auto; }
.why-media { position: relative; overflow: hidden; min-height: 360px; }
.why-media-bg { position: absolute; inset: 0; background: var(--img-why) center / cover no-repeat; }
.why-media-fade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #080808 100%); }
.why-body { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.why-title { font-size: clamp(40px, 4vw, 62px); margin-bottom: 40px; }
.why-list { display: flex; flex-direction: column; gap: 26px; }
.usp { display: flex; gap: 18px; align-items: flex-start; }
.usp-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); border-radius: 2px; color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
}
.usp-icon--sm { font-size: 20px; }
.usp-icon--xs { font-size: 20px; }
.usp-title { margin-bottom: 3px; font-size: 15px; font-weight: 600; }
.usp-text { font-size: 13px; opacity: .85; line-height: 1.6; }

/* ---------- Galerie ---------- */
.gallery { padding: 100px 48px; max-width: var(--maxw); margin: 0 auto; }
.gallery-head { margin-bottom: 48px; }
.gallery-title { font-size: clamp(40px, 5vw, 68px); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 260px 260px; gap: 3px; }
.gallery-item { background-size: cover; background-repeat: no-repeat; background-position: center; }
.gallery-item--tall { grid-row: span 2; }
.g1 { background-image: var(--img-gallery-1); }
.g2 { background-image: var(--img-gallery-2); background-position: center 40%; }
.g3 { background-image: var(--img-gallery-3); }
.g4 { background-image: var(--img-gallery-4); background-position: center 55%; }
.g5 { background-image: var(--img-gallery-5); }

@media (max-width: 620px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item--tall { grid-row: auto; }
  .g1, .g3 { aspect-ratio: 2 / 3; }
  .g2, .g4, .g5 { aspect-ratio: 3 / 2; }
}

/* ---------- Team ---------- */
.team {
  padding: 100px 48px; background: var(--bg-team);
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.team-media { position: relative; }
.team-photo-wrap { overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3; }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.team-title { font-size: clamp(40px, 4vw, 62px); margin-bottom: 20px; }
.team-lead { margin-bottom: 20px; font-size: 16px; opacity: .6; line-height: 1.75; text-wrap: pretty; }
.team-classes { margin-bottom: 36px; font-size: 13px; opacity: .35; line-height: 1.7; }
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Team-Kacheln ---------- */
.team-members {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  max-width: var(--maxw); margin: 72px auto 0;
}
.member { min-width: 0; display: flex; flex-direction: column; }
.member-photo {
  aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color .25s;
}
.member:hover .member-photo { border-color: var(--accent); }
.member-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
.member-name {
  margin: 0 0 7px;
  font-family: var(--font-display); font-weight: 900; font-size: 21px;
  text-transform: uppercase; letter-spacing: .5px; line-height: 1;
}
.member-text {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 300; opacity: .85;
  line-height: 1.6; text-wrap: pretty;
}
.member-classes {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: auto 0 0; padding: 0; list-style: none;
}
.member-classes li {
  padding: 3px 7px;
  border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: 1px; line-height: 1.3;
  opacity: .7;
}

/* ---------- Kontakt & Anmeldung ---------- */
.contact { position: relative; overflow: hidden; padding: 64px 48px 110px; }
.contact-pattern {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(rgba(229,48,26,.03) 0% 25%, transparent 0% 50%) 0 0 / 56px 56px;
}
.contact-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px;
  align-items: start; max-width: var(--maxw); margin: 0 auto;
}
.contact-aside { padding-top: 4px; }
.contact-title { font-size: clamp(48px, 5.4vw, 88px); line-height: .88; margin-bottom: 24px; }
.contact-lead { margin-bottom: 36px; font-size: 17px; opacity: .85; line-height: 1.7; text-wrap: pretty; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.contact-locations { font-size: 12px; opacity: .35; letter-spacing: 1px; }

/* ---------- Anmeldeformular (Contact Form 7) ---------- */

.signup { min-width: 0; }

.cf7-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.cf7-field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cf7-field--full { grid-column: 1 / -1; }
.cf7-address { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 20px 24px; }
#anmeldung { scroll-margin-top: 110px; }
.cf7-field > label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  opacity: .9; font-weight: 500;
}
.cf7-req { color: var(--accent); }

.signup .wpcf7-form-control-wrap { display: block; }

.signup .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not([type="checkbox"]) {
  width: 100%;
  padding: 14px 16px;
  background-color: #282828;
  border: 1px solid #4a4a4a;
  border-radius: 2px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color .2s, background .2s;
  color-scheme: dark;
}
.signup .wpcf7-form-control::placeholder { color: var(--fg); opacity: .6; }
.signup .wpcf7-form-control:hover:not(.wpcf7-submit) { border-color: #666; }
.signup .wpcf7-form-control:focus-visible {
  outline: none; border-color: var(--accent); background-color: #181717;
}
.signup .wpcf7-textarea { min-height: 150px; resize: vertical; }

.signup .wpcf7-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%),
                    linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.signup .wpcf7-select option { background: var(--bg-alt); color: var(--fg); }
.signup .wpcf7-select optgroup { background: var(--bg-dark); color: var(--fg); font-style: normal; }

.cf7-consent { margin-top: 4px; }
.signup .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.signup .wpcf7-acceptance label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.signup .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--accent); cursor: pointer;
}
.signup .wpcf7-list-item-label {
  font-size: 13px; font-weight: 300; line-height: 1.6; opacity: .55;
}
.signup .wpcf7-list-item-label a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.cf7-submit-row { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; }
.signup .wpcf7-submit {
  border: none; cursor: pointer;
  font-family: var(--font-body); text-transform: uppercase;
}
.cf7-note {
  margin: 18px 0 0; font-size: 12px; font-weight: 300;
  opacity: .65; line-height: 1.6;
}

.signup .wpcf7-form .wpcf7-response-output { display: none; }
.signup .wpcf7-form.invalid .wpcf7-response-output,
.signup .wpcf7-form.unaccepted .wpcf7-response-output,
.signup .wpcf7-form.sent .wpcf7-response-output,
.signup .wpcf7-form.failed .wpcf7-response-output,
.signup .wpcf7-form.aborted .wpcf7-response-output,
.signup .wpcf7-form.payment-required .wpcf7-response-output { display: block; }
.signup .wpcf7-not-valid { border-color: var(--accent) !important; }
.signup .wpcf7-not-valid-tip {
  display: block; margin-top: 6px;
  font-size: 12px; font-weight: 400; color: var(--accent);
}
.signup .wpcf7-response-output {
  margin: 24px 0 0 !important; padding: 14px 18px !important;
  border: 1px solid var(--border) !important; border-radius: 2px;
  font-size: 14px; line-height: 1.6;
}
.signup .wpcf7-form.invalid .wpcf7-response-output,
.signup .wpcf7-form.unaccepted .wpcf7-response-output,
.signup .wpcf7-form.failed .wpcf7-response-output,
.signup .wpcf7-form.aborted .wpcf7-response-output { border-color: var(--accent) !important; }
.signup .wpcf7-form.sent .wpcf7-response-output { border-color: var(--whatsapp) !important; }

.signup .wpcf7-spinner { margin: 0; background-color: var(--accent); }

.signup .wpcf7-form .hp-field,
.signup .wpcf7-honeypot-container { position: absolute !important; left: -9999px !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-footer); border-top: 1px solid #161616;
  padding: 36px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; line-height: 0; }
.footer-logo { display: block; width: auto; height: 64px; }
.footer-copy { font-size: 11px; opacity: .25; }
.footer-links { display: flex; gap: 24px; font-size: 12px; opacity: .35; letter-spacing: .5px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Animationen ---------- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .team-members { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
}

@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-title { font-size: clamp(48px, 8vw, 88px); }
}

@media (max-width: 900px) {
  .nav-logo { height: 44px; }
  .nav-brand { gap: 14px; }
  .nav-divider { height: 28px; }
  .nav-logo-partner { height: 28px; }
  .contact { padding: 44px 24px 72px; }
  .steps { padding: 40px 24px 72px; }
  .steps-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .steps-intro { justify-self: start; max-width: none; margin-top: 0; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .why-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .nav-links { gap: 16px; }
  .hero { height: 100vh; height: 100svh; min-height: 560px; }
  .hero-content { padding: 0 24px 48px; }
  .classes { padding: 72px 24px 36px; }
  .gallery { padding: 72px 24px; }
  .why-body { padding: 72px 24px; }
}

@media (max-width: 760px) {
  .nav-divider, .nav-logo-partner { display: none; }
  .team-members { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin-top: 48px; }
}

@media (max-width: 620px) {
  .cf7-grid { grid-template-columns: 1fr; }
  .cf7-address { grid-template-columns: 2fr 1fr; }
  .cf7-address .cf7-field:last-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-logo { height: 52px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .site-nav, .site-nav.scrolled { padding-left: 20px; padding-right: 20px; }
  .nav-brand { display: none; }
  .nav-links { width: 100%; justify-content: space-between; gap: 12px; }
  .stat { padding: 28px 8px; }
  .stat-num { font-size: 40px; }
  .stat-label { letter-spacing: 1px; }
}

@media (max-width: 380px) {
  .site-nav, .site-nav.scrolled { padding-left: 14px; padding-right: 14px; }
  .nav-links { font-size: 11px; letter-spacing: 1px; gap: 8px; }
  .nav-cta { padding: 9px 12px; }
}

@media (max-width: 900px) and (orientation: portrait) {
  .hero { display: block; height: auto; min-height: 0; padding-top: 62vw; }
  .hero-bg { inset: 0 0 auto 0; height: 76.67vw; }
  .hero-stage {
    left: -8cqw; right: auto; top: 0;
    width: 115cqw; height: 76.67cqw;
    transform-origin: 50% 50%;
  }
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(13,13,13,.45) 0, rgba(13,13,13,0) 90px,
      rgba(13,13,13,0) 42vw, #0d0d0d 72vw);
  }
  .hero-fade { display: none; }
  .hero-content { padding: 0 24px 40px; }
}

/* ========== Rechtsseiten ========== */

.legal-page .site-nav {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}

/* ---------- Kopfbereich ---------- */
.legal-hero {
  position: relative; overflow: hidden;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 152px 48px 60px;
}
.legal-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(rgba(229,48,26,.03) 0% 25%, transparent 0% 50%) 0 0 / 56px 56px;
}
.legal-hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.legal-title { font-size: clamp(44px, 7vw, 92px); }
.legal-lead {
  margin-top: 20px; max-width: 620px;
  font-size: 15px; font-weight: 300; line-height: 1.7; opacity: .5;
  text-wrap: pretty;
}

/* ---------- Rumpf ---------- */
.legal { padding: 72px 48px 96px; }
.legal-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px;
  align-items: start;
}
.legal-inner--plain { grid-template-columns: minmax(0, 1fr); }

.legal-toc { position: sticky; top: 104px; }
.legal-toc-title {
  font-family: var(--font-display); font-weight: 900; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}
.legal-toc ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-toc a {
  display: block; font-size: 13px; line-height: 1.45; opacity: .45;
  transition: opacity .2s, color .2s;
}
.legal-toc a:hover { opacity: 1; color: var(--accent); }

.legal-body { max-width: 760px; }
.legal-section { margin-bottom: 48px; scroll-margin-top: 104px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-body h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: -.3px;
  margin-bottom: 20px;
}
.legal-body h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .6px;
  margin: 30px 0 10px; color: var(--accent);
}
.legal-body h3:first-of-type { margin-top: 0; }
.legal-body p {
  font-size: 15px; font-weight: 300; line-height: 1.8; opacity: .62;
  margin-bottom: 15px; text-wrap: pretty;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { margin: 0 0 15px 18px; }
.legal-body li {
  font-size: 15px; font-weight: 300; line-height: 1.8; opacity: .62;
  margin-bottom: 6px;
}
.legal-body a:not(.btn) {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .2s;
}
.legal-body a:not(.btn):hover { color: var(--accent-hover); }
.legal-body a[href^="http"] { word-break: break-word; }

/* ---------- Datenkarten (Impressum) ---------- */
.legal-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px;
  margin-bottom: 56px;
}
.legal-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 26px 28px;
}
.legal-card-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.legal-card p {
  font-size: 15px; font-weight: 300; line-height: 1.7; opacity: .72;
  margin: 0;
}
.legal-card strong {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: 20px; text-transform: uppercase; letter-spacing: .4px;
  line-height: 1.15; opacity: 1; margin-bottom: 6px;
}
.legal-card a { color: inherit; transition: color .2s; }
.legal-card a:hover { color: var(--accent); }

/* ---------- Fuss der Seite ---------- */
.legal-back {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.legal-stand { font-size: 12px; opacity: .3; margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .legal-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .legal-toc { position: static; border-bottom: 1px solid var(--border); padding-bottom: 28px; }
  .legal-toc ol { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
}

@media (max-width: 900px) {
  .legal-hero { padding: 124px 24px 48px; }
  .legal { padding: 56px 24px 80px; }
}

@media (max-width: 620px) {
  .legal-cards { grid-template-columns: 1fr; }
}
