/*
Theme Name: TC Geiselhöring
Theme URI: https://www.tc-geiselhoering.de/
Author: TC Geiselhöring e.V.
Author URI: https://www.tc-geiselhoering.de/
Description: Offizielles Theme des TC Geiselhöring e.V. – Tennisclub seit 1974. Modernes, responsives Design für den Tennisclub.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcg
Tags: custom-menu, custom-logo, custom-header, featured-images, responsive-layout, one-column, translation-ready
*/

/* ==========================================================================
   Tokens
   No external fonts / no third-party requests → no cookie banner needed.
   ========================================================================== */
:root {
  --ink:          #161B26;
  --navy:         #2B313D;
  --navy-soft:    #465063;
  --gold:         #B89A1D;
  --gold-dark:    #8A7214;
  --gold-soft:    #F5EDCC;
  --clay:         #C0532E;
  --paper:        #FAF8F4;
  --white:        #FFFFFF;
  --line:         #E8E4DA;
  --line-strong:  #D6D0C2;
  --muted:        #5E6676;
  --text:         #1A1F2B;

  /* legacy aliases (used by inner templates / older markup) */
  --accent:       var(--gold);
  --accent-dark:  var(--gold-dark);
  --accent-bg:    var(--gold-soft);
  --cyan:         var(--gold-dark);
  --cyan-dark:    var(--navy);
  --gray-50:      var(--paper);
  --gray-100:     #F2EFE8;
  --gray-200:     var(--line);
  --gray-400:     #9097A3;
  --gray-600:     var(--muted);
  --gray-800:     var(--text);

  --shadow-sm:    0 1px 2px rgba(22,27,38,.06);
  --shadow:       0 6px 18px -6px rgba(22,27,38,.14);
  --shadow-lg:    0 24px 48px -16px rgba(22,27,38,.28);
  --radius:       10px;
  --radius-lg:    18px;
  --font:         "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w:        1200px;
  --nav-h:        72px;
  --topbar-h:     38px;
  --ease:         cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
svg.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section--paper { background: var(--paper); }
.section--gray { background: var(--paper); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.75); }

