/*
Theme Name:  Noogla-Ledahuasn 98
Theme URI:   http://noogla-ledahuasn.de
Author:      FC Bayern Fanclub Noogla-Ledahuasn 98
Description: Offizielles Theme des FC Bayern München Fanclub Noogla-Ledahuasn 98. Warmes, bayerisch-traditionelles Design in Rot und Creme. Eigenständiges Theme, kein Parent erforderlich.
Version:     2.0.0
Requires at least: 5.8
Requires PHP: 7.2
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noogla98
Tags:        custom-colors, custom-menu, featured-images, translation-ready
*/

/* ================================================================
   SCHRIFTEN – vollständig lokal, keine externe Verbindung nötig
   Fonts werden via functions.php aus /assets/fonts/ geladen.
   Fallback: Georgia (Display), Georgia (Serif), System-UI (Sans)
================================================================ */

/* ================================================================
   CSS VARIABLES
================================================================ */
:root {
  --rot:           #C8102E;
  --rot-dunkel:    #9B0020;
  --creme:         #FAF7F2;
  --creme-d:       #EDE8E0;
  --weiss:         #FFFFFF;
  --braun:         #3D2B1F;
  --text:          #2A1A10;
  --text-mid:      #6B5744;
  --text-light:    #9C8576;
  --border:        #DDD8D0;
  --shadow-sm:     0 2px 8px rgba(44,27,15,.08);
  --shadow-md:     0 6px 24px rgba(44,27,15,.12);
  --shadow-lg:     0 14px 40px rgba(44,27,15,.16);
  --radius:        4px;
  --ease:          .22s ease;
  --container:     1160px;
  --font-display:  'Playfair Display', 'Book Antiqua', 'Palatino Linotype', Georgia, serif;
  --font-serif:    'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --font-sans:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================================================================
   RESET
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--creme);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--rot-dunkel); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
ul, ol { padding-left: 1.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
blockquote {
  border-left: 4px solid var(--rot);
  padding: 1rem 1.5rem;
  background: var(--creme-d);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-mid);
  margin: 1.5rem 0;
}
hr { border: none; border-top: 2px solid var(--rot); width: 48px; margin: 2rem 0; }

/* ================================================================
   TICKER / LAUFSCHRIFT
================================================================ */
.n-ticker {
  background: var(--braun);
  border-bottom: 2px solid var(--rot);
  overflow: hidden;
  white-space: nowrap;
  padding: .45rem 0;
  position: relative;
  z-index: 1001; /* über header sticky */
}
.n-ticker-track {
  display: inline-flex;
  gap: 0;
  animation: n-ticker-scroll 32s linear infinite;
}
.n-ticker:hover .n-ticker-track { animation-play-state: paused; }
.n-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
}
.n-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.n-ticker-item a {
  color: rgba(255,255,255,.8);
  transition: color var(--ease);
}
.n-ticker-item a:hover { color: var(--rot); }
.n-ticker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rot);
  flex-shrink: 0;
}
.n-ticker-highlight { color: var(--rot) !important; font-weight: 700; }
@keyframes n-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   LOGO
================================================================ */
.n-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Wenn ein custom logo hochgeladen wurde */
.n-branding .custom-logo-link {
  display: flex;
  align-items: center;
}
.n-branding .custom-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* ================================================================
   BACK TO TOP BUTTON
================================================================ */
.n-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--rot);
  color: var(--weiss);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background var(--ease);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.n-back-top.visible { opacity: 1; transform: translateY(0); }
.n-back-top:hover { background: var(--rot-dunkel); color: var(--weiss); }

