/*
Theme Name:  TV Hayna
Theme URI:   https://tv-hayna.de
Author:      TV Hayna
Description: Offizielles WordPress-Theme des TV Hayna Fußball – Match Day Dark Edition
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: tv-hayna
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   0. CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --color-primary:    #FF0000;
  --color-dark:       #CC0000;
  --color-white:      #FFFFFF;
  --color-bg:         #F4F4F4;
  --color-text:       #FFFFFF;
  --color-text-muted: rgba(255,255,255,.55);
  --color-border:     rgba(255,255,255,.1);

  /* Dark theme surfaces */
  --surface-base:     #0D0D0D;
  --surface-card:     #1A1A1A;
  --surface-elevated: #242424;
  --surface-light:    #F4F4F4;
  --text-on-light:    #111111;
  --muted-on-light:   #666666;
  --border-on-light:  #E0E0E0;

  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-red:  0 8px 32px rgba(255,0,0,.25);
  --shadow-dark: 0 4px 24px rgba(0,0,0,.6);
  --shadow-card: 0 2px 16px rgba(0,0,0,.4);

  --nav-height:    72px;
  --topbar-height: 36px;
  --max-width:     1300px;
  --gutter:        24px;

  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip; /* clip here, NOT on body — body overflow-x:hidden blocks vertical scroll on Android */
}
body {
  font-family: var(--font-sans);
  background: var(--surface-base);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

/* =========================================================
   2. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { margin-bottom: 1rem; }

.section-heading {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Light surface heading */
.on-light .section-heading { color: var(--text-on-light); }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section       { padding: 64px 0; background: var(--surface-base); }
.section--dark { background: var(--surface-card); }
.section--light { background: var(--surface-light); color: var(--text-on-light); }
.section--light .section-heading { color: var(--text-on-light); }
.section--light p, .section--light li, .section--light span { color: var(--muted-on-light); }
.section--light h1,.section--light h2,.section--light h3,.section--light h4 { color: var(--text-on-light); }

.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Diagonal section divider */
.section--diagonal-top {
  clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
  padding-top: 96px;
}
.section--diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
  padding-bottom: 96px;
  margin-bottom: -32px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gutter); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gutter); }

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  transition: all var(--transition);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-red); }

