@charset "UTF-8";
/* Schrift Lato – lokal eingebunden (keine Verbindung zu Google) */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("schrift/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("schrift/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("schrift/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("schrift/lato-latin-900-normal.woff2") format("woff2"); }
/* Layout nach dem Vereins-Newsletter: Kopf mit Verlauf Schwarz→Rot, Logo links, Maskottchen rechts,
   Papierstreifen darunter, rote Mehrfachstreifen als Trenner, zentrierte Überschriften auf hellgrauem Grund. */
:root {
  --bg: #d9d9d9;
  --paper: #ececec;
  --ink: #181010;
  --soft: #4f413b;
  --line: #bdb5b1;
  --red: #bc0609;
  --red-deep: #7a0204;
  --black: #0b0505;
  --on-dark: #ffffff;
  --belt-training: #2e64b8;
  --belt-pruefung: #e08a12;
  --belt-turnier: #bc0609;
  --belt-lehrgang: #2f8a4c;
  --belt-verein: #5e4b43;
  --f-body: "Lato", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151010; --paper: #211919; --ink: #f1ecea; --soft: #b8ada7; --line: #3d302d;
    --red: #e3262b; --red-deep: #8f0306; --black: #050202;
    --belt-training: #6a9be6; --belt-pruefung: #f0a640; --belt-turnier: #e3262b; --belt-lehrgang: #5cbf7a; --belt-verein: #b39486;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151010; --paper: #211919; --ink: #f1ecea; --soft: #b8ada7; --line: #3d302d;
  --red: #e3262b; --red-deep: #8f0306; --black: #050202;
  --belt-training: #6a9be6; --belt-pruefung: #f0a640; --belt-turnier: #e3262b; --belt-lehrgang: #5cbf7a; --belt-verein: #b39486;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--black); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Einheitliche Trennlinie für die ganze Seite */
:root { --rule: 3px solid var(--red); }
.rule { border: 0; border-top: var(--rule); margin: 0; }

/* Kopfzeile */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--black); color: var(--on-dark); }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font-size: 18px; font-weight: 700; }
.brand img { width: 38px; height: 38px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
nav a { display: block; padding: 6px 11px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 15px; opacity: .9; }
nav a:hover { background: var(--red); opacity: 1; }
@media (max-width: 720px) {
  .top .wrap { gap: 6px; }
  nav { width: 100%; overflow-x: auto; }
  nav ul { flex-wrap: nowrap; }
  nav a { font-size: 14px; padding: 6px 9px; white-space: nowrap; }
}

/* Einstieg: Verlauf wie Newsletter-Kopf */
.hero { background: linear-gradient(180deg, #000 0%, #2a0202 40%, #a10407 85%, #bc0609 100%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-block: 28px 34px; }
.hero .logo { width: clamp(84px, 14vw, 150px); height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.hero .maskottchen { width: clamp(70px, 11vw, 120px); height: auto; }
.hero .mid { text-align: center; min-width: 0; }
.hero h1 { font-weight: 400; font-size: clamp(32px, 5.5vw, 60px); line-height: 1.1; }
.hero p { max-width: 56ch; margin: 12px auto 0; font-size: 17px; opacity: .92; }
@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr auto; gap: 16px 12px; }
  .hero .mid { grid-column: 1 / -1; grid-row: 2; }
}

/* Papierstreifen mit nächstem Termin */
.paper-band { padding-block: 10px 6px; }
.paper { max-width: 900px; margin: 0 auto; background: url("bilder/papier.webp") center / 100% 100% no-repeat; color: #181010; text-align: center; padding: 28px 40px 32px; }
.paper .lbl { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #bc0609; }
.paper h2 { font-weight: 400; font-size: clamp(24px, 4vw, 38px); line-height: 1.15; margin-top: 4px; }
.paper .when { margin-top: 6px; color: #4f413b; font-variant-numeric: tabular-nums; }
.paper a { color: #bc0609; font-weight: 700; text-decoration: none; }
.paper a:hover { text-decoration: underline; }
@media (max-width: 560px) { .paper { padding: 24px 22px 26px; } }

.note { font-size: 14px; color: var(--soft); border: 1px dashed var(--line); border-radius: 6px; padding: 10px 14px; margin: 18px 0 0; }

/* Abschnitte */
section { padding-block: 34px 10px; }
.sec-head { text-align: center; margin: 18px 0 24px; }
.sec-head h2 { font-weight: 400; font-size: clamp(32px, 4.6vw, 44px); line-height: 1.1; }
.sec-head p { margin: 6px 0 0; color: var(--soft); }
.sec-head .tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* Neuigkeiten */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.news article { background: var(--paper); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border-top: var(--rule); }
.news article.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.news article.lead.noimg { display: flex; }
.news article.lead.noimg .body { padding: 26px 28px 28px; }
.news article.lead.noimg .teaser { max-width: 70ch; font-size: 18px; }
.news .img { aspect-ratio: 16 / 10; max-width: 100%; background: var(--black); overflow: hidden; }
.news .lead .img { aspect-ratio: auto; min-height: 280px; }
.news img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.meta { font-size: 14px; color: var(--soft); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-variant-numeric: tabular-nums; }
.tag { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.news h3 { font-size: 22px; font-weight: 700; line-height: 1.25; }
.news .lead h3 { font-weight: 400; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
.news .teaser { margin: 0; color: var(--soft); }
.more { margin-top: auto; align-self: flex-start; background: var(--red); color: #fff; border: 0; border-radius: 3px; padding: 7px 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.more:hover { background: var(--red-deep); }
.more::after { content: "→"; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }
@media (max-width: 760px) { .news article.lead { grid-template-columns: 1fr; } .news .lead .img { min-height: 0; aspect-ratio: 16/10; } }

/* Buttons / Chips */
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.chip .dot { width: 10px; height: 10px; border-radius: 2px; }

/* Termine */
.cal { display: grid; gap: 26px; }
.month h3 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 900; padding-bottom: 8px; border-bottom: var(--rule); margin-bottom: 4px; }
.ev { display: grid; grid-template-columns: 64px 6px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev .d { text-align: center; line-height: 1; }
.ev .d b { display: block; font-weight: 900; font-size: 32px; font-variant-numeric: tabular-nums; }
.ev .d span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); font-weight: 700; }
.ev .belt { align-self: stretch; border-radius: 3px; }
.ev h4 { margin: 0; font-size: 18px; line-height: 1.25; }
.ev .info { color: var(--soft); font-size: 15px; margin-top: 2px; }
.ev .kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); white-space: nowrap; }
.ev.past { opacity: .55; }
.empty { color: var(--soft); padding: 16px 0; text-align: center; }
.legend { font-size: 13px; color: var(--soft); margin-top: 14px; text-align: center; }
@media (max-width: 600px) { .ev { grid-template-columns: 52px 5px 1fr; gap: 12px; } .ev .kind { grid-column: 3; margin-top: -6px; } .ev .d b { font-size: 27px; } }

/* Galerie */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gal button { border: 0; padding: 0; background: var(--black); border-radius: 2px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gal button:hover img { transform: scale(1.04); }
.gal figcaption { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; font-size: 13px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* Dateien */
.files { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.file { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border-radius: 4px; padding: 14px 18px; text-decoration: none; }
.file:hover { background: var(--bg); outline: 1px solid var(--line); }
.ext { font-size: 12px; font-weight: 900; text-transform: uppercase; background: var(--red); color: #fff; border-radius: 3px; padding: 14px 0; text-align: center; letter-spacing: .06em; }
.file h4 { margin: 0; font-size: 17px; }
.file p { margin: 2px 0 0; font-size: 14px; color: var(--soft); }
.file .size { font-size: 13px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.file > div { min-width: 0; }
@media (max-width: 520px) { .file { grid-template-columns: 44px 1fr; } .file .size { grid-column: 2; } }

/* Links */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.links a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; background: var(--paper); min-width: 0; }
.links a:hover { border-color: var(--red); }
.links b { font-size: 17px; }
.links span { font-size: 14px; color: var(--soft); }
.links small { font-size: 13px; color: var(--red); font-weight: 700; margin-top: 4px; overflow-wrap: anywhere; }

/* Fußzeile */
footer { margin-top: 56px; background: linear-gradient(180deg, #bc0609 0%, #a10407 15%, #2a0202 60%, #000 100%); color: #fff; }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; padding-block: 40px; }
footer h3 { font-weight: 700; font-size: 20px; margin-bottom: 10px; }
footer p, footer table { margin: 0; font-size: 15px; opacity: .92; }
footer table { border-collapse: collapse; color: inherit; font: inherit; }
footer td { padding: 3px 14px 3px 0; vertical-align: top; }
footer td:first-child { font-weight: 700; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; font-size: 13px; opacity: .75; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
footer .copy img { width: 32px; height: 32px; }
.copybtn { background: none; border: 1px solid rgba(255,255,255,.4); color: inherit; font: inherit; font-size: 13px; padding: 2px 9px; border-radius: 4px; cursor: pointer; margin-left: 6px; }

/* Dialoge */
dialog { border: 0; padding: 0; border-radius: 6px; background: var(--paper); color: var(--ink); max-width: min(760px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(0,0,0,.45); border-top: var(--rule); }
dialog::backdrop { background: rgba(8,3,3,.75); }
.reader-img { aspect-ratio: 16/9; max-width: 100%; background: var(--black); }
.reader-img .zoom { border: 0; padding: 0; width: 100%; height: 100%; display: block; cursor: zoom-in; background: none; }
.reader-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reader { padding: 24px 28px 28px; }
.reader h2 { font-weight: 400; font-size: clamp(28px, 4.5vw, 38px); line-height: 1.15; margin: 10px 0 16px; }
.reader p { margin: 0 0 14px; max-width: 65ch; }
.reader .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 18px; }
.reader .thumbs button { border: 0; padding: 0; border-radius: 2px; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; background: var(--black); }
.reader .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
#lightbox { background: #0b0505; color: #fff; max-width: min(1100px, calc(100vw - 32px)); }
#lightbox figure { margin: 0; }
#lightbox img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
#lightbox figcaption { padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 15px; }
#lightbox figcaption span { margin-right: auto; }
.lbnav { background: rgba(255,255,255,.14); border: 0; color: #fff; font: inherit; font-size: 18px; width: 40px; height: 34px; border-radius: 4px; cursor: pointer; }

/* Unterseiten: Impressum, Datenschutz */
.page-band { background: linear-gradient(180deg, #000 0%, #2a0202 40%, #a10407 85%, #bc0609 100%); color: #fff; }
.page-band .wrap { display: flex; align-items: center; gap: 20px; padding-block: 22px 26px; }
.page-band img { width: 72px; height: 72px; }
.page-band h1 { font-weight: 400; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; }
.legal { max-width: 760px; margin: 0 auto; padding-block: 28px 8px; }
.legal h2 { font-weight: 700; font-size: 22px; margin: 34px 0 10px; padding-top: 18px; border-top: var(--rule); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 6px 18px; margin: 0 0 12px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; min-width: 0; }
.legal .todo { background: #ffe9a8; color: #3b2a00; padding: 0 5px; border-radius: 3px; font-weight: 700; }
.legal .stand { color: var(--soft); font-size: 14px; margin-top: 30px; }
.back { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--red); text-decoration: none; }
.back:hover { text-decoration: underline; }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 8px; } .page-band img { width: 52px; height: 52px; } }
