:root {
  --brand: #006680;
  --brand-dark: #004653;
  --ink: #172126;
  --muted: #5f6c72;
  --line: #d8e3e5;
  --paper: #ffffff;
  --soft: #f3f8f8;
  --cream: #efe5ae;
  --green: #38aa00;
  --orange: #e05b00;
  --red: #8f1e20;
  --gray: #a9a9a9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-hero {
  background: var(--brand-dark);
}

.site-hero img {
  width: 100%;
  min-height: 240px;
  object-fit: cover;
}

main {
  overflow: hidden;
}

.section {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.compact {
  width: min(820px, calc(100% - 32px));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 4.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  line-height: 1.18;
}

.intro-copy {
  display: grid;
  gap: 16px;
  max-width: 920px;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
}

.video-section {
  padding-top: 32px;
}

.section-heading {
  max-width: 760px;
}

.video-frame {
  position: relative;
  width: min(520px, 100%);
  margin: 26px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #001c23;
  box-shadow: 0 18px 40px rgba(0, 74, 90, 0.18);
}

.video-frame::before {
  content: "";
  display: block;
  aspect-ratio: 9 / 16;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.legend {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

.legend-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.legend-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legend-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.swatch {
  width: 48px;
  height: 34px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.swatch-green {
  background: var(--green);
}

.swatch-orange {
  background: var(--orange);
}

.swatch-red {
  background: var(--red);
}

.swatch-gray {
  background: var(--gray);
}

.map-note {
  margin: 20px 0 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.update {
  text-align: center;
}

.update p:last-child,
.about p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.ad-slot {
  width: min(970px, calc(100% - 32px));
  min-height: 92px;
  margin: 10px auto;
  display: grid;
  place-items: center;
  border: 1px dashed #a9bfc5;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 102, 128, 0.08), rgba(56, 170, 0, 0.08)),
    #f7fbfb;
  color: #637378;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.match-list {
  display: grid;
  gap: 12px;
}

.match-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 53, 64, 0.06);
}


.match-card.upcoming {
  border-left-color: var(--green);
}

.match-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.match-card.result h3 {
  font-weight: 400 !important;
}

/* Holt die fette Variante (Bold) der Schriftart Inter gezielt für den Gewinner zurück */
.match-card.result h3 b {
  font-weight: 700 !important;
}

.match-score {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.3;
}

.match-score .separator {
  margin: 0 0.35em;
  color: var(--muted);
  font-weight: 400;
}

.match-score .team {
  font-weight: 500;
}

.match-score .winner {
  font-weight: 800;
}

.match-meta {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  padding: 48px 16px 34px;
  color: #fff;
  text-align: center;
  background: var(--brand-dark);
}

.follow h2 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 112px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.social-links svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.footer-logo {
  width: 88px;
  height: 88px;
  margin: 34px auto 22px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.legal-links a {
  color: #fff;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.legal-page {
  min-height: 100vh;
  background: var(--soft);
}

.legal-shell {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.legal-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
}

@media (min-width: 680px) {
  .section {
    width: min(1100px, calc(100% - 56px));
    padding: 70px 0;
  }

  .compact {
    width: min(820px, calc(100% - 56px));
  }

  .intro-copy {
    grid-template-columns: 1fr 1fr;
  }

  .legend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .match-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.match-card.result h3 {
  font-weight: normal;
}

/* Macht die Buttons im Footer optisch wieder zu normalen Text-Links */
.footer-link-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* Styling für das Popup-Fenster */
#impressum-modal {
    border: none;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Der abgedunkelte Hintergrund hinter dem Popup */
#impressum-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

/* Container im Modal */
.modal-content {
    position: relative;
}

/* Der Schließen-Button oben rechts */
#close-impressum {
    position: absolute;
    top: -15px;
    right: -15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

#close-impressum:hover {
    color: #000;
}

/* Textformatierung im Modal */
#impressum-modal h1 { font-size: 1.6rem; margin-top: 0; margin-bottom: 20px; }
#impressum-modal h2 { font-size: 1.1rem; margin-top: 20px; margin-bottom: 8px; }
#impressum-modal p { margin-bottom: 12px; }
#impressum-modal a { color: #0066cc; text-decoration: none; }
#impressum-modal a:hover { text-decoration: underline; }

/* Das Cookie-Banner unten fixieren */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 550px;
    padding: 24px;
    background: #ffffff;
    font-family: sans-serif;
    color: #333333;
    z-index: 9999;
}

#cookie-banner h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #111;
}

#cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Die Buttons nebeneinander */
.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cookie-buttons button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
    border: none;
}

.btn-primary:hover { background: #0052a3; }

.btn-secondary {
    background: #f0f0f0;
    color: #444;
    border: 1px solid #ccc;
}

.btn-secondary:hover { background: #e0e0e0; }

/* --- Globale Sprachsteuerung für Impressum & Datenschutz --- */

/* Versteckt standardmäßig alle Sprachsektionen in den Modals */
#impressum-modal .legal-language-section,
#privacy-modal .legal-language-section {
    display: none;
}

/* FALLBACK: Wenn keine Sprache im HTML erkannt wird, zeige ENGLISCH */
#impressum-modal .legal-language-section[lang="en"],
#privacy-modal .legal-language-section[lang="en"] {
    display: block;
}

/* WENN HTML AUF DEUTSCH STEHT (:root:lang(de) oder <html lang="de">) */
:root:lang(de) #impressum-modal .legal-language-section[lang="en"],
:root:lang(de) #privacy-modal .legal-language-section[lang="en"] { display: none; }
:root:lang(de) #impressum-modal .legal-language-section[lang="de"],
:root:lang(de) #privacy-modal .legal-language-section[lang="de"] { display: block; }

/* WENN HTML AUF SPANISCH STEHT (:root:lang(es) oder <html lang="es">) */
:root:lang(es) #impressum-modal .legal-language-section[lang="en"],
:root:lang(es) #privacy-modal .legal-language-section[lang="en"] { display: none; }
:root:lang(es) #impressum-modal .legal-language-section[lang="es"],
:root:lang(es) #privacy-modal .legal-language-section[lang="es"] { display: block; }

/* Kleiner optischer Zusatz für den Quellenhinweis */
.legal-source {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #777;
}

/* ==========================================================================
   TOURNEYPLANET - NEW LEGAL ELEMENTS (Cookie-Banner, Impressum & Datenschutz)
   ========================================================================== */

/* --- 1. GRUNDSTYLING FÜR DIE MODALS --- */
#impressum-modal, 
#privacy-modal {
    border: none;
    border-radius: 8px;
    padding: 30px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
    color: #333333;
    line-height: 1.6;
    background: #ffffff;
}