/* Section heads */
.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.section--dark .eyebrow { color: var(--gold); }
.badge--tight { margin-bottom: 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head__text { max-width: 620px; }
.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.section--dark .section__title { color: var(--white); }
.section__subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section__subtitle { color: rgba(255,255,255,.65); }
.listing-header { margin-bottom: 40px; }
.listing-header .section__subtitle { margin-top: 4px; }
.section__actions { text-align: center; margin-top: 40px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}
.textlink .icon { transition: transform .2s var(--ease); }
.textlink:hover { color: var(--gold-dark); }
.textlink:hover .icon { transform: translateX(3px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--gold,
.btn--yellow,
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--gold:hover,
.btn--yellow:hover,
.btn--primary:hover { background: #CBAB25; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(184,154,29,.7); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--navy); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--ghost,
.btn--glass,
.btn--outline-light { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover,
.btn--glass:hover,
.btn--outline-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--sm,
.btn--compact { padding: 9px 18px; font-size: .88rem; }
.btn--mt-8 { margin-top: 8px; }

/* Screen reader text */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--white); border-radius: 6px; box-shadow: var(--shadow-lg);
  clip: auto !important; clip-path: none; color: var(--ink); display: block;
  font-size: .9rem; font-weight: 700; height: auto; width: auto;
  left: 8px; top: 8px; padding: 14px 22px; z-index: 100000;
}

/* ==========================================================================
   Top bar (season notice – replaces the old alert bar)
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: .84rem;
}
.topbar__inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__note { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar__note strong { color: var(--white); font-weight: 600; }
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(184,154,29,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184,154,29,.55); } 70% { box-shadow: 0 0 0 8px rgba(184,154,29,0); } 100% { box-shadow: 0 0 0 0 rgba(184,154,29,0); } }
.topbar__links { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.topbar__link { color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topbar__link:hover { color: var(--white); }
.topbar__contact { color: rgba(255,255,255,.6); display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact:hover { color: var(--white); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
body.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .navbar { top: 46px; } }
.navbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(22,27,38,.45); }
.navbar__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height .25s var(--ease);
}
.navbar.is-scrolled .navbar__inner { height: 60px; }

/* Brand */
.brand,
.navbar__logo { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover,
.navbar__logo:hover { color: var(--ink); }
.brand__logo,
.navbar__logo-img { height: 46px; width: auto; transition: height .25s var(--ease); }
.navbar.is-scrolled .brand__logo { height: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; padding-left: 12px; border-left: 1px solid var(--line); }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand__tag { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.navbar__logo-icon { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; }
.navbar__logo-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Desktop nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  margin: 0 0 0 auto;
}
.nav__list > li,
.nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.nav__link,
.nav__list > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav__link::after,
.nav__list > li > a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover,
.nav__list > li > a:hover { color: var(--ink); background: var(--paper); }
.nav__link--active,
.nav__list > .current-menu-item > a,
.nav__list > .current-menu-ancestor > a { color: var(--ink); font-weight: 600; }
.nav__link--active::after,
.nav__list > .current-menu-item > a::after,
.nav__list > .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav__arrow { display: inline-flex; transition: transform .2s; }
.nav__arrow .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.nav__item:hover .nav__arrow,
.nav__item:focus-within .nav__arrow { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown,
.nav__list .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: -8px;
  min-width: 240px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, visibility .2s, transform .2s var(--ease);
  z-index: 999;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown,
.nav__list > li:hover .sub-menu,
.nav__list > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown-link,
.nav__list .sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text);
}
.nav__dropdown-link:hover,
.nav__list .sub-menu a:hover { background: var(--gold-soft); color: var(--ink); }
.nav__desc { display: block; font-size: .78rem; color: var(--muted); }

.navbar__cta { flex-shrink: 0; }

/* Hamburger */
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 8px 0 20px;
}
.nav__mobile.open { display: block; animation: drop .22s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__mobile-link,
.nav__mobile ul li a {
  display: block;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.nav__mobile-link:hover,
.nav__mobile ul li a:hover { background: var(--paper); color: var(--ink); }
.nav__mobile-sub,
.nav__mobile .sub-menu { padding: 0 0 8px 12px; }
.nav__mobile-sub .nav__mobile-link,
.nav__mobile .sub-menu a { font-size: .93rem; color: var(--muted); padding: 9px 24px; }
.nav__mobile-group-label {
  padding: 16px 24px 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-dark);
}
.nav__mobile-cta { padding: 16px 24px 0; }
.nav__mobile-cta .btn { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22,27,38,.88) 0%, rgba(22,27,38,.62) 42%, rgba(22,27,38,.15) 100%),
    linear-gradient(0deg, rgba(22,27,38,.75) 0%, rgba(22,27,38,0) 45%);
}
.hero__inner {
  position: relative;
  padding-top: 96px;
  padding-bottom: 136px;
}
.hero__content { max-width: 700px; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero__title em { font-style: normal; color: var(--gold); display: block; }
.hero__text {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__dots {
  position: absolute;
  right: 24px;
  bottom: 140px;
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 28px; height: 4px;
  border-radius: 2px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .3s, width .3s var(--ease);
}
.hero__dot--active { background: var(--gold); width: 44px; }

/* Stats card overlapping the hero */
.stats { position: relative; z-index: 2; margin-top: -72px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.stats__item { padding: 26px 28px; position: relative; }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.03em;
}
.stats__num span { color: var(--gold); }
.stats__label { margin-top: 6px; font-size: .86rem; color: var(--muted); font-weight: 500; }

/* ==========================================================================
   Quick links
   ========================================================================== */
.quicklinks { padding: 56px 0 0; }
.quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.quicklinks__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s, background .2s;
}
.quicklinks__card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.quicklinks__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold-dark);
  transition: background .2s, color .2s;
}
.quicklinks__card:hover .quicklinks__icon { background: var(--gold); color: var(--ink); }
.quicklinks__label { font-size: .92rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quicklinks__label .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.quicklinks__card:hover .quicklinks__label .icon { transform: translateX(3px); color: var(--gold-dark); }

/* ==========================================================================
   News
   ========================================================================== */
.news__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
}
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card__img { transform: scale(1.04); }
.news-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.25);
  background:
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 50% / 100% 2px no-repeat,
    linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
}
.news-card__img-placeholder .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.news-card__cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-dark);
}
.news-card__meta .badge { font-size: .7rem; margin: 0; }
.news-card__date { color: var(--muted); }
.news-card__title { font-size: 1.12rem; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
.news-card__title a { color: inherit; }
.news-card__title a::after { content: ''; position: absolute; inset: 0; }
.news-card__excerpt { margin-top: 10px; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.news-card__footer { margin-top: auto; padding-top: 16px; }
.news-card__readmore { font-size: .86rem; font-weight: 600; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 6px; }

/* Lead story */
.news-card--lead { grid-row: span 2; }
.news-card--lead .news-card__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.news-card--lead .news-card__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.news-card--lead .news-card__body { padding: 26px 28px 28px; flex: 0 0 auto; }

/* ==========================================================================
   Hallensaison
   ========================================================================== */
.halle {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255,255,255,.78);
  box-shadow: var(--shadow-lg);
}
.halle__body { padding: clamp(32px, 5vw, 64px); }
.halle__label { color: var(--gold); }
.halle__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.halle__text { max-width: 460px; }
.halle__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; max-width: 460px; }
.halle__date {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.halle__date-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); font-weight: 600; }
.halle__date-value { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; font-weight: 700; margin-top: 2px; }
.halle__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.halle__media { position: relative; min-height: 320px; background-size: cover; background-position: center; }
.halle__media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(22,27,38,0) 35%); }

