
/* Layout: ruhige Leseseite mit seitlichem Menü; Bilder als gerahmte Titelbilder, keine Hintergrundgrafik.
   Farben: Violett, Überschriften/Menü rosa, Linien Lavendel, Text hell; Textschrift Carlito. Keine Fettschrift. */
@font-face { font-family: "Lora"; src: url("schrift/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("schrift/lora-kursiv.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("schrift/carlito.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #3B2454;
  --bg-tief: #2B1A3F;
  --flaeche: rgba(205,184,238,.07);
  --heading: #F5B8D2;
  --text: #F3EEF8;
  --text-leise: rgba(243,238,248,.74);
  --line: #CDB8EE;
  --line-soft: rgba(205,184,238,.32);
  --neu: #F1D68E;
  --hover: rgba(243,238,248,.09);
  --font-display: "Lora", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Carlito", Calibri, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}
html { background: var(--bg); scroll-behavior: smooth; transition: background-color .3s ease; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.17rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
b, strong, th { font-weight: 400; }
.wrap { max-width: 74rem; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--bg-tief); padding: .5rem 1rem; border: 1px solid var(--line); color: var(--text); }

/* Kopf */
header.site { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-block: 2.25rem 1.5rem; border-bottom: 1px solid var(--line-soft); }
.kopf-bild { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 1px solid var(--line); flex: none; }
.kopf-text { flex: 1 1 22rem; min-width: 0; }
.site-name { font-family: var(--font-display); color: var(--heading); font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1; margin: 0; font-weight: 400; letter-spacing: .01em; }
.site-name a { color: inherit; text-decoration: none; }
.site-role { margin: .3rem 0 0; font-size: 1rem; color: var(--text-leise); letter-spacing: .02em; }
.site-tagline { margin: .55rem 0 0; font-family: var(--font-display); font-style: italic; color: var(--heading); font-size: 1.15rem; }
.kopf-kontakt { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; font-size: .95rem; }
.kopf-kontakt a.tel { color: var(--text-leise); text-decoration: none; }

.knopf { display: inline-block; font-family: var(--font-display); font-size: 1.05rem; color: var(--heading);
  text-decoration: none; border: 1px solid var(--heading); border-radius: 999px; padding: .5rem 1.4rem;
  transition: background-color .2s ease, color .2s ease; }
.knopf:hover { background: var(--heading); color: var(--bg-tief); }

.layout { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }

/* Seitliches Menü */
aside.menu { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding-block: 2rem; scrollbar-width: thin; }
.menue-knopf { display: none; }
nav.side ul { list-style: none; margin: 0; padding: 0; }
nav.side > ul > li { margin-bottom: .95rem; }
nav.side .group { display: block; font-family: var(--font-display); color: var(--heading); font-size: 1.08rem; line-height: 1.3; }
nav.side ul ul { margin: .4rem 0 0 .1rem; padding-left: .85rem; border-left: 1px solid var(--line-soft); }
nav.side ul ul ul { margin-top: .2rem; }
nav.side ul ul li { margin: .2rem 0; font-size: .93rem; line-height: 1.35; }
nav.side a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
nav.side a:hover { border-bottom-color: var(--line-soft); }
nav.side a[aria-current="page"] { border-bottom-color: var(--line); }
/* Untermenüs öffnen sich per Klick (nicht beim Darüberfahren) und bleiben offen */
nav.side li.klappbar > ul { display: none; }
nav.side li.klappbar.offen > ul { display: block; }
nav.side li.klappbar > a { display: inline; }
nav.side li.klappbar > a.group { display: inline; }
.aufklapp { font: inherit; font-size: .95em; line-height: 1; color: var(--line); background: transparent; border: 0;
  padding: .15rem .35rem; margin-left: .15rem; cursor: pointer; border-radius: 4px; vertical-align: baseline;
  display: inline-block; transition: transform .2s ease; }
.aufklapp:hover { background: var(--hover); }
li.klappbar.offen > .aufklapp { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .aufklapp { transition: none; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--heading); outline-offset: 3px; border-radius: 2px; }

main { padding-block: 2rem 4rem; min-width: 0; }
.page { display: none; max-width: 46rem; }
html:not(.js) .page:target { display: block; }
html:not(.js) main:not(:has(.page:target)) > .page:first-of-type { display: block; }
@supports not selector(:has(a)) { html:not(.js) .page { display: block; } }
html.js .page { display: none; }
html.js .page.active { display: block; animation: einblenden .45s ease both; }
@keyframes einblenden { from { opacity: .0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .page.active { animation: none; } }

/* Brotkrumen */
.pfad { font-size: .88rem; color: var(--text-leise); margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.pfad a { color: var(--text-leise); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.pfad span[aria-hidden] { color: var(--line); }

h1, h2, h3 { font-family: var(--font-display); color: var(--heading); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); line-height: 1.2; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.25; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 1.5rem 0 .4rem; }
p { margin: 0 0 .9rem; }
.page a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.page ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.page li { margin-bottom: .35rem; }
.page li::marker { color: var(--line); }
ul.links { list-style: none; padding: 0; border-left: 1px solid var(--line); }
ul.links li { padding: .15rem 0 .15rem 1rem; margin: 0; }
p.subtitle { font-family: var(--font-display); font-style: italic; color: var(--heading); font-size: 1.22rem; line-height: 1.45; }
p.more { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
p.source { font-size: .88rem; margin-top: 1.5rem; color: var(--text-leise); }

/* Bilder */
figure { margin: 0 0 1.5rem; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
figure.portrait img { max-width: 22rem; }
figcaption { font-size: .8rem; color: var(--text-leise); margin-top: .35rem; }
.titelbild { margin: 0 0 1.75rem; }
.titelbild img { aspect-ratio: 5 / 2; object-fit: cover; max-width: 100%; }
.seitenbild { float: right; width: min(13rem, 40%); margin: .3rem 0 1rem 1.75rem; }
.seitenbild.hell img { background: #fff; }
.page::after { content: ""; display: block; clear: both; }
.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.pics figure { margin: 0; }

/* Startseite: Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.kachel { display: flex; flex-direction: column; text-decoration: none; color: var(--heading);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--flaeche);
  transition: transform .25s ease, background-color .25s ease; }
.kachel img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; border-bottom: 1px solid var(--line-soft); }
.kachel span { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; padding: .8rem .9rem 1rem; }
.kachel:hover { transform: translateY(-3px); background: var(--hover); }
@media (prefers-reduced-motion: reduce) { .kachel, .kachel:hover { transition: none; transform: none; } }
.page .kachel { text-decoration: none; }
.knopfzeile { margin-top: 1.75rem; }

/* Videos */
.video { margin: 0 0 1.75rem; }
.seiten-video { margin: 0 0 2rem; }
.seiten-video video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--bg-tief);
  border: 1px solid var(--line); border-radius: 6px; }
.video-titel { font-family: var(--font-display); color: var(--heading); margin-bottom: .4rem; }
.video-titel span { font-family: var(--font-body); color: var(--text-leise); font-size: .9rem; }
.video-box { aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem; padding: 1rem; text-align: center; font-size: .9rem; background: var(--flaeche); }
.video-box iframe { width: 100%; height: 100%; border: 0; }
.video-box.offen { padding: 0; }
.video-laden { font: inherit; font-size: 1.05rem; color: var(--heading); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem 1.25rem; cursor: pointer; }
.video-laden:hover { background: var(--hover); }

/* Weiter / Zurück */
.blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); clear: both; }
.blaettern a { display: block; text-decoration: none; color: var(--heading); font-family: var(--font-display); line-height: 1.3;
  border: 1px solid var(--line-soft); border-radius: 6px; padding: .7rem .9rem; transition: border-color .2s ease; }
.blaettern a:hover { border-color: var(--line); }
.blaettern small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--text-leise); letter-spacing: .04em; margin-bottom: .15rem; }
.blaettern .weiter { grid-column: 2; text-align: right; }

/* Literatur */
.page ul.buecher { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.page li.buch { display: grid; gap: .1rem; margin: 0; padding: .85rem 1.1rem; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--flaeche); }
.buch-titel { font-family: var(--font-display); color: var(--heading); font-size: 1.1rem; line-height: 1.3; }
.buch-autor { color: var(--text); }
.buch-zusatz { font-size: .9rem; color: var(--text-leise); }
.page a.buch-link { justify-self: start; margin-top: .35rem; font-size: .92rem; }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.kontakt-feld { border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.25rem .4rem; background: var(--flaeche); }
.feld-titel { font-family: var(--font-display); color: var(--heading); font-size: 1.1rem; margin-bottom: .3rem; }

.legal h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }

footer.site { border-top: 1px solid var(--line-soft); padding-block: 1.75rem 2.5rem; font-size: .9rem; color: var(--text-leise); }
footer.site a { color: var(--text); }
.hinweis { max-width: 46rem; margin-bottom: 1.25rem; font-size: .75rem; line-height: 1.5; }
.hinweis p { margin: 0 0 .4rem; }
.hinweis h2 { font-size: .85rem; margin: 0 0 .3rem; }

.nach-oben { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-tief); color: var(--heading);
  font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.nach-oben.sichtbar { opacity: 1; pointer-events: auto; }

/* Markierung von Claudes Ergänzungen (nur zur Durchsicht) */
.pruef-schalter { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  font: inherit; font-size: .85rem; color: var(--bg-tief); background: var(--neu); border: 0; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
html.zeige-neu .neu, html.zeige-neu .neu-seite { outline: 2px dashed var(--neu); outline-offset: 4px; }
html.zeige-neu .neu-seite::before { content: "Neue Seite (Vorschlag von Claude)"; display: block; color: var(--neu); font-size: .85rem; margin-bottom: .5rem; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  header.site { padding-block: 1.5rem 1rem; gap: 1rem; }
  .kopf-bild { width: 4rem; height: 4rem; }
  .kopf-kontakt { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: .75rem 1rem; width: 100%; }
  aside.menu { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; max-height: none; overflow: visible;
    padding-block: .5rem; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
  .menue-knopf { display: flex; justify-content: space-between; align-items: center; width: 100%; font: inherit; font-family: var(--font-display);
    font-size: 1.1rem; color: var(--heading); background: transparent; border: 0; padding: .4rem 0; cursor: pointer; }
  .menue-knopf::after { content: "☰"; color: var(--line); font-size: 1.2rem; }
  aside.menu.offen .menue-knopf::after { content: "✕"; }
  nav.side { display: none; padding: 1rem 0 .5rem; max-height: 70vh; overflow-y: auto; }
  aside.menu.offen nav.side { display: block; }
  .aufklapp { padding: .4rem .7rem; font-size: 1.05em; }
  .kacheln { grid-template-columns: 1fr; }
  .kachel { flex-direction: row; align-items: center; }
  .kachel img { width: 38%; aspect-ratio: 1 / 1; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .pics, .kontakt-raster { grid-template-columns: 1fr; }
  .seitenbild { width: 42%; margin-left: 1rem; }
  .titelbild img { aspect-ratio: 16 / 9; }
  .blaettern { grid-template-columns: 1fr; }
  .blaettern .weiter { grid-column: 1; }
}
@media (max-width: 860px) { body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); } }

/* Einzelseiten: jede Datei zeigt genau eine Seite */
.page { display: block !important; }