/* ================================================================
   COOKIE BANNER
================================================================ */
.n-cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--braun);
  color: rgba(255,255,255,.9);
  padding: 1.1rem 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  border-top: 3px solid var(--rot);
  transform: translateY(0);
  transition: transform .4s ease;
}
.n-cookie-bar.hidden { transform: translateY(110%); }
.n-cookie-text {
  font-size: .85rem;
  line-height: 1.55;
  flex: 1;
  min-width: 240px;
}
.n-cookie-text a { color: var(--rot); }
.n-cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.n-cookie-accept {
  background: var(--rot);
  color: var(--weiss);
  border: none;
  padding: .55rem 1.25rem;
  font-weight: 700;
  font-size: .85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease);
}
.n-cookie-accept:hover { background: var(--rot-dunkel); }
.n-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.25);
  padding: .55rem 1.1rem;
  font-size: .82rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
}
.n-cookie-decline:hover { color: var(--weiss); border-color: rgba(255,255,255,.5); }

/* ================================================================
   SEARCH OVERLAY
================================================================ */
.n-search-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .3rem .5rem;
  transition: color var(--ease);
  line-height: 1;
  display: flex;
  align-items: center;
}
.n-search-toggle:hover { color: var(--weiss); }
.n-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,8,5,.92);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.n-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.n-search-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 2rem;
}
.n-search-label {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .85rem;
}
.n-search-form {
  display: flex;
  gap: 0;
}
.n-search-input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(255,255,255,.15);
  border-right: none;
  color: var(--weiss);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  padding: .75rem 1.25rem;
  outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: border-color var(--ease);
}
.n-search-input::placeholder { color: rgba(255,255,255,.25); }
.n-search-input:focus { border-color: var(--rot); }
.n-search-btn {
  background: var(--rot);
  border: 2px solid var(--rot);
  color: var(--weiss);
  font-size: 1.3rem;
  padding: .75rem 1.25rem;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--ease);
}
.n-search-btn:hover { background: var(--rot-dunkel); }
.n-search-close {
  display: block;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 1.25rem;
  padding: 0;
  transition: color var(--ease);
}
.n-search-close:hover { color: rgba(255,255,255,.7); }

/* ================================================================
   SOCIAL SHARE BUTTONS (auf Beiträgen)
================================================================ */
.n-share {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.n-share-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  flex-shrink: 0;
}
.n-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .95rem;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ease);
  border: 1.5px solid transparent;
}
.n-share-fb   { background: #1877f2; color: #fff; }
.n-share-fb:hover { background: #0d65d8; color: #fff; }
.n-share-wa   { background: #25d366; color: #fff; }
.n-share-wa:hover { background: #1da851; color: #fff; }
.n-share-copy { background: transparent; color: var(--text-mid); border-color: var(--border); cursor: pointer; }
.n-share-copy:hover { border-color: var(--rot); color: var(--rot); background: transparent; }

/* ================================================================
   LIVE-TICKER WIDGET (Spielstand)
================================================================ */
.n-live-widget {
  background: var(--braun);
  color: var(--weiss);
  padding: 1.25rem 1.5rem;
  border-top: 3px solid var(--rot);
}
.n-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--rot);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 2px;
  margin-bottom: .65rem;
}
.n-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--weiss);
  animation: n-blink 1s infinite;
}
@keyframes n-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.n-live-score {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin: .35rem 0;
}
.n-live-teams {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}

/* ================================================================
   NEWSLETTER WIDGET
================================================================ */
.n-newsletter {
  background: var(--rot);
  padding: 1.5rem;
  border-top: 3px solid var(--rot-dunkel);
}
.n-newsletter h3 {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  color: var(--weiss) !important;
  margin-bottom: .45rem !important;
}
.n-newsletter p { font-size: .83rem; color: rgba(255,255,255,.8); margin-bottom: .85rem; }
.n-newsletter input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--weiss);
  padding: .6rem .9rem;
  border-radius: var(--radius);
  font-size: .88rem;
  outline: none;
  margin-bottom: .6rem;
  transition: border-color var(--ease);
}
.n-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.n-newsletter input[type="email"]:focus { border-color: rgba(255,255,255,.7); }
.n-newsletter button {
  width: 100%;
  background: var(--weiss);
  color: var(--rot);
  border: none;
  padding: .65rem;
  font-weight: 700;
  font-size: .88rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease);
}
.n-newsletter button:hover { background: var(--creme); }

