/* ============================================================
   TurnierZone – Design System
   Identität: Das Marken-Schild. Tiefes Marineblau als Basis,
   kräftiges Logo-Grün als Akzent, Weiß für Klarheit.
   Abgeleitet direkt aus Logo und Markenauftritt.
   Display: Oswald (kondensiert, Stadiondurchsage).
   Body: Inter (klar, app-tauglich).
   ============================================================ */

:root {
  /* Markenfarben (aus Logo) */
  --navy:       #092c40;   /* Marine-Tiefblau – Markenbasis */
  --navy-2:     #0d3a54;   /* etwas heller, für Verläufe/Hover */
  --navy-3:     #11486a;   /* helles Marineblau */
  --navy-deep:  #061f2e;   /* dunkler, für Tiefe */

  --grass:      #092c40;   /* Alias → Marineblau (Hauptflächen, Header) */
  --grass-2:    #0d3a54;   /* Alias → helleres Marineblau (Hover) */
  --grass-3:    #3ec17c;   /* Logo-Grün (Akzent, Links, Aktiv) */
  --grass-pale: #e8f7ef;   /* zartes Grün (Icon-Flächen) */

  --green:      #3ec17c;   /* kräftiges Logo-Grün */
  --green-2:    #34a86b;   /* dunkleres Grün (Hover auf Grün) */
  --green-soft: #e8f7ef;   /* heller grüner Hintergrund */

  --chalk:      #f4f7f9;   /* heller, leicht kühler Seitenhintergrund */
  --line:       #dde6ec;   /* Linienfarbe (kühl) */
  --whistle:    #3ec17c;   /* Akzent → Logo-Grün (statt Orange) */
  --whistle-2:  #6fd89b;   /* helleres Grün (Akzent-Variante) */
  --ink:        #0f1f2a;   /* fast schwarz, leicht blaustichig */
  --ink-2:      #4a5d6b;   /* gedämpfter Text (kühl) */
  --card:       #ffffff;
  --danger:     #d64545;
  --info:       #11486a;
  --alert:      #ff7a18;   /* Signal-Orange – nur für Hinweise/Badges/Demo */

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 2px 8px rgba(9,44,64,.08);
  --shadow-lg:  0 12px 44px rgba(9,44,64,.18);
  --maxw:       1140px;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Typografie ---- */
h1,h2,h3,h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.display {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
@media (max-width: 640px){ .section { padding: 36px 0; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 14px rgba(6,31,46,.25);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 21px; text-transform: uppercase; letter-spacing: .03em;
  color: #fff;
  flex-shrink: 0;            /* Brand wird nie gequetscht */
  white-space: nowrap;       /* Schriftzug bricht nicht um */
}
.brand-logo {
  height: 40px; width: auto; display: block;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--green);
  display: grid; place-items: center;
  font-size: 17px;
}
.nav {
  display: flex; gap: 2px; margin-left: auto; align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  padding: 8px 11px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #cfe3ee;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.cta {
  background: var(--green); color: #fff; font-weight: 600;
}
.nav a.cta:hover { background: var(--green-2); }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; margin-left: auto; cursor: pointer; }

/* Volle Navigation nur auf großen Screens – sonst Burger-Menü
   (verhindert, dass der Schriftzug mit den Links überlappt) */
@media (max-width: 1180px){
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--navy-deep); padding: 10px;
    gap: 2px; box-shadow: 0 12px 30px rgba(6,31,46,.4); border-top: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .nav a { width: 100%; font-size: 15px; padding: 11px 14px; }
  .burger { display: block; }
}

