/* Elf & Ordnung – Grün/Terracotta-Design
   Dunkles Grasgrün als Grundton, Terracotta als Komplement-Akzent.
   Für generierte Seiten und manuelle Static-Seiten. */

:root {
  --bg: #0E3A19;
  --bg-deep: #002F0C;
  --bg-elev: #13381D;
  --card: #073713;
  --card-soft: #0B3315;

  --text: #F2EBDD;
  --text-soft: #E3D8C8;
  --muted: #C7B9A7;

  --line: rgba(147, 47, 34, 0.38);
  --line-soft: rgba(208, 107, 76, 0.20);

  --accent: #932F22;
  --accent-strong: #B54A34;
  --accent-warm: #D06B4C;
  --accent-soft: rgba(147, 47, 34, 0.18);

  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);

  --page-gradient-height: 2258px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  body {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;

  /*
     Der Verlauf hat eine feste Designhoehe und wird dadurch nicht mehr
     auf die jeweilige Dokumenthoehe gestreckt. So sehen kurze Uebersichten
     und lange Dossiers im Kopfbereich farblich identisch aus.
  */
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at top left, rgba(147, 47, 34, 0.18), transparent 30%),
    linear-gradient(180deg, #13381D 0%, #0E3A19 42%, #002F0C 100%);
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% var(--page-gradient-height),
    100% var(--page-gradient-height);

  color: var(--text);
  line-height: 1.68;
}

a {
  color: inherit;
  text-underline-offset: .14em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 4rem;
}

.wrap.reading {
  max-width: 860px;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
  margin-bottom: 2.2rem;
}

/* Navigation */
.topbar,
.header-links,
.topnav {
  display: flex;
  gap: .9rem 1.1rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font: 700 .95rem/1.45 Arial, Helvetica, sans-serif;
}

.topbar a,
.header-links a,
.topnav a,
.links-row a,
.footer-links a {
  color: var(--accent-warm);
  text-decoration: none;
}

.topbar a:hover,
.header-links a:hover,
.topnav a:hover,
.links-row a:hover,
.footer-links a:hover,
a.card:hover .meta,
a.card:hover h3,
a.card:hover h2 {
  color: var(--text);
  text-decoration: underline;
}

/* Mobile Hamburger-Menü */
.mobile-menu {
  display: none;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  color: var(--accent-warm);
  font: 800 .98rem/1.45 Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
  user-select: none;
  width: fit-content;
  padding: .22rem 0;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::before {
  content: "☰";
  display: inline-block;
  margin-right: .45rem;
  color: var(--accent-warm);
}

.mobile-menu[open] summary {
  color: var(--text);
}

.mobile-menu-links {
  display: grid;
  gap: .45rem;
  margin-top: .65rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(208, 107, 76, 0.42);
  border-radius: 16px;
  background: rgba(0, 47, 12, 0.86);
  box-shadow: var(--shadow);
}

.mobile-menu-links a {
  color: var(--accent-warm);
  text-decoration: none;
  font: 800 .98rem/1.4 Arial, Helvetica, sans-serif;
}

.mobile-menu-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Typografie */
.kicker {
  font: 700 .84rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  color: var(--muted);
}

.kicker-below { margin-top: .95rem; }

h1 {
  margin: 0;
  font-size: clamp(1.95rem, 3.35vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 980px;
  color: #F2EBDD;
}

.site-title,
h1.site-title {
  color: #F2EBDD;
}

.subtitle {
  margin-top: .8rem;
  max-width: 52rem;
  font-size: 1.08rem;
  color: var(--text-soft);
}

p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
}

.lead {
  max-width: 48rem;
  font-size: 1.18rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

section { margin-top: 2.35rem; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.section-head .meta {
  margin: 0;
  color: var(--accent-warm);
}

h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--accent-warm);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--accent-warm);
}

strong { color: var(--text); }
em { color: var(--text-soft); }

/* Layout / Karten */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(0,0,0,0.08)),
    var(--card);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: var(--shadow);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

a.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-warm);
  background:
    linear-gradient(180deg, rgba(147, 47, 34, 0.22), rgba(0,0,0,0.04)),
    var(--bg-elev);
}

.card h2,
.card h3 {
  margin: 0 0 .55rem;
  color: var(--accent-warm);
}

.card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.meta {
  color: var(--muted);
  font: 700 .82rem/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}

.panel,
.soft,
.box,
.mini {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.075)),
    var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}