/* ================================================================
   NÄCHSTE FAHRT – sticky sidebar widget
================================================================ */
.n-next-fahrt {
  background: var(--creme-d);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rot);
  padding: 1.5rem;
}
.n-next-fahrt-date {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--rot);
  line-height: 1;
  margin-bottom: .25rem;
}
.n-next-fahrt-vs {
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

/* ================================================================
   SKIP LINK
================================================================ */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--rot); color: var(--weiss);
  padding: .5rem 1rem; z-index: 9999;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--weiss); }

/* ================================================================
   LAYOUT
================================================================ */
.n-wrap    { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.n-section { padding: 5rem 0; }
.n-section--sm { padding: 3rem 0; }
.n-section--white { background: var(--weiss); }
.n-section--creme { background: var(--creme); }
.n-section--creme-d { background: var(--creme-d); }
.n-section--braun { background: var(--braun); }
.n-section--rot { background: var(--rot); }

.n-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.n-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.n-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ================================================================
   SECTION HEADING
================================================================ */
.n-section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 2px solid var(--rot);
  padding-bottom: .85rem; margin-bottom: 2.5rem;
  flex-wrap: wrap; gap: 1rem;
}
.n-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,3vw,2.8rem);
  font-weight: 900; margin: 0;
}
.n-eyebrow {
  display: inline-flex; align-items: center;
  background: var(--rot); color: var(--weiss);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .3rem .8rem; margin-bottom: .85rem;
}

/* ================================================================
   BUTTONS
================================================================ */
.n-btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: .9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--ease); line-height: 1;
  text-align: center; cursor: pointer;
}
.n-btn-primary { background: var(--rot); color: var(--weiss); border-color: var(--rot); }
.n-btn-primary:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.n-btn-outline  { background: transparent; color: var(--rot); border-color: var(--rot); }
.n-btn-outline:hover  { background: var(--rot); color: var(--weiss); }
.n-btn-white    { background: var(--weiss); color: var(--rot); border-color: var(--weiss); }
.n-btn-white:hover    { background: var(--creme); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.n-btn-sm { padding: .5rem 1.1rem; font-size: .8rem; }
.n-btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ================================================================
   HEADER / NAV
================================================================ */
#n-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--rot);
  box-shadow: 0 2px 20px rgba(200,16,46,.35);
}
.n-header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; gap: 1.5rem;
}
.n-branding {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; flex-shrink: 0;
}
.n-diamond {
  width: 40px; height: 40px;
  background: var(--weiss);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.n-diamond-inner {
  transform: rotate(-45deg);
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 900;
  color: var(--rot); line-height: 1.1; text-align: center;
}
.n-site-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 900;
  color: var(--weiss); line-height: 1.2;
}
.n-site-name em { font-style: italic; }

/* Nav links */
.n-nav { display: flex; align-items: center; gap: .1rem; }
.n-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: .1rem; }
.n-nav ul li { position: relative; }
.n-nav ul a {
  display: block; color: rgba(255,255,255,.85);
  font-size: .87rem; font-weight: 500;
  padding: .45rem .85rem; border-radius: 3px;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.n-nav ul a:hover,
.n-nav .current-menu-item > a,
.n-nav .current_page_item > a {
  background: rgba(255,255,255,.18); color: var(--weiss);
}
.n-nav-cta {
  background: var(--weiss) !important;
  color: var(--rot) !important;
  font-weight: 700 !important;
}
.n-nav-cta:hover { background: var(--creme-d) !important; color: var(--rot) !important; }

/* Dropdown */
.n-nav ul ul {
  display: none; position: absolute;
  top: 100%; left: 0;
  background: var(--braun);
  min-width: 200px; padding: .4rem 0;
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-lg); z-index: 200;
}
.n-nav ul li:hover > ul,
.n-nav ul li:focus-within > ul { display: block; }
.n-nav ul ul a { border-radius: 0; padding: .5rem 1rem; color: rgba(255,255,255,.8); }
.n-nav ul ul a:hover { background: rgba(255,255,255,.1); color: var(--weiss); }