.btn-outline {
  border: 2px solid var(--color-primary); color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  border: 2px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-white { background: #fff; color: var(--color-primary); font-weight: 800; }
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn-dark { background: var(--surface-card); color: #fff; border: 1px solid var(--color-border); }
.btn-dark:hover { background: var(--surface-elevated); }

.btn-sm  { padding: 7px 16px; font-size: .78rem; }
.btn-lg  { padding: 16px 36px; font-size: 1rem; }

/* =========================================================
   5. TOP BAR
   ========================================================= */
.topbar {
  background: #000;
  height: var(--topbar-height);
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar__info { display: flex; gap: 20px; }
.topbar__info span { display: flex; align-items: center; gap: 6px; }
.topbar__info span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); display: block; flex-shrink: 0; }
.topbar__info span:first-child::before { display: none; }
.topbar__links { display: flex; gap: 16px; }
.topbar__links a { color: rgba(255,255,255,.45); font-size: .75rem; }
.topbar__links a:hover { color: var(--color-primary); }

/* =========================================================
   6. NAVIGATION
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: var(--nav-height);
  transition: background var(--transition);
}
.site-header.scrolled {
  background: rgba(0,0,0,.98);
  border-bottom-color: var(--color-primary);
}
.header__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: var(--nav-height); gap: 24px;
}

/* ── LOGO ── */
.site-logo {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  text-decoration: none;
}
.site-logo__emblem {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  border: 3px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-red);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.site-logo:hover .site-logo__emblem { transform: scale(1.05); box-shadow: 0 0 0 2px var(--color-primary), 0 12px 40px rgba(255,0,0,.4); }
.site-logo__emblem img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.site-logo__text {}
.site-logo__name { font-size: 1.3rem; font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1; }
.site-logo__name span { color: var(--color-primary); }
.site-logo__subtitle { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ── NAV ── */
.main-nav { flex: 1; }
.main-nav__list { display: flex; align-items: stretch; gap: 2px; justify-content: center; }
.main-nav__list > li {
  position: relative;
  display: flex; align-items: center; /* full nav height = no hover dead zone */
}
.main-nav__list > li > a {
  display: flex; align-items: center; padding: 0 16px;
  height: 100%;
  color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.main-nav__list > li > a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 2px; background: var(--color-primary); border-radius: 2px;
  transition: left var(--transition), right var(--transition);
}
.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-menu-ancestor > a { color: #fff; }
.main-nav__list > li > a:hover::after,
.main-nav__list > li.current-menu-item > a::after { left: 12px; right: 12px; }

/* Dropdown arrow indicator on parent items */
.main-nav__list > li.menu-item-has-children > a::before {
  content: ' ▾';
  font-size: .6rem;
  opacity: .6;
  vertical-align: middle;
  letter-spacing: 0;
}

/* Dropdown */
.main-nav__list li ul {
  position: absolute; top: 100%; left: 0;
  min-width: 210px; background: var(--surface-card);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-dark); padding: 6px 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  transform: translateY(6px);
  z-index: 100;
}
.main-nav__list li.dropdown-open > ul {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.main-nav__list li ul a {
  display: block; padding: 9px 18px;
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7);
  transition: color var(--transition), padding-left var(--transition);
}
.main-nav__list li ul a:hover { color: var(--color-primary); padding-left: 24px; }

/* Actions */
.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__search-btn {
  width: 38px; height: 38px; display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.6);
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
}
.header__search-btn:hover { color: #fff; border-color: var(--color-primary); background: rgba(255,0,0,.1); }

/* Search bar */
.header__search-bar {
  display: none; position: absolute;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--surface-card);
  border-bottom: 1px solid var(--color-border); padding: 14px 0; z-index: 998;
}
.header__search-bar.is-open { display: block; }
.header__search-bar form { display: flex; gap: 8px; }
.header__search-bar input {
  flex: 1; padding: 11px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--surface-elevated);
  color: #fff; outline: none;
}
.header__search-bar input::placeholder { color: rgba(255,255,255,.3); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.1); transition: all var(--transition); }
.hamburger:hover { border-color: var(--color-primary); background: rgba(255,0,0,.1); }
.hamburger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu – fixed so it works correctly on all Android/iOS browsers.
   position:absolute inside a sticky element breaks on many Android Chrome
   versions; fixed + explicit top is reliable across all mobile engines. */
.mobile-menu {
  display: none;
  background: var(--surface-card);
  padding: 16px 0 24px;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 997;
  border-bottom: 2px solid var(--color-primary);
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: 13px var(--gutter);
  color: rgba(255,255,255,.8); font-size: .92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu a:hover { color: var(--color-primary); padding-left: calc(var(--gutter) + 10px); }

/* Mobile submenu – show inline, indented */
.mobile-menu .sub-menu { display: block; }
.mobile-menu .sub-menu a {
  padding-left: calc(var(--gutter) + 16px);
  font-size: .82rem; color: rgba(255,255,255,.55);
  text-transform: none; letter-spacing: .03em;
  border-bottom-color: rgba(255,255,255,.03);
}
.mobile-menu .sub-menu a:hover { color: var(--color-primary); padding-left: calc(var(--gutter) + 26px); }

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; background: #000;
  min-height: 580px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
  margin-bottom: -48px;
}

.hero__slide {
  position: relative; min-height: 580px;
  display: flex; align-items: flex-end;
}

.hero__slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: brightness(.45) saturate(1.2);
  transition: transform 8s ease;
}
.hero__slide.is-active .hero__slide-img { transform: scale(1.04); }

/* Red diagonal accent stripe */
.hero__slide::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%),
    linear-gradient(105deg, rgba(255,0,0,.15) 0%, transparent 50%);
}

.hero__slide-content {
  position: relative; z-index: 2;
  padding: 60px 0 80px; width: 100%;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-primary); color: #fff;
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  padding: 5px 12px; border-radius: 2px; margin-bottom: 16px;
}
.hero__eyebrow::before { content: ''; width: 8px; height: 8px; background: rgba(255,255,255,.5); border-radius: 50%; display: block; animation: pulse 2s infinite; }

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .5; }
}

.hero__title {
  color: #fff; font-size: clamp(2rem, 5.5vw, 4rem);
  max-width: 780px; line-height: 1.08;
  letter-spacing: -.04em; margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
  font-style: italic;
}
.hero__title em { font-style: normal; color: var(--color-primary); }

