/* ==========================================================================
   Tennisschule Bodensee – Stylesheet
   ========================================================================== */

/* --- Schriftart lokal (Inter, Variable, SIL Open Font License 1.1) ------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design Tokens ------------------------------------------------------- */
:root {
  /* Markenfarben, abgeleitet aus dem Logo (Tennisball + Bodensee-Silhouette) */
  --lake-900: #072f47;
  --lake-800: #0b3f5e;
  --lake-700: #10557b;
  --lake-600: #167ba8;
  --lake-500: #1f92c9;
  --lake-100: #e3f2fa;
  --lake-050: #f2f9fd;

  --ball-500: #cfe12a;
  --ball-400: #dcec4e;
  --ball-100: #f6fad2;

  --ink: #16232b;
  --ink-soft: #4a5b66;
  --line: #dfe7ec;
  --bg: #ffffff;
  --bg-alt: var(--lake-050);

  --radius: 14px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(7, 47, 71, .06), 0 4px 14px rgba(7, 47, 71, .06);
  --shadow-md: 0 10px 40px rgba(7, 47, 71, .12);

  --header-h: 76px;
  --wrap: 1140px;

  --ff: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Fluid Type Scale */
  --fs-hero: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  --fs-lead: clamp(1.02rem, .97rem + .35vw, 1.18rem);
}

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

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

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }

h1, h2, h3, h4 {
  line-height: 1.18; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em;
  overflow-wrap: break-word; hyphens: auto;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lake-600); text-underline-offset: 3px; }
a:hover { color: var(--lake-800); }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--lake-800); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Layout Helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: linear-gradient(180deg, var(--lake-050), #fff); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lead); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lake-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--ball-500); }
.section-head--center .eyebrow::before { display: none; }
.section-head--center .eyebrow { background: var(--lake-100); padding: .38rem .9rem; border-radius: 999px; }

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

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--lake-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--lake-700); color: #fff; box-shadow: var(--shadow-md); }

.btn--ball { background: var(--ball-500); color: var(--lake-900); box-shadow: var(--shadow-sm); }
.btn--ball:hover { background: var(--ball-400); color: var(--lake-900); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: var(--lake-600); color: var(--lake-700); background: transparent; }
.btn--ghost:hover { background: var(--lake-600); color: #fff; }

.btn--light { background: #fff; color: var(--lake-800); }
.btn--light:hover { color: var(--lake-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Header / Navigation ------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 22px rgba(7, 47, 71, .07); }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1.15; }
.brand__sub { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lake-600); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem;
  padding: .35rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--ball-500); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--lake-700); }