/* Hamburger */
.n-toggle {
  display: none;
  background: none; border: 2px solid rgba(255,255,255,.5);
  color: var(--weiss); width: 40px; height: 36px;
  border-radius: 3px; font-size: 1.2rem; line-height: 1;
  align-items: center; justify-content: center;
}

/* ================================================================
   RAUTEN PATTERN
================================================================ */
.n-rauten {
  background-color: var(--rot);
  background-image:
    repeating-linear-gradient(45deg,rgba(255,255,255,.07) 0,rgba(255,255,255,.07) 1px,transparent 1px,transparent 22px),
    repeating-linear-gradient(-45deg,rgba(255,255,255,.07) 0,rgba(255,255,255,.07) 1px,transparent 1px,transparent 22px);
}

/* ================================================================
   HERO
================================================================ */
.n-hero { background: var(--weiss); overflow: hidden; }
.n-hero-inner {
  display: grid; grid-template-columns: 1fr 390px; min-height: 82vh;
}
.n-hero-content {
  padding: 5rem 3rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
}
.n-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rot); color: var(--weiss);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .35rem 1rem; margin-bottom: 1.5rem; width: fit-content;
}
.n-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 900; line-height: 1.02; margin-bottom: 1.5rem;
}
.n-hero-title em { font-style: italic; color: var(--rot); }
.n-hero-text {
  font-family: var(--font-serif);
  font-size: 1.1rem; color: var(--text-mid);
  line-height: 1.8; max-width: 460px; margin-bottom: 2.5rem;
}
.n-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.n-hero-sidebar {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem; padding: 3rem 2rem;
}
.n-emblem {
  width: 150px; height: 150px;
  -webkit-clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background: rgba(255,255,255,.14);
  border: 3px solid rgba(255,255,255,.32);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.n-emblem-year {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 900;
  color: var(--weiss); line-height: 1;
}
.n-emblem-sub {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.8); text-align: center;
}
.n-hero-stats { width: 100%; }
.n-hero-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: .85rem;
}
.n-hero-stat:last-child { border-bottom: none; }
.n-hero-stat-label { color: rgba(255,255,255,.65); }
.n-hero-stat-val { color: var(--weiss); font-weight: 600; }

/* ================================================================
   STATS STRIP
================================================================ */
.n-strip {
  background: var(--creme-d);
  border-top: 3px solid var(--rot);
  border-bottom: 3px solid var(--rot);
}
.n-strip-inner {
  display: grid; grid-template-columns: repeat(4,1fr);
}
.n-strip-item {
  padding: 1.5rem 2rem; text-align: center;
  border-right: 1px solid var(--border);
}
.n-strip-item:last-child { border-right: none; }
.n-strip-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 900;
  color: var(--rot); line-height: 1;
}
.n-strip-label {
  font-size: .76rem; color: var(--text-mid);
  letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem;
}