.hero__meta {
  color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 28px;
  display: flex; gap: 20px; align-items: center;
}
.hero__meta span { display: flex; align-items: center; gap: 6px; }
.hero__meta span::before { content: ''; width: 4px; height: 4px; background: var(--color-primary); border-radius: 50%; }
.hero__meta span:first-child::before { display: none; }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider dots */
.hero__dots { position: absolute; bottom: 64px; right: var(--gutter); display: flex; gap: 8px; z-index: 3; }
.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: all var(--transition); }
.hero__dot.is-active { background: var(--color-primary); width: 24px; border-radius: 3px; }

/* =========================================================
   8. LIVE TICKER / STATS BAR
   ========================================================= */
.ticker-bar {
  background: var(--color-primary);
  padding: 0; height: 46px; overflow: hidden;
  position: relative; z-index: 10;
}
.ticker-bar__inner {
  display: flex; align-items: center; height: 100%; gap: 0;
}
.ticker-bar__label {
  background: #000; height: 100%; padding: 0 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .12em; color: var(--color-primary); flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
  padding-right: 30px;
}
.ticker-bar__label svg { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticker-scroll {
  display: flex; gap: 0; overflow: hidden; flex: 1;
}
.ticker-track {
  display: flex; gap: 0; animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 24px; height: 46px; font-size: .82rem; font-weight: 700; color: #fff;
  border-right: 1px solid rgba(255,255,255,.25); white-space: nowrap;
}
.ticker-item__score {
  background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 2px;
  font-weight: 900; letter-spacing: .06em;
}
.ticker-item__badge {
  font-size: .65rem; background: rgba(0,0,0,.25); padding: 1px 6px;
  border-radius: 2px; text-transform: uppercase; letter-spacing: .08em;
}

/* =========================================================
   9. NEWS CARDS
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 24px;
}

.news-card {
  position: relative; overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  border-radius: var(--radius-lg);
}
.news-card:hover { transform: translateY(-3px); z-index: 2; box-shadow: 0 16px 48px rgba(0,0,0,.4); border-color: var(--color-primary); }

.news-card--featured { grid-column: 1; grid-row: 1 / 3; }

.news-card__img-wrap {
  position: relative; overflow: hidden; flex: 0 0 auto;
  aspect-ratio: 16/9; background: #111;
}
.news-card--featured .news-card__img-wrap { aspect-ratio: 16/10; flex: 0 0 auto; min-height: 220px; }
.news-card__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.7) saturate(1.1);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}
.news-card:hover .news-card__img { transform: scale(1.07); filter: brightness(.6) saturate(1.2); }
.news-card__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.1); font-size: 4rem;
}

/* Red diagonal category tag */
.news-card__category {
  position: absolute; top: 0; left: 0;
  background: var(--color-primary); color: #fff;
  font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 5px 14px 5px 10px; z-index: 2;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

/* Content overlay at bottom of image */
.news-card__overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
  padding: 28px 20px 20px;
}
.news-card--small .news-card__overlay { padding: 20px 16px 16px; }

.news-card__date {
  font-size: .7rem; color: rgba(255,255,255,.55); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.news-card__date::before {
  content: ''; display: block; width: 16px; height: 1px;
  background: var(--color-primary);
}

.news-card__title {
  color: #fff; font-size: 1rem; font-weight: 800;
  line-height: 1.3; margin-bottom: 0;
}
.news-card--featured .news-card__title { font-size: 1.45rem; }
.news-card__title a { color: inherit; }
.news-card:hover .news-card__title a { color: var(--color-primary); }

.news-card__body {
  display: flex; flex-direction: column;
  padding: 18px 20px 20px;
  flex: 1;
  border-top: 1px solid var(--color-border);
}
.news-card__excerpt {
  font-size: .84rem; color: rgba(255,255,255,.6);
  line-height: 1.6; margin: 6px 0 0; flex: 1;
}
.news-card__footer {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.news-card__readmore {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 800; color: var(--color-primary);
  text-transform: uppercase; letter-spacing: .08em;
}
.news-card__readmore::after { content: '→'; transition: transform var(--transition); }
.news-card:hover .news-card__readmore::after { transform: translateX(4px); }

/* Sidebar list news items */
.news-list-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: transform var(--transition);
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { transform: translateX(3px); }
.news-list-item__img {
  width: 72px; height: 52px; object-fit: cover; flex-shrink: 0;
  border-radius: var(--radius-sm); background: var(--surface-elevated);
  filter: brightness(.8);
}
.news-list-item__date { font-size: .68rem; color: rgba(255,255,255,.4); margin-bottom: 3px; }
.news-list-item__title { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1.3; }
.news-list-item__title a:hover { color: var(--color-primary); }

/* Light surface news list */
.on-light .news-list-item { border-bottom-color: var(--border-on-light); }
.on-light .news-list-item__date { color: var(--muted-on-light); }
.on-light .news-list-item__title { color: var(--text-on-light); }

/* =========================================================
   10. SIDEBAR WIDGETS
   ========================================================= */
.widget {
  background: var(--surface-card);
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--color-border);
}
.widget__header {
  background: var(--surface-elevated); padding: 12px 18px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--color-primary);
}
.widget__header a { color: var(--color-primary); font-size: .68rem; }
.widget__header a:hover { color: var(--color-dark); }
.widget__body { padding: 14px 16px; }

/* Light widget */
.widget--light {
  background: #fff; border-color: var(--border-on-light);
}
.widget--light .widget__header {
  background: var(--surface-light); color: var(--text-on-light);
}
.widget--light .widget__body { background: #fff; }

/* =========================================================
   11. SPIELPLAN CARDS  (Match Day style)
   ========================================================= */
.spielplan-cards { display: flex; flex-direction: column; gap: 10px; }

.spielplan-card {
  background: var(--surface-card);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center; padding: 20px 24px; gap: 24px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.spielplan-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--color-primary);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--transition-slow);
}
.spielplan-card:hover {
  background: var(--surface-elevated); transform: translateX(3px);
}

