/* KDRapp – Webseite. Gestaltung angelehnt an medipact (Off-White, Playfair +
   Inter, dunkle Kontrastflaechen), Akzent in den Hausfarben der App:
   Rasen-Gruen (court) und Sandplatz-Rot (clay). Schriften selbst gehostet. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: rgba(30, 41, 59, 0.08);
  --deep: #1e293b;
  --night: #020617;
  --court-50: #f1f8f3;
  --court-100: #dcefe1;
  --court-300: #8cc59d;
  --court-500: #3f8f5a;
  --court-600: #2f7347;
  --court-700: #265c3a;
  --clay-50: #fdf5f2;
  --clay-100: #fae7df;
  --clay-500: #c2603b;
  --clay-600: #a84e2d;
  --ball: #d9f264;
  --display: "Playfair Display", ui-serif, Georgia, serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(55% 40% at 50% 0%, rgba(63, 143, 90, 0.08) 0%, transparent 70%),
    radial-gradient(45% 35% at 92% 8%, rgba(194, 96, 59, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}
::selection { background: rgba(63, 143, 90, 0.22); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--court-600); }
a:hover { color: var(--court-700); }

.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: 46rem; margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 2.1rem; height: 2.1rem; }
.brand span { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand span em { font-style: normal; font-weight: 500; color: var(--court-600); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.btn-dark, .nav a.btn-dark:hover { color: #fff; }
.nav .nav-link { display: none; }
@media (min-width: 760px) { .nav .nav-link { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 1rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px) scale(1.01); }
.btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform 0.65s var(--ease);
}
.btn:hover::before { transform: translateX(130%); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--court-600); color: #fff; box-shadow: 0 10px 30px -10px rgba(47, 115, 71, 0.55); }
.btn-primary:hover { background: var(--court-500); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--deep); }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(63, 143, 90, 0.35); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.85rem; border-radius: 0.8rem; }
.store {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1.15rem 0.6rem 0.95rem; border-radius: 0.9rem;
  background: var(--ink); color: #fff; text-decoration: none; line-height: 1.15;
}
.store svg { width: 1.45rem; height: 1.45rem; }
.store small { display: block; font-size: 0.68rem; opacity: 0.7; letter-spacing: 0.02em; }
.store strong { display: block; font-size: 1.02rem; font-weight: 700; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--court-600);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: 0.6; }
.h-hero, .h1, .h2, .h3 { font-family: var(--display); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin: 0; }
.h-hero { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.07; padding-bottom: 0.05em; }
.h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.1; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); line-height: 1.15; }
.h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; }
.h-hero em, .h1 em, .h2 em { font-style: italic; color: var(--court-600); }
.lead { font-size: 1.18rem; color: var(--text); max-width: 34rem; }
.muted { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: 5rem; position: relative; }
@media (min-width: 1024px) { .section { padding-block: 7rem; } }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head .h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; }
.section-white { background: #fff; border-block: 1px solid var(--line); }
.section-dark {
  background-color: var(--deep); color: #e2e8f0;
  background-image:
    radial-gradient(80% 60% at 50% 100%, rgba(63, 143, 90, 0.22) 0%, transparent 70%),
    radial-gradient(40% 40% at 90% 0%, rgba(194, 96, 59, 0.12) 0%, transparent 70%);
}
.section-dark .h2 { color: #fff; }
.section-dark .h2 em { color: var(--court-300); }
.section-dark .eyebrow { color: var(--court-300); }

/* ---------- Hero ---------- */
.hero { padding-top: 4rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .hero { padding-top: 6rem; padding-bottom: 7rem; } }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
.hero .h-hero { margin-top: 1.1rem; }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; align-items: center; }
.hero-note { margin-top: 1.4rem; font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.hero-note span::before { content: "✓"; color: var(--court-500); font-weight: 700; margin-right: 0.4rem; }

/* ---------- Phone mockup ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before {
  content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 143, 90, 0.28), transparent 65%);
  filter: blur(30px); top: 10%; left: 50%; transform: translateX(-50%);
}
.phone {
  position: relative; width: 19rem; max-width: 100%;
  border-radius: 2.8rem; padding: 0.7rem;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: rotate(-2deg);
}
.screen { border-radius: 2.2rem; background: #f6f8f7; overflow: hidden; padding: 1.1rem 0.95rem 1.2rem; font-size: 0.8rem; color: var(--text); }
.notch { width: 5.5rem; height: 1.35rem; border-radius: 1rem; background: #0f172a; margin: -0.35rem auto 0.9rem; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.app-top b { font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.chip { display: inline-block; font-size: 0.66rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 99px; background: var(--court-100); color: var(--court-700); }
.chip-clay { background: var(--clay-100); color: var(--clay-600); }
.card { background: #fff; border-radius: 1rem; padding: 0.85rem; border: 1px solid var(--line); box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.25); margin-bottom: 0.65rem; }
.card-title { font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.card-sub { color: var(--muted); font-size: 0.72rem; margin-top: 0.1rem; }
.bar { height: 0.45rem; border-radius: 99px; background: #e2e8f0; margin-top: 0.6rem; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .yes { background: var(--court-500); width: 62%; }
.bar .no { background: var(--clay-500); width: 13%; }
.legend { display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.68rem; color: var(--muted); }
.lineup { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.lineup li { display: flex; align-items: center; gap: 0.55rem; padding: 0.38rem 0; border-top: 1px solid #f1f5f9; }
.lineup li:first-child { border-top: 0; }
.pos { width: 1.35rem; height: 1.35rem; border-radius: 0.45rem; background: var(--court-50); color: var(--court-700); font-weight: 800; font-size: 0.68rem; display: grid; place-items: center; }
.lineup .name { flex: 1; color: var(--ink); font-weight: 600; font-size: 0.78rem; }
.lk { font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.push {
  position: absolute; right: -0.5rem; top: 2.2rem; width: 14.5rem;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem; padding: 0.7rem 0.8rem; font-size: 0.72rem; border: 1px solid var(--line);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35); transform: rotate(2deg);
  display: none;
}
@media (min-width: 520px) { .push { display: block; right: -2.5rem; } }
.push b { color: var(--ink); display: flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; }
.push b img { width: 1rem; height: 1rem; }

/* ---------- Strip ---------- */
.strip { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 560px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip div { background: rgba(255,255,255,0.85); padding: 1.2rem 1.3rem; }
.strip b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--ink); font-weight: 600; }
.strip span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Feature cards ---------- */
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.surface {
  position: relative; overflow: hidden; border-radius: 1.5rem; padding: 1.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(30, 41, 59, 0.07);
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.04), 0 10px 40px -10px rgba(30, 41, 59, 0.08);
  transition: all 0.3s var(--ease);
}
.surface:hover { transform: translateY(-3px); border-color: rgba(63, 143, 90, 0.28); box-shadow: 0 20px 40px -15px rgba(63, 143, 90, 0.16), 0 0 0 1px rgba(63, 143, 90, 0.1); }
.icon { width: 2.8rem; height: 2.8rem; border-radius: 0.9rem; display: grid; place-items: center; background: var(--court-50); color: var(--court-600); margin-bottom: 1.2rem; border: 1px solid var(--court-100); }
.icon.clay { background: var(--clay-50); color: var(--clay-600); border-color: var(--clay-100); }
.icon svg { width: 1.35rem; height: 1.35rem; }
.surface p { margin: 0.6rem 0 0; font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.8rem; border-radius: 1.5rem; border: 1px solid var(--line); background: rgba(255,255,255,0.6); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--court-500); opacity: 0.85;
  display: block; margin-bottom: 1rem;
}
.step p { margin: 0.5rem 0 0; font-size: 0.97rem; }

