/* EHC Bösingen-SenSee – Farben aus Logo und Trikot */
@font-face { font-family: "EHC Display"; src: url("/fonts/display.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "EHC Text"; src: url("/fonts/text.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --eis: #eef2f5;
  --eis-2: #e1e8ed;
  --papier: #ffffff;
  --tinte: #231014;
  --tinte-2: #5b4a4e;
  --bordeaux: #6e1222;
  --rot: #b3162a;
  --gold: #d3a40f;
  --gold-hell: #f0d27a;
  --stahl: #8f98a1;
  --display: "EHC Display", "Bahnschrift", "DIN Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --text: "EHC Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--eis); color: var(--tinte); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-underline-offset: .18em; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--tinte); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 68ch; }

/* Kopfzeile */
.kopf { background: var(--tinte); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--rot); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marke { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.marke img { width: 44px; height: 44px; object-fit: contain; }
.marke:hover { color: var(--gold-hell); }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.nav a, .nav summary { color: #fff; text-decoration: none; padding: .55rem .65rem; border-radius: 3px; font-weight: 600; font-size: .98rem; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.nav details { position: relative; }
.nav summary::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.18em) rotate(45deg); transition: transform .15s; }
.nav details[open] > summary::after { transform: translateY(.05em) rotate(-135deg); }
.nav .unter { position: absolute; right: 0; top: calc(100% + 6px); min-width: 12rem; background: var(--tinte); border: 1px solid #4a2a30; border-top: 3px solid var(--gold); padding: .4rem; display: grid; }
.menue-knopf { display: none; background: none; border: 2px solid #fff; color: #fff; font: 700 .95rem var(--text); padding: .45rem .8rem; border-radius: 3px; }
@media (max-width: 1180px) {
  .menue-knopf { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--tinte); padding: .5rem var(--gutter) 1rem; flex-direction: column; align-items: stretch; border-bottom: 3px solid var(--rot); }
  .nav.offen { display: flex; }
  .nav details { position: static; }
  .nav .unter { position: static; border: 0; border-left: 3px solid var(--gold); margin-left: .8rem; }
}

/* Held: Teamfoto + Spielbrett */
.held { position: relative; background: var(--bordeaux); color: #fff; }
.held-bild { height: clamp(300px, 52vh, 560px); position: relative; overflow: hidden; }
.held-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.held-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,16,20,.25) 0%, rgba(35,16,20,.1) 40%, rgba(35,16,20,.85) 100%); }
.held-titel { position: absolute; inset: auto 0 clamp(70px, 9vw, 110px) 0; z-index: 2; }
.held-titel h1 { margin: 0; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.held-titel p { margin: .35rem 0 0; font-size: 1.15rem; color: var(--gold-hell); font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* Spielbrett: das Markenzeichen der Seite */
.brett { position: relative; z-index: 3; margin-top: calc(-1 * clamp(56px, 7vw, 84px)); display: grid; grid-template-columns: 1fr 1fr; background: var(--tinte); color: #fff; border-top: 5px solid var(--gold); box-shadow: 0 18px 40px rgba(35,16,20,.35); }
.brett > section { padding: clamp(1.2rem, 3vw, 2rem); min-width: 0; }
.brett > section + section { border-left: 4px solid var(--rot); position: relative; }
.brett > section + section::before { content: ""; position: absolute; left: -16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--tinte); border: 4px solid var(--rot); }
.brett h2 { font-size: 1.15rem; color: var(--gold-hell); margin: 0 0 .9rem; letter-spacing: .03em; }
.brett .meta { color: #cdbcbf; font-size: .95rem; margin: 0 0 .9rem; }
.stand { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem 1rem; }
.stand .team { font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.stand .team.wir { color: var(--gold-hell); }
.stand .tore { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.4ch; text-align: right; }
.stand .tore.wir { color: var(--gold); }
.urteil { display: inline-block; margin-top: 1rem; padding: .2rem .7rem; font-weight: 700; font-size: .95rem; border-radius: 2px; }
.urteil.sieg { background: var(--gold); color: var(--tinte); }
.urteil.niederlage { background: #3d2a2e; color: #e9dcde; }
.urteil.remis { background: #3d2a2e; color: var(--gold-hell); }
.naechstes .wann { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.05; margin: 0 0 .2rem; }
.naechstes .uhr { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--gold); margin: 0 0 1rem; }
.naechstes .paarung { font-weight: 600; font-size: 1.1rem; margin: 0 0 .3rem; }
.naechstes .wo { color: #cdbcbf; margin: 0; font-size: .98rem; }
.leer { color: #cdbcbf; margin: 0; }
@media (max-width: 720px) {
  .brett { grid-template-columns: 1fr; }
  .brett > section + section { border-left: 0; border-top: 4px solid var(--rot); }
  .brett > section + section::before { left: 50%; top: -16px; margin: 0 0 0 -14px; }
}

/* Abschnitte */
.abschnitt { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.abschnitt.hell { background: var(--papier); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.abschnitt-kopf h2 { margin: 0; }
.seitenkopf { background: var(--bordeaux); color: #fff; padding: clamp(2rem, 5vw, 3.2rem) 0; border-bottom: 5px solid var(--gold); }
.seitenkopf h1 { margin: 0; }
.seitenkopf p { margin: .5rem 0 0; color: #ecd9dc; font-size: 1.1rem; }

.knopf { display: inline-block; background: var(--rot); color: #fff; text-decoration: none; font-weight: 700; padding: .75rem 1.3rem; border-radius: 3px; border: 0; cursor: pointer; font-size: 1rem; }
.knopf:hover { background: var(--bordeaux); color: #fff; }
.knopf.hell { background: transparent; color: var(--bordeaux); box-shadow: inset 0 0 0 2px var(--bordeaux); }
.knopf.hell:hover { background: var(--bordeaux); color: #fff; }

/* Spielliste */
.spiele { list-style: none; margin: 0; padding: 0; background: var(--papier); border-top: 3px solid var(--tinte); }
.spiel { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .2rem 1.2rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--eis-2); }
.spiel.wir-heim { box-shadow: inset 5px 0 0 var(--gold); }
.spiel .datum { font-weight: 700; }
.spiel .datum small { display: block; font-weight: 400; color: var(--tinte-2); font-size: .9rem; }
.spiel .paar { min-width: 0; }
.spiel .paar b { color: var(--bordeaux); }
.spiel .ort { display: block; color: var(--tinte-2); font-size: .9rem; }
.spiel .ergebnis { font-family: var(--display); font-weight: 900; font-size: 1.6rem; text-align: right; min-width: 4.5rem; font-variant-numeric: tabular-nums; }
.spiel .ergebnis.offen { font-family: var(--text); font-weight: 400; font-size: .95rem; color: var(--tinte-2); }
.spiel .ergebnis small { display: block; font-family: var(--text); font-size: .8rem; font-weight: 700; }
.spiel .ergebnis .s { color: #8a6a00; } .spiel .ergebnis .n { color: var(--tinte-2); }
.monat { font-family: var(--display); font-weight: 800; font-size: 1.2rem; background: var(--eis-2); padding: .4rem 1rem; }
@media (max-width: 640px) { .spiel { grid-template-columns: 1fr auto; } .spiel .datum { grid-column: 1 / -1; } .spiel .datum small { display: inline; margin-left: .5rem; } }
.hinweis { color: var(--tinte-2); font-size: .95rem; margin-top: 1rem; }

/* Team */
.teamfoto { margin: 0 0 2.5rem; border-top: 5px solid var(--gold); }
.teamfoto img { width: 100%; }
.gruppe h2 { border-bottom: 3px solid var(--tinte); padding-bottom: .3rem; margin-top: 2.2rem; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem 1rem; list-style: none; margin: 0; padding: 0; }
.karte { position: relative; }
.karte .foto { aspect-ratio: 4 / 5; background: var(--eis-2); overflow: hidden; }
.karte .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.karte .nr { position: absolute; left: 0; top: 0; background: var(--rot); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.3rem; min-width: 2.4rem; text-align: center; padding: .1rem .35rem; line-height: 1.4; }
.karte .name { font-weight: 700; margin: .5rem 0 0; line-height: 1.25; }
.karte .rolle { color: var(--tinte-2); font-size: .92rem; margin: 0; }
.karten.gross { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Erfolge */
.saison { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 2.5rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--stahl); }
.saison:nth-child(even) .bilder { order: 2; }
.saison .jahr { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--rot); line-height: 1; margin: 0 0 .4rem; }
.saison .bilder { display: grid; gap: .6rem; }
@media (max-width: 760px) { .saison { grid-template-columns: 1fr; } .saison:nth-child(even) .bilder { order: 0; } }

/* Medien */
.medien { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.medium { background: var(--papier); border-top: 4px solid var(--rot); display: flex; flex-direction: column; }
.medium .bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--eis-2); display: block; }
.medium .bild img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.medium .info { padding: 1rem; }
.medium h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.medium p { margin: 0 0 .4rem; color: var(--tinte-2); font-size: .95rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--tinte); color: #fff; width: 100%; border: 0; cursor: pointer; display: grid; place-items: center; font: 700 1rem var(--text); }
.video:hover { background: var(--bordeaux); }
.video .play { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--gold); display: grid; place-items: center; }
.video .play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--gold); margin-left: 5px; }
.video span.t { position: absolute; bottom: .7rem; left: 0; right: 0; text-align: center; font-size: .9rem; font-weight: 400; color: #e9dcde; padding: 0 1rem; }
.video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* Partner */
.logos { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.logos a { display: grid; place-items: center; height: 110px; background: #fff; border: 1px solid var(--eis-2); padding: .8rem; }
.logos a:hover { border-color: var(--gold); box-shadow: inset 0 -4px 0 var(--gold); }
.logos img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logos.klein { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.logos.klein a { height: 90px; }
.band .logos { margin: 0; }

/* Gönner */
.namen { columns: 3 220px; column-gap: 2rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.namen li { padding: .15rem 0; break-inside: avoid; }

/* Vorstand / Zeitleiste */
.vorstand { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.vorstand article { background: var(--papier); display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: start; border-top: 4px solid var(--gold); padding: 1rem; }
.vorstand .foto { aspect-ratio: 4 / 5; overflow: hidden; background: var(--eis-2); }
.vorstand img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.vorstand .funktion { color: var(--rot); font-weight: 700; margin: 0; font-size: .95rem; }
.vorstand h3 { margin: .1rem 0 .4rem; }
.vorstand p { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.zeit { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--rot); }
.zeit li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .7rem 0 .7rem 1.2rem; position: relative; }
.zeit li::before { content: ""; position: absolute; left: -10px; top: 1.1rem; width: 16px; height: 16px; background: var(--gold); border: 3px solid var(--eis); border-radius: 50%; }
.zeit .j { font-family: var(--display); font-weight: 900; font-size: 1.4rem; line-height: 1.2; }
.zeit p { margin: 0; }
@media (max-width: 520px) { .zeit li { grid-template-columns: 1fr; gap: .1rem; } }

/* Outdoor Hockey Cup */
.cup-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.cup-kopf img { width: 100%; max-height: 520px; object-fit: contain; background: #fff; }
.gewinner { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.gewinner figure { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tinte); }
.gewinner img { width: 100%; height: 100%; object-fit: cover; }
.gewinner figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .8rem; background: linear-gradient(0deg, rgba(35,16,20,.9), transparent); color: #fff; font-weight: 700; }
.gewinner figcaption b { font-family: var(--display); font-size: 2rem; display: block; color: var(--gold); line-height: 1; }
.zweispalt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: start; }
.person { display: flex; gap: 1rem; align-items: center; background: #fff; padding: 1rem; border-top: 4px solid var(--gold); max-width: 32rem; }
.person img { width: 84px; height: 105px; object-fit: cover; object-position: 50% 18%; }
.person p { margin: 0; }
@media (max-width: 760px) { .cup-kopf, .zweispalt { grid-template-columns: 1fr; } }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: start; }
.kontakt address { font-style: normal; font-size: 1.15rem; line-height: 1.7; }
.kontakt iframe { width: 100%; height: 360px; border: 0; background: var(--eis-2); }
@media (max-width: 760px) { .kontakt { grid-template-columns: 1fr; } }

/* Text (Datenschutz) */
.lang h2 { font-size: 1.5rem; margin-top: 2rem; }
.lang ul { max-width: 68ch; padding-left: 1.2rem; }

/* Fuss */
.fuss { background: var(--tinte); color: #e9dcde; padding: 2.5rem 0 2rem; border-top: 5px solid var(--rot); }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--gold-hell); }
.fuss .reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2rem; }
.fuss h2 { font-size: 1.1rem; color: var(--gold-hell); margin-bottom: .6rem; }
.fuss p, .fuss ul { margin: 0; padding: 0; list-style: none; line-height: 1.8; }
.fuss .klein { margin-top: 2rem; font-size: .9rem; color: #b9a4a8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .kopf, .fuss, .menue-knopf { display: none; } body { background: #fff; } }

/* Tabelle */
.tabelle-wrap { overflow-x: auto; background: var(--papier); border-top: 3px solid var(--tinte); }
.tabelle { border-collapse: collapse; width: 100%; min-width: 640px; font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: .65rem .6rem; text-align: right; border-bottom: 1px solid var(--eis-2); white-space: nowrap; }
.tabelle thead th { font-size: .85rem; color: var(--tinte-2); background: var(--eis-2); }
.tabelle .t { text-align: left; font-weight: 600; }
.tabelle thead .t { font-weight: 700; }
.tabelle tbody th:first-child, .tabelle thead th:first-child { text-align: center; width: 2.5rem; }
.tabelle .pkt { font-weight: 800; }
.tabelle tr.wir > * { background: #fbf3d6; }
.tabelle tr.wir th.t { box-shadow: inset 5px 0 0 var(--gold); }
@media (max-width: 760px) { .tabelle th.t, .tabelle thead th.t { position: sticky; left: 0; background: var(--papier); } .tabelle thead th.t { background: var(--eis-2); } .tabelle tr.wir th.t { background: #fbf3d6; } }

/* Legende der Tabelle */
.legende-titel { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.legende { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem 1.5rem; margin: 0 0 1.5rem; padding: 1rem 1.2rem; background: var(--papier); border-left: 4px solid var(--gold); }
.legende div { display: flex; align-items: baseline; gap: .7rem; }
.legende dt { font-family: var(--display); font-weight: 800; min-width: 3.2rem; color: var(--bordeaux); }
.legende dd { margin: 0; color: var(--tinte-2); font-size: .95rem; line-height: 1.35; }

/* Facebook */
.fb { max-width: 500px; }
.fb-platz { background: var(--eis); border: 1px solid var(--eis-2); border-top: 4px solid var(--rot); padding: 1.5rem; }
.fb-platz p { margin: 0 0 .6rem; }
.fb-platz .knopf { margin-top: .4rem; }
.fb iframe { display: block; border: 0; max-width: 100%; background: #fff; }

/* Spieler ohne Foto */
.karte .foto.platzhalter { background: var(--eis-2); }
.karte .foto.platzhalter img { object-fit: contain; object-position: 50% 50%; padding: 14%; opacity: .55; }
