/*
Theme Name: SVC Starter
Theme URI: https://sv-cannstatt.de
Author: SV Cannstatt 1898 e.V.
Description: Schlankes WordPress-Theme mit nativen Gutenberg-Blöcken für den Schwimmverein Cannstatt. Vereinsfarben Weiß & Rot.
Version: 2.3.3
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: svc-starter
License: GPL-2.0-or-later
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  /* Vereinsfarben: Rot */
  --c-red-900: #4A0404;
  --c-red-800: #7F1D1D;
  --c-red-700: #991B1B;
  --c-red-600: #B91C1C;
  --c-red-500: #DC2626;
  --c-red-400: #EF4444;
  --c-red-300: #FCA5A5;
  --c-red-200: #FECACA;
  --c-red-100: #FEE2E2;
  --c-red-50:  #FEF2F2;

  /* Dark accents */
  --c-dark-900: #0C0A14;
  --c-dark-800: #1A1726;
  --c-dark-700: #2D2940;

  /* Neutrals */
  --c-white: #FFFFFF;
  --c-gray-50:  #F9FAFB;
  --c-gray-100: #F3F4F6;
  --c-gray-200: #E5E7EB;
  --c-gray-300: #D1D5DB;
  --c-gray-400: #9CA3AF;
  --c-gray-500: #6B7280;
  --c-gray-600: #4B5563;
  --c-gray-700: #374151;
  --c-gray-800: #1F2937;
  --c-gray-900: #111827;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Header-Höhe (für Content-Offset; wird bei Desktop-Dauer-Nav erhöht) */
  --svc-header-h: 110px;

  /* Typography scale */
  --font-size-xs: 0.8rem;     /* 12.8px – nur dekorative Elemente */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px – Minimum für lesbaren Text */
  --font-size-md: 1.1rem;     /* 17.6px */
  --font-size-lg: 1.25rem;    /* 20px */

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 6px 16px rgba(0,0,0,0.03);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.07), 0 12px 32px rgba(0,0,0,0.05);
  --shadow-red: 0 4px 16px rgba(185,28,28,0.25);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--c-gray-800);
  background: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
body.menu-open::before {
  content: ''; position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); z-index: 998;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ================================================================
   ACCESSIBILITY — SKIP LINK
   ================================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--c-red-600);
  color: white;
  font-weight: 600;
  font-size: var(--font-size-base);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
}

/* ================================================================
   ACCESSIBILITY — FOCUS
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--c-red-600);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid var(--c-red-600);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.2);
}
.site-footer :focus-visible,
[class*="svc-hero"] :focus-visible {
  outline-color: white;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

/* ================================================================
   SECTION HEADERS (reusable)
   ================================================================ */
.section-header { text-align: center; margin-bottom: var(--header-gap, 48px); }
.section-header--left { text-align: left; }

.section-tag {
  display: inline-block;
  font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-red-500);
  margin-bottom: var(--tag-gap, 10px);
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--c-gray-900); line-height: 1.15;
}
.section-sub {
  font-size: 1rem; color: var(--c-gray-400);
  margin-top: 10px; max-width: 520px;
}
.section-header .section-sub { margin-left: auto; margin-right: auto; }

/* ================================================================
   BUTTONS (global)
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--font-size-base);
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-red-600); color: white;
  box-shadow: 0 2px 8px rgba(185,28,28,0.25);
}
.btn--primary:hover {
  background: var(--c-red-500);
  box-shadow: var(--shadow-red); transform: translateY(-1px);
}
.btn--white {
  background: white; color: var(--c-red-700);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn--white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--c-gray-700);
  border: 1.5px solid var(--c-gray-200);
}
.btn--outline:hover { border-color: var(--c-red-400); color: var(--c-red-600); }
.btn--ghost {
  background: rgba(255,255,255,0.12); color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.22); }
.btn--dark {
  background: var(--c-gray-900); color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn--dark:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); transform: translateY(-1px); }
.btn--lg { padding: 14px 28px; font-size: var(--font-size-md); }
.btn--sm { padding: 8px 16px; font-size: var(--font-size-sm); }
.btn--block { width: 100%; justify-content: center; }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.site-header__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 110px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--c-gray-900); }
.site-logo img { height: 90px; width: auto; }
/* WordPress Custom Logo (the_custom_logo) */
.custom-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
/* max-width:none verhindert, dass das Grid das Logo schmal quetscht
   (Basis-Regel img{max-width:100%}) — sonst Verzerrung bei 1025–1180px. */