#impressum-modal::backdrop, 
#privacy-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
}

/* Scroll-Bereich für Rechtstexte */
.legal-scroll-area {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
    margin-top: 15px;
}

/* Schließen-Buttons oben rechts */
.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666666;
    line-height: 1;
    z-index: 10;
}

.close-btn:hover {
    color: #000000;
}

/* --- 2. COOKIE-BANNER ELEMENT --- */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 550px;
    padding: 24px;
    background: #ffffff;
    font-family: sans-serif;
    color: #333333;
    z-index: 9999;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cookie-buttons button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary { background: #0066cc; color: #fff; border: none; }
.btn-primary:hover { background: #0052a3; }
.btn-secondary { background: #f0f0f0; color: #444; border: 1px solid #ccc; }
.btn-secondary:hover { background: #e0e0e0; }

/* Buttons im Footer optisch in Textlinks umwandeln */
.footer-link-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.text-link {
    display: inline !important;
    text-decoration: underline;
}

.legal-source {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #777777;
}

/* --- 3. DREISPRACHIGE STEUERUNG (DE, EN, ES) --- */

/* Alle ausblenden */
#cookie-banner [lang],
#impressum-modal .legal-language-section,
#privacy-modal .legal-language-section {
    display: none;
}

/* ENGLISCH ALS STANDARD (Fallback) */
#cookie-banner .cookie-text[lang="en"],
#cookie-banner button [lang="en"],
#impressum-modal .legal-language-section[lang="en"],
#privacy-modal .legal-language-section[lang="en"] {
    display: block;
}
#cookie-banner button[id="cookie-deny"] [lang="en"] {
    display: inline;
}

/* WENN BROWSER / HTML AUF DEUTSCH STEHT (<html lang="de">) */
:root:lang(de) #cookie-banner .cookie-text[lang="en"],
:root:lang(de) #cookie-banner button [lang="en"],
:root:lang(de) #impressum-modal .legal-language-section[lang="en"],
:root:lang(de) #privacy-modal .legal-language-section[lang="en"] { 
    display: none;
}
:root:lang(de) #cookie-banner .cookie-text[lang="de"],
:root:lang(de) #cookie-banner button [lang="de"],
:root:lang(de) #impressum-modal .legal-language-section[lang="de"],
:root:lang(de) #privacy-modal .legal-language-section[lang="de"] { 
    display: block;
}
:root:lang(de) #cookie-banner button[id="cookie-deny"] [lang="de"] {
    display: inline;
}

/* WENN BROWSER / HTML AUF SPANISCH STEHT (<html lang="es">) */
:root:lang(es) #cookie-banner .cookie-text[lang="en"],
:root:lang(es) #cookie-banner button [lang="en"],
:root:lang(es) #impressum-modal .legal-language-section[lang="en"],
:root:lang(es) #privacy-modal .legal-language-section[lang="en"] { 
    display: none;
}
:root:lang(es) #cookie-banner .cookie-text[lang="es"],
:root:lang(es) #cookie-banner button [lang="es"],
:root:lang(es) #impressum-modal .legal-language-section[lang="es"],
:root:lang(es) #privacy-modal .legal-language-section[lang="es"] { 
    display: block;
}
:root:lang(es) #cookie-banner button[id="cookie-deny"] [lang="es"] {
    display: inline;
}

css#cookie-banner [lang],
#impressum-modal .legal-language-section,
#privacy-modal .legal-language-section {
    display: none;
}
