/* Blau Gelb Angeln – Farben aus dem Vereinslogo */
:root {
  --blau-dunkel: #233767;   /* Vereinsblau (Grundfarbe) */
  --blau: #0033cc;          /* Logo-Blau hell */
  --blau-tief: #002090;     /* Logo-Blau dunkel */
  --gelb: #ffff00;          /* Logo-Gelb */
  --gelb-warm: #ffe600;
  --text: #1c2333;
  --grau: #5b6478;
  --hell: #f3f5fa;
  --rand: #dde2ee;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); line-height: 1.6; background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--blau); }
h1, h2, h3 { color: var(--blau-dunkel); line-height: 1.25; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: var(--gelb); padding: 8px 12px; z-index: 100; }

/* Kopfbereich: oben Logo + Buttons, darunter das Menü */
.site-header { background: var(--blau-dunkel); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; padding: 8px 0; }
.brand .logo { width: 60px; height: auto; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.brand strong { display: block; font-size: 1.3rem; letter-spacing: .02em; color: var(--gelb); }
.brand small { display: block; color: #cfd7ef; font-size: .85rem; line-height: 1.35; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn.btn-small { padding: 8px 16px; font-size: .95rem; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.btn-small svg { width: 20px; height: 20px; fill: currentColor; }
.btn.btn-light { background: #fff; border-color: #fff; color: var(--blau-dunkel); }
.btn.btn-light:hover { background: #e8ecf7; }
.ext { font-size: .8em; opacity: .8; }
.main-nav { background: var(--blau-tief); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 4px solid var(--gelb); }
.nav-inner { display: flex; align-items: stretch; justify-content: space-between; }
.nav-inner > a, .has-sub > a { display: flex; align-items: center; gap: 4px; color: #fff; text-decoration: none; padding: 12px 10px; font-weight: 600; white-space: nowrap; font-size: .98rem; border-bottom: 3px solid transparent; margin-bottom: -4px; }
.nav-inner > a:hover, .has-sub:hover > a { background: rgba(255,255,255,.08); }
.nav-inner > a.active, .has-sub.is-active > a { border-bottom-color: #fff; color: var(--gelb); }
.has-sub { position: relative; display: flex; }
.has-sub .caret { font-size: .7em; }
.has-sub .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(0,0,0,.2); padding: 8px; margin-top: 4px; z-index: 60; }
.has-sub:last-child .sub { left: auto; right: 0; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub a { display: block; color: var(--blau-dunkel); text-decoration: none; padding: 9px 12px; border-radius: 6px; font-weight: 500; }
.has-sub .sub a:hover, .has-sub .sub a.active { background: var(--hell); color: var(--blau); }
.nav-cta { display: none; }
.menu-toggle { display: none; background: none; border: 2px solid var(--gelb); color: var(--gelb); font-size: 1.4rem; border-radius: 6px; padding: 2px 10px; cursor: pointer; }

/* Startseite */
.hero { background: radial-gradient(circle at 70% 30%, var(--blau) 0%, var(--blau-tief) 45%, var(--blau-dunkel) 100%); background-size: cover; background-position: center; color: #fff; padding: 90px 0 100px; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.hero-logo { width: 240px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); max-width: 760px; margin: 0 0 12px; }
.hero p { font-size: 1.15rem; color: #dfe6fa; max-width: 640px; margin: 0 0 28px; }
.btn { display: inline-block; background: var(--gelb); color: var(--blau-dunkel); padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid var(--gelb); margin: 0 8px 8px 0; }
.btn:hover { background: var(--gelb-warm); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.columns { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.columns h2 { border-bottom: 3px solid var(--gelb); display: inline-block; padding-bottom: 4px; }

/* Karten (News) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(35,55,103,.15); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-body { padding: 16px 18px 18px; }
.card h3 { margin: 4px 0 8px; font-size: 1.12rem; }
.card h3 a { color: var(--blau-dunkel); text-decoration: none; }
.meta { color: var(--grau); font-size: .88rem; margin: 0; }
.more { font-weight: 600; text-decoration: none; }

/* Termine */
.event { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rand); }
.event-date { flex: 0 0 64px; height: 68px; background: var(--blau-dunkel); color: var(--gelb); border-radius: 8px; text-align: center; font-size: .8rem; text-transform: uppercase; font-weight: 600; padding-top: 6px; }
.event-date span { display: block; font-size: 1.6rem; line-height: 1.1; color: #fff; }
.event h3 { margin: 0 0 2px; font-size: 1.05rem; }
.event .text p { margin: 6px 0 0; }
details.past { margin-top: 30px; }
details.past summary { cursor: pointer; font-weight: 600; color: var(--blau); }
details.past .event { opacity: .7; }

/* Inhaltsseiten */
.content { padding-top: 40px; padding-bottom: 60px; }
.content h1 { margin-top: 0; font-size: 2rem; }
.content h1::after { content: ""; display: block; width: 70px; height: 5px; background: var(--gelb); margin-top: 10px; border-radius: 3px; }
.narrow { max-width: 820px; }
.content img { border-radius: var(--radius); }
.lead-image { width: 100%; margin-bottom: 20px; }
.subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.subpages a { display: block; padding: 16px; border: 1px solid var(--rand); border-left: 5px solid var(--gelb); border-radius: 8px; text-decoration: none; color: var(--text); }
.subpages a:hover { background: var(--hell); }
.subpages strong { display: block; color: var(--blau-dunkel); }
.subpages span { font-size: .9rem; color: var(--grau); }
.contact-box { background: var(--hell); border-left: 5px solid var(--blau-dunkel); padding: 18px 22px; border-radius: 8px; }
.downloads { list-style: none; padding: 0; }
.downloads li { padding: 10px 0; border-bottom: 1px solid var(--rand); }
.downloads a { font-weight: 600; text-decoration: none; }
.downloads small { color: var(--grau); margin-left: 6px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 30px; }
.gallery a { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 0; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; padding: 20px 10px 8px; font-size: .85rem; }

/* Sponsoren */
.sponsors { background: var(--hell); padding: 40px 0; border-top: 1px solid var(--rand); }
.sponsors h2 { text-align: center; margin-top: 0; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sponsor-grid > * { background: #fff; border-radius: 8px; height: 100px; display: flex; align-items: center; justify-content: center; padding: 12px; text-decoration: none; color: var(--blau-dunkel); font-weight: 600; text-align: center; border: 1px solid var(--rand); }
.sponsor-grid img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(.3); transition: filter .2s; }
.sponsor-grid a:hover img { filter: none; }

/* Fußbereich */
.site-footer { background: var(--blau-dunkel); color: #d5dcf0; padding: 40px 0 20px; border-top: 5px solid var(--gelb); }
.site-footer a { color: #fff; }
.site-footer strong { color: var(--gelb); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links a { display: block; text-decoration: none; padding: 2px 0; }
.footer-links a:hover { color: var(--gelb); }
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); align-items: center; justify-content: center; }
.social a:hover { background: var(--gelb); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.social a:hover svg { fill: var(--blau-dunkel); }
.copyright { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; display: flex; justify-content: space-between; }
.to-top { text-decoration: none; }

/* Mobil */
@media (max-width: 1180px) { .brand small { display: none; } .nav-inner > a, .has-sub > a { padding: 12px 7px; font-size: .92rem; } }
@media (max-width: 1080px) and (min-width: 961px) { .nav-inner > a, .has-sub > a { font-size: .86rem; padding: 12px 5px; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; max-height: calc(100vh - 78px); overflow-y: auto; }
  .nav-open .main-nav { display: block; }
  .nav-inner { flex-direction: column; padding-bottom: 12px; }
  .has-sub { flex-direction: column; }
  .nav-inner > a, .has-sub > a { margin: 0; border: 0; }
  .has-sub .sub { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 6px 16px; margin: 0; min-width: 0; }
  .has-sub .sub a { color: #cfd7ef; padding: 6px 12px; }
  .has-sub .caret { display: none; }
  .header-cta .btn-small { padding: 6px 10px; font-size: .85rem; }
  .header-cta .btn-small svg { display: none; }
  .columns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand .logo { width: 50px; }
  .brand small { display: none; }
}

.notice { background: #fff8d6; border-left: 4px solid var(--gelb-warm); padding: 10px 14px; border-radius: 6px; }

/* Unterseiten */
.crumb { color: var(--grau); font-size: .9rem; margin: 0 0 6px; }
.crumb a { text-decoration: none; }
.intro { margin-bottom: 24px; }
.article-title { font-size: 1.6rem; }
h3.month { margin: 28px 0 4px; color: var(--blau); text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; }

/* Kacheln (Abteilungen / Sport im Überblick) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile-link { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--blau-dunkel); transition: box-shadow .2s, transform .2s; }
.tile-link:hover { box-shadow: 0 8px 24px rgba(35,55,103,.15); transform: translateY(-2px); }
.tile-link img, .tile-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0 !important; }
.tile-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blau-dunkel), var(--blau)); color: var(--gelb); font-size: 2.6rem; font-weight: 800; }
.tile-link strong { padding: 10px 12px 2px; }
.tile-link small { padding: 0 12px 12px; color: var(--grau); }
.tile-link strong:last-child { padding-bottom: 12px; }
.sport-overview { background: var(--hell); padding: 44px 0 52px; }
.sport-overview h2 { border-bottom: 3px solid var(--gelb); display: inline-block; padding-bottom: 4px; margin-top: 0; }

/* Teams */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-chips a { background: var(--hell); border: 1px solid var(--rand); padding: 5px 12px; border-radius: 20px; text-decoration: none; font-size: .9rem; color: var(--blau-dunkel); }
.filter-chips a:hover { background: var(--gelb); }
.team-group { margin-bottom: 30px; scroll-margin-top: 140px; }
.team-group h2 { border-bottom: 3px solid var(--gelb); display: inline-block; padding-bottom: 2px; }
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: start; }
details.team { background: #fff; border: 1px solid var(--rand); border-left: 4px solid var(--blau-dunkel); border-radius: 8px; padding: 10px 14px; }
details.team[open] { border-left-color: var(--gelb); }
details.team summary { cursor: pointer; color: var(--blau-dunkel); }
details.team .text { font-size: .95rem; }

/* Sportstätten */
.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.venue { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); overflow: hidden; }
.venue img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0 !important; display: block; }
.venue > div { padding: 4px 18px 14px; }

/* Sponsoren-Seite */
.sponsor-grid-large > * { height: auto; min-height: 140px; flex-direction: column; gap: 8px; }
.sponsor-grid-large img { max-height: 90px; }

/* Kontaktformular */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 14px; color: var(--blau-dunkel); }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #c3cadb; border-radius: 6px; font: inherit; margin-top: 4px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--blau); border-color: transparent; }
.contact-form label.check { font-weight: 400; color: var(--text); font-size: .92rem; }
.contact-form label.check input { display: inline; width: auto; margin-right: 6px; }
.contact-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash-ok { background: #dcf5e0; color: #2e7d32; padding: 12px 16px; border-radius: 8px; }
@media (max-width: 760px) { .contact-layout, .row2 { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .header-top { min-height: 64px; }
  .header-cta .btn { display: none; }
  .brand .logo { width: 44px; }
  .brand strong { font-size: 1.1rem; }
  .nav-cta { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; }
}
