/* Gauloises Emmerting – gesamtes Design in einer Datei */

:root {
  --blau: #104573;
  --blau-hell: #e8eef4;
  --grau: #666666;
  --grau-hell: #d9d9d9;
  --text: #444444;
  --weiss: #ffffff;
  --breite: 62rem;
  --schrift: Eurostile, "Eurostile LT Std", Tahoma, Verdana, Arial, Helvetica, sans-serif;
  --schrift-navi: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--blau); }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ---------- Kopf: Rasen mit Hauptnavigation ---------- */

.kopf {
  background: #3c7a1e url("../bilder/layout/rasen.gif");
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 90px;
  padding: 0.75rem 1rem;
}

.kopf-logo {
  flex: none;
  display: block;
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 50%;
  background: var(--weiss);
}
.kopf-logo img { display: block; width: 100%; height: 100%; }

.hauptnavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.hauptnavi a,
.hauptnavi span {
  font-family: var(--schrift-navi);
  font-size: 19px;
  font-weight: bold;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--weiss);
  padding: 0.1rem 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.hauptnavi a:hover,
.hauptnavi a[aria-current] {
  background: var(--weiss);
  color: #000;
  text-shadow: none;
}

/* ---------- Unternavigation: Rasen läuft nach Weiß aus ---------- */

