/* Live Ranking – Webseite. Keine externen Schriften oder Skripte (Datenschutz). */

:root {
  --court: #0d3b2a;
  --court-2: #145238;
  --ball: #d7f24b;
  --clay: #e07a3f;
  --hard: #2f6fe4;
  --bg: #f5f7f2;
  --card: #ffffff;
  --text: #0b1a12;
  --muted: #5d6b63;
  --line: #e2e8e1;
  --todo-bg: #fff3a3;
  --todo-text: #5c4a00;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(13, 59, 42, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07110c;
    --card: #101c16;
    --text: #eef4ef;
    --muted: #93a39a;
    --line: #1f2d26;
    --todo-bg: #4a4100;
    --todo-text: #fff3a3;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07110c;
  --card: #101c16;
  --text: #eef4ef;
  --muted: #93a39a;
  --line: #1f2d26;
  --todo-bg: #4a4100;
  --todo-text: #fff3a3;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Sportliche Überschriften: kursiv, fett, eng */
h1, h2, h3, .brand {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* Platzhalter, die vor dem Veröffentlichen ersetzt werden müssen */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 6px;
  padding: 0 6px;
  font-style: normal;
  font-weight: 700;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--court);
  color: #f2f7f3;
  /* Platzlinien als Hintergrundmotiv */
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.14) calc(50% - 1px), rgba(255,255,255,.14) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(62% - 1px), rgba(255,255,255,.10) calc(62% - 1px), rgba(255,255,255,.10) calc(62% + 1px), transparent calc(62% + 1px)),
    radial-gradient(1200px 500px at 85% -10%, var(--court-2), transparent 60%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(215, 242, 75, 0.14);
  color: var(--ball);
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 4px rgba(255,77,77,.25); }
.hero h1 { font-size: clamp(42px, 7vw, 76px); margin: 18px 0 16px; text-wrap: balance; }
.hero h1 em { color: var(--ball); font-style: italic; }
.hero p.lead { font-size: 20px; color: #c7d8cd; max-width: 34em; margin: 0 0 28px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 16px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ball { background: var(--ball); color: var(--court); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.35); color: #f2f7f3; }
.btn-ball svg { width: 20px; height: 20px; }
.soon { font-size: 14px; color: #9fbcaa; }

.phone {
  justify-self: center;
  width: min(300px, 80vw);
  border-radius: 44px;
  padding: 10px;
  background: #050a07;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #26332c;
  transform: rotate(4deg);
}
.phone img { border-radius: 36px; }

/* Tennisball-Deko */
.ball {
  position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ecff7a, var(--ball) 55%, #a9c41f);
  opacity: .18;
}

/* ---------- Abschnitte ---------- */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 19px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.feature .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 14px; color: #fff;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.i-green { background: var(--court-2); }
.i-ball { background: var(--ball); color: var(--court) !important; }
.i-clay { background: var(--clay); }
.i-hard { background: var(--hard); }

/* Screenshots */
.shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center;
  gap: 40px; align-items: start;
}
.shot { text-align: center; }
.shot img {
  border-radius: 30px; box-shadow: var(--shadow); border: 6px solid #050a07; margin: 0 auto 12px;
}
.shot span { font-weight: 800; font-style: italic; }
.shot:nth-child(2) { margin-top: 36px; }

/* Band mit Kennzahlen */
.band { background: var(--ball); color: var(--court); padding: 34px 0; }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; text-align: center; }
.band strong { display: block; font-size: 34px; font-style: italic; font-weight: 900; line-height: 1; }
.band span { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* Spenden */
.support-band {
  background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.support-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 48px;
}
.support-band .text { flex: 1 1 380px; min-width: 0; }
.support-band h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.support-band p { margin: 0; color: var(--muted); }
.btn-donate { background: var(--court); color: var(--ball); }
.btn-donate svg { width: 20px; height: 20px; }
.footer-donate { color: var(--text) !important; }

/* ---------- Textseiten (Datenschutz, Impressum, Support) ---------- */
.page-head { background: var(--court); color: #f2f7f3; padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 8px; }
.page-head p { margin: 0; color: #c7d8cd; }
.page-head .lang { margin-top: 14px; font-size: 15px; }
.page-head .lang a { color: var(--ball); font-weight: 700; }

.prose {
  max-width: 760px; margin: 0 auto; padding-block: 48px 80px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.prose h2 { font-size: 28px; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .note {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ball);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }

details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; margin: 12px 0;
}
details.faq summary { cursor: pointer; font-weight: 800; list-style: none; }
details.faq summary::after { content: "+"; float: right; font-weight: 900; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer .disclaimer { flex-basis: 100%; font-size: 13px; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; text-align: left; }
  .phone { transform: rotate(2deg); margin-top: 8px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  .shots { grid-template-columns: minmax(0, 280px); gap: 32px; }
  .shot:nth-child(2) { margin-top: 0; }
  section { padding: 56px 0; }
}