.box { margin: 1.1rem 0 1.6rem; }

.soft p:last-child,
.panel p:last-child,
.box p:last-child,
.mini p:last-child {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* Analyse-Elemente */
.pills {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin: .9rem 0 0;
}

.pill {
  color: var(--text-soft);
  font: 600 .86rem/1.3 Arial, Helvetica, sans-serif;
  border: 1px solid rgba(208, 107, 76, 0.36);
  border-radius: 999px;
  padding: .35rem .65rem;
  background: rgba(255,255,255,.025);
}

.kicker-inline {
  display: inline-block;
  color: var(--accent-warm);
  font: 700 .88rem/1.2 Arial, Helvetica, sans-serif;
}

.scoreline {
  font-size: 1.24rem;
  color: var(--text);
  margin-bottom: .85rem;
}

.system-list {
  list-style: none;
  padding-left: 0;
  margin: .75rem 0 0;
}

.system-list li {
  padding: .5rem 0;
  border-top: 1px solid rgba(208, 107, 76, .16);
  margin: 0;
}

.system-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.match-line { display: block; }

.function-note {
  margin: .28rem 0 0;
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.48;
}

.source-note {
  margin: .18rem 0 0;
  color: var(--muted);
  font: 500 .82rem/1.35 Arial, Helvetica, sans-serif;
}

/* Systemisches Fazit */
.system-conclusion .soft { margin-top: 1rem; }
.system-conclusion h3 { margin: 0 0 .65rem; }
.system-conclusion .closing { margin-top: .75rem; }

.verdict-table {
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0 1rem;
  font-size: 1rem;
}

.verdict-table th,
.verdict-table td {
  text-align: left;
  vertical-align: top;
  padding: .55rem .45rem;
  border-top: 1px solid rgba(208, 107, 76, .16);
}

.verdict-table th {
  color: var(--accent-warm);
  font: 800 .82rem/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.verdict-table tr:first-child th { border-top: 0; }
.verdict-overall { margin-top: .55rem; }

/* Listen / Footer */
ul {
  padding-left: 1.15rem;
  margin: .6rem 0 0;
}

li { margin-bottom: .34rem; }

footer {
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .96rem;
}

.links-row {
  display: flex;
  gap: .9rem 1rem;
  flex-wrap: wrap;
  margin-top: .9rem;
  font: 700 .95rem/1.45 Arial, Helvetica, sans-serif;
}

.note {
  font: 500 .94rem/1.45 Arial, Helvetica, sans-serif;
  color: var(--muted);
}

.muted { color: var(--muted); }

.legal-copy p,
.legal-copy li {
  font-size: 1rem;
}

blockquote {
  margin: 1rem 0;
  padding: .8rem 1rem;
  border-left: 4px solid var(--accent-warm);
  background: rgba(147, 47, 34, 0.14);
  color: var(--text-soft);
}

/* Mobile */
@media (max-width: 900px) {
  h1 {
    font-size: clamp(1.85rem, 5.8vw, 2.65rem);
    line-height: 1.12;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .desktop-nav { display: none; }

  .mobile-menu {
    display: block;
    margin: 0 0 1rem;
  }

  h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    line-height: 1.14;
    letter-spacing: -.015em;
    max-width: 100%;
  }

  header {
    margin-bottom: 1.45rem;
    padding-bottom: 1.05rem;
  }

  .lead,
  p {
    font-size: 1.02rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .verdict-table {
    font-size: .96rem;
  }

  .verdict-table th,
  .verdict-table td {
    padding: .5rem .35rem;
  }
}

/* Mobile Kopfleiste mit Seitenname */
.mobile-nav {
  display: none;
}

.mobile-brand {
  color: var(--accent-warm);
  text-decoration: none;
  font: 800 1.05rem/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
}

.mobile-brand:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 640px) {
  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.05rem;
    margin: 0 0 1rem;
  }

  .mobile-nav .mobile-menu {
    display: block;
    margin: 0;
  }

  .mobile-nav .mobile-menu summary {
    padding: .18rem 0;
  }
}

/* Mobile Brand: eher Seitenkennung als Menüpunkt */
.mobile-brand {
  color: var(--text);
  text-decoration: none;
  font: 800 1.02rem/1.35 Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
  white-space: nowrap;
  opacity: .92;
}

.mobile-brand:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 640px) {
  .mobile-nav {
    gap: .9rem;
  }
}