/* ================================================================
   COUNTDOWN
================================================================ */
.n-countdown { padding: 2.5rem 0; }
.n-countdown-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.n-countdown-label {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: .25rem;
}
.n-countdown-game {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--weiss);
}
.n-countdown-date { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .2rem; }
.n-countdown-timer { display: flex; gap: 1.25rem; align-items: center; }
.n-cd-unit { text-align: center; }
.n-cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 900;
  color: var(--weiss); line-height: 1; min-width: 2ch;
}
.n-cd-label {
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.n-cd-sep { font-family: var(--font-display); font-size: 2rem; color: var(--rot); margin-bottom: 1rem; }

/* ================================================================
   NEWS / CARDS
================================================================ */
.n-news-layout {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 2px; background: var(--border);
}
.n-card {
  background: var(--weiss);
  border-top: 3px solid var(--rot);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.n-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.n-card-flat { border-top: none; }
.n-card-img { overflow: hidden; }
.n-card-img img {
  width: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.n-card:hover .n-card-img img { transform: scale(1.04); }
.n-card-img-md  { height: 300px; }
.n-card-img-sm  { height: 140px; }
.n-card-body { padding: 1.75rem; }
.n-card-body-sm { padding: 1.25rem; }
.n-card-meta {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .75rem; flex-wrap: wrap;
}
.n-tag {
  background: var(--rot); color: var(--weiss);
  font-size: .67rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .6rem; display: inline-block;
}
.n-date { font-size: .78rem; color: var(--text-light); }
.n-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: .75rem; line-height: 1.25;
}
.n-card-title a { color: var(--text); }
.n-card-title a:hover { color: var(--rot); }
.n-card-title-lg { font-size: 1.9rem; }
.n-card-title-sm { font-size: 1rem; }
.n-card-excerpt {
  font-family: var(--font-serif);
  font-size: .95rem; color: var(--text-mid); line-height: 1.7;
}
.n-cards-stack { display: flex; flex-direction: column; gap: 2px; background: var(--border); }
.n-card-sm { background: var(--weiss); flex: 1; }

/* ================================================================
   EVENTS / TERMINE
================================================================ */
.n-event-list { display: flex; flex-direction: column; }
.n-event {
  display: grid; grid-template-columns: 76px 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--border);
  transition: all var(--ease);
}
.n-event:last-child { border-bottom: none; }
.n-event:hover {
  background: var(--creme);
  padding-left: 1rem; padding-right: 1rem;
  margin: 0 -1rem;
}
.n-event-date {
  background: var(--rot); color: var(--weiss);
  text-align: center; padding: .55rem .4rem; flex-shrink: 0;
}
.n-event-day { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.n-event-mon { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.n-event-type {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--rot); margin-bottom: .2rem;
}
.n-event-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: .15rem; }
.n-event-title a { color: var(--text); }
.n-event-title a:hover { color: var(--rot); }
.n-event-meta { font-size: .8rem; color: var(--text-light); }
.n-event-action { flex-shrink: 0; }

/* ================================================================
   GALLERY
================================================================ */
.n-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 210px;
  gap: 4px;
}
.n-gallery-item {
  overflow: hidden; position: relative; cursor: pointer;
  background: var(--creme-d);
}
.n-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.n-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.n-gallery-item:hover img { transform: scale(1.07); filter: brightness(.82); }
.n-gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,0); transition: background .3s;
}
.n-gallery-item:hover .n-gallery-overlay { background: rgba(200,16,46,.2); }
.n-gallery-icon {
  font-size: 2rem; color: var(--weiss);
  opacity: 0; transform: scale(.7);
  transition: opacity .3s, transform .3s;
}
.n-gallery-item:hover .n-gallery-icon { opacity: 1; transform: scale(1); }

/* Lightbox */
.n-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.93); z-index: 99999;
  flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.n-lightbox.open { display: flex; }
.n-lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; display: block; }
.n-lightbox-cap { color: rgba(255,255,255,.7); font-size: .85rem; }
.n-lb-close,.n-lb-prev,.n-lb-next {
  position: absolute;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: var(--weiss); border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  transition: background var(--ease);
}
.n-lb-close { top: 1.25rem; right: 1.25rem; font-size: 1.4rem; }
.n-lb-prev  { left: 1.25rem;  top: 50%; transform: translateY(-50%); }
.n-lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.n-lb-close:hover,.n-lb-prev:hover,.n-lb-next:hover { background: var(--rot); border-color: var(--rot); }