.spielplan-card__date { }
.spielplan-card__date strong {
  display: block; font-size: 1rem; font-weight: 900; color: #fff;
  letter-spacing: -.02em;
}
.spielplan-card__date > span { font-size: .75rem; color: rgba(255,255,255,.45); }

.spielplan-card__match {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .95rem; flex-wrap: wrap;
}
.spielplan-card__vs { font-size: .7rem; color: rgba(255,255,255,.35); font-weight: 500; }

.spielplan-card__result {
  font-size: 1.8rem; font-weight: 900; text-align: center;
  min-width: 90px; letter-spacing: -.02em;
  color: #fff;
}
.spielplan-card__result.win   { color: #4CAF50; }
.spielplan-card__result.draw  { color: #FF9800; }
.spielplan-card__result.loss  { color: var(--color-primary); }

/* Score obfuscation font helper */
.spielplan-card__result a { color: inherit; text-decoration: none; }

/* Badges */
.spielplan-badge {
  display: inline-block; padding: 2px 7px; border-radius: 2px;
  font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.spielplan-badge--home { background: var(--color-primary); color: #fff; }
.spielplan-badge--away { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }

/* Spielplan on light bg */
.on-light .spielplan-card {
  background: #fff; border-color: var(--border-on-light);
  border-left-color: var(--color-primary);
}
.on-light .spielplan-card:hover { background: var(--surface-light); }
.on-light .spielplan-card__date strong { color: var(--text-on-light); }
.on-light .spielplan-card__date > span { color: var(--muted-on-light); }
.on-light .spielplan-card__match { color: var(--text-on-light); }
.on-light .spielplan-card__result { color: var(--text-on-light); }
.on-light .spielplan-card__vs { color: var(--muted-on-light); }

/* =========================================================
   12. MANNSCHAFTEN / TEAMS
   ========================================================= */
.teams-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.team-card {
  position: relative; overflow: hidden;
  background: var(--surface-card);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
}
.team-card:hover { transform: translateY(-5px); z-index: 2; border-color: var(--color-primary); box-shadow: 0 12px 40px rgba(255,0,0,.18); }

.team-card__header {
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  padding: 32px 20px 24px; text-align: center; position: relative;
  border-bottom: 3px solid var(--color-primary);
  overflow: hidden;
}
/* Diagonal red stripe in card header */
.team-card__header::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 120px;
  background: rgba(255,0,0,.12);
  transform: rotate(15deg);
}
.team-card__icon {
  width: 68px; height: 68px; border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(255,255,255,.05);
  border: 2px solid var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; position: relative; z-index: 1;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255,0,0,.2);
}
.team-card__icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.team-card__name { color: #fff; font-size: 1.05rem; font-weight: 900; position: relative; z-index: 1; letter-spacing: -.02em; }
.team-card__liga { font-size: .7rem; color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; }

.team-card__body { padding: 18px 20px; }
.team-info-list { display: flex; flex-direction: column; gap: 0; }
.team-info-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .83rem; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.team-info-list li:last-child { border-bottom: none; }
.team-info-list li .label { color: rgba(255,255,255,.4); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.team-info-list li .value { font-weight: 700; color: #fff; text-align: right; font-size: .83rem; }

.team-card__footer {
  padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: center;
}

/* Squad table */
.squad-table { width: 100%; border-collapse: collapse; }
.squad-table th {
  background: var(--color-primary); color: #fff;
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; padding: 10px 14px; text-align: left;
}
.squad-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .87rem; }
.squad-table tr:last-child td { border-bottom: none; }
.squad-table tr:hover td { background: var(--surface-elevated); }
.squad-table .td-number { font-weight: 900; color: var(--color-primary); width: 40px; font-size: 1rem; }

/* =========================================================
   13. CONTACT
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

.contact-form {
  background: var(--surface-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 36px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.6); margin-bottom: 7px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid rgba(255,255,255,.1); border-radius: var(--radius-sm);
  background: var(--surface-elevated); color: #fff; font-size: .9rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form-group select option { background: var(--surface-card); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,0,0,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: border-color var(--transition);
}
.info-card:hover { border-color: var(--color-primary); }
.info-card__icon {
  width: 40px; height: 40px; background: var(--color-primary);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; color: #fff; flex-shrink: 0;
}
.info-card__title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.info-card__text { font-size: .87rem; color: rgba(255,255,255,.75); line-height: 1.6; }
.info-card__text a:hover { color: var(--color-primary); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 250px; border: none; display: block; }

/* =========================================================
   14. PAGE BANNER
   ========================================================= */
.page-banner {
  background: var(--surface-card); padding: 48px 0 40px;
  border-bottom: 3px solid var(--color-primary); position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(to left, rgba(255,0,0,.05), transparent);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.page-banner::after {
  content: ''; position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  font-size: 8rem; font-weight: 900; color: rgba(255,0,0,.06);
  font-style: italic; letter-spacing: -.05em;
}
.page-banner__title {
  color: #fff; font-size: clamp(1.8rem,4vw,2.8rem);
  margin-bottom: 10px; font-style: italic; position: relative; z-index: 1;
}
.page-banner__breadcrumb {
  color: rgba(255,255,255,.4); font-size: .78rem;
  display: flex; gap: 8px; align-items: center; position: relative; z-index: 1;
}
.page-banner__breadcrumb a { color: rgba(255,255,255,.45); }
.page-banner__breadcrumb a:hover { color: var(--color-primary); }
.page-banner__breadcrumb span::before { content: '/'; margin-right: 8px; opacity: .3; }

/* =========================================================
   15. SINGLE ARTICLE
   ========================================================= */
.single-article { background: var(--surface-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.article-featured-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; filter: brightness(.85); }
.article-body { padding: 36px 40px 48px; }
.article-meta {
  display: flex; gap: 14px; align-items: center; margin-bottom: 20px;
  font-size: .8rem; color: rgba(255,255,255,.4); flex-wrap: wrap;
}
.article-meta .category-tag {
  background: var(--color-primary); color: #fff;
  padding: 3px 10px; border-radius: 2px; font-weight: 800;
  font-size: .65rem; text-transform: uppercase; letter-spacing: .1em;
}
.article-title { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 20px; font-style: italic; }
.article-content { font-size: .97rem; line-height: 1.8; color: rgba(255,255,255,.8); }
.article-content p { margin-bottom: 1.2rem; }
.article-content h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; color: #fff; }
.article-content h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; color: #fff; }
.article-content a:not(.btn) { color: var(--color-primary); }
.article-content ul,.article-content ol { margin: 0 0 1rem 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-share {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.share-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); }
.share-btn { padding: 7px 16px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.share-btn--fb { background: #1877F2; color: #fff; }
.share-btn--tw { background: #1DA1F2; color: #fff; }
.share-btn--wa { background: #25D366; color: #fff; }

/* =========================================================
   16. PAGINATION
   ========================================================= */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 700;
  background: var(--surface-card); color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
}
.page-numbers:hover,.page-numbers.current {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}

/* =========================================================
   17. FILTER TABS
   ========================================================= */
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 18px; border-radius: 2px; font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.12); background: transparent;
  color: rgba(255,255,255,.5); cursor: pointer; transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-tab.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Light filter tabs */
.on-light .filter-tab { border-color: var(--border-on-light); color: var(--muted-on-light); }
.on-light .filter-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.on-light .filter-tab.is-active { color: #fff; }

/* =========================================================
   18. FOOTER
   ========================================================= */
.site-footer { background: #000; color: rgba(255,255,255,.65); padding: 64px 0 0; margin-top: 0; border-top: 3px solid var(--color-primary); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand__logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand__emblem {
  width: 60px; height: 60px; background: var(--color-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 1rem; flex-shrink: 0;
  overflow: hidden; box-shadow: var(--shadow-red);
}
.footer-brand__emblem img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.footer-brand__name { color: #fff; font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; font-style: italic; }
.footer-brand__desc { font-size: .84rem; line-height: 1.7; margin-bottom: 22px; color: rgba(255,255,255,.4); }

.footer-social { display: flex; gap: 8px; }
.footer-social__link {
  width: 36px; height: 36px; background: rgba(255,255,255,.06); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.08);
  transition: all var(--transition);
}
.footer-social__link:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.footer-col__title {
  color: #fff; font-size: .68rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary); display: inline-block;
}
.footer-col__links { display: flex; flex-direction: column; gap: 10px; }
.footer-col__links a {
  font-size: .84rem; color: rgba(255,255,255,.4);
  transition: color var(--transition), padding-left var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-col__links a::before { content: '▸'; font-size: .6rem; color: var(--color-primary); flex-shrink: 0; }
.footer-col__links a:hover { color: #fff; padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: rgba(255,255,255,.25);
}
.footer-bottom a { color: rgba(255,255,255,.3); }
.footer-bottom a:hover { color: var(--color-primary); }
.footer-bottom__legal { display: flex; gap: 20px; }

/* =========================================================
   19. CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--color-primary);
  position: relative; overflow: hidden; padding: 64px 0;
}
.cta-banner::before {
  content: '1913'; position: absolute; right: 5%;
  top: 50%; transform: translateY(-50%);
  font-size: 12rem; font-weight: 900; font-style: italic;
  color: rgba(0,0,0,.15); letter-spacing: -.08em; pointer-events: none;
  line-height: 1;
}
.cta-banner .container { position: relative; z-index: 1; }

/* =========================================================
   20. UTILITY
   ========================================================= */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header__link { font-size: .72rem; font-weight: 800; color: var(--color-primary); text-transform: uppercase; letter-spacing: .08em; }
.section-header__link:hover { color: var(--color-dark); }

.empty-state { text-align: center; padding: 60px 20px; color: rgba(255,255,255,.3); }
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: rgba(255,255,255,.6); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-primary { color: var(--color-primary); }

/* =========================================================
   21. RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .teams-grid  { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .news-grid   { grid-template-columns: 1fr 1fr; gap: 18px; }
  .news-card--featured { grid-column: span 2; grid-row: auto; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; --gutter: 16px; }
  .topbar { display: none; }
  .site-logo__emblem { width: 48px; height: 48px; }
  .site-logo__name { font-size: 1.05rem; }
  /* prevent header overflow on narrow viewports (e.g. Galaxy S25) */
  .header__inner { gap: 12px; }
  .site-logo { min-width: 0; overflow: hidden; }
  .site-logo__text { min-width: 0; overflow: hidden; }
  .site-logo__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-logo__subtitle { display: none; }
  .header__actions { flex-shrink: 0; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-card--featured { grid-column: span 1; }
  .teams-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom__legal { flex-wrap: wrap; justify-content: center; }
  .sidebar { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero__slide { min-height: 420px; }
  .spielplan-card { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .article-body { padding: 22px 18px 32px; }
  .cta-banner::before { display: none; }
  .hero__title { font-style: normal; }
  .page-banner__title { font-style: normal; }
  .ticker-bar { height: 38px; }
  .ticker-bar__label { font-size: .65rem; padding: 0 14px 0 14px; }
}

@media print {
  .site-header,.topbar,.site-footer,.sidebar,.btn,.hamburger,.hero__dots,.ticker-bar { display: none !important; }
  body { background: #fff; color: #000; }
}