.nav .btn { padding: .72rem 1.25rem; font-size: .92rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  background: linear-gradient(160deg, #f4fbff 0%, #e6f4fb 45%, #f8fcdf 100%);
}
.hero::before,
.hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.hero::before {
  width: 620px; height: 620px; right: -220px; top: -190px;
  background: radial-gradient(circle at 35% 35%, rgba(207, 225, 42, .5), rgba(207, 225, 42, 0) 68%);
}
.hero::after {
  width: 560px; height: 560px; left: -200px; bottom: -240px;
  background: radial-gradient(circle at 60% 40%, rgba(31, 146, 201, .32), rgba(31, 146, 201, 0) 70%);
}

.hero__grid { display: grid; gap: clamp(2.2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1.08fr .92fr; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { background: linear-gradient(180deg, transparent 62%, var(--ball-400) 62%); padding-inline: .08em; }
.hero__text { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 56ch; }
.hero .btn-row { margin-top: 1.9rem; }

.hero__facts { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: 2.6rem; }
.fact strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; color: var(--lake-700); line-height: 1.1; }
.fact span { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

.hero__media { position: relative; }
.hero__media picture { height: 100%; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero__badge {
  position: absolute; bottom: -22px; left: -18px;
  display: flex; align-items: center; gap: .7rem;
  background: #fff; padding: .85rem 1.15rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md); font-size: .9rem; font-weight: 700; color: var(--lake-800);
  max-width: 82%;
}
.hero__badge img { width: 40px; height: 40px; border-radius: 50%; box-shadow: none; aspect-ratio: 1; }
.hero__badge span { font-weight: 500; color: var(--ink-soft); display: block; font-size: .8rem; }

/* --- Cards / Grids ------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #a9d3e8; }
.card h3 { hyphens: auto; }
.card p { color: var(--ink-soft); overflow-wrap: break-word; }
.card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem;
  border-radius: 16px; background: var(--lake-100); color: var(--lake-700);
}
.card__icon svg { width: 26px; height: 26px; }
.card--ball .card__icon { background: var(--ball-100); color: #71801a; }

/* --- Split (Text + Bild) ------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split__media--contain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.split__media--contain img { box-shadow: none; border-radius: 8px; }

/* --- Zitat --------------------------------------------------------------- */
.quote {
  position: relative; margin: 0; padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem);
  background: #fff; border-left: 5px solid var(--ball-500); border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.quote p { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); font-weight: 500; font-style: italic; color: var(--ink); }
.quote footer { font-size: .88rem; font-weight: 700; color: var(--ink-soft); font-style: normal; }

/* --- Check-Listen -------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
/* Das Haekchen liegt absolut, damit der Text als normaler Flow laeuft.
   NICHT auf display:flex umstellen - dann wird jedes <strong> im <li> zu einem
   eigenen Flex-Item, bekommt den gap dazwischen und bricht separat um. */
.checklist li { position: relative; padding-left: 2.1rem; margin: 0; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ball-500) url("check-ink.svg") center / 13px no-repeat;
}
.checklist--blue li::before { background-color: var(--lake-500); background-image: url("check-white.svg"); }
.checklist strong { color: var(--ink); }

/* --- Video --------------------------------------------------------------- */
.video-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--lake-900);
}
.video-frame > iframe,
.video-frame > .video-poster { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-poster { position: relative; padding: 0; border: 0; cursor: pointer; background: none; }
.video-poster picture { height: 100%; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-poster::after {
  content: ""; position: absolute; inset: 0; background: rgba(7, 47, 71, .3);
  transition: background-color .2s ease;
}
.video-poster:hover::after { background: rgba(7, 47, 71, .16); }
.video-poster__play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; z-index: 2;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ball-500); color: var(--lake-900); box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.video-poster:hover .video-poster__play { transform: scale(1.08); }
.video-poster__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-note { font-size: .85rem; color: var(--ink-soft); margin-top: .9rem; text-align: center; }

/* --- Kontakt / CTA ------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--lake-800), var(--lake-600));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
}
.cta::after {
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; bottom: -200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(207, 225, 42, .35), transparent 70%);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .86); font-size: var(--fs-lead); max-width: 60ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 1.8rem; }

.contact-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card__icon { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--lake-100); color: var(--lake-700); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p, .contact-card a { font-size: .96rem; color: var(--ink-soft); margin: 0; word-break: break-word; }
.contact-card a { font-weight: 600; color: var(--lake-700); }

/* --- Rechtstexte --------------------------------------------------------- */
.legal { padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem)); }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-top: 2.4rem; }
.legal h3 { margin-top: 1.8rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .address { font-style: normal; background: var(--bg-alt); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; }
.legal .source { font-size: .85rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--lake-900); color: rgba(255, 255, 255, .74); padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--ball-400); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 2.4rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: var(--ball-400); }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-note { font-size: .95rem; margin-top: 1rem; max-width: 40ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.4rem; font-size: .85rem;
}

/* --- Scroll-to-Top ------------------------------------------------------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--lake-700); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background-color .18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--lake-800); }
.to-top svg { width: 20px; height: 20px; }

/* --- Reveal-Animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .hero__badge { left: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .6rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: .95rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1rem; width: 100%; padding: .95rem 1.2rem; }
}

@media (max-width: 620px) {
  :root { --header-h: 68px; }
  .grid--2, .grid--3, .grid--4, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand__name { font-size: .95rem; }
  .btn-row .btn { width: 100%; }
  .hero__facts { gap: 1.2rem 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .nav-toggle { display: none !important; }
  body { color: #000; }
}

/* --- Fallback ohne JavaScript -------------------------------------------- */
.no-js .reveal { opacity: 1; transform: none; }