.custom-logo { height: 90px; width: auto; max-width: none; display: block; }
.site-logo__mark {
  width: 90px; height: 90px; background: var(--c-red-600);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.1rem;
  letter-spacing: 0.04em; position: relative; overflow: hidden; flex-shrink: 0;
}
.site-logo__mark::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.35);
}
.site-logo__text { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.site-logo__text small {
  display: block; font-weight: 500; font-size: var(--font-size-base);
  color: var(--c-gray-400); letter-spacing: 0.02em;
}

/* Main nav — always hidden, opens as burger panel */
.main-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 16px 32px 20px;
  z-index: 999;
}
.main-nav.is-open { display: block; }
.main-nav ul {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2px; list-style: none;
  max-width: 1280px; margin: 0 auto;
}
.main-nav > ul > li > a {
  text-decoration: none; color: var(--c-gray-600);
  font-size: var(--font-size-base); font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all 0.2s; white-space: nowrap;
}
.main-nav > ul > li > a:hover { color: var(--c-red-600); background: var(--c-red-50); }

/* Menu separator — add CSS class "separator" to any menu item */
.main-nav > ul > li.separator {
  width: 1px; height: 20px; align-self: center;
  background: rgba(0,0,0,0.1); padding: 0; margin: 0 6px;
}
.sub-menu li.separator {
  height: 1px; margin: 6px 8px;
  background: rgba(0,0,0,0.08); border-radius: 1px;
}

/* Dropdown */
.has-children { position: relative; }
.has-children > a::after {
  content: ''; display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; margin-left: 5px;
  vertical-align: middle; opacity: 0.4;
}
.has-children > .sub-menu {
  position: absolute; top: 100%; left: 0;
  background: white; border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 8px; padding-top: 14px; min-width: 230px;
  opacity: 0; pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  transform: translateY(4px);
}
.has-children:hover > .sub-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.main-nav .sub-menu {
  flex-direction: column !important; align-items: stretch !important;
  justify-content: flex-start !important; text-align: left !important;
}
.sub-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: var(--font-size-base); color: var(--c-gray-700); text-decoration: none;
  text-align: left;
}
.sub-menu a:hover { background: var(--c-red-50); color: var(--c-red-600); }

/* External link icon */
.external-icon { vertical-align: -1px; margin-left: 4px; opacity: 0.45; }
a.is-external:hover .external-icon { opacity: 0.7; }

/* Event-Highlight menu item — add CSS class "svc-event-menu" */
.main-nav li.svc-event-menu > a {
  color: var(--c-red-600); font-weight: 600;
}
.main-nav li.svc-event-menu > a::before {
  content: '';
  display: inline-block; width: 16px; height: 16px;
  margin-right: 6px; vertical-align: -2px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='12' height='11' rx='1.5'/%3E%3Cpath d='M5 1v3M11 1v3M2 7h12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='12' height='11' rx='1.5'/%3E%3Cpath d='M5 1v3M11 1v3M2 7h12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.main-nav li.svc-event-menu > a:hover {
  background: var(--c-red-50);
}

/* Two-column submenu — add CSS class "svc-columns" to parent menu item.
   Place a "separator" item where the column break should be. */
.svc-columns > .sub-menu {
  display: block !important; columns: 2; column-gap: 0; min-width: 420px;
  column-rule: 1px solid rgba(0,0,0,0.06);
}
.svc-columns > .sub-menu > li { break-inside: avoid; }
.svc-columns > .sub-menu > li.separator {
  break-after: column; height: 0; margin: 0; background: none;
}
.svc-columns > .sub-menu > li > a { padding: 8px 14px; }

/* Header CTAs */
.site-header__ctas { display: flex; gap: 8px; align-items: center; }

/* Burger toggle — always visible */
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  padding: 8px; flex-shrink: 0;
}
.menu-toggle__bar {
  display: block; height: 2px; width: 100%;
  background: var(--c-gray-700); border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Optional: Hauptnavigation auf Desktop dauerhaft anzeigen
   (Customizer → Header → „Hauptnavigation auf Desktop dauerhaft anzeigen")
   Logo links; rechts daneben linksbündig gestapelt: Buttons (oben) +
   Navigation (unten). Umgesetzt via CSS-Grid.
   Breakpoint 1200px, damit Logo + Buttons + komplette Nav sicher in eine
   Zeile passen (darunter bleibt der Burger). */
@media (min-width: 1200px) {
  body.svc-nav-desktop { --svc-header-h: 110px; }

  /* Höhe wird vom Logo (90px) bestimmt; CTAs oben, Nav unten an der
     Logo-Unterkante. 10px Padding oben/unten = 110px Gesamthöhe. */
  body.svc-nav-desktop .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 36px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Logo: linke Spalte, über beide Zeilen (greift für Custom-Logo UND Fallback) */
  body.svc-nav-desktop .custom-logo-link,
  body.svc-nav-desktop .site-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  /* Buttons: rechte Spalte, oben (auf Höhe der Logo-Oberkante) */
  body.svc-nav-desktop .site-header__ctas {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-content: flex-start;
    margin-top: var(--svc-nav-cta-mt, 10px);
  }

  /* Navigation: rechte Spalte, unten (auf Höhe der Logo-Unterkante) */
  body.svc-nav-desktop .main-nav {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    border-top: none;
    padding: 0;
    z-index: auto;
  }
  body.svc-nav-desktop .main-nav > ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: none;
    /* Nav-Text mit der linken Button-Kante fluchten lassen (Link-Padding kompensieren) */
    margin: 0 0 0 -14px;
  }

  body.svc-nav-desktop .menu-toggle {
    display: none;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--c-gray-900); color: white; padding: 80px 32px 40px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px; max-width: 1280px; margin-left: auto; margin-right: auto;
}
.footer-brand h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: var(--font-size-base); color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 16px; }
.footer-addr { font-size: var(--font-size-base); color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: var(--font-size-base); color: rgba(255,255,255,0.75);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--c-red-600); color: white; }