/* ================================================================
   FAHRTEN
================================================================ */
.n-fahrt-meta {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
  background: var(--creme-d);
  border: 1px solid var(--border); border-top: 3px solid var(--rot);
  padding: 1.5rem; margin-bottom: 2rem;
}
.n-fahrt-key {
  display: block; font-size: .67rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: .2rem;
}
.n-fahrt-val { font-size: .98rem; font-weight: 600; color: var(--text); }
.n-status {
  display: inline-block; padding: .2rem .7rem;
  font-size: .73rem; font-weight: 700;
  border-radius: 20px; letter-spacing: .05em;
}
.n-status-offen  { background: #d4edda; color: #155724; }
.n-status-voll   { background: #f8d7da; color: #721c24; }
.n-status-archiv { background: #e2e3e5; color: #383d41; }
.n-bar { height: 6px; background: var(--creme-d); border-radius: 3px; overflow: hidden; margin-top: .4rem; }
.n-bar-fill { height: 100%; border-radius: 3px; background: #4caf50; transition: width .5s ease; }
.n-bar-fill-voll { background: var(--rot); }

/* ================================================================
   FORMS
================================================================ */
.n-form-box {
  background: var(--weiss);
  border: 1px solid var(--border); border-top: 3px solid var(--rot);
  padding: 2.25rem; box-shadow: var(--shadow-sm);
}
.n-form-box h3 {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700; margin-bottom: 1.5rem;
}
.n-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.n-form-group { margin-bottom: 1rem; }
.n-form-group label {
  display: block; font-size: .73rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: .4rem;
}
.n-form-group input,
.n-form-group select,
.n-form-group textarea {
  width: 100%; background: var(--creme);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .68rem 1rem;
  font-size: .9rem; color: var(--text);
  outline: none; transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none; appearance: none;
}
.n-form-group input:focus,
.n-form-group select:focus,
.n-form-group textarea:focus {
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.n-form-group textarea { resize: vertical; min-height: 120px; }
.n-form-check {
  display: flex; gap: .5rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.n-form-check input[type="checkbox"] { margin-top: 3px; width: auto; flex-shrink: 0; }
.n-form-check label {
  font-size: .82rem; text-transform: none;
  letter-spacing: 0; font-weight: 400;
  color: var(--text-mid);
}
.n-form-submit button {
  width: 100%; background: var(--rot); color: var(--weiss);
  border: none; padding: .9rem 2rem;
  font-size: .95rem; font-weight: 700; border-radius: var(--radius);
  transition: background var(--ease), transform var(--ease); margin-top: .25rem;
}
.n-form-submit button:hover { background: var(--rot-dunkel); transform: translateY(-1px); }
.n-form-note { font-size: .78rem; color: var(--text-light); margin-top: .75rem; line-height: 1.5; }
.n-alert-ok { background: #d4edda; border: 1px solid #b8dbc4; border-radius: var(--radius); padding: 1rem 1.25rem; color: #155724; margin-bottom: 1.25rem; }
.n-alert-err { background: #f8d7da; border: 1px solid #f1aeb5; border-radius: var(--radius); padding: 1rem 1.25rem; color: #721c24; margin-bottom: 1.25rem; }

/* ================================================================
   MITGLIED CTA
================================================================ */
.n-join-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.n-join-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem,4vw,3.8rem);
  font-weight: 900; color: var(--weiss);
  line-height: 1.05; margin-bottom: 1rem;
}
.n-join-title em { font-style: italic; }
.n-join-text {
  font-family: var(--font-serif);
  font-size: 1.05rem; color: rgba(255,255,255,.85);
  line-height: 1.8; margin-bottom: 1.5rem;
}
.n-join-perks { list-style: none; padding: 0; margin: 0 0 2rem; }
.n-join-perks li {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.9);
  font-size: .95rem; padding: .4rem 0; margin-bottom: 0;
}
.n-join-perks li::before {
  content: '✓';
  background: rgba(255,255,255,.2); color: var(--weiss);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; flex-shrink: 0;
}

/* ================================================================
   TEAM GRID
================================================================ */
.n-team-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(175px,1fr)); gap: 1.5rem;
}
.n-team-card {
  background: var(--creme); border: 1px solid var(--border);
  border-top: 3px solid var(--rot);
  text-align: center; padding: 2rem 1.25rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.n-team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.n-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--rot); color: var(--weiss);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; overflow: hidden;
}
.n-avatar img { width: 100%; height: 100%; object-fit: cover; }
.n-team-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.n-team-role { font-size: .76rem; color: var(--text-light); font-style: italic; }

/* ================================================================
   CONTACT
================================================================ */
.n-contact-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start;
}
.n-contact-detail {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.n-contact-detail:last-child { border-bottom: none; }
.n-contact-icon {
  width: 36px; height: 36px; background: var(--rot); color: var(--weiss);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}

/* ================================================================
   BREADCRUMBS
================================================================ */
.n-breadcrumbs {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-light);
  padding: .75rem 0 .5rem; margin-bottom: .75rem;
}
.n-breadcrumbs a { color: var(--text-light); }
.n-breadcrumbs a:hover { color: var(--rot); }
.n-breadcrumbs .sep { opacity: .4; }

/* ================================================================
   SIDEBAR & WIDGETS
================================================================ */
.n-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget {
  background: var(--weiss); border: 1px solid var(--border);
  border-top: 3px solid var(--rot); padding: 1.5rem;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.widget ul li:last-child { border-bottom: none; }

/* ================================================================
   PAGINATION
================================================================ */
.n-pagination {
  display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 3rem;
}
.n-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; color: var(--text);
  transition: all var(--ease); text-decoration: none;
}
.n-pagination .page-numbers:hover,
.n-pagination .page-numbers.current {
  background: var(--rot); border-color: var(--rot); color: var(--weiss);
}

/* ================================================================
   POST HEADER
================================================================ */
.n-post-header {
  background: var(--weiss); border-bottom: 3px solid var(--rot); padding: 3rem 0;
}
.n-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,4.5vw,3.5rem);
  font-weight: 900; line-height: 1.1; margin: .75rem 0;
}
.n-post-byline {
  display: flex; gap: 1.5rem; font-size: .82rem;
  color: var(--text-light); flex-wrap: wrap; margin-top: .5rem;
}
.n-post-featured { width: 100%; height: 420px; overflow: hidden; }
.n-post-featured img { width: 100%; height: 420px; object-fit: cover; }

