/* Barufe online – Stylesheet (Systemschriften, keine externen Ressourcen) */
:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #ebe8df;
  --ink: #15171c;
  --muted: #5b616d;
  --line: #d9d5ca;
  --accent: #1f5fbf;          /* Blau */
  --accent-ink: #ffffff;
  --accent-soft: #cfe0f8;
  --red: #c8102e;             /* Berliner Rot */
  --green: #2e7d4f;
  --link: #0b5cad;
  --own: #dbe8fb;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.06);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Bahnschrift, "DIN Alternate", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --surface-2: #232730;
    --ink: #ecebe6;
    --muted: #a3a9b4;
    --line: #2e333c;
    --accent: #3b82f6;
    --accent-ink: #ffffff;
    --accent-soft: #1d3a66;
    --red: #ff5a6e;
    --green: #5cc189;
    --link: #8cc4ff;
    --own: #17325a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; top: 8px; }

/* Kopf */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.brand small { font-weight: 400; color: var(--muted); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { display: block; padding: 8px 11px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 600 .95rem var(--font); cursor: pointer; }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; }
  .js .nav a { padding: 12px 12px; font-size: 1.05rem; }
  .head-row { flex-wrap: wrap; }
  .nav ul { justify-content: flex-start; }
}

/* Wappen */
.crests { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; margin: 22px 0 18px; }
.crest { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.crest img { height: 112px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.crest figcaption { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
@media (max-width: 420px) { .crests { gap: 14px; } .crest img { height: 84px; } .crest figcaption { font-size: .85rem; } }

/* Startseite */
.hero { padding: 40px 0 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); margin: .1em 0 .1em; }
.hero h1 span { background: linear-gradient(transparent 62%, var(--accent-soft) 62%, var(--accent-soft) 92%, transparent 92%); padding: 0 .06em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 38ch; }
.photo-frame { margin: 0; background: var(--surface); padding: 12px 12px 14px; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.photo-frame img { display: block; width: 100%; border-radius: 2px; filter: sepia(.15); }
.photo-frame figcaption { margin-top: 10px; text-align: center; font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", var(--font); font-size: 1.05rem; color: var(--muted); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .photo-frame { transform: none; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 24px 0 8px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; min-height: 150px; }
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile .ico { font-size: 1.6rem; line-height: 1; }
.tile h3 { margin: 4px 0 0; font-size: 1.25rem; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile .meta { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }

/* Allgemeine Bausteine */
main { padding-bottom: 48px; }
.page-head { padding: 34px 0 10px; }
.page-head p.lead { font-size: 1.12rem; color: var(--muted); max-width: 65ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--ink); }
.note.warn { border-left-color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.badge.F { background: #dbeafe; color: #123a6b; }
.badge.W { background: #dcf3e3; color: #14532d; }
.badge.J { background: #fde2e2; color: #7a1020; }
.badge.P { background: #e6e0fb; color: #3b2a7a; }
@media (prefers-color-scheme: dark) {
  .badge.F { background: #183255; color: #cfe2ff; }
  .badge.W { background: #173d27; color: #c9f1d6; }
  .badge.J { background: #4a1820; color: #ffd3d8; }
  .badge.P { background: #2c2556; color: #ddd6ff; }
}
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 600 .98rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.ext::after { content: " ↗"; font-size: .85em; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }
.prose { max-width: 70ch; }
.cols-list { columns: 2 260px; column-gap: 28px; padding-left: 1.1em; }

/* Fußball */
.phase-line { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 46%), 1fr)); gap: 8px; margin: 14px 0 6px; padding: 0; list-style: none; }
.phase-line li { display: flex; }
.phase-line a { flex: 1; }
@media (max-width: 420px) { .phase-line a span { font-size: .76rem; } .phase-line a { padding: 7px 10px; } }
.phase-line a { display: inline-flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.phase-line a b { font-family: var(--font-display); }
.phase-line a span { font-size: .82rem; color: var(--muted); }
.season { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; box-shadow: var(--shadow); overflow: hidden; }
.season > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 74px 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 18px; }
.season > summary::-webkit-details-marker { display: none; }
.season > summary .yr { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.season > summary .lg { font-weight: 600; }
.season > summary .lg small { display: block; font-weight: 400; color: var(--muted); }
.season > summary .pl { font-family: var(--font-display); font-weight: 700; text-align: right; white-space: nowrap; }
.season > summary .pl small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.season > summary::after { content: "▾"; grid-column: 3; justify-self: end; display: none; }
.season[open] > summary { border-bottom: 1px solid var(--line); }
.season .body { padding: 6px 18px 16px; }
.rank-pill { display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-right: 6px; }
.rank-pill.top { background: var(--green); color: #fff; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
table.tbl th, table.tbl td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line); }
table.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.tbl th.team, table.tbl td.team { text-align: left; width: 100%; }
table.tbl td.rk { font-weight: 700; width: 2.5em; }
table.tbl td:not(.team) { white-space: nowrap; }
table.tbl tr.own td { background: var(--own); font-weight: 700; }
table.tbl tr.own td.team::after { content: " ◀"; color: var(--red); }
.src { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 600px) {
  table.tbl .opt { display: none; }
  table.tbl th, table.tbl td { padding: 6px 5px; }
  table.tbl { font-size: .9rem; }
  .season > summary { grid-template-columns: 58px 1fr; }
  .season > summary .pl { grid-column: 2; text-align: left; }
  .season > summary .pl small { display: inline; margin-left: 6px; }
}
@media (max-width: 360px) {
  .season .body { padding: 6px 8px 14px; }
  .season > summary { padding: 12px 12px; }
  table.tbl { font-size: .84rem; }
  table.tbl th, table.tbl td { padding: 6px 3px; }
  table.tbl th { letter-spacing: 0; }
}

/* Touren */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.filters button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 .92rem var(--font); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.no-js .filters { display: none; }
.tour-year { margin-top: 22px; }
.tour-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.tour { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); height: 100%; }
.tour:hover { border-color: var(--accent); }
.tour svg { width: 64px; height: 64px; background: var(--surface-2); border-radius: 8px; }
.tour .t { font-weight: 600; line-height: 1.3; }
.tour .d { font-size: .86rem; color: var(--muted); }
.map-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.map-box svg { display: block; width: 100%; height: auto; }
.trk { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trk-bg { fill: none; stroke: var(--surface); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.grid-lines line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-bg { fill: var(--surface-2); }
.pt-start { fill: var(--green); stroke: var(--surface); stroke-width: 2; }
.pt-end { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.svg-lbl { fill: var(--muted); font: 15px var(--font); }
@media (max-width: 600px) { .svg-lbl { font-size: 24px; } }
.ele-area { fill: color-mix(in srgb, var(--accent) 45%, transparent); stroke: none; }
.ele-line { fill: none; stroke: #1f5fbf; stroke-width: 2; vector-effect: non-scaling-stroke; }

.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Galerien */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .cap { display: block; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; margin: 14px 0; }
.album { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.album img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.album span { display: block; padding: 10px 12px; font-weight: 600; }
.album span small { display: block; font-weight: 400; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(8,9,12,.88); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
dialog.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: #fff; }
dialog.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 8px 14px; font: 600 1rem var(--font); cursor: pointer; }

/* Schallplatten */
.search { width: 100%; max-width: 420px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 1rem var(--font); }
.records { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 45%), 1fr)); gap: 14px; }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%; }
.record img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); }
.record div { padding: 9px 11px 11px; font-size: .92rem; line-height: 1.35; }
.record b { display: block; }
.record a { font-size: .82rem; }

/* Gästebuch */
.gb-entry { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.gb-entry header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.gb-entry header b { font-family: var(--font-display); font-size: 1.05rem; }
.gb-entry header time { color: var(--muted); font-size: .88rem; }
.gb-entry .txt { white-space: pre-line; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=password], .form input[type=number], .form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 1rem var(--font);
}
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.msg-ok { border-left: 4px solid var(--green); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.msg-err { border-left: 4px solid var(--red); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-actions form { margin: 0; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.archive-toggle > summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); font-size: 1.2rem; padding: 6px 0; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 36px; align-items: start; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; gap: 20px; } .portrait { max-width: 260px; } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--accent); }
.timeline > li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 4px 18px; padding: 0 0 22px 22px; }
.timeline > li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline .when { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.timeline b { display: block; font-size: 1.08rem; }
.timeline .where { display: block; color: var(--muted); }
.timeline ul { margin: 6px 0 0; padding-left: 1.1em; }
@media (max-width: 560px) { .timeline > li { grid-template-columns: 1fr; } }

/* Fuß */
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.site-foot nav a { color: var(--ink); text-decoration: none; margin-right: 16px; font-weight: 600; display: inline-block; padding: 4px 0; }
.site-foot nav a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .filters, .btn-row { display: none; } body { background: #fff; color: #000; } }