/* Button-Platzierungen (Bild-Buttons ~150×150) — geteilt von Hero, Kennzahlen, Footer */
.svc-btn-placement { display: inline-flex; line-height: 0; text-decoration: none; }
.svc-btn-img {
  width: 150px; height: 150px; max-width: 100%;
  object-fit: contain; display: block; border-radius: 12px;
}
a.svc-btn-placement { transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.svc-btn-placement:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

.footer-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.footer-col h4 {
  font-size: var(--font-size-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.65); margin-bottom: 16px;
}
.footer-col a {
  display: block; text-decoration: none;
  color: rgba(255,255,255,0.75); font-size: var(--font-size-base);
  padding: 5px 0; transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-col li.separator {
  height: 1px; margin: 8px 0;
  background: rgba(255,255,255,0.1); list-style: none;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: var(--font-size-base); color: rgba(255,255,255,0.7);
  max-width: 1280px; margin: 0 auto;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-legal a:hover { color: white; }

/* ================================================================
   CONTENT AREA (for page.php, single.php etc.)
   ================================================================ */
.site-content { padding-top: var(--svc-header-h, 110px); }
.entry-content { max-width: 960px; margin: 0 auto; padding: 60px 32px; }
.entry-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.entry-content p { margin-bottom: 1em; }

/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.35em; line-height: 1.6; }
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin-top: 0.35em;
  margin-bottom: 0;
}

/* Full-width blocks bypass the max-width */
.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.entry-content .alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   PAGE HEADER (title + badge side by side)
   ================================================================ */
.entry-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: nowrap;
}
.entry-header h1 {
  margin-bottom: 0;
  -webkit-hyphens: auto;
  hyphens: auto;
}
@media (max-width: 640px) {
  .entry-header { flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
}

/* ================================================================
   PAGE BADGE (reusable pill badge with pulsing dot)
   ================================================================ */
.svc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 6px 16px 6px 10px;
  font-size: var(--font-size-base); font-weight: 600;
  flex-shrink: 0;
}
.svc-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
  animation: svc-pulse 2s ease infinite;
}

/* Badge – Rot */
.svc-badge--red {
  background: rgba(185,28,28,0.15); border: 1px solid rgba(185,28,28,0.25);
  color: var(--c-red-600);
}
.svc-badge--red .svc-badge__dot { background: var(--c-red-500); }

