*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #c0176b; --pink-l: #e8196e;
  --bg: #fdf8fb; --surface: #f3e8f0;
  --text: #2d1a26; --muted: #7a5a6e;
  --heading: #1a0a12; --border: rgba(192,23,107,.1);
  --nav-bg: rgba(253,248,251,.95);
  --note-bg: #fce7f3;
  --trans: .3s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --bg: #130a10; --surface: #1c0e16;
  --text: #f0e6ec; --muted: #c9a8bc;
  --heading: #f0e6ec; --border: rgba(192,23,107,.2);
  --nav-bg: rgba(13,6,9,.96);
  --note-bg: rgba(192,23,107,.15);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; transition: background var(--trans), color var(--trans); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 1.1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 3rem);
  max-width: 900px;
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem .45rem .45rem 1rem;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 2rem;
  box-shadow: 0 4px 28px rgba(192,23,107,.1), 0 1px 6px rgba(0,0,0,.05);
  transition: background var(--trans), box-shadow var(--trans);
}
[data-theme="dark"] nav { background: rgba(13,6,9,.82); border-color: rgba(192,23,107,.12); box-shadow: 0 4px 28px rgba(0,0,0,.45); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.back-link {
  color: var(--pink); text-decoration: none; font-weight: 600; font-size: .875rem;
  padding: .5rem .95rem; border-radius: 1.5rem;
  background: rgba(192,23,107,.07);
  transition: background var(--trans), opacity var(--trans);
  white-space: nowrap;
}
.back-link:hover { background: rgba(192,23,107,.13); }

/* ── THEME SWITCH ── */
.theme-switch {
  background: none; border: none; padding: 0;
  cursor: pointer; display: flex; align-items: center; flex-shrink: 0;
}
.switch-track {
  width: 52px; height: 28px; border-radius: 14px;
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border: 1.5px solid rgba(192,23,107,.25);
  position: relative; display: flex; align-items: center; padding: 3px;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
  box-shadow: inset 0 1px 4px rgba(192,23,107,.1);
}
.switch-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(192,23,107,.25);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .4s, box-shadow .4s;
  flex-shrink: 0;
}
.theme-switch:hover .switch-track { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(192,23,107,.12); }
[data-theme="dark"] .switch-track {
  background: linear-gradient(135deg, #2d1040, #4c1d95);
  border-color: rgba(139,92,246,.4);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.3);
}
[data-theme="dark"] .switch-thumb {
  transform: translateX(24px);
  background: #ede9fe;
  box-shadow: 0 2px 8px rgba(109,40,217,.45);
}
[data-theme="dark"] .theme-switch:hover .switch-track { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(139,92,246,.2); }

/* ── CONTENT ── */
main { max-width: 760px; margin: 0 auto; padding: 7rem 2rem 6rem; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 700; margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-l));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.last-updated { font-size: .85rem; color: var(--muted); margin-bottom: 2.5rem; }
h2 { font-size: 1.15rem; font-weight: 700; color: var(--heading); margin: 2rem 0 .5rem; }
h3 { font-size: 1rem; font-weight: 600; color: var(--heading); margin: 1.5rem 0 .5rem; }
p { font-size: .975rem; color: var(--text); margin-bottom: .75rem; }
address { font-size: .975rem; color: var(--text); font-style: normal; }
ul { padding-left: 1.5rem; margin-bottom: .75rem; }
li { font-size: .975rem; color: var(--text); margin-bottom: .3rem; }
strong { color: var(--heading); }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.note, .highlight-box {
  background: var(--note-bg); border-left: 3px solid var(--pink);
  border-radius: .5rem; padding: 1rem 1.25rem;
  font-size: .9rem; color: var(--text); margin: 1.5rem 0;
}

footer { text-align: center; padding: 2rem; font-size: .875rem; color: var(--muted); }
footer a { color: var(--pink); }

/* Impressum: direct h2 after title needs more space */
.page-title + h2 { margin-top: 2rem; }