/* Aktiver Menüpunkt */
.desktop-nav a,
.mobile-menu-links a {
  position: relative;
}

.desktop-nav a.active,
.mobile-menu-links a.active {
  color: var(--accent-warm);
}

.desktop-nav a.active::after,
.mobile-menu-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.24rem;
  height: 2px;
  background: var(--accent-warm);
  border-radius: 999px;
}

.mobile-menu-links a {
  width: fit-content;
}

/* Startseite: feine Linie direkt unter dem Claim */
.home-hero {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 2.35rem;
}

.hero-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 1.05rem 0 1.7rem;
}

.home-lead {
  max-width: 60rem;
  margin: 0;
}

/* Mobile Brand: zentriert statt wie zweiter Menüpunkt */
@media (max-width: 640px) {
  .mobile-nav {
    position: relative;
    justify-content: flex-start;
    gap: 1.4rem;
  }

  .mobile-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text);
    opacity: .92;
    pointer-events: auto;
  }
}
.article-editorial-credit {
  margin-top: 0.45rem;
  margin-left: 2rem;
  color: #d8c58a;
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .article-editorial-credit {
    margin-left: 0.8rem;
  }
}


/* ===== WM-Dossiers: Nach dem Spiel ist vor dem Spiel =====
   Zusatzregeln fuer die neue Rubrik. Das bestehende Seitenraster bleibt unveraendert. */
.dossier-feature .soft {
  padding: 1.18rem 1.25rem 1.22rem;
}

.dossier-feature .soft > h3 {
  margin: 0 0 1rem;
  color: var(--accent-warm);
  font-size: 1.32rem;
}

.dossier-feature-item {
  border-top: 1px solid var(--line-soft);
  padding-top: .95rem;
}

.dossier-feature-item h4 {
  color: var(--accent-warm);
  font-size: clamp(1.28rem, 2.1vw, 1.55rem);
  line-height: 1.18;
  margin: 0 0 .55rem;
}

.dossier-feature-item p {
  color: var(--text-soft);
  margin-bottom: .7rem;
}

.dossier-feature-item .read-more {
  display: inline-block;
  color: var(--accent-warm);
  font: 700 .94rem/1.45 Arial, Helvetica, sans-serif;
}

.dossier-feature-item .read-more:hover {
  color: var(--text);
}

.dossier-more {
  margin-top: 1.15rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line-soft);
}

.dossier-more ul {
  margin-bottom: 0;
}

.dossier-more a {
  color: var(--text-soft);
}

.dossier-page .hero-rule {
  margin-bottom: 0;
}

.dossier-article {
  margin-top: 1.9rem;
}

.dossier-title {
  color: var(--accent-warm);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  margin: 0 0 .6rem;
  line-height: 1.1;
}

.dossier-subtitle {
  margin: 0 0 1.4rem;
  font-size: clamp(1.08rem, 2vw, 1.2rem);
}

.dossier-lead {
  margin: 0 0 2.55rem;
}

.dossier-lead p {
  color: var(--text);
  font-size: 1.13rem;
}

.dossier-body h2 {
  margin: 2.35rem 0 .85rem;
  font-size: clamp(1.4rem, 2.25vw, 1.65rem);
}

.dossier-body h3 {
  margin: 1.8rem 0 .7rem;
}

.dossier-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent-warm);
  background: rgba(0, 0, 0, .10);
}

.dossier-body blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
}

.dossier-sources {
  margin-top: 2.9rem;
}

.dossier-sources ul {
  margin: 0;
  padding-left: 1.15rem;
}

.dossier-sources li {
  margin: .45rem 0;
  color: var(--text-soft);
}

.dossier-sources a {
  color: var(--text-soft);
}

.back-link {
  margin-top: 2rem;
  color: var(--accent-warm);
  font: 700 .96rem/1.45 Arial, Helvetica, sans-serif;
}

@media (max-width: 640px) {
  .dossier-feature .soft {
    padding: 1rem;
  }

  .dossier-article {
    margin-top: 1.4rem;
  }

  .dossier-lead {
    margin-bottom: 2.1rem;
  }

  .dossier-body h2 {
    margin-top: 1.9rem;
  }

  .dossier-body blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: .85rem .95rem;
  }
}

/* WM-GROUP-E:START */

.group-live {
  margin-top: 2.35rem;
}