/* ==========================================================================
   Angebot / features
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  position: relative;
  background: var(--white);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: background .25s;
}
.feature-card:hover { background: var(--paper); }
.feature-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  margin-bottom: 22px;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.feature-card__icon .icon { width: 24px; height: 24px; }
.feature-card:hover .feature-card__icon { background: var(--ink); color: var(--gold); transform: rotate(-6deg); }
.feature-card__title { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-card__text { font-size: .93rem; color: var(--muted); line-height: 1.65; flex: 1; }
.feature-card__link { margin-top: 18px; font-size: .88rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.feature-card__link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.feature-card:hover .feature-card__link { color: var(--gold-dark); }
.feature-card:hover .feature-card__link .icon { transform: translateX(3px); }

/* ==========================================================================
   Mannschaften (dark section)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.7);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.team-card:hover { background: rgba(255,255,255,.08); border-color: rgba(184,154,29,.55); transform: translateY(-3px); color: rgba(255,255,255,.85); }
.team-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-card__group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.team-card__arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.team-card__arrow .icon { width: 15px; height: 15px; transform: rotate(-45deg); }
.team-card:hover .team-card__arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.team-card__title { font-size: 1.5rem; font-weight: 800; color: var(--white); line-height: 1.1; }
.team-card__title a { color: inherit; }
.team-card__title a::after { content: ''; position: absolute; inset: 0; }
.team-card__league {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-size: .85rem;
}
.team-card__league::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.team-overview-link { margin-top: 32px; font-size: .95rem; color: rgba(255,255,255,.6); }
.team-overview-link a { color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(184,154,29,.5); }
.team-overview-link a:hover { color: var(--white); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.contact-box__title { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-item:first-of-type { border-top: 0; padding-top: 0; }
.contact-item__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold-dark);
  flex-shrink: 0;
}
.contact-item__label { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-item__value { font-size: 1rem; color: var(--ink); margin-top: 2px; font-weight: 500; word-break: break-word; }
.contact-item__value a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.contact-item__value a:hover { color: var(--gold-dark); border-color: var(--gold); }
.contact-item__sub { color: var(--muted); font-size: .85rem; }
.contact-box__subsection { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-box__subheading { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }

.map-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 40px);
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.map-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(22,27,38,.9) 0%, rgba(22,27,38,.15) 65%); }
.map-card__label { color: var(--gold); margin-bottom: 8px; }
.map-card__title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.map-card__text { color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 20px; max-width: 380px; }
/* legacy */
.map-placeholder { background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(184,154,29,.25);
  box-shadow: 0 0 0 40px rgba(184,154,29,.05);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs span[aria-hidden] { color: var(--line-strong); }
.page-hero .post__title { margin-bottom: 0; }
.page-body { padding-top: 56px; padding-bottom: 96px; }
.page-body .entry-content { max-width: 760px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding: 80px 0 0;
}
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__cta-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--white); max-width: 560px; }
.footer__cta-title em { font-style: normal; color: var(--gold); }
.footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand { color: var(--white); }
.footer__brand-logo {
  display: inline-flex;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.footer__brand-logo img { height: 52px; width: auto; }
.footer__brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.footer__brand-text { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 320px; }
.footer__col-title {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: .92rem; color: rgba(255,255,255,.7); transition: color .15s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .84rem;
  color: rgba(255,255,255,.45);
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: rgba(255,255,255,.45); }
.footer__bottom-links a:hover { color: var(--white); }

/* ==========================================================================
   WordPress content
   ========================================================================== */
.entry-content { font-size: 1.04rem; }
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 { color: var(--ink); margin: 1.6em 0 .5em; }
.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin-bottom: 1.1em; color: #3C4352; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.1em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .4em; color: #3C4352; }
.entry-content li::marker { color: var(--gold); }
.entry-content a { color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--gold); }
.entry-content a:hover { color: var(--gold-dark); }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 14px 22px;
  margin: 1.6em 0;
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content .alignleft { float: left; margin: .5em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .5em 0 1em 1.5em; }
.entry-content .aligncenter { margin: 1em auto; display: block; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: .85rem; color: var(--gray-400); text-align: center; margin-top: 4px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .93rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--paper); font-weight: 700; color: var(--ink); }