.unternavi {
  background: var(--weiss) url("../bilder/layout/rasen-auslauf.gif") repeat-x top;
  min-height: 70px;
  padding: 1.6rem 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 0.25rem 0.4rem;
}
.unternavi a,
.unternavi span {
  font-family: var(--schrift-navi);
  font-size: 15px;
  font-weight: bold;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--blau);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.1rem 0.5rem;
}
.unternavi a:hover,
.unternavi a[aria-current] { color: #000; background: var(--weiss); }

/* Menüpunkte, deren Seite es (noch) nicht gibt */
.hauptnavi span, .unternavi span { opacity: 0.55; cursor: default; }

/* ---------- Inhalt ---------- */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
main.schmal { max-width: 46rem; }

h1 {
  font-size: 24px;
  font-weight: bold;
  color: var(--grau);
  margin: 0.5rem 0 1rem;
}
h2 { font-size: 18px; font-weight: bold; color: var(--grau); margin: 2rem 0 0.5rem; }
h3 { font-size: 16px; font-weight: bold; color: var(--grau); margin: 0 0 0.25rem; }

.hinweis { color: var(--grau); font-size: 13px; }

/* ---------- Startseite: Blog füllt den Rest des Fensters ---------- */

body.start { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
body.start site-header { flex: none; }
.blog { flex: 1; width: 100%; border: 0; display: block; min-height: 0; }

/* ---------- Auswahl-Leisten (Jahre, Filter) ---------- */

.leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 1.25rem;
}
.leiste a,
.leiste button {
  font: inherit;
  font-size: 14px;
  color: var(--blau);
  background: var(--blau-hell);
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  text-decoration: none;
  cursor: pointer;
}
.leiste a:hover,
.leiste button:hover { border-color: var(--blau); }
.leiste [aria-current],
.leiste [aria-pressed="true"] { background: var(--blau); color: var(--weiss); }

.suche {
  font: inherit;
  width: 100%;
  max-width: 22rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--grau-hell);
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.suche:focus { outline: 2px solid var(--blau); outline-offset: 1px; }

/* ---------- Berichte ---------- */

.inhaltsverzeichnis { margin: 0 0 2rem; padding: 0; list-style: none; }
.inhaltsverzeichnis li { margin: 0.15rem 0; }

article {
  border-top: 1px solid var(--grau-hell);
  padding: 1.5rem 0 0.5rem;
}
article h2 { margin-top: 0; }
article .autor { color: var(--grau); font-style: italic; }
.nach-oben { font-size: 13px; }

/* ---------- Stenogramm ---------- */

.spiel {
  border-top: 1px solid var(--grau-hell);
  padding: 1.1rem 0 0.9rem;
}
.spiel .rahmen { color: var(--grau); margin: 0 0 0.5rem; }
.spiel dl { margin: 0; }
.spiel dt {
  float: left;
  clear: left;
  width: 6.5rem;
  color: var(--grau);
  font-weight: bold;
}
.spiel dd { margin: 0 0 0.3rem 6.5rem; }
.spiel .zeilen { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.spiel .zeilen li { margin: 0.1rem 0; }
.jahr-titel {
  color: var(--blau);
  font-size: 20px;
  margin: 2rem 0 0.25rem;
}

/* ---------- Kader ---------- */

table.kader {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}
.kader th, .kader td {
  text-align: left;
  padding: 0.3rem 0.6rem 0.3rem 0;
  border-bottom: 1px solid var(--grau-hell);
  vertical-align: top;
}
.kader th { color: var(--grau); font-size: 13px; }
.kader .nr, .kader .zahl { text-align: right; width: 4rem; font-variant-numeric: tabular-nums; }
.kader .trikot { width: 6.5rem; font-weight: bold; }
.kader .zusatz { color: var(--grau); font-size: 13px; }

/* ---------- Portraits ---------- */

.portraits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.portrait {
  border: 1px solid var(--grau-hell);
  border-radius: 4px;
  overflow: hidden;
  background: var(--weiss);
}
.portrait:target { border-color: var(--blau); box-shadow: 0 0 0 2px var(--blau); }
.portrait .foto {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: var(--blau-hell);
}
.portrait .koerper { padding: 0.75rem 0.9rem 0.9rem; }
.portrait h2 { margin: 0; font-size: 18px; color: var(--blau); }
.portrait .unterzeile { margin: 0; color: var(--grau); font-size: 13px; }
.portrait .auszeichnung {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 12px;
  color: var(--blau);
  background: var(--blau-hell);
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
}
.portrait blockquote {
  margin: 0.6rem 0 0;
  padding-left: 0.6rem;
  border-left: 3px solid var(--blau);
  font-style: italic;
  font-size: 14px;
}
.portrait details { margin-top: 0.6rem; font-size: 14px; }
.portrait summary { cursor: pointer; color: var(--blau); }
.portrait dl { margin: 0.5rem 0 0; }
.portrait dt { color: var(--grau); font-size: 12px; }
.portrait dd { margin: 0 0 0.35rem; }
.portrait .foto-zwei { margin-top: 0.5rem; border-radius: 3px; }

/* ---------- Fuß ---------- */

.fuss {
  border-top: 1px solid var(--grau-hell);
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-size: 13px;
  color: var(--grau);
}
.fuss a, .fuss span { margin: 0 0.5rem; }
.fuss span { opacity: 0.6; }
.fuss p { margin: 0.25rem 0; }

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 40rem) {
  .kopf { flex-direction: column; gap: 0.5rem; }
  .kopf-logo { width: 52px; height: 52px; }
  .hauptnavi { gap: 0.15rem 0.4rem; }
  .hauptnavi a, .hauptnavi span { font-size: 17px; }
  .spiel dt { float: none; width: auto; }
  .spiel dd { margin-left: 0; }
  .kader .name-voll { display: none; }
}

/* ---------- Bilder im Text und Bildspalte (Special-Seiten) ---------- */

figure { margin: 1rem 0; }
figure img { display: block; }
figcaption { font-size: 13px; color: var(--grau); margin-top: 0.25rem; }

/* <main class="mit-bildspalte"> : links der Text (<div class="textspalte">), rechts <aside class="bildspalte"> */
main.mit-bildspalte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 2rem;
  align-items: start;
}
main.mit-bildspalte > h1 { grid-column: 1 / -1; margin-bottom: 0; }
.bildspalte img { display: block; width: 100%; margin-bottom: 0.5rem; }

@media (max-width: 50rem) {
  main.mit-bildspalte { grid-template-columns: minmax(0, 1fr); }
  .bildspalte { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; }
  .bildspalte img { margin: 0; }
}