/* ================================================================
   FOOTER
================================================================ */
#n-footer { background: var(--braun); color: rgba(255,255,255,.85); }
.n-footer-top {
  padding: 4rem 0 2.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 2rem;
}
.n-footer-brand-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  color: var(--weiss); margin-bottom: .4rem;
}
.n-footer-tagline {
  font-family: var(--font-serif); font-style: italic;
  color: var(--rot); font-size: .95rem; margin-bottom: .85rem;
}
.n-footer-desc { font-size: .84rem; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 270px; }
.n-footer-col h4 {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: rgba(255,255,255,.38); margin-bottom: 1rem;
}
.n-footer-col ul { list-style: none; padding: 0; }
.n-footer-col li { margin-bottom: .45rem; }
.n-footer-col a { color: rgba(255,255,255,.62); font-size: .87rem; }
.n-footer-col a:hover { color: var(--rot); }
.n-footer-bottom {
  padding-bottom: 2.5rem; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.n-footer-copy { font-size: .76rem; color: rgba(255,255,255,.32); }
.n-footer-links { display: flex; gap: 1.5rem; }
.n-footer-links a { font-size: .76rem; color: rgba(255,255,255,.38); }
.n-footer-links a:hover { color: var(--rot); }

/* ================================================================
   GUTENBERG
================================================================ */
.wp-block-quote { border-left: 4px solid var(--rot) !important; background: var(--creme-d) !important; padding: 1rem 1.5rem !important; font-style: italic; font-family: var(--font-serif); }
.wp-block-button__link { background-color: var(--rot) !important; border-radius: var(--radius) !important; font-family: var(--font-sans) !important; font-weight: 600 !important; }
.wp-block-separator { border-color: var(--rot) !important; }
.has-background { background-color: var(--creme) !important; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .n-hero-inner { grid-template-columns: 1fr; }
  .n-hero-sidebar { display: none; }
  .n-footer-top { grid-template-columns: 1fr 1fr; }
  .n-news-layout { grid-template-columns: 1fr; }
  .n-join-inner { grid-template-columns: 1fr; gap: 2rem; }
  .n-contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .n-gallery-grid { grid-template-columns: repeat(2,1fr); }
  .n-gallery-item:first-child { grid-column: span 2; }
  .n-strip-inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .n-wrap { padding: 0 1.25rem; }
  .n-section { padding: 3.5rem 0; }
  .n-nav { display: none; }
  .n-toggle { display: flex; }
  .n-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--rot-dunkel);
    padding: 1rem; gap: .25rem; z-index: 999;
  }
  .n-nav.open ul { flex-direction: column; }
  .n-hero-content { padding: 3rem 1.5rem; }
  .n-hero-title { font-size: 2.6rem; }
  .n-grid-2, .n-grid-3, .n-grid-4 { grid-template-columns: 1fr; }
  .n-team-grid { grid-template-columns: repeat(2,1fr); }
  .n-footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .n-event { grid-template-columns: 66px 1fr; }
  .n-event-action { display: none; }
  .n-form-row { grid-template-columns: 1fr; }
  .n-fahrt-meta { grid-template-columns: 1fr 1fr; }
  .n-countdown-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .n-hero-title { font-size: 2.1rem; }
  .n-hero-btns { flex-direction: column; }
  .n-hero-btns .n-btn { width: 100%; }
  .n-strip-inner { grid-template-columns: 1fr 1fr; }
  .n-team-grid { grid-template-columns: 1fr 1fr; }
  .n-gallery-grid { grid-template-columns: 1fr 1fr; }
  .n-gallery-item:first-child { grid-column: span 2; }
  .n-fahrt-meta { grid-template-columns: 1fr; }
}