/* Post layout */
.post__thumbnail { margin-bottom: 36px; border-radius: var(--radius-lg); overflow: hidden; }
.post__thumbnail img { width: 100%; max-height: 520px; object-fit: cover; }
.post__header { margin-bottom: 32px; }
.post__title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; color: var(--ink); line-height: 1.1; margin-bottom: 14px; }
.post__meta { display: flex; align-items: center; gap: 16px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.post__meta .post-categories a { color: var(--gold-dark); font-weight: 600; }
.post__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post__nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.post__tags { margin-bottom: 12px; font-size: .88rem; color: var(--muted); }
.post__tags a { color: var(--gold-dark); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Pagination */
.pagination { margin-top: 56px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; color: var(--text);
}
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* 404 */
.page-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 24px; }
.page-404__number { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.05em; margin-bottom: 8px; }
.page-404__title { font-size: 1.9rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.page-404__text { color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.page-404__cta { margin-top: 24px; }

/* Search */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; outline: none; }
.search-form .search-field:focus { border-color: var(--gold); }
.search-form .search-submit { padding: 12px 22px; background: var(--ink); color: var(--white); border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }

/* Comments */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px; background: var(--paper); border-radius: var(--radius); margin-bottom: 16px; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author b { font-weight: 700; color: var(--ink); }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-content { font-size: .93rem; color: #3C4352; }
.comment-reply-link { font-size: .85rem; font-weight: 600; color: var(--gold-dark); display: inline-block; margin-top: 8px; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; margin-bottom: 16px; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--gold); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.form-submit input[type="submit"] { background: var(--ink); color: var(--white); border: 0; padding: 12px 26px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .navbar__cta { display: none; }
  .quicklinks__grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .news-card--lead { grid-column: 1 / -1; grid-row: auto; }
  .news-card--lead .news-card__media { min-height: 0; aspect-ratio: 16 / 8; flex: 0 0 auto; }
}
@media (max-width: 900px) {
  .nav__list { display: none; }
  .nav__toggle { display: flex; }
  .topbar__contact { display: none; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .halle { grid-template-columns: 1fr; }
  .halle__media { min-height: 220px; order: -1; }
  .halle__media::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(22,27,38,0) 50%); }
  .contact-grid { grid-template-columns: 1fr; }
  .map-card { min-height: 320px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .topbar { font-size: .78rem; }
  .topbar__inner { padding-top: 8px; padding-bottom: 8px; }
  .topbar__note .topbar__more { display: none; }
  .brand__logo { height: 38px; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1rem; }
  .hero { min-height: 560px; }
  .hero__inner { padding-top: 64px; padding-bottom: 120px; }
  .hero__shade { background: linear-gradient(0deg, rgba(22,27,38,.92) 0%, rgba(22,27,38,.55) 60%, rgba(22,27,38,.35) 100%); }
  .hero__dots { left: 16px; right: auto; bottom: 100px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .stats { margin-top: -56px; }
  .stats__item { padding: 18px; }
  .quicklinks { padding-top: 40px; }
  .quicklinks__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quicklinks__card { flex-direction: row; align-items: center; padding: 14px; gap: 12px; }
  .quicklinks__icon { width: 36px; height: 36px; }
  .quicklinks__label { flex: 1; font-size: .88rem; }
  .quicklinks__label .icon { display: none; }
  .section-head { margin-bottom: 32px; }
  .news__grid,
  .features__grid,
  .team-grid,
  .posts-grid { grid-template-columns: 1fr; }
  .news-card--lead .news-card__media { aspect-ratio: 16 / 10; }
  .news__grid .news-card:not(.news-card--lead) { flex-direction: row; align-items: stretch; }
  .news__grid .news-card:not(.news-card--lead) .news-card__media { flex: 0 0 112px; aspect-ratio: auto; min-height: 112px; }
  .news__grid .news-card:not(.news-card--lead) .news-card__img-placeholder { min-height: 0; }
  .news__grid .news-card:not(.news-card--lead) .news-card__img-placeholder .icon { width: 28px; height: 28px; }
  .news__grid .news-card:not(.news-card--lead) .news-card__body { padding: 14px 16px; justify-content: center; }
  .news__grid .news-card:not(.news-card--lead) .news-card__title { font-size: .98rem; }
  .news__grid { gap: 12px; }
  .halle__dates { grid-template-columns: 1fr 1fr; }
  .halle__actions .btn { flex: 1 1 auto; }
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
