/* vereinschronik.at – Oberfläche
   Schrift Inter lokal eingebunden (keine externen Schriftdienste, DSGVO). */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --akzent: #C8102E;                 /* Vereinsfarbe (pro Verein einstellbar) */
  --akzent-hell: color-mix(in srgb, var(--akzent) 9%, white);
  --akzent-mittel: color-mix(in srgb, var(--akzent) 22%, white);
  --marke: #187279;                  /* vereinschronik / Alphamedia Petrol */
  --marke-dunkel: #0f4f55;
  --tinte: #0b1a21;                  /* Seitenleiste */
  --tinte-2: #13262e;
  --gold: #e9b872;
  --text: #15212a;
  --text-2: #5d6b75;
  --text-3: #8a97a0;
  --linie: #e5e9ec;
  --flaeche: #f3f5f6;
  --weiss: #fff;
  --gruen: #13795b; --gruen-hell: #e2f5ee;
  --gelb: #8a5a00; --gelb-hell: #fff4dc;
  --grau: #56636c; --grau-hell: #edf0f2;
  --rot: #b42318; --rot-hell: #fdecea;
  --radius: 14px;
  --radius-klein: 9px;
  --schatten: 0 1px 2px rgba(11,26,33,.04), 0 4px 16px -4px rgba(11,26,33,.08);
  --schatten-gross: 0 20px 50px -12px rgba(11,26,33,.35);
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text); background: var(--flaeche); line-height: 1.55; font-feature-settings: "cv11", "ss01"; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 1.75rem; margin: 0 0 .25rem; letter-spacing: -.025em; font-weight: 750; line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 0 0 .85rem; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 650; }
.leise { color: var(--text-2); }
.klein { font-size: .86rem; }
::selection { background: var(--akzent-mittel); }

