/* ==========================================================================
   FAMAX GMBH — Stylesheet
   Grundidee: die redaktionelle, zurückhaltende Dachmarke hinter FAMAX PADEL.
   Serifentypografie (Fraunces) und Weißraum statt Sportgrafik und Terrakotta –
   bewusste Abgrenzung zur wärmeren, dynamischeren Projektseite.
   ========================================================================== */

:root {
  /* Farbe — bewusst schwarz-weiß/neutral: klare Abgrenzung zur wärmeren,
     terrakotta-akzentuierten FAMAX-PADEL-Seite. Die Court-Farbe gehört
     laut Markenlogik nur zum Padel-Projekt, nicht zur GmbH-Dachmarke. */
  --ink: #141516;
  --ink-soft: #55585c;
  --paper: #ffffff;
  --paper-raised: #f0f0f0;
  --court: #3a3d40;
  --court-deep: #1f2123;
  --court-tint: #f2f2f2;
  --court-on-dark: #b7bbbe;
  --line: #dcdcdc;
  --line-strong: #b0b3b6;
  --white: #ffffff;

  /* Typografie: Fraunces (Serif) für große, redaktionelle Aussagen —
     bewusst anders als die geometrische Sportschrift der Padel-Seite.
     Jost bleibt reserviert für den Marken-Schriftzug (echtes Logo). */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-logo: "Jost", "Century Gothic", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --wrap: 74rem;
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);
  --radius: 2px;
}