/* ================================================================
   ACCESSIBILITY
================================================================ */
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ================================================================
   VEREINSLOGOS
================================================================ */
.n98-matchup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.n98-club-badge {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--creme-d);
  padding: 8px;
  flex-shrink: 0;
}
.n98-club-badge img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.n98-club-badge--fcb {
  background: var(--rot);
}
.n98-vs-sep {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-light);
}
/* Logo in Spielplan-Tabelle */
.n98-ticket-table td img,
.n98-ticket-table th img {
  vertical-align: middle;
  margin-right: .4rem;
}

/* ═══════════════════════════════════════════
   WORDPRESS EDITOR CONTENT – Bilder & Galerien
   (gilt für Startseite, Fahrten, Über uns etc.)
═══════════════════════════════════════════ */

/* Container */
.n98-editor-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

/* Einzelbild – responsive */
.n98-editor-content img,
.wp-block-image img,
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Bild mit Caption */
.n98-editor-content figure,
.wp-block-image {
  margin: 2rem 0;
}
.n98-editor-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
  font-size: .85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}

/* Klassische WordPress wp-caption */
.wp-caption {
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
}
.wp-caption img {
  border-radius: 8px;
}

/* Gutenberg Galerie */
.wp-block-gallery {
  margin: 2rem 0;
}
.wp-block-gallery .wp-block-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Classic-Editor Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 2rem 0;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .3s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* Bild links / rechts ausgerichtet (Classic Editor) */
.alignleft {
  float: left;
  margin: .5rem 1.5rem 1rem 0;
  border-radius: 8px;
}
.alignright {
  float: right;
  margin: .5rem 0 1rem 1.5rem;
  border-radius: 8px;
}
.aligncenter {
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
}
.alignfull {
  width: 100%;
  border-radius: 8px;
}

/* Clearfix für float-Bilder */
.n98-editor-content::after,
.entry-content::after {
  content: '';
  display: table;
  clear: both;
}

/* Fahrt-Einzelseite Inhaltsbereich */
.n98-fahrt-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}
.n98-fahrt-content figure {
  margin: 1.5rem 0;
}

/* Responsive: Floats auf Mobile aufheben */
@media (max-width: 600px) {
  .alignleft,
  .alignright {
    float: none;
    margin: 1rem auto;
    display: block;
  }
}