.group-live-card {
  background:
    linear-gradient(180deg, rgba(216, 116, 52, 0.075), rgba(0,0,0,0.075)),
    var(--card-soft);
  border: 1px solid rgba(216, 116, 52, .34);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.group-live-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.group-live-header h2 {
  margin: .12rem 0 .35rem;
  color: var(--accent-strong);
}

.group-live-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.group-progress {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(216, 116, 52, .48);
  border-radius: 999px;
  padding: .4rem .75rem;
  color: var(--accent-warm);
  background: rgba(216, 116, 52, .11);
  font: 800 .84rem/1.25 Arial, Helvetica, sans-serif;
}

.group-status-line {
  margin: 0 0 .85rem;
  color: var(--text);
  font: 800 .98rem/1.35 Arial, Helvetica, sans-serif;
}

.group-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: .75rem;
  padding-bottom: .7rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(0,0,0,.13);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.group-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font: 700 .95rem/1.35 Arial, Helvetica, sans-serif;
  margin-bottom: .15rem;
}

.group-table th,
.group-table td {
  padding: .72rem .72rem;
  border-top: 1px solid rgba(255,255,255,.085);
  white-space: nowrap;
  text-align: right;
}

.group-table thead th {
  border-top: 0;
  color: #d8894d;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.group-table th:nth-child(2),
.group-table td.team-cell {
  text-align: left;
}

.group-table .rank {
  text-align: center;
  width: 2.5rem;
  color: var(--muted);
}

.group-table .team-cell {
  min-width: 15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.group-table .flag {
  display: inline-block;
  min-width: 1.65rem;
  margin-right: .5rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.group-table .points {
  color: var(--accent-warm);
  font-weight: 900;
}

.group-table tr.is-germany td {
  background: rgba(216, 116, 52, .115);
}

.group-games-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 .75rem;
}

.group-games-head h3 {
  margin: 0;
  color: var(--accent-warm);
}

.group-games-head .meta {
  margin: 0;
}

.group-matches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.group-match {
  display: block;
  min-height: 5.15rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  padding: .86rem .95rem;
  background: rgba(0,0,0,.15);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.group-match.is-highlight {
  border-color: rgba(216, 116, 52, .45);
  background:
    linear-gradient(180deg, rgba(216, 116, 52, .12), rgba(0,0,0,.10));
}

.group-match:hover {
  border-color: var(--accent-strong);
  background: rgba(216, 116, 52, .14);
  transform: translateY(-1px);
}

.match-date-line {
  display: block;
  margin-bottom: .28rem;
  color: var(--muted);
  font: 800 .82rem/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .03em;
}

.match-title-line {
  display: block;
  color: var(--text);
  font: 900 1.02rem/1.35 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.match-prefix {
  color: var(--accent-warm);
}

.match-venue {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font: 700 .84rem/1.35 Arial, Helvetica, sans-serif;
}

a.group-match,
a.group-match:visited {
  text-decoration: none;
}

a.group-match .match-title-line,
a.group-match .match-venue,
a.group-match .match-date-line {
  text-decoration: none;
}

a.group-match:hover .match-title-line {
  color: var(--accent-warm);
  text-decoration: none;
}

.group-updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font: 700 .84rem/1.4 Arial, Helvetica, sans-serif;
}

@media (max-width: 840px) {
  .group-matches {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .group-live-card {
    padding: 1rem;
  }

  .group-live-header,
  .group-games-head {
    display: block;
  }

  .group-progress {
    margin-top: .7rem;
  }

  .group-table-wrap {
    padding-bottom: .9rem;
    border-radius: 18px;
  }

  .group-table {
    min-width: 700px;
    font-size: .92rem;
  }

  .group-table th,
  .group-table td {
    padding: .78rem .68rem;
  }

  .group-table .team-cell {
    min-width: 13.5rem;
  }
}

/* WM-GROUP-E:END */
/* Mobile Header: Brand beim geöffneten Hamburger-Menü festsetzen */
@media (max-width: 640px) {
  .mobile-nav {
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 1.9rem;
  }

  .mobile-nav .mobile-menu {
    position: relative;
    z-index: 5;
    margin: 0;
  }

  .mobile-nav .mobile-menu summary {
    position: relative;
    z-index: 6;
  }

  .mobile-brand {
    position: absolute;
    top: 0.18rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: var(--text);
    opacity: .92;
    white-space: nowrap;
    pointer-events: auto;
  }

  .mobile-menu-links {
    position: relative;
    z-index: 7;
  }
}