/* ---------- Reset & Basics ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
code { font-family: var(--font-mono); background: var(--paper-raised); padding: 0.1em 0.4em; border-radius: var(--radius); font-size: 0.9em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--court); color: var(--white); padding: 0.6em 1em; z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--court);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.eyebrow {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.05; }
.section-head p { margin-top: 0.85rem; color: var(--ink-soft); font-size: 1.05rem; }

.tint-band { background: var(--court-tint); }
.dark-band { background: var(--ink); color: var(--paper); }
.dark-band h2, .dark-band h3 { color: var(--white); }
.dark-band p { color: #cbcbcb; }
.dark-band a { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--court); color: var(--white); }
.btn-primary:hover { background: var(--court-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark-band .btn-ghost { color: var(--white); border-color: var(--white); }
.dark-band .btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 243, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.9rem;
}
.logo {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.logo-mark { width: 1.9rem; height: auto; flex-shrink: 0; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-words .fx {
  font-family: var(--font-logo); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.01em; color: var(--ink);
  font-kerning: none; font-feature-settings: "kern" 0;
}
.logo-words .px {
  font-family: var(--font-logo); font-weight: 600; font-size: 0.6rem;
  letter-spacing: 0.22em; color: var(--court); margin-top: 0.1rem;
  font-kerning: none; font-feature-settings: "kern" 0;
}
.dark-band .logo-words .fx, .site-footer .logo-words .fx { color: var(--white); }
.dark-band .logo-words .px, .site-footer .logo-words .px { color: var(--court-on-dark); }
.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--ink);
  padding: 0.5em 0.9em; font-family: var(--font-body); font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
}
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding-block: 0.3em; border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}
.site-nav a:hover { border-color: var(--court); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    gap: 0.9rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.status-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35em 0.8em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
}
.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.4rem);
  line-height: 1.05;
  max-width: 16ch;
  font-weight: 600;
}
.line-reveal { overflow: hidden; display: block; }
.line-reveal span { display: block; transform: translateY(112%); animation: line-up 1s cubic-bezier(.22,1,.36,1) forwards; animation-delay: 0.1s; }
.line-reveal.l2 span { animation-delay: 0.22s; }
@keyframes line-up { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .line-reveal span { transform: none; animation: none; } }
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-top: 1.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; font-size: 0.92rem; color: var(--ink-soft); max-width: 34ch; }

.hero-graphic { width: 100%; height: auto; }
.hero-graphic path, .hero-graphic line, .hero-graphic circle, .hero-graphic rect {
  vector-effect: non-scaling-stroke;
}

/* ---------- Lesefortschritt ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--ink); z-index: 101; transition: width 0.1s linear;
}

/* ---------- Zurück nach oben ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: none;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--court-deep); }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.01s, visibility 0.01s; }
}

.hero-enter { opacity: 0; transform: translateY(14px); animation: hero-in 0.7s ease-out forwards; }
.hero-enter.d2 { animation-delay: 0.12s; }
.hero-enter.d3 { animation-delay: 0.22s; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-enter { opacity: 1; transform: none; animation: none; }
}

/* ---------- Hero-Marke (gestaffeltes Einblenden der drei F-Balken) ---------- */
.hm-part { opacity: 0; transform: translateY(18px); animation: hm-in 0.9s ease-out forwards; }
.hm-1 { animation-delay: 0.15s; }
.hm-2 { animation-delay: 0.32s; }
.hm-3 { animation-delay: 0.48s; }
@keyframes hm-in { to { opacity: 0.07; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hm-part { opacity: 0.07; transform: none; animation: none; }
}

/* ---------- Scroll-Reveal (überall) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.team-grid.reveal > div:nth-child(2) { transition-delay: 0.08s; }
.contact-grid.reveal > div:nth-child(2) { transition-delay: 0.08s; }
.contact-grid.reveal > div:nth-child(3) { transition-delay: 0.16s; }
.principles.reveal .principle:nth-child(2) { transition-delay: 0.08s; }
.principles.reveal .principle:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Roadmap (schlank, redaktionell) ---------- */
.roadmap-wrap { position: relative; }
.roadmap-track, .roadmap-fill { display: none; }
@media (min-width: 760px) {
  .roadmap-track, .roadmap-fill {
    display: block; position: absolute; top: 0.55rem; left: 16.666%; right: 16.666%; height: 1px;
  }
  .roadmap-track { background: var(--line); }
  .roadmap-fill {
    background: var(--ink); transform: scaleX(0); transform-origin: left;
    transition: transform 1.3s ease 0.15s;
  }
  .roadmap-wrap.is-visible .roadmap-fill { transform: scaleX(0.5); }
}
.roadmap {
  display: grid; gap: clamp(1.75rem, 4vw, 2.5rem);
  position: relative; z-index: 1;
}
@media (min-width: 760px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.roadmap li { list-style: none; }
.roadmap-dot {
  display: block; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--paper); margin-bottom: 1.1rem;
}
.roadmap li.is-done .roadmap-dot { background: var(--ink); border-color: var(--ink); }
.roadmap li.is-current .roadmap-dot { background: var(--ink); border-color: var(--ink); }
.roadmap-phase { display: block; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--line-strong); margin-bottom: 0.6rem; }
.roadmap li.is-current .roadmap-phase { color: var(--ink-soft); font-style: italic; font-family: var(--font-display); }
.roadmap h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-family: var(--font-display); font-weight: 600; }
.roadmap p { color: var(--ink-soft); font-size: 0.95rem; }
.roadmap li:not(.is-done):not(.is-current) h3 { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Konzept ---------- */
.concept-cols { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .concept-cols { grid-template-columns: 1fr 1fr; } }
.concept-cols p { font-size: 1.05rem; }

/* ---------- Ablauf / Steps ---------- */
.steps {
  display: grid; gap: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { list-style: none; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--court);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Ausstattung ---------- */
.feature-list {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
@media (min-width: 640px) {
  .feature-list li:nth-child(odd) { padding-right: var(--gap); }
  .feature-list li:nth-child(even) { padding-left: var(--gap); border-left: 1px solid var(--line); }
}

/* ---------- Was ist Padel ---------- */
.lead-block { max-width: 46rem; }
.lead-block p { font-size: 1.1rem; }

/* ---------- Lage & Anfahrt ---------- */
.route-grid { display: grid; gap: var(--gap); margin-block: 1.75rem 2rem; }
@media (min-width: 760px) { .route-grid { grid-template-columns: 1fr 1fr; } }
.route-grid h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.route-grid ul { display: grid; gap: 0.55rem; }
.route-grid li { padding-left: 1.1rem; border-left: 2px solid var(--court); font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Vorher/Nachher ---------- */
.compare-grid { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .compare-grid { grid-template-columns: repeat(3, 1fr); } }
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-raised);
}
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.35s ease;
}
.compare .after { opacity: 0; }
.compare[data-state="after"] .before { opacity: 0; }
.compare[data-state="after"] .after { opacity: 1; }
.compare-caption { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; }
.compare-caption span { font-weight: 600; font-size: 0.95rem; }
.toggle-pair { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.toggle-pair button {
  background: var(--paper); border: none; padding: 0.3em 0.75em; font-size: 0.82rem;
  font-weight: 600; font-family: var(--font-body); cursor: pointer; color: var(--ink-soft);
}
.toggle-pair button[aria-pressed="true"] { background: var(--court); color: var(--white); }

.gallery-note { margin-top: 2rem; font-size: 0.88rem; color: var(--ink-soft); }
.gallery-grid { display: grid; gap: 0.75rem; margin-top: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Vorregistrieren ---------- */
.register-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 860px) { .register-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.form-status { display: none; padding: 0.9rem 1rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-size: 0.95rem; }
.form-status.is-visible { display: block; }
.form-status.ok { background: #23433f; color: #d9f2c4; }
.form-status.error { background: #4a2323; color: #f5d0d0; }
.field { margin-bottom: 1.1rem; display: grid; gap: 0.4rem; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field input {
  background: transparent; border: none; border-bottom: 1.5px solid #58585a;
  color: var(--white); font-family: var(--font-body); font-size: 1rem; padding: 0.5em 0.1em;
}
.field input::placeholder { color: #949494; }
.field input:focus { border-color: var(--court-on-dark); }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; margin-bottom: 1.4rem; color: #cbcbcb; }
.checkbox input { margin-top: 0.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { font-size: 0.88rem; margin-top: 1rem; color: #a3a3a3; }

/* ---------- Projekt-Teaser (GmbH-Seite: Verweis auf FAMAX PADEL) ---------- */
.project-teaser {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  display: grid; gap: 1rem;
  max-width: 42rem;
}
.project-teaser .status-badge { margin-bottom: 0; }
.project-teaser h3 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 600; }
.project-teaser p { color: var(--ink-soft); font-size: 1.05rem; }
.project-teaser .btn { margin-right: 0.75rem; margin-top: 0.5rem; }

/* ---------- Editorial: große Aussage (Statement-Band) ---------- */
.statement-band { background: var(--ink); color: var(--white); }
.statement-band .wrap { padding-block: clamp(4rem, 10vw, 7rem); }
.statement-text {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.3; max-width: 26ch;
  color: var(--white);
}
.statement-sub { margin-top: 1.5rem; font-size: 1rem; color: #b3b3b3; max-width: 40ch; }

/* ---------- Prinzipien (editorial, ohne Boxen) ---------- */
.principles { display: grid; gap: clamp(2.25rem, 5vw, 3.25rem); max-width: 46rem; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: baseline; }
.principle-num {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 1.9rem; color: var(--line-strong); line-height: 1;
}
.principle h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; font-family: var(--font-display); }
.principle p { color: var(--ink-soft); font-size: 1rem; max-width: 40ch; }
.principle p a { font-weight: 600; }

/* ---------- Unternehmen / Team / Kontakt ---------- */
.team-grid, .contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.team-grid > div, .contact-grid > div { border-top: 2px solid var(--court); padding-top: 1rem; }
.team-grid .role { font-size: 0.85rem; font-weight: 600; color: var(--court); margin-bottom: 0.3rem; }
.team-grid h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.contact-grid h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.contact-grid a { text-decoration: underline; text-decoration-color: var(--line-strong); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a3a3a3; padding-block: 2.5rem; font-size: 0.9rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-brand { margin: 0; }
.footer-brand .logo-mark { width: 1.7rem; }
.social { display: flex; gap: 1.25rem; }
.social a { text-decoration: none; font-weight: 500; color: #cbcbcb; }
.social a:hover { color: var(--white); }
.site-footer p { margin: 0.3rem 0; }
.site-footer a { text-decoration: underline; text-decoration-color: #4a4a4a; }

/* ---------- Legal pages (Impressum/Datenschutz) ---------- */
.legal-page main { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.35rem; margin-block: 2rem 0.75rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page .placeholder { background: #fff2c9; color: #5c4a12; padding: 0.1em 0.4em; border-radius: var(--radius); font-weight: 600; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal-page .back-link { display: inline-block; margin-bottom: 2rem; font-weight: 600; }