/* "Finden"-Dropdown in der Navigation */
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none; cursor: pointer; padding: 8px 11px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #cfe3ee; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; user-select: none;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: "▾"; font-size: 11px; opacity: .8; }
.nav-drop > summary:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-drop[open] > summary { background: rgba(255,255,255,.1); color: #fff; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; margin-top: 4px; z-index: 60;
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 6px; min-width: 210px;
  box-shadow: 0 12px 30px rgba(6,31,46,.45); display: flex; flex-direction: column;
}
.nav-drop-menu a { width: 100%; }
@media (max-width: 1180px){
  .nav-drop { width: 100%; }
  .nav-drop-menu { position: static; box-shadow: none; margin-top: 2px;
    background: rgba(255,255,255,.06); border: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 75% 0%, rgba(62,193,124,.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(62,193,124,.12) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding: 76px 0 88px;
}
/* feines Liniengitter als Textur (dezent, kein Streifenmuster) */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, #000 40%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  text-transform: uppercase; font-weight: 700;
  max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero h1 .accent { color: var(--green); }
.hero p.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 46ch; margin-top: 16px; color: #cfe3ee;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-badge {
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
  border: 1px solid rgba(62,193,124,.35);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
}

/* ============================================================
   SUCHLEISTE
   ============================================================ */
.search-card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; margin-top: 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px;
  position: relative; z-index: 3;
}
.search-card label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-2); margin-bottom: 5px;
}
.search-card input, .search-card select {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  background: var(--chalk); color: var(--ink);
}
.search-card input:focus, .search-card select:focus {
  outline: none; border-color: var(--grass-3);
}
.search-card .btn-search {
  align-self: end; background: var(--whistle); color: #fff; border: 0;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .15s;
}
.search-card .btn-search:hover { background: var(--green-2); }
@media (max-width: 860px){ .search-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .search-card { grid-template-columns: 1fr; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 0;
  font-weight: 600; font-size: 15px; transition: all .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-2); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ============================================================
   FEATURE-KACHELN (Module)
   ============================================================ */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px){ .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .modules { grid-template-columns: 1fr; } }
.module {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-align: left;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--grass-3); }
.module .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-size: 24px; background: var(--grass-pale); margin-bottom: 12px;
}
.module h3 { font-size: 18px; margin-bottom: 6px; }
.module p { font-size: 14px; color: var(--ink-2); }

/* ============================================================
   TURNIER-KARTEN
   ============================================================ */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px){ .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .t-grid { grid-template-columns: 1fr; } }
.t-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.t-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.t-card .head {
  padding: 14px 16px; background: var(--grass); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.t-card .sport { font-size: 22px; }
.t-card .date-chip {
  background: var(--whistle); color: #fff; border-radius: 8px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2;
}
.t-card .body { padding: 16px; flex: 1; }
.t-card .cat { font-size: 12px; font-weight: 700; color: var(--grass-3);
  text-transform: uppercase; letter-spacing: .03em; }
.t-card h3 { font-size: 18px; margin: 4px 0 8px; }
.t-card .meta { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.t-card .foot {
  padding: 12px 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.t-card .slots { font-size: 13px; font-weight: 600; }
.slots.free { color: var(--grass-3); }
.slots.full { color: var(--danger); }

/* Belegungsbalken */
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--grass-3); }
.bar.full > span { background: var(--whistle); }

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--grass-pale); color: var(--grass);
}
.chip.accent { background: #fff0e3; color: var(--whistle); }
.chip.info   { background: #e6f0ff; color: var(--info); }

/* ============================================================
   FORMS (Login, Registrierung, Turnier anlegen)
   ============================================================ */
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  max-width: 460px; margin: 0 auto; box-shadow: var(--shadow);
}
.form-card.wide { max-width: 720px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  background: var(--chalk); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--grass-3);
}
.field .hint { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .field-row { grid-template-columns: 1fr; } }

/* ============================================================
   FLASH / ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: 14px; border: 1px solid transparent;
}
.alert-info    { background: #e6f0ff; color: #00407e; border-color: #b9d4f7; }
.alert-success { background: var(--grass-pale); color: var(--grass); border-color: #b3ddc4; }
.alert-error   { background: #fdecea; color: var(--danger); border-color: #f5c6c0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink); color: #b7c4bc; padding: 44px 0 28px; margin-top: 60px;
}
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px){ .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 12px; }
.site-footer a { display: block; font-size: 14px; padding: 4px 0; color: #b7c4bc; }
.site-footer a:hover { color: var(--whistle); }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px;
  font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---- Section-Köpfe ---- */
.section-head { margin-bottom: 28px; }
.section-head .eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--whistle); margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(24px, 4vw, 34px); text-transform: uppercase; }
.section-head p { color: var(--ink-2); margin-top: 8px; max-width: 56ch; }

/* ---- Werbebanner-Platzhalter (inaktiv) ---- */
.ad-slot { display: none; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.muted { color: var(--ink-2); }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