/* ---------- Promise (dark) ---------- */
.promise { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .promise { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.promise-list { display: grid; gap: 1rem; }
.promise-item { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 1.25rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.promise-item b { color: #fff; display: block; font-size: 1.02rem; }
.promise-item span { color: #94a3b8; font-size: 0.95rem; }
.promise-item .dot { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; display: grid; place-items: center; background: rgba(63, 143, 90, 0.2); color: var(--court-300); }
.promise-item .dot svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #fff; }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,0.1); padding-block: 3.5rem; }
.footer-cta p.kicker { margin: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; color: var(--court-300); }
.footer-cta h2 { margin: 1rem 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.2; max-width: 36rem; letter-spacing: -0.02em; }
.footer-cta h2 em { color: var(--court-300); }
.footer-main { padding-block: 3rem; display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-main h4 { margin: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: #cbd5e1; }
.footer-main ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.footer-main a { color: #94a3b8; text-decoration: none; transition: color 0.2s; font-size: 0.95rem; }
.footer-main a:hover { color: #fff; }
.footer-brand p { color: #94a3b8; margin: 0.9rem 0 0; font-size: 0.95rem; max-width: 22rem; }
.footer-brand .brand span { color: #fff; }
.footer-brand .brand span em { color: var(--court-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.5rem; font-size: 0.85rem; color: #64748b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Legal / Text-Seiten ---------- */
.page { padding-block: 4.5rem 6rem; }
.page .h1 { margin-top: 0.9rem; }
.page .intro { margin: 0.8rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.block { margin-top: 2.6rem; }
.block h2 { margin: 0 0 0.8rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: #94a3b8; }
.block h3 { margin: 1.4rem 0 0.4rem; font-size: 1rem; color: var(--ink); }
.block p, .block li { margin: 0.5rem 0 0; }
.block ul { padding-left: 1.2rem; margin: 0.5rem 0 0; }
.block .strong { color: var(--ink); font-weight: 600; }
.panel { margin-top: 1.5rem; padding: 1.4rem 1.5rem; border-radius: 1.25rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 40px -20px rgba(30, 41, 59, 0.12); }
.panel p:first-child { margin-top: 0; }
.todo { background: #fff3cd; color: #664d03; padding: 0 0.3rem; border-radius: 0.3rem; }
.faq { display: grid; gap: 0.8rem; margin-top: 1rem; }
.faq details { border-radius: 1.1rem; background: #fff; border: 1px solid var(--line); padding: 1.1rem 1.3rem; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(63, 143, 90, 0.3); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--court-600); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.7rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .phone, .push { transform: none; }
}
