/* trokon.de — Visitenkarte Sören Prüfer. Keine externen Ressourcen. Farbschema: System, per Schalter überstimmbar. */
:root {
  --bg: #fbfaf7;
  --text: #1f1f1d;
  --muted: #6a6a64;
  --rule: #d9d6cf;
  --accent: #0b5f9e;
  --accent-hover: #083f69;
  --card: #f1efe9;
  --focus: #e07b00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141513; --text: #e8e6df; --muted: #9c9b93; --rule: #2e2f2b;
    --accent: #86b8e8; --accent-hover: #b7d5f3; --card: #1d1f1c; --focus: #ffb454;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141513; --text: #e8e6df; --muted: #9c9b93; --rule: #2e2f2b;
  --accent: #86b8e8; --accent-hover: #b7d5f3; --card: #1d1f1c; --focus: #ffb454;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
}
main, footer { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--bg); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; color: var(--bg); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin: 0 0 0.3rem; }
h2 { font-size: 1.15rem; margin: 2.6rem 0 0.8rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
h2:target, h3:target { scroll-margin-top: 1rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.kopf { display: flex; gap: 2rem; align-items: flex-start; padding-top: 3rem; }
.kopf .text { flex: 1 1 auto; min-width: 0; }
.rolle { color: var(--muted); margin: 0 0 1.4rem; font-size: 1.02rem; }
.portrait { flex: 0 0 11rem; width: 11rem; height: 11rem; object-fit: cover; border-radius: 6px; margin-top: 0.35rem; }
.lead { font-size: 1.12rem; }
.zeitachse { display: grid; grid-template-columns: 7.2rem 1fr; column-gap: 1rem; row-gap: 0.55rem; margin: 0 0 1rem; }
.zeitachse dt { color: var(--muted); font-variant-numeric: tabular-nums; margin: 0; }
.zeitachse dd { margin: 0; }
.zeitachse dd small, .klein { color: var(--muted); font-size: 0.92rem; }
.belege { font-size: 0.92rem; color: var(--muted); }
.kontakt { background: var(--card); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.kontakt p { margin: 0.2rem 0; }
.kontakt a { overflow-wrap: anywhere; }
footer { margin-top: 3rem; padding-top: 1rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }
footer p { margin: 0 0 0.4rem; }
.zurueck { display: inline-block; margin-top: 2rem; }
address { font-style: normal; }
@media (max-width: 40rem) {
  .leiste nav a { padding: 0.75rem 0.4rem; font-size: 0.9rem; }
  .leiste-innen { padding: 0 0.7rem 0 0.9rem; gap: 0.1rem; }
  .thema { width: 2.1rem; height: 2.1rem; }
  .kopf { flex-direction: column-reverse; align-items: stretch; gap: 1.2rem; padding-top: 2rem; }
  .kopf .text { width: 100%; }
  .portrait { width: 8.5rem; height: 8.5rem; flex-basis: auto; }
  h1 { font-size: 1.8rem; }
  .zeitachse { grid-template-columns: 1fr; row-gap: 0.15rem; }
  .zeitachse dd { margin-bottom: 0.6rem; }
}
@media (min-width: 40rem) and (max-width: 56rem) {
  .kopf { gap: 1.4rem; }
}
@media print {
  body { background: #fff; color: #000; }
  .leiste, .portrait-knopf, .galerie, .privat-portrait, .fussnav .fuss-oben, .oben, #vorlesen, #kopieren, .skip, dialog { display: none !important; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after, a[href^="mailto"]::after, a[href^="tel"]::after { content: ""; }
  h2 { break-after: avoid; }
}

/* Leiste: bleibt oben stehen, Links erkennbar als Links, Schalter als Symbol */
.leiste { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); }
.leiste-innen { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.leiste nav { display: flex; gap: 0.1rem; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; }
.leiste nav::-webkit-scrollbar { display: none; }
.leiste nav a, .leiste nav .nur-gross, .leiste nav .nur-breit { }
.leiste nav a { color: var(--accent); text-decoration: none; padding: 0.7rem 0.6rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.leiste nav a:first-child { padding-left: 0; }
.leiste nav a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }
.leiste nav a[aria-current="true"] { border-bottom-color: var(--accent); color: var(--text); }
.thema { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: transparent; color: var(--accent); border: 1px solid var(--rule); border-radius: 50%; cursor: pointer; }
.thema:hover { border-color: var(--accent); }
.ikon { display: block; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.knopf { font: inherit; font-size: 0.92rem; color: var(--accent); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer; text-decoration: none; display: inline-block; }
.knopf:hover { border-color: var(--accent); color: var(--accent-hover); }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.portrait-knopf { flex: 0 0 auto; align-self: flex-start; padding: 0; border: 0; background: none; cursor: zoom-in; margin-top: 0.35rem; border-radius: 6px; line-height: 0; }
.portrait-knopf .portrait { margin-top: 0; display: block; }
.fuss-oben { float: right; }
.js .kein-js { display: none; }

@media (max-width: 24rem) {
  .leiste nav a { padding: 0.75rem 0.3rem; font-size: 0.84rem; }
}

/* Fußleiste wie die Kopfleiste: erkennbare Links */
.fussnav { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: center; margin: 0 0 0.8rem; }
.fussnav a { color: var(--accent); font-weight: 500; text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.fussnav a:hover { border-bottom-color: var(--accent); }
.fussnav .fuss-oben { margin-left: auto; float: none; }
/* Bildergalerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.galerie li { margin: 0; }
.galerie button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; line-height: 0; }
.galerie img { width: 100%; height: 11rem; object-fit: cover; border-radius: 6px; }
.privat-portrait { float: right; width: 11rem; margin: 0.2rem 0 1rem 1.2rem; }
.privat-portrait button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; line-height: 0; }
.privat-portrait img { width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 40rem) { .privat-portrait { float: none; width: 9rem; margin: 0 0 1rem; } }

/* Bilder-Mosaik: zwei Bahnen, gleiche Höhe, natürliche Breiten, kein Beschnitt, keine Ränder. Ohne Skript wischbare Zeilen. */
.mosaik { position: relative; --h: 10.5rem; margin: 0 0 0.6rem; }
.reihe { overflow-x: auto; scrollbar-width: none; margin-bottom: 0.4rem; border-radius: 6px; }
.reihe::-webkit-scrollbar { display: none; }
.mosaik.laeuft .reihe { overflow: hidden; }
.bahn { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; width: max-content; will-change: transform; }
.bahn li { flex: 0 0 auto; margin: 0; }
.bahn button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; border-radius: 6px; }
.bahn img { height: var(--h); width: auto; display: block; border-radius: 6px; }
.pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 88%, transparent); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pfeil:hover { border-color: var(--accent); }
.pfeil.links { left: 0.4rem; } .pfeil.rechts { right: 0.4rem; }
.pfeil span, .dlg-pfeil span { display: block; width: 0; height: 0; border-top: 0.7rem solid transparent; border-bottom: 0.7rem solid transparent; }
.pfeil.links span, .dlg-pfeil.links span { border-right: 1.1rem solid var(--accent); margin-left: -0.2rem; }
.pfeil.rechts span, .dlg-pfeil.rechts span { border-left: 1.1rem solid var(--accent); margin-right: -0.2rem; }
@media (max-width: 40rem) { .mosaik { --h: 7.2rem; } .pfeil { width: 2.6rem; height: 2.6rem; } }
/* Bildbetrachter */
dialog#portrait-dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.dlg-innen { display: flex; align-items: center; justify-content: center; }
dialog#portrait-dialog img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 8px; opacity: 0; transform: scale(0.96); transition: opacity 0.2s ease, transform 0.2s ease; }
dialog#portrait-dialog[open] img { opacity: 1; transform: none; }
dialog#portrait-dialog.zu img { opacity: 0; transform: scale(0.96); }
dialog#portrait-dialog::backdrop { background: rgba(0, 0, 0, 0.8); }
.dlg-pfeil { position: fixed; top: 50%; transform: translateY(-50%); width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 90%, transparent); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dlg-pfeil.links { left: 0.8rem; } .dlg-pfeil.rechts { right: 0.8rem; }
.dlg-zu { position: fixed; top: 0.8rem; right: 0.8rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 90%, transparent); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { dialog#portrait-dialog img { transition: none; } }
@media print { .mosaik, .klein button { display: none; } }

/* "Persönlich": bei schmaler Breite in der Fußleiste, ab etwa 780 px in der Kopfleiste (nie doppelt) */
.nur-gross { display: none; }
@media (min-width: 46rem) { .nur-gross { display: block; } .nur-klein { display: none; } }

[hidden] { display: none !important; }
/* feste Fußleiste wie die Kopfleiste: immer sichtbar; Seiten rutschen mit mehr Platz nach oben */
body { padding-bottom: 3.4rem; }
.fussleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg); border-top: 1px solid var(--rule); }
.fussleiste .leiste-innen { gap: 0.1rem; }
.fussleiste a { color: var(--accent); text-decoration: none; padding: 0.7rem 0.6rem; font-weight: 500; white-space: nowrap; border-top: 2px solid transparent; }
.fussleiste a:first-child { padding-left: 0; }
.fussleiste a:hover { color: var(--accent-hover); border-top-color: var(--accent); }
.fussleiste .nach-oben { margin-left: auto; padding-right: 0; }
.nur-breit { display: none; }
@media (min-width: 54rem) { .nur-breit { display: block; } .nur-klein2 { display: none; } }
@media (max-width: 40rem) { .fussleiste a { padding: 0.75rem 0.4rem; font-size: 0.9rem; } .fussleiste .leiste-innen { padding: 0 0.9rem 0 0.9rem; } }
@media print { .fussleiste { display: none; } body { padding-bottom: 0; } }

@media (max-width: 26rem) { .fussleiste .wort { display: none; } .fussleiste .nach-oben { font-size: 1.1rem; } }