/* ---------------------------------------------------------------- Layout */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.seitenleiste { background: var(--tinte); color: #c9d6db; padding: 1.25rem 1rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background-image: linear-gradient(180deg, rgba(24,114,121,.18), transparent 40%); }
.produkt { display: flex; align-items: center; gap: .55rem; padding: .25rem .5rem 1.1rem; color: #fff;
  font-weight: 750; letter-spacing: -.02em; font-size: 1.08rem; }
.produkt:hover { text-decoration: none; }
.produkt .logo { width: 30px; height: 30px; flex: none; }
.produkt span { color: var(--gold); font-weight: 600; }
.marke { display: flex; align-items: center; gap: .7rem; padding: .75rem; margin: 0 0 1rem;
  border-radius: var(--radius-klein); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.marke .zeichen { width: 38px; height: 38px; border-radius: 10px; background: var(--akzent); color: #fff;
  display: grid; place-items: center; font-weight: 800; flex: none; font-size: .9rem;
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--akzent) 60%, transparent); }
.marke b { display: block; line-height: 1.25; color: #fff; font-size: .92rem; }
.marke small { color: #8fa4ad; font-size: .76rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--radius-klein);
  color: #c9d6db; margin-bottom: 2px; font-weight: 500; font-size: .94rem; transition: background .15s, color .15s; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.aktiv { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a.aktiv svg { opacity: 1; color: var(--gold); }
.nav .titel { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #6f8791;
  padding: 1.1rem .7rem .4rem; font-weight: 600; }
.nav .zahl { margin-left: auto; background: var(--gold); color: var(--tinte); border-radius: 99px; font-size: .72rem;
  padding: .05rem .5rem; font-weight: 700; }
.benutzer { margin-top: auto; padding: .9rem .6rem .2rem; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: .65rem; font-size: .86rem; color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--marke); color: #fff; display: grid;
  place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.benutzer .leise { color: #8fa4ad; font-size: .76rem; }
.benutzer form { margin-left: auto; }
.benutzer button { background: none; border: 0; color: #8fa4ad; cursor: pointer; padding: .3rem; border-radius: 6px; }
.benutzer button:hover { color: #fff; background: rgba(255,255,255,.08); }

.hauptbereich { display: flex; flex-direction: column; min-width: 0; }
.kopfleiste { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem;
  padding: .8rem 2.25rem; background: color-mix(in srgb, var(--flaeche) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie); }
.schnellsuche { position: relative; flex: 1; max-width: 520px; }
.schnellsuche svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 17px; color: var(--text-3); }
.schnellsuche input { padding-left: 2.4rem !important; background: var(--weiss); border-color: var(--linie) !important; }
.kopfleiste .rechts { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.inhalt { padding: 1.75rem 2.25rem 3rem; max-width: 1280px; width: 100%; flex: 1; }
.kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.kopf .leise { font-size: .92rem; }
.knopf.menue-knopf { display: none; }

/* Footer */
.fuss { border-top: 1px solid var(--linie); padding: 1.1rem 2.25rem; display: flex; gap: .5rem 1.5rem;
  flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--text-3); background: var(--weiss); }
.fuss .alphamedia { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-2); }
.fuss .alphamedia b { color: var(--marke); letter-spacing: .08em; font-weight: 800; font-size: .78rem; }
.fuss a { color: var(--text-2); }
.fuss .links { margin-left: auto; display: flex; gap: 1.1rem; }

/* ---------------------------------------------------------------- Bausteine */
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--schatten); margin-bottom: 1.25rem; }
.raster { display: grid; gap: 1.25rem; }
.raster-2 { grid-template-columns: 1fr 1fr; }
.raster-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* Übersicht: Titelbild */
.held { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; margin-bottom: 1.5rem;
  color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.25rem 2.25rem 1.75rem; box-shadow: var(--schatten-gross);
  background: var(--tinte) url("hintergrund.0dd4f890626d.svg") center 62% / cover no-repeat; }
.held::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,19,27,.05) 0%, rgba(7,19,27,.25) 45%, rgba(7,19,27,.8) 100%); }
.held > * { position: relative; }
.held .datum-zeile { color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.held h1 { font-size: 2.3rem; margin: .3rem 0 .35rem; color: #fff; }
.held p { margin: 0 0 1.25rem; color: #d3e0e4; max-width: 560px; }
.held-suche { display: flex; gap: .5rem; max-width: 620px; }
.held-suche input { background: rgba(255,255,255,.95) !important; border: 0 !important; padding: .8rem 1rem !important;
  font-size: 1rem !important; border-radius: 12px !important; }
.held-suche .knopf { padding: .8rem 1.2rem; border-radius: 12px; }
.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kennzahl { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  box-shadow: var(--schatten); display: flex; align-items: center; gap: .9rem; }
.kennzahl .symbol { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--akzent-hell); color: var(--akzent); }
.kennzahl .symbol svg { width: 21px; height: 21px; }
.kennzahl b { display: block; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.02em; }
.kennzahl span { color: var(--text-2); font-size: .84rem; }
.hinweis-karte { display: flex; gap: .75rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--radius-klein);
  background: var(--gelb-hell); color: var(--gelb); margin-bottom: 1rem; border: 1px solid #f5e1b3; }
.hinweis-karte a { color: inherit; font-weight: 650; }

/* Listen */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }

/* Einträge als Zeitstrahl */
.zeitstrahl { position: relative; }
.eintrag-zeile { display: grid; grid-template-columns: 128px 1fr auto; gap: 1.25rem; padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--linie); position: relative; transition: background .15s; }
.eintrag-zeile:hover { background: #fafbfb; }
.eintrag-zeile:last-child { border-bottom: 0; }
.eintrag-zeile .datum { font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: .9rem;
  padding-left: 1.1rem; position: relative; }
.eintrag-zeile .datum::before { content: ""; position: absolute; left: 0; top: .45rem; width: 8px; height: 8px;
  border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-hell); }
.eintrag-zeile h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.eintrag-zeile h3 a { color: var(--text); }
.eintrag-zeile p { margin: .15rem 0 .5rem; color: var(--text-2); font-size: .92rem; }
.miniaturen { display: flex; gap: 5px; }
.miniaturen img, .miniaturen .platzhalter { width: 58px; height: 58px; object-fit: cover; border-radius: 8px;
  background: var(--flaeche); border: 1px solid var(--linie); }
.jahr-trenner { padding: .55rem 1.4rem; background: linear-gradient(90deg, var(--akzent-hell), transparent);
  font-weight: 800; color: var(--akzent); border-bottom: 1px solid var(--linie); font-size: .95rem; letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-block; background: var(--grau-hell); color: var(--text); border-radius: 99px;
  padding: .12rem .65rem; font-size: .78rem; white-space: nowrap; font-weight: 500; }