/* ---------- Bild + Ton: Galerie, Bildreihen, Videos, Lightbox ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.karte {
  margin: 0;
  border: 1px solid var(--grau-hell);
  border-radius: 4px;
  overflow: hidden;
  background: var(--weiss);
}
.karte button, .bildreihe button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.karte button { width: 100%; background: var(--blau-hell); }
.karte img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.karte figcaption { padding: 0.5rem 0.75rem 0.7rem; margin: 0; font-size: 13px; }
.karte .jahr { display: block; font-weight: bold; color: var(--blau); font-size: 15px; }
.karte .text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--grau);
}
.karte button:focus-visible, .bildreihe button:focus-visible,
.video-laden:focus-visible, .lightbox button:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }

.bildgruppe { border-top: 1px solid var(--grau-hell); padding: 1.1rem 0 0.9rem; }
.bildreihe { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: flex-end; }
.bildreihe img { display: block; height: 150px; width: auto; max-width: 100%; }
.bildgruppe p { margin: 0.6rem 0 0; }

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.5rem 1.25rem;
  align-items: start;
}
.video h3 { margin: 0.5rem 0 0.15rem; }
.video .video-text { margin: 0.4rem 0 0; font-size: 14px; }
.video-rahmen {
  aspect-ratio: 16 / 9;
  background: var(--blau-hell);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
}
.video-rahmen iframe { width: 100%; height: 100%; border: 0; border-radius: 4px; }
.video-laden {
  font: inherit;
  font-weight: bold;
  color: var(--weiss);
  background: var(--blau);
  border: 0;
  border-radius: 3px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}
.video-laden:hover { background: #0b3558; }
.video-hinweis { margin: 0; font-size: 12px; color: var(--grau); max-width: 16rem; }

body.lightbox-offen { overflow: hidden; }
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.88);
  color: var(--weiss);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox-innen {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0.5rem 0.5rem;
}
.lightbox figure {
  margin: 0;
  flex: 1;
  min-width: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); width: auto; height: auto; cursor: zoom-out; }
.lightbox figcaption { color: var(--weiss); font-size: 14px; max-width: 46rem; margin-top: 0.6rem; max-height: 5.5rem; overflow: auto; }
.lightbox .lb-zaehler { margin-left: 0.6rem; opacity: 0.7; white-space: nowrap; }
.lightbox button {
  flex: none;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  color: var(--weiss);
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 3px;
  width: 2.75rem;
  height: 3.5rem;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox button[hidden] { display: none; }
.lightbox .lb-schliessen { position: absolute; top: 0.5rem; right: 0.5rem; height: 2.75rem; }

@media (max-width: 40rem) {
  .galerie { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; }
  .bildreihe img { height: 100px; }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .lightbox button { width: 2.25rem; }
  .lightbox-innen { gap: 0.25rem; padding-left: 0.25rem; padding-right: 0.25rem; }
}

/* ---------- Bilder mit Unterschrift ---------- */
/* <figure class="klein"> im Text: Hochformate und Nebenbilder, die nicht die ganze Textbreite füllen sollen */

figure.klein { max-width: 20rem; }

/* Bildspalte mit Bildunterschriften: <figure><img><figcaption> statt nacktem <img> (special/30-jahre.html).
   class="klein" hier: sehr kleines Bild behält seine Originalgröße, statt unscharf aufgezogen zu werden */
.bildspalte figure { margin: 0 0 1rem; }
.bildspalte figure img { margin-bottom: 0; }
.bildspalte figure.klein img { width: auto; }

@media (max-width: 50rem) {
  .bildspalte figure { margin: 0; }
}

/* ---------- Suche in Berichten und Presse ---------- */
/* Während gesucht wird (main.sucht), treten Inhaltsverzeichnis und Artikel der Seite hinter die Trefferliste zurück */

main.sucht > article,
main.sucht > [data-ansicht="inhaltsverzeichnis"] { display: none; }

.suchtreffer .treffer { margin: 0 0 1.1rem; }
.suchtreffer .treffer p { margin: 0; font-size: 14px; color: var(--grau); }
.suchtreffer mark { background: var(--blau-hell); color: inherit; padding: 0 0.1rem; }

/* ---------- Bildspalte: Bilder öffnen die Lightbox (Ansicht „bildspalte“) ---------- */

.bildspalte button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bildspalte button:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.bildspalte > button { margin-bottom: 0.5rem; }
.bildspalte button img { margin: 0; }
/* Die Special-Bilder sind oft nur ~300 px groß: in der Großansicht mindestens auf diese Höhe aufziehen */
.lightbox img { min-height: min(24rem, calc(100dvh - 9rem)); object-fit: contain; }

@media (max-width: 50rem) {
  .bildspalte > button { margin: 0; }
}