/* Badge – Blau */
.svc-badge--blue {
  background: rgba(30,64,175,0.1); border: 1px solid rgba(30,64,175,0.2);
  color: #1E40AF;
}
.svc-badge--blue .svc-badge__dot { background: #3B82F6; }

/* Badge – Grün */
.svc-badge--green {
  background: rgba(6,95,70,0.1); border: 1px solid rgba(6,95,70,0.2);
  color: #065F46;
}
.svc-badge--green .svc-badge__dot { background: #10B981; }

/* Badge – Gold */
.svc-badge--gold {
  background: rgba(146,64,14,0.1); border: 1px solid rgba(146,64,14,0.2);
  color: #92400E;
}
.svc-badge--gold .svc-badge__dot { background: #F59E0B; }

/* Badge – Orange */
.svc-badge--orange {
  background: rgba(234,88,12,0.1); border: 1px solid rgba(234,88,12,0.2);
  color: #C2410C;
}
.svc-badge--orange .svc-badge__dot { background: #F97316; }

/* Badge – Violett */
.svc-badge--violet {
  background: rgba(109,40,217,0.1); border: 1px solid rgba(109,40,217,0.2);
  color: #6D28D9;
}
.svc-badge--violet .svc-badge__dot { background: #8B5CF6; }

@keyframes svc-pulse { 0%,100% { opacity:1; } 50% { opacity:0.35; } }

/* ================================================================
   NEWS CARD (template-part, reused in block + archive)
   ================================================================ */
.news-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--c-gray-100);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-card--static { cursor: default; }
.news-card--static:hover { box-shadow: none; transform: none; }
.news-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card__tag {
  display: inline-flex; font-size: var(--font-size-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 10px;
  margin-bottom: 12px; width: fit-content;
}
.news-card__tag--verein     { background: var(--c-red-100); color: var(--c-red-700); }
.news-card__tag--schule     { background: #FEF3C7; color: #92400E; }
.news-card__tag--freizeitsport { background: #ECFDF5; color: #065F46; }
.news-card__tag--wasserball { background: #EFF6FF; color: #1E40AF; }
.news-card__tag--schwimmen  { background: #F0F9FF; color: #0C4A6E; }
.news-card__tag--para       { background: #F5F3FF; color: #5B21B6; }
.news-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; color: var(--c-gray-900); }
.news-card p { font-size: var(--font-size-base); color: var(--c-gray-500); line-height: 1.6; flex: 1; }
.news-card__date {
  font-size: var(--font-size-base); color: var(--c-gray-400);
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--c-gray-100);
}

/* News grid on archive pages */
.news-grid--archive {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1280px; margin: 0 auto; padding: 60px 32px;
}

/* Cloned CTAs inside burger menu — only shown on mobile */
.main-nav__ctas { display: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .news-grid--archive { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .main-nav {
    padding: 12px 16px 16px;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.admin-bar .main-nav {
    max-height: calc(100vh - 156px);
    max-height: calc(100dvh - 156px);
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li.separator { width: 100%; height: 1px; margin: 4px 0; }
  .main-nav > ul > li > a { display: block; }
  .has-children > .sub-menu {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    box-shadow: none; padding-left: 16px;
  }
  .svc-columns > .sub-menu { columns: 1; min-width: 0; }
  .site-header__ctas { display: none; }
  .main-nav__ctas {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 16px; margin-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .main-nav__ctas .btn { width: 100%; justify-content: center; text-align: center; }
  .site-footer { padding: 48px 20px 32px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .news-grid--archive { grid-template-columns: 1fr; }
}

/* ================================================================
   SINGLE POST — SUBTITLE
   ================================================================ */
.entry-subtitle {
  font-size: 1.15rem; color: var(--c-gray-500);
  margin-top: -8px; margin-bottom: 8px;
  line-height: 1.5; font-weight: 500;
}
.news-card__subtitle {
  font-size: var(--font-size-sm); color: var(--c-gray-400);
  line-height: 1.4; margin-bottom: 4px; font-weight: 500;
}

/* ================================================================
   SINGLE POST — ATTACHMENTS
   ================================================================ */
.entry-attachments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-gray-100); }
.entry-attachments h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.entry-content .entry-attachments__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.entry-attachments__link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--c-gray-100); background: white;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.entry-attachments__link:hover {
  border-color: var(--c-gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.entry-attachments__icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--c-red-100); color: var(--c-red-700);
  border-radius: var(--radius-sm);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
}
.entry-attachments__info { flex: 1; min-width: 0; }
.entry-attachments__name {
  display: block; font-weight: 600; font-size: var(--font-size-base);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entry-attachments__size {
  display: block; font-size: var(--font-size-xs); color: var(--c-gray-400); margin-top: 2px;
}
.entry-attachments__dl { color: var(--c-gray-400); flex-shrink: 0; }
.entry-attachments__link:hover .entry-attachments__dl { color: var(--c-red-600); }

/* ================================================================
   SINGLE POST — RELATED POSTS
   ================================================================ */
.entry-related {
  margin-top: 64px; padding: 48px 0;
  background: var(--c-gray-50);
  border-top: 1px solid var(--c-gray-100);
}
.entry-related h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 24px; }
.entry-related__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 1024px) {
  .entry-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .entry-related__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   ACCESSIBILITY — REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