a.chip:hover { text-decoration: none; filter: brightness(.96); }
.chip.person { background: var(--akzent-hell); color: var(--akzent); }
.badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 99px; padding: .15rem .65rem;
  font-size: .76rem; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.gruen { background: var(--gruen-hell); color: var(--gruen); }
.badge.gelb { background: var(--gelb-hell); color: var(--gelb); }
.badge.grau { background: var(--grau-hell); color: var(--grau); }
.badge.grau::before { display: none; }
.karte .liste a { color: var(--text); font-weight: 500; }
.karte .liste a:hover { color: var(--akzent); }
.badge.rot { background: var(--rot-hell); color: var(--rot); }

/* Tabellen */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .72rem; color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:hover { background: #fafbfb; }

/* Formulare */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: var(--text); }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=password], input[type=email],
select, textarea { width: 100%; padding: .6rem .8rem; border: 1px solid #d4dadf; border-radius: var(--radius-klein);
  font: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent);
  box-shadow: 0 0 0 4px var(--akzent-hell); }
input[type=checkbox] { accent-color: var(--akzent); width: 16px; height: 16px; }
textarea { resize: vertical; }
.feld { margin-bottom: 1.05rem; }
.feld .hilfe, .hilfe { color: var(--text-2); font-size: .8rem; margin-top: .3rem; }
.feld .fehler, .errorlist { color: var(--rot); font-size: .84rem; margin: .3rem 0 0; padding: 0; list-style: none; }
.auswahl { max-height: 240px; overflow-y: auto; border: 1px solid #d4dadf; border-radius: var(--radius-klein); padding: .45rem .7rem; }
.auswahl > div > div, .auswahl label { font-weight: 400; margin: 0; }
.auswahl label { display: flex; gap: .5rem; align-items: center; padding: .2rem 0; cursor: pointer; }
.auswahl-filter { margin-bottom: .45rem; }
.filterleiste { display: grid; grid-template-columns: 2fr repeat(2, 90px) repeat(3, 1fr) auto; gap: .7rem; align-items: end; }
.filterleiste .feld { margin: 0; }
.formzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.formzeile-3 { display: grid; grid-template-columns: 2fr 1.4fr 1.2fr auto; gap: .6rem; align-items: end; }
details summary { cursor: pointer; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid #d4dadf;
  background: #fff; color: var(--text); border-radius: var(--radius-klein); padding: .55rem 1rem; font: inherit;
  font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: all .15s; }
.knopf:hover { background: var(--flaeche); text-decoration: none; border-color: #c3cbd1; }
.knopf svg { width: 17px; height: 17px; }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff;
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--akzent) 70%, transparent); }
.knopf.haupt:hover { filter: brightness(.94); }
.knopf.gruen { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.knopf.gefahr { color: var(--rot); }
.knopf.klein { padding: .3rem .65rem; font-size: .83rem; }
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Meldungen */
.meldung { padding: .85rem 1.1rem; border-radius: var(--radius-klein); margin-bottom: 1rem; font-weight: 500; }
.meldung.success { background: var(--gruen-hell); color: var(--gruen); }
.meldung.error { background: var(--rot-hell); color: var(--rot); }
.meldung.info, .meldung.warning { background: var(--gelb-hell); color: var(--gelb); }

/* Eintrag-Detail */
.eintrag-text { white-space: pre-line; font-size: 1.03rem; line-height: 1.75; color: #22313a; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.medium { border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; background: #fff; display: flex;
  flex-direction: column; transition: box-shadow .2s, transform .2s; }
.medium:hover { box-shadow: var(--schatten); transform: translateY(-2px); }
.medium .bild { aspect-ratio: 4/3; background: var(--flaeche); display: grid; place-items: center; overflow: hidden; }
.medium .bild img { width: 100%; height: 100%; object-fit: cover; }
.medium .dok { font-weight: 800; color: var(--text-3); font-size: 1rem; letter-spacing: .1em;
  border: 2px solid var(--linie); border-radius: 8px; padding: .5rem .7rem; background: #fff; }
.medium .info { padding: .6rem .7rem; font-size: .8rem; flex: 1; }
.medium .info .name { word-break: break-all; color: var(--text-3); }
.statusbox { border-top: 4px solid var(--akzent); }
dl.eigenschaften { display: grid; grid-template-columns: 110px 1fr; gap: .55rem .75rem; margin: 0; font-size: .9rem; }
dl.eigenschaften dt { color: var(--text-3); }
dl.eigenschaften dd { margin: 0; }
.aenderung { font-size: .86rem; margin: .4rem 0 0; }
.aenderung del { background: var(--rot-hell); text-decoration: line-through; padding: 0 .25rem; border-radius: 3px; }
.aenderung ins { background: var(--gruen-hell); text-decoration: none; padding: 0 .25rem; border-radius: 3px; }
.zeitleiste { list-style: none; padding: 0; margin: 0; }
.zeitleiste li { position: relative; padding: 0 0 1.1rem 1.35rem; border-left: 2px solid var(--linie); margin-left: .35rem; }
.zeitleiste li:last-child { border-left-color: transparent; }
.zeitleiste li::before { content: ""; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--akzent); }
.leer { text-align: center; padding: 2.5rem; color: var(--text-2); }
mark { background: #ffeaa0; padding: 0 2px; border-radius: 3px; }
.seitenwahl { display: flex; gap: .5rem; justify-content: center; align-items: center; padding: 1rem; }

/* ---------------------------------------------------------------- Anmeldung */
.anmeldung { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--tinte); }
.anmeldung .bildseite { position: relative; background: url("hintergrund.0dd4f890626d.svg") center 60% / cover no-repeat;
  display: flex; flex-direction: column; padding: 2.5rem 3rem; color: #fff; }
.anmeldung .bildseite .text { margin: auto 0; padding-bottom: 12vh; }
.anmeldung .bildseite::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,19,27,.55), rgba(7,19,27,.05) 40%, rgba(7,19,27,.35)); }
.anmeldung .bildseite > * { position: relative; }
.anmeldung .slogan { font-size: 2.6rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; max-width: 520px; margin: 0 0 .8rem; }
.anmeldung .slogan span { color: var(--gold); }
.anmeldung .unterzeile { color: #cfdde1; max-width: 460px; font-size: 1.05rem; margin: 0; }
.anmeldung .formseite { background: var(--weiss); display: flex; flex-direction: column; justify-content: center;
  padding: 3rem clamp(1.5rem, 6vw, 5rem); }
.anmeldung .formseite form { width: 100%; max-width: 380px; }
.anmeldung .formseite h1 { font-size: 1.9rem; }
.anmeldung .formseite input { padding: .75rem .9rem; }
.anmeldung .knopf.haupt { width: 100%; padding: .8rem; font-size: 1rem; margin-top: .5rem; }
.anmeldung .klein-fuss { margin-top: auto; padding-top: 2rem; font-size: .8rem; color: var(--text-3); }
.anmeldung .klein-fuss b { color: var(--marke); letter-spacing: .08em; }
.produkt.hell { color: #fff; padding: 0; }

/* Rechtstexte */
.rechtstext { max-width: 760px; }
.rechtstext h2 { margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .kennzahlen { grid-template-columns: 1fr 1fr; }
  .filterleiste { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .seitenleiste { position: fixed; z-index: 30; width: 272px; transform: translateX(-100%); transition: transform .25s; }
  .seitenleiste.offen { transform: none; box-shadow: var(--schatten-gross); }
  .knopf.menue-knopf { display: inline-flex; }
  .kopfleiste, .inhalt, .fuss { padding-left: 1rem; padding-right: 1rem; }
  .kopfleiste .rechts .knopf span { display: none; }
  .raster-2, .raster-3, .formzeile, .formzeile-3, .filterleiste { grid-template-columns: 1fr; }
  .eintrag-zeile { grid-template-columns: 1fr; gap: .35rem; }
  .held { padding: 1.5rem; min-height: 260px; }
  .held h1 { font-size: 1.7rem; }
  .anmeldung { grid-template-columns: 1fr; }
  .anmeldung .bildseite { min-height: 260px; padding: 1.5rem; }
  .anmeldung .slogan { font-size: 1.8rem; }
  .fuss .links { margin-left: 0; }
}
@media print { .seitenleiste, .kopfleiste, .fuss { display: none; } .app { display: block; } }
