/* PaddLeer – dunkles Design: Schwarz + Gelb, kompakt und sportlich.
   Keine externen Schriften oder Dienste (Datenschutz). */

:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --surface: #151515;
  --surface-2: #1e1e1e;
  --line: #2b2b2b;
  --text: #ececec;
  --muted: #a8a8a8;
  --yellow: #ffd60a;
  --yellow-hi: #ffe55c;
  --on-yellow: #0c0c0c;
  --danger: #ff8a8a;
  --ok: #7fd99b;
  --radius: 10px;
  --font-head: "Bahnschrift", "DIN Alternate", "Futura", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; background: var(--bg); }
body { margin: 0; font: 1rem/1.6 var(--font-body); color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--yellow-hi); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
h2::before { content: ""; display: inline-block; width: .3rem; height: .95em; background: var(--yellow); margin-right: .6rem; vertical-align: -.1em; border-radius: 1px; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }

.container { width: min(980px, 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--yellow); color: var(--on-yellow); padding: .6rem 1rem; border-radius: 6px; font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.1rem; height: 1.1rem; flex: none; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .92rem; margin-top: 1.25rem; }

/* ------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 12, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand img { border-radius: 8px; }
.brand strong { font: 700 1.15rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .8rem 0; text-decoration: none; font: 600 .86rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: #d8d8d8; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
@media (max-width: 479px) {
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: .8rem; letter-spacing: .06em; }
}
@media (max-width: 399px) { .brand strong { display: none; } }

/* ------------------------------------------------------------ Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.35rem; border-radius: 6px; border: 2px solid var(--yellow); background: var(--yellow); color: var(--on-yellow); font: 700 .92rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--yellow-hi); border-color: var(--yellow-hi); color: var(--on-yellow); }
.btn:focus-visible { outline-color: #fff; }
.btn-outline { background: transparent; color: var(--yellow); }
.btn-outline:hover { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.cta-row { margin: 1.5rem 0 0; }

/* ------------------------------------------------------------ Einleitung & Seitenköpfe */
.eyebrow { font: 600 .82rem var(--font-head); text-transform: uppercase; letter-spacing: .16em; color: var(--yellow); margin: 0 0 .4rem; }
.lead { font-size: 1.1rem; color: #d4d4d4; max-width: 40em; margin-bottom: 0; }
/* Hero: Titelbild in Schwarz-Weiß über die komplette Breite, Text unten auf einem dunklen Verlauf.
   Das Bild ist ein echtes <img> (austauschbar im Admin-Bereich) und wird per CSS immer in Graustufen gezeigt. */
.intro { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(380px, 40vw, 520px); padding: 6rem 0 2.25rem; background: #0c0c0c; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 30%); filter: grayscale(1) contrast(1.06); }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(12, 12, 12, .6) 0%, rgba(12, 12, 12, .1) 26%, rgba(12, 12, 12, .5) 60%, rgba(12, 12, 12, .92) 88%, #0c0c0c 100%); }
.fx-0 { --fx: 0%; } .fx-10 { --fx: 10%; } .fx-20 { --fx: 20%; } .fx-30 { --fx: 30%; } .fx-40 { --fx: 40%; } .fx-50 { --fx: 50%; }
.fx-60 { --fx: 60%; } .fx-70 { --fx: 70%; } .fx-80 { --fx: 80%; } .fx-90 { --fx: 90%; } .fx-100 { --fx: 100%; }
.fy-0 { --fy: 0%; } .fy-10 { --fy: 10%; } .fy-20 { --fy: 20%; } .fy-30 { --fy: 30%; } .fy-40 { --fy: 40%; } .fy-50 { --fy: 50%; }
.fy-60 { --fy: 60%; } .fy-70 { --fy: 70%; } .fy-80 { --fy: 80%; } .fy-90 { --fy: 90%; } .fy-100 { --fy: 100%; }
.intro-grid { display: flex; align-items: center; gap: 1.75rem; }
.intro-logo { width: 150px; height: 150px; flex: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .55)); }
.intro h1 { margin-bottom: .35em; }
.intro h1, .intro .lead, .intro .eyebrow { text-shadow: 0 1px 14px rgba(0, 0, 0, .65); }
.intro .lead { color: #e6e6e6; }
/* Handy/Tablet hochkant: das Foto in kompletter Breite (nicht herangezoomt) als Band oben, der Text darunter.
   Bei sehr hohen Fotos wird nur die Höhe begrenzt, die Breite bleibt voll. */
@media (max-width: 759px) {
  .intro { display: block; min-height: 0; padding: 0 0 1.75rem; overflow: visible; }
  .intro::before { display: none; }
  .hero-photo { position: relative; inset: auto; z-index: auto; }
  .hero-photo img { height: auto; max-height: 340px; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12, 12, 12, .45) 0%, rgba(12, 12, 12, 0) 28%, rgba(12, 12, 12, 0) 50%, #0c0c0c 100%); }
  .intro-grid { position: relative; z-index: 1; margin-top: -2.25rem; }
}
@media (max-width: 559px) {
  .intro-grid { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .intro-logo { width: 84px; height: 84px; }
  .intro .eyebrow { font-size: .72rem; letter-spacing: .1em; }
  .intro .lead { font-size: 1rem; }
}
.page-head { padding: 2rem 0 1.25rem; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { color: var(--muted); }
.back-link { margin: 0 0 .5rem; font-size: .92rem; }
.meta-line { color: var(--muted); font-size: .88rem; margin: 0 0 .3rem; }

/* ------------------------------------------------------------ Abschnitte */
.section { padding: 2.25rem 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.more-link { display: inline-flex; align-items: center; gap: .35rem; font: 600 .86rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0; }
.stack { display: flex; flex-direction: column; gap: .75rem; }

.prose { max-width: 66ch; }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { margin-top: 1.4em; }
.prose h4 { margin-top: 1.2em; font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose strong { color: #fff; }
.checklist ul { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: .15rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: .72rem; display: grid; place-items: center; line-height: 1; }
.legal h3 { font-size: 1.05rem; }

/* Training */
.training-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 759px) { .training-grid { grid-template-columns: 1fr; gap: 1rem; } }
.facts { list-style: none; margin: 1.25rem 0 .75rem; padding: 0; display: grid; gap: .9rem; }
.facts li { display: flex; gap: .85rem; align-items: flex-start; }
.facts .icon { color: var(--yellow); margin-top: .3rem; width: 1.3rem; height: 1.3rem; }
.facts strong { display: block; color: #fff; line-height: 1.3; }
.facts span { display: block; color: var(--muted); }
.facts a { font-size: .9rem; }
details.fold { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
details.fold summary { cursor: pointer; font: 600 .95rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
details.fold[open] summary { margin-bottom: .75rem; }

/* ------------------------------------------------------------ Regatten, Ergebnisse */
.badge { display: inline-flex; align-items: center; padding: .1rem .6rem; border-radius: 4px; font: 700 .72rem/1.6 var(--font-head); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; vertical-align: middle; }
.badge-accent { background: var(--yellow); color: var(--on-yellow); }
.badge-ok { background: #173523; color: var(--ok); }
.badge-soft { background: var(--surface-2); color: #cfcfcf; border: 1px solid var(--line); }

.regatta-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.6rem; height: 4rem; border-radius: 8px; background: var(--yellow); color: var(--on-yellow); font-family: var(--font-head); line-height: 1; }
.date-block .day { font-size: 1.6rem; font-weight: 700; }
.date-block .month { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; font-weight: 700; }
.regatta-body h3 { margin-bottom: .3rem; }
.regatta-body h3 .badge { margin-left: .4rem; }
.meta { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; color: var(--muted); font-size: .93rem; }
.meta li { display: inline-flex; align-items: center; gap: .4rem; }
.meta .icon { color: var(--yellow); }
.regatta-body .prose { font-size: .95rem; color: #cfcfcf; }
.regatta-body p:last-child { margin-bottom: 0; }
@media (max-width: 479px) { .regatta-card { grid-template-columns: 1fr; } .date-block { flex-direction: row; gap: .5rem; width: auto; height: auto; padding: .4rem .8rem; align-self: flex-start; } .date-block .month { margin-top: 0; } }

.year-group { margin-bottom: 1.5rem; }
.year { font: 700 1rem var(--font-head); letter-spacing: .12em; color: var(--yellow); padding-bottom: .35rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
.results { display: flex; flex-direction: column; gap: .5rem; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.result-summary { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .35rem 1rem; align-items: center; padding: .75rem 1rem; list-style: none; cursor: pointer; }
details.result > .result-summary { grid-template-columns: 8.5rem 1fr auto 1rem; }
.result-pending .result-summary { cursor: default; }
.result-summary::-webkit-details-marker { display: none; }
.result-date { font-size: .9rem; color: var(--muted); font-weight: 600; }
.result-name { display: flex; flex-direction: column; line-height: 1.3; }
.result-name strong { color: #fff; }
.result-name small { color: var(--muted); font-size: .84rem; }
.chevron { width: .55rem; height: .55rem; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(45deg); transition: transform .2s; justify-self: center; margin-top: -.2rem; }
details[open] > summary .chevron { transform: rotate(-135deg); margin-top: .2rem; }
details.result > summary:hover { background: var(--surface-2); border-radius: var(--radius); }
.result-body { padding: .9rem 1rem 1.1rem; border-top: 1px solid var(--line); }
@media (max-width: 639px) {
  .result-summary, details.result > .result-summary { grid-template-columns: 1fr auto; }
  .result-date { grid-column: 1 / -1; }
  details.result > .result-summary .badge { grid-column: 1; justify-self: start; }
  details.result > .result-summary .chevron { grid-column: 2; grid-row: 2 / span 2; }
}
.table-wrap { overflow-x: auto; margin: .9rem 0; border: 1px solid var(--line); border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .5rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--surface-2); color: var(--yellow); font: 700 .82rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.table tbody th { width: 4rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tr.is-us, .table tr.is-us th { background: var(--yellow); color: var(--on-yellow); font-weight: 700; }

/* ------------------------------------------------------------ News */
.news-list { display: flex; flex-direction: column; }
.news-row { display: flex; justify-content: space-between; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.news-row:first-child { padding-top: 0; }
.news-row:last-child { border-bottom: 0; }
.news-text { min-width: 0; }
.news-row h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.news-row h3 a { color: #fff; text-decoration: none; }
.news-row h3 a:hover { color: var(--yellow); }
.excerpt { color: var(--muted); margin: 0; }
.news-thumb { flex: none; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 479px) { .news-thumb { width: 84px; height: 64px; } }
.article-body { padding: .5rem 0 3rem; }
.article-image { margin: 0 0 1.5rem; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.article-body .prose { max-width: 70ch; font-size: 1.05rem; }
.article-image { max-width: 70ch; }

/* ------------------------------------------------------------ Zweispaltig, Infos, Kontakt */
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.25rem; align-items: start; }
@media (max-width: 759px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1.25rem; }
.info-card h2 { font-size: 1rem; }
.info-card p { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.contact-list .icon { color: var(--yellow); margin-top: .25rem; }
.contact-list strong { display: block; color: #fff; }
.contact-list a { word-break: break-word; }

/* ------------------------------------------------------------ Formulare */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem 1.5rem; }
.form-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 559px) { .form-grid { grid-template-columns: 1fr; } }
.field label:not(.check) { display: block; font-weight: 600; margin-bottom: .3rem; color: #fff; }
.optional { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; padding: .65rem .8rem; font: inherit; color: var(--text); background: #0f0f0f; border: 1.5px solid #4a4a4a; border-radius: 6px; }
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #777; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--yellow); }
.help { font-size: .86rem; color: var(--muted); margin: .3rem 0 0; }
.field-error { color: var(--danger); font-weight: 700; font-size: .9rem; margin: .35rem 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-weight: 400; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--yellow); }
.form-alert { background: #2a1414; border: 1px solid #7a2e2e; color: #ffc4c4; padding: .8rem 1rem; border-radius: 8px; }
.form-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-success { background: #12261a; border: 1px solid #2f6a45; color: #c4f3d4; padding: 1.1rem 1.25rem; border-radius: 8px; font-size: 1.05rem; }
.form-success p { margin: .6rem 0 0; font-size: .95rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

/* ------------------------------------------------------------ Galerie */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .5rem; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .85rem; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); color: #ddd; text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip span { color: var(--muted); }
.chip:hover { border-color: var(--yellow); color: var(--yellow); }
.chip[aria-current="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.chip[aria-current="true"] span { color: var(--on-yellow); opacity: .75; }
.lightbox { border: 0; padding: 0; margin: 0; inset: 0; background: #000; overscroll-behavior: none; width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; color: #fff; }
.lightbox::backdrop { background: #000; }
/* Das Foto füllt den ganzen Platz; Zurück/Weiter und Zähler stehen darunter */
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }
.lightbox figure { margin: 0; flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.lb-stage { flex: 1 1 auto; min-height: 0; width: 100%; }
.lightbox img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox figcaption { flex: none; text-align: center; max-width: 60ch; color: #d4d4d4; }
.lb-nav { flex: none; display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.lb-count { min-width: 5.5rem; text-align: center; color: var(--muted); font: 600 .95rem var(--font-body); font-variant-numeric: tabular-nums; }
.lb-where { flex: none; margin: 0; text-align: center; color: var(--yellow); font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.lb-btn { -webkit-tap-highlight-color: transparent; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lb-nav .lb-btn { width: 3.25rem; height: 3.25rem; }
.lb-btn:hover { background: var(--yellow); color: var(--on-yellow); }
/* Schließen und Herunterladen liegen oben rechts über dem Foto, mit dunklem Grund, damit sie auch auf hellen Fotos zu sehen sind */
.lb-close, .lb-dl { background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
.lb-close:hover, .lb-dl:hover { background: var(--yellow); border-color: var(--yellow); }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.lb-dl { position: absolute; top: 1rem; right: 4.5rem; z-index: 2; display: grid; place-items: center; text-decoration: none; }
.lb-dl:hover { color: var(--on-yellow); }
@media (max-width: 559px) { .lb-btn { width: 2.5rem; height: 2.5rem; } .lb-nav .lb-btn { width: 3rem; height: 3rem; } .lightbox-inner { padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0px)); } .lb-close { top: .75rem; right: .75rem; } .lb-dl { top: .75rem; right: 3.75rem; } }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.75rem; }
.pager a, .pager span { min-width: 2.5rem; padding: .4rem .8rem; text-align: center; border-radius: 6px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; color: #ddd; }
.pager span[aria-current] { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.pager a:hover { border-color: var(--yellow); color: var(--yellow); }

/* ------------------------------------------------------------ Footer */
.site-footer { margin-top: 1rem; border-top: 1px solid var(--line); background: #080808; color: var(--muted); font-size: .94rem; }
.site-footer a { color: #d8d8d8; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.25rem .75rem; }
.footer-brand { margin: 0; }
.footer-brand strong { color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; }
.social-links { display: inline-flex; gap: .9rem; }
.social-links a { display: inline-flex; color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .75rem 1.25rem; border-top: 1px solid var(--line); font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Größere Tipp-Flächen auf Touch-Geräten und kleinen Bildschirmen (mind. ca. 44 px) */
@media (pointer: coarse), (max-width: 819px) {
  .more-link { padding-block: .6rem; }
  .footer-links a, .footer-bottom nav a, .footer-brand a { display: inline-block; padding-block: .6rem; }
  .social-links a { padding: .6rem; }
  .facts a, .contact-list a { display: inline-block; padding-block: .6rem; }
  .btn-sm { min-height: 2.75rem; }
  .check { min-height: 2.75rem; padding-block: .25rem; }
  .check input { width: 1.5rem; height: 1.5rem; }
  .site-nav a { padding-block: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ Über uns mit Video-Karte */
[hidden] { display: none !important; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 759px) { .about-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.video-card a { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.video-card a:hover { background: var(--surface-2); }
.video-play { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; }
.video-play svg { width: 1.2rem; height: 1.2rem; fill: currentColor; stroke: currentColor; margin-left: .15rem; }
.video-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.video-source { font: 600 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.video-title { color: #fff; font-size: 1.05rem; line-height: 1.3; }
.video-text { color: var(--muted); font-size: .94rem; }
.video-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; color: var(--yellow); font: 600 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.video-body small { color: var(--muted); font-size: .82rem; }

/* ------------------------------------------------------------ Live-Regatta */
.live-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #ff3b30; margin-right: .4rem; animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); } 70% { box-shadow: 0 0 0 .5rem rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.badge-live { background: #2a0f0d; color: #ff9b92; border: 1px solid #6a2520; }
.live-banner { display: block; background: var(--yellow); color: var(--on-yellow); text-decoration: none; font: 700 .92rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.live-banner:hover { background: var(--yellow-hi); color: var(--on-yellow); }
.live-banner .container { display: flex; align-items: center; gap: .6rem; padding-block: .7rem; }
.live-banner .live-dot { background: #d10; margin-right: 0; }
.live-tools { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: .75rem; }
.team-pick { display: inline-flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .92rem; }
.team-pick select { padding: .45rem .6rem; background: #0f0f0f; color: var(--text); border: 1.5px solid #4a4a4a; border-radius: 6px; font: inherit; max-width: 60vw; }
.live-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: 1rem; }
.live-intro { margin-bottom: 1.25rem; }
h2.spaced { margin-top: 2.25rem; }
.next-race { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.next-race h3 { margin: 0 0 .6rem; }
.next-race h3 small { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: .4rem; }
.lane-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .4rem .75rem; }
.lane-list li { display: flex; gap: .6rem; align-items: baseline; padding: .35rem .6rem; border-radius: 6px; background: var(--surface-2); color: #fff; }
.lane { color: var(--yellow); font: 700 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.standings td.total { font-weight: 700; color: #fff; text-align: right; white-space: nowrap; }
.standings thead th:last-child { text-align: right; }
.standings td.team, .race-table td.team { font-weight: 600; color: #fff; }
.standings tbody th { width: 3.5rem; }
.standings tr.rank-1 th, .standings tr.rank-1 td.team { color: var(--yellow); }
.round { margin-top: 2.5rem; }
.round:first-of-type { margin-top: 1.25rem; }
.round-title { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 .35rem; }
.round-title::before, .round-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(255, 214, 10, 0), rgba(255, 214, 10, .6)); }
.round-title::after { transform: scaleX(-1); }
.round-title span { font: 700 1.3rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); white-space: nowrap; }
.round-sub { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: .9rem; }
.race { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.race.race-running { border-color: var(--yellow); }
.race header { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.race h4 { margin: 0; font-size: 1rem; }
.race-time { color: var(--muted); font-size: .9rem; margin-right: auto; }
.race .race-table { font-size: .92rem; }
.race-table th:first-child { width: 3.2rem; }
.race-table th:nth-child(4), .race-table td:nth-child(4) { width: 3.5rem; }
.race-table tbody tr:last-child > * { border-bottom: 0; }
tr.is-first td, tr.is-first th { color: var(--yellow); }
tr.mine th, tr.mine td { background: rgba(255, 214, 10, .2); color: #fff; }
li.mine { outline: 2px solid var(--yellow); }
.live-list { display: flex; flex-direction: column; gap: .5rem; }
.live-row { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.live-row:hover { border-color: var(--yellow); }
.live-row-date { color: var(--muted); font-weight: 600; font-size: .9rem; min-width: 8.5rem; }
.live-row-name { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.live-row-name strong { color: #fff; }
.live-row-name small { color: var(--muted); }
.live-row .icon { color: var(--yellow); }
@media (max-width: 559px) { .live-row { flex-wrap: wrap; } .live-row-date { min-width: 100%; } }

/* ------------------------------------------------------------ Galerie-Alben: Kopfzeile bleibt beim Scrollen oben stehen */
.gallery-folder { margin-bottom: 2.25rem; scroll-margin-top: var(--header-h, 3.6rem); }
.folder-head { position: sticky; top: var(--header-h, 3.6rem); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 .75rem; padding: .55rem 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.folder-info { min-width: 0; }
.folder-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.folder-title a { color: inherit; text-decoration: none; }
.folder-title a:hover { color: var(--yellow); }
.open-btn .icon { width: 1.05em; height: 1.05em; }
.folder-title { margin: 0; overflow-wrap: anywhere; }
.folder-meta { margin: .1rem 0 0; color: var(--muted); font-size: .85rem; }
.zip-btn { flex: none; }
.zip-btn[disabled] { opacity: .75; cursor: progress; }
.zip-btn.err { border-color: var(--danger); color: var(--danger); }

/* Foto-Kachel mit Download-Knopf unten rechts */
.gallery-tile { position: relative; }
.dl-btn { position: absolute; right: .4rem; bottom: .4rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(12, 12, 12, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(3px); transition: background .15s, color .15s; }
.dl-btn:hover, .dl-btn:focus-visible { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.dl-btn .icon { width: 1.1rem; height: 1.1rem; }

/* "Weitere Fotos anzeigen" (ein <details> unter den ersten Fotos eines Albums) */
.gallery-more { margin-top: .5rem; }
.gallery-more:not([open]) > .gallery-grid { display: none; } /* eingeklappte Fotos werden erst beim Aufklappen geladen */
.gallery-more > summary { display: flex; align-items: center; justify-content: center; gap: .5rem; width: max-content; max-width: 100%; margin: 0 auto .5rem; padding: .55rem 1.2rem; border: 1.5px solid var(--line); border-radius: 6px; background: var(--surface); color: #fff; font: 700 .86rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; list-style: none; }
.gallery-more > summary::-webkit-details-marker { display: none; }
.gallery-more > summary:hover { border-color: var(--yellow); color: var(--yellow); }
.gallery-more > summary .chev { transition: transform .2s; }
.gallery-more[open] > summary .chev { transform: rotate(180deg); }
.gallery-more .when-open, .gallery-more[open] .when-closed { display: none; }
.gallery-more[open] .when-open { display: inline; }
/* Abschnitte (Unterüberschriften) innerhalb eines Albums */
.gallery-section { margin-top: 1.6rem; }
.folder-head + .gallery-section { margin-top: .4rem; }
.section-title { margin: 0 0 .6rem; padding-left: .65rem; border-left: 3px solid var(--yellow); font-size: 1.05rem; line-height: 1.25; scroll-margin-top: calc(var(--header-h, 3.6rem) + 5rem); overflow-wrap: anywhere; }
.section-title .count { margin-left: .35rem; color: var(--muted); font: 600 .78rem var(--font-body); }
@media (max-width: 559px) {
  .folder-head { padding: .4rem 0; }
  .folder-title { font-size: 1.1rem; }
  .folder-meta { font-size: .78rem; }
  /* auf dem Handy nur Symbole (die Kopfzeile bleibt schmal); beim Packen/Fehler erscheint der Text */
  .folder-actions .btn, .album-tools .zip-btn { padding: .45rem .65rem; }
  .folder-actions .btn-lbl { display: none; }
  .folder-actions .icon { width: 1.25rem; height: 1.25rem; }
  .folder-actions .zip-btn.busy .btn-lbl, .folder-actions .zip-btn.err .btn-lbl, .folder-actions .zip-btn.ready .btn-lbl, .folder-actions .zip-btn.next .btn-lbl { display: inline; }
  .album-tools .btn { padding: .45rem .65rem; }
  .album-tools .btn-lbl { display: none; }
  .album-tools .icon { width: 1.25rem; height: 1.25rem; }
  .album-tools .zip-btn.busy .btn-lbl, .album-tools .zip-btn.err .btn-lbl, .album-tools .zip-btn.ready .btn-lbl, .album-tools .zip-btn.next .btn-lbl { display: inline; }
}

/* Gesamtwertung auf dem Handy: kompakter, damit die Spalte "Gesamt" sichtbar bleibt */
@media (max-width: 559px) {
  .standings th, .standings td { padding: .45rem .4rem; font-size: .88rem; }
  .standings thead th { font-size: .74rem; letter-spacing: .04em; }
  .standings tbody th { width: 2.2rem; }
  .standings td.team { min-width: 5.5rem; overflow-wrap: anywhere; }
  .race-table th, .race-table td { padding-inline: .5rem; }
}

/* Galerie: auf dem Handy zwei Bilder pro Zeile */
@media (max-width: 559px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
}

/* Eigenes Team (PaddLeer) in der Wertung: dunkle Schrift auf gelbem Grund, auch auf Platz 1 */
.standings tr.is-us th, .standings tr.is-us td, .standings tr.is-us td.team, .standings tr.is-us td.total,
.standings tr.is-us.rank-1 th, .standings tr.is-us.rank-1 td.team { background: var(--yellow); color: var(--on-yellow); }

/* Eigene Seite eines Albums */
.crumb { margin: 0 0 .6rem; font-size: .9rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--yellow); }
/* Titel links, Knöpfe immer rechts daneben (ein langer Titel bricht um, statt die Knöpfe nach unten zu schieben) */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: 0 0 .6rem; }
.head-row h1 { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.album-tools { display: flex; gap: .6rem; flex: none; }
/* Sprungleiste: bleibt unter der Kopfleiste stehen, eine Zeile (wischbar), der aktuelle Abschnitt ist gelb */
.section-jump { position: sticky; top: var(--header-h, 3.6rem); z-index: 6; flex-wrap: nowrap; overflow-x: auto; margin: 0 0 1.25rem; padding: .6rem 0; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.section-jump .chip { flex: none; white-space: nowrap; }
/* html hat schon scroll-padding-top: 4.5rem – das wird hier abgezogen, damit die Überschrift knapp unter den festen Leisten landet */
.album-full .section-title { scroll-margin-top: calc(var(--header-h, 3.6rem) + var(--jump-h, 0px) - 4.5rem + .75rem); }
@media (max-width: 559px) {
  .section-jump { margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
  .section-jump::-webkit-scrollbar { display: none; }
}
.album-full .gallery-section:first-child { margin-top: 0; }

/* Fotos sichern (iPhone): Zustände der Knöpfe und kurze Meldung */
.dl-btn.busy, .lb-dl.busy { opacity: .6; cursor: progress; }
.dl-btn.ready, .lb-dl.ready, .zip-btn.ready, .zip-btn.next { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.pl-note { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%) translateY(150%); width: min(92vw, 28rem); padding: .75rem 1rem; border-radius: 10px; background: #1e1e1e; color: #fff; border: 1px solid var(--yellow); box-shadow: 0 6px 24px rgba(0, 0, 0, .6); text-align: center; font-size: .95rem; z-index: 2000; transition: transform .25s; pointer-events: none; }
.pl-note.show { transform: translateX(-50%) translateY(0); }

/* Auswahl vor dem Speichern (iPhone): von unten eingeblendet */
.save-choice { border: 0; padding: 0; margin: auto auto 0; width: min(100%, 32rem); max-width: 100%; background: transparent; color: var(--text); }
.save-choice::backdrop { background: rgba(0, 0, 0, .72); }
.sc-box { display: grid; gap: .6rem; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
.sc-title { margin: 0 0 .2rem; text-align: center; color: var(--muted); font: 700 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.sc-opt { display: grid; gap: .15rem; width: 100%; padding: .85rem 1rem; text-align: left; border-radius: 12px; border: 2px solid var(--yellow); background: var(--yellow); color: var(--on-yellow); font: inherit; cursor: pointer; }
.sc-opt[data-choice="file"] { background: transparent; color: #fff; border-color: var(--line); }
.sc-opt strong { font: 700 1.05rem var(--font-head); }
.sc-opt span { font-size: .88rem; opacity: .8; }
.sc-cancel { padding: .75rem; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 600 1rem var(--font-body); cursor: pointer; }

/* Viewer offen: die Seite dahinter ist festgesetzt (kein Scrollen durch Wischen oder Mausrad) */
html.lb-open { overflow: hidden; overscroll-behavior: none; }
body.lb-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
