/* Schlichtes, rein textbasiertes Layout */

:root {
  --text: #000000;
  --muted: #000000;
  --bg: #ffffff;
  --line: #e2e2e2;
  --link: #003399;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --muted: #9a9a9a;
    --bg: #141414;
    --line: #2c2c2c;
    --link: #6699ff;
  }
}

* { box-sizing: border-box; }

/* Schriftgröße auf iPhone/iPad beim Drehen nicht automatisch aufblähen */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ---------- Kopf ---------- */

header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

/* Name so breit wie früher das Menü mit „Impressum“ (siehe .breite) */
.kopf { display: inline-block; max-width: 100%; }
.buchstaben { display: flex; justify-content: space-between; font-variant: small-caps; }

header h1 {
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

header h1 a, header h1 a:hover { text-decoration: none; }

nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 0.95rem; }

/* Größere Tippflächen für Finger, ohne das Schriftbild zu ändern */
nav a { display: inline-block; padding: 6px 0; }

/* Aktuelle Seite unterstrichen (Menü oben und „Impressum“ unten) */
nav a.aktiv, footer a.aktiv { text-decoration: underline; text-underline-offset: 5px; }

/* Unsichtbare Kopie des früheren Menüs (mit „Impressum“): hält den Namen so breit wie bisher */
.breite { display: flex; gap: 0 20px; font-size: 0.95rem; height: 0; overflow: hidden; visibility: hidden; }


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

/* Lange Wörter (z. B. Adressen, E-Mail) umbrechen statt überstehen */
main { overflow-wrap: break-word; }

main p { margin: 0 0 24px; }

h2 {
  font-size: 0.9rem; /* gleich groß wie die Liste der Auftritte */
  font-weight: normal;
  margin: 40px 0 24px;
}

main > h2:first-child { margin-top: 0; }

/* Bücher und Filme */
ul.werke { list-style: none; padding: 0; margin: 0; }
ul.werke li { padding: 18px 0; border-bottom: 1px solid var(--line); }
ul.werke li:first-child { padding-top: 0; }

/* Titel in Kapitälchen (wie der Name oben) */
.titel { font-size: 1.1rem; font-variant: small-caps; letter-spacing: 0.06em; }

.info { color: var(--muted); font-size: 0.95rem; display: block; }

.links { font-size: 0.9rem; display: block; margin-top: 2px; }
/* Trennstrich zwischen zwei Links; als eigener Block, damit er beim Darüberfahren nicht mit unterstrichen wird */
.links a + a::before { content: " | "; color: var(--muted); display: inline-block; white-space: pre; }

/* Auftritte und Archiv */
ul.auftritte { list-style: none; padding: 0; margin: 0 0 32px; font-size: 0.9rem; }

ul.auftritte li {
  display: flex;
  align-items: baseline; /* Datum und Ort auf einer Linie */
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

ul.auftritte .datum {
  flex: 0 0 5.5em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Größere Tippflächen für Finger */
ul.auftritte a { display: inline-block; padding: 2px 0; }

/* Kleine Links unter den Listen (→ Archiv, ← Aktuelle Auftritte, → Startseite) */
.klein-link { font-size: 0.9rem; }

/* Kontakt und Impressum: alles in kleiner Schrift */
main.klein p { font-size: 0.9rem; }

/* Kontakt: dünne Striche zwischen den Adressblöcken (wie bei Bücher und Filme) */
main.kontakt p { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
main.kontakt p:first-child { padding-top: 0; }

/* Kein doppelter Strich: der letzte Listenstrich entfällt, der Strich über „Impressum“ ersetzt ihn.
   Abstand bis zum Strich so groß wie unter dem Kopf. */
main > :last-child { margin-bottom: 0; }
ul.werke li:last-child, main.kontakt p:last-child { border-bottom: none; padding-bottom: 0; }


/* ---------- Fuß mit „Impressum“: dünner Strich darüber, wie unter dem Kopf ---------- */

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem; /* wie die Menüpunkte oben */
  text-align: center;
}


/* ---------- Telefone ---------- */

@media (max-width: 480px) {
  body { font-size: 17px; } /* Grundschrift: bestimmt die Zeilenabstände mit */
  .wrap { padding: 28px 16px 48px; }
  nav, .breite { gap: 0 16px; }
  header { margin-bottom: 28px; }
  footer { margin-top: 28px; }
  ul.auftritte li { gap: 12px; }
  ul.auftritte .datum { flex-basis: 4.8em; }
}

/* Große Bildschirme: etwas größere Grundschrift (bestimmt die Zeilenabstände mit) */
@media (min-width: 1400px) {
  body { font-size: 19px; }
}


/* ---------- Drucken: schwarz auf weiß, ohne Menü ---------- */

@media print {
  nav, footer { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
