/* =========================================================
   Aida Kalcher – Website
   Farben, Schrift und Abstände zentral hier ändern (":root").
   ========================================================= */

/* ---------- Schrift (lokal gespeichert, DSGVO-konform) ---------- */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/source-serif-4-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg:      #2c2722;   /* Hintergrund (wie bisher) */
  --panel:   #36312b;   /* Textfläche (wie bisher) */
  --panel-2: #413a33;
  --line:    rgba(201,164,91,.30);
  --gold:    #C9A45B;
  --cream:   #E6DFD1;   /* Überschriften – weiches, warmes Weiß */
  --text:    #DAD3C5;   /* Fließtext – etwas gedämpfter */
  --muted:   #B3A992;
  --font:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --read:    680px;
  --gutter:  clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 99px; }

/* ---------- Kopf: Logo, Flaggen, Menü ---------- */
.site-header { text-align: center; padding: 1.4rem var(--gutter) 0; }
.logo { display: inline-block; text-decoration: none; }
.logo img { width: clamp(220px, 30vw, 330px); margin: 0 auto; }
.logo .logo-text { font-style: italic; font-weight: 600; font-size: 2.4rem; color: var(--cream); }
.flags { display: flex; justify-content: center; gap: .55rem; margin: .7rem 0 0; }
.flags a, .flags span { display: block; width: 30px; height: 20px; border-radius: 2px; overflow: hidden; line-height: 0; transition: opacity .2s, transform .2s; }
.flags a { opacity: .55; }
.flags a:hover { opacity: 1; transform: translateY(-1px); }
.flags span { outline: 1px solid var(--gold); outline-offset: 2px; }
.flags svg { width: 30px; height: 20px; }

.menu {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  margin: 1.4rem auto 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.menu a {
  display: block; padding: .75rem 1.3rem;
  font-size: .95rem; color: var(--gold); text-decoration: none;
  position: relative;
}
.menu a:hover { color: var(--cream); }
.menu a[aria-current="page"] { color: var(--cream); }
.menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%; transform: translateX(-50%);
}
@media (max-width: 480px) { .menu a { padding: .7rem .8rem; font-size: .9rem; } }

/* ---------- Knöpfe (rund, wie bisher) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-width: 200px; padding: .85rem 1.7rem; border-radius: 999px;
  font-family: var(--font); font-size: 1rem; letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.pill:hover { background: rgba(201,164,91,.16); color: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.pill.full { background: var(--gold); color: #2c2722; }
.pill.full:hover { background: #D9B872; border-color: #D9B872; }
.pill svg { width: 17px; height: 17px; flex: none; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Startseite ---------- */
.home { display: flex; align-items: center; justify-content: center; padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) clamp(3rem, 8vh, 5rem); }
.home-inner { max-width: var(--read); width: 100%; }
.home h1 { text-align: center; font-style: italic; font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.1rem); color: var(--cream); margin: 0 0 1.8rem; }
.home .intro { text-align: center; font-size: 1.15rem; margin: 0 0 1.8rem; }
.home .lines p { margin: 0 0 1.15rem; font-size: 1.08rem; line-height: 1.6; }
.home .lines b { font-weight: 400; color: var(--gold); }
.home .pills { margin-top: 2.4rem; }

/* ---------- Seiteninhalt ---------- */
.page { padding: 2rem var(--gutter) 4rem; }
.page-title { text-align: center; margin: 1.6rem 0 2rem; }
.page-title h1 { font-style: italic; font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.1rem); color: var(--cream); margin: 0; }
.page-title .pills { margin-top: 1.6rem; }

.sheet {
  max-width: var(--read); margin: 0 auto;
  background: var(--panel);
  padding: clamp(1.5rem, 4.5vw, 2.6rem) clamp(1.25rem, 5vw, 2.8rem);
  border-radius: 4px;
}
.sheet h1 { font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2rem); line-height: 1.2; color: var(--cream); margin: 0 0 1rem; }
.sheet h2 { font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: var(--gold); margin: 2.4rem 0 .7rem; scroll-margin-top: 1.5rem; }
.sheet p { margin: 0 0 1rem; hyphens: auto; -webkit-hyphens: auto; }
.sheet em { color: var(--cream); }
.sheet .lead { font-size: 1.15rem; color: var(--cream); }
.sheet .short { font-style: italic; color: var(--cream); font-size: 1.12rem; }
.sheet .aside { font-style: italic; color: var(--muted); font-size: .97rem; padding-left: 1rem; border-left: 2px solid var(--gold); }

/* Notenlinien als Trenner */
.staff { display: block; width: 120px; height: 26px; margin: 2.6rem auto 0; color: var(--gold); opacity: .55; }

/* ---------- Unterricht: Eckdaten als Kapseln ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 .4rem; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2);
  font-size: .93rem; color: var(--cream); line-height: 1.3;
}
.chips svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

/* Ludwig – Notizzettel */
.note {
  position: relative; margin: 1.6rem 0 1.6rem; padding: 1.3rem 1.4rem 1.2rem;
  background: #efe7d6; color: #3a332c; border-radius: 3px;
  transform: rotate(-.6deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.note p { margin: 0; }
.note .rhythm { display: block; width: 150px; height: 34px; margin: 0 0 .6rem; color: #8a6a2c; }
.note::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 80px; height: 18px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(201,164,91,.55);
}

/* Fragen & Antworten */
.qa { margin: 1rem 0 0; }
.qa div { padding: .95rem 0; border-top: 1px dotted var(--line); }
.qa div:last-child { border-bottom: 1px dotted var(--line); }
.qa dt { color: var(--gold); margin: 0 0 .2rem; }
.qa dd { margin: 0; }

.contact-box { text-align: center; margin: 2.6rem 0 .4rem; }
.contact-box p { margin: 0 auto 1.4rem; max-width: 44ch; }
.contact-box .addr { display: block; margin-top: .9rem; font-size: .92rem; color: var(--muted); }

/* ---------- Galerie ---------- */
.gallery { max-width: 1180px; margin: 3.5rem auto 0; columns: 4 230px; column-gap: 14px; }
.gallery a { display: block; margin: 0 0 14px; break-inside: avoid; border-radius: 4px; overflow: hidden; background: var(--panel); }
.gallery img { width: 100%; transition: transform .4s, opacity .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .ph { aspect-ratio: 3/4; display: grid; place-items: center; color: var(--muted); font-size: .85rem; border: 1px dashed var(--line); }
.gallery .ph.w { aspect-ratio: 4/3; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,17,14,.94); display: none; align-items: center; justify-content: center; padding: 3rem 4rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--cream); cursor: pointer; padding: .6rem; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lightbox svg { width: 30px; height: 30px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: .5rem; transform: none; } }

/* ---------- Diashow (Über mich) ---------- */
.slides { position: relative; max-width: 640px; margin: 0 auto; }
.slides-track {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  border-radius: 4px; background: var(--panel); touch-action: pan-y;
}
.slides-track figure {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity var(--fade, 1.2s) ease-in-out;
}
.slides-track figure.on { opacity: 1; z-index: 1; }
.slides-track img { width: 100%; height: 100%; object-fit: contain; }
.slides button {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); background: rgba(44,39,34,.75); color: var(--gold);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.slides button:hover { background: var(--gold); color: var(--bg); }
.slides button svg { width: 18px; height: 18px; }
.slides .prev { left: -64px; }
.slides .next { right: -64px; }
@media (max-width: 900px) { .slides .prev { left: 10px; } .slides .next { right: 10px; } }
.dots { display: flex; justify-content: center; gap: .5rem; margin-top: .9rem; }
.dots button { position: static; transform: none; width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 1px solid var(--gold); background: transparent; }
.dots button[aria-current="true"] { background: var(--gold); }

/* ---------- Über mich: Kapitelliste ---------- */
.with-toc { display: grid; grid-template-columns: 1fr minmax(0, var(--read)) 1fr; gap: 2.5rem; }
.with-toc .sheet { grid-column: 2; margin: 0; }
.toc { grid-column: 1; justify-self: end; position: sticky; top: 1.5rem; align-self: start; width: 210px; font-size: .86rem; line-height: 1.4; }
.toc p { color: var(--gold); margin: .4rem 0 .7rem; font-style: italic; }
.toc ol { margin: 0; padding: 0 0 0 1.4rem; }
.toc li { margin: 0 0 .5rem; color: var(--muted); }
.toc li::marker { color: var(--gold); font-size: .8rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--cream); }
.toc-m { display: none; }
@media (max-width: 1180px) {
  .with-toc { display: block; }
  .toc { display: none; }
  .toc-m { display: block; margin: 0 0 1.6rem; border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); }
  .toc-m summary { cursor: pointer; padding: .8rem 0; color: var(--gold); list-style: none; display: flex; justify-content: space-between; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: "+"; }
  .toc-m[open] summary::after { content: "–"; }
  .toc-m ol { margin: 0 0 1rem; padding-left: 1.4rem; }
  .toc-m li { margin: 0 0 .35rem; }
  .toc-m li::marker { color: var(--gold); }
  .toc-m a { color: var(--text); text-decoration: none; }
}

/* ---------- Fußzeile ---------- */
.site-footer { text-align: center; padding: 2.4rem var(--gutter) 2rem; border-top: 1px solid rgba(201,164,91,.15); margin-top: 2rem; }
.social { display: flex; justify-content: center; gap: .75rem; margin: 0 0 1.3rem; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.site-footer p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.site-footer .firm { color: var(--text); font-size: .95rem; }
.site-footer a.mail { color: var(--muted); }
.site-footer a.mail:hover { color: var(--gold); }

/* ---------- Nach-oben-Knopf ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.to-top.show { opacity: .9; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold); color: var(--bg); }
.to-top svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Impressum / Datenschutz ---------- */
.site-footer .legal { margin-top: .5rem; }
.site-footer .legal a { color: var(--muted); text-decoration: none; }
.site-footer .legal a:hover { color: var(--gold); text-decoration: underline; }
.legal-text h2 { font-size: 1.1rem; margin: 1.8rem 0 .4rem; }
.legal-text .lead { font-size: 1rem; color: var(--muted); }
