/*
 * Amati Kammermusikschule Stuttgart e.V. – Stylesheet
 * Design-Tokens siehe docs/design-handoff/README.md
 */

/* ---------- Schriften (selbst gehostet, Latin-Subset, variable Fonts) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-v21-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic-v21-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-v12-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --cream: #f4eee4;
  --cream-2: #eae1d3;
  --line: #d9cfc1;
  --line-2: #cdbfae;
  --ink: #1e1a17;
  --ink-2: #3a332e;
  --ink-3: #4a433d;
  --muted: #6b625a;
  --accent: #8a3b1c;
  --accent-dark: #74301a;
  --accent-light: #d9a27e;
  --on-dark-muted: #cfc6ba;
  --placeholder: #e6ddd0;
  --line-on-accent: rgb(244 238 228 / 30%);
  --header-bg: rgb(244 238 228 / 94%);
  --overlay: rgb(30 26 23 / 60%);
  --serif: "Cormorant Garamond", garamond, georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --content-width: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --anchor-offset: 120px;
  --transition: 150ms ease;

  color-scheme: light;
}

/* ---------- Basis ---------- */

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

html {
  scroll-padding-top: var(--anchor-offset);
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
picture {
  display: block;
  max-width: 100%;
}

p,
dd {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

a:hover {
  color: var(--ink);
}

main section[id],
main [id] {
  scroll-margin-top: var(--anchor-offset);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.section--accent :focus-visible {
  outline-color: var(--cream);
}

details > summary {
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--cream);
  transform: none;
}

/* ---------- Layout-Bausteine ---------- */

/* max-width gilt für den Inhalt, Innenabstand kommt dazu (wie im Prototyp) */
.container {
  box-sizing: content-box;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.section {
  padding-block: var(--section-y);
}

.section--accent {
  background: var(--accent);
  color: var(--cream);
}

.section--sand {
  background: var(--cream-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.stack--lg {
  gap: clamp(40px, 5vw, 64px);
}

.stack--xl {
  gap: clamp(40px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.section--accent .section-head {
  border-bottom-color: var(--line-on-accent);
}

.section-head__num {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--accent);
}

.section--accent .section-head__num {
  color: var(--cream);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker--sm {
  font-size: 12px;
  letter-spacing: 0.18em;
}

.kicker--light {
  letter-spacing: 0.12em;
  color: var(--cream);
}

.display {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px clamp(32px, 6vw, 96px);
}

.text-link {
  border-bottom: 1px solid var(--accent);
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--cream);
}

.btn--accent {
  background: var(--accent);
  color: var(--cream);
}

.btn--accent:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--ghost-light {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--ghost-light:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn--md {
  padding: 12px 22px;
}

.btn--sm {
  padding: 9px 17px;
  font-size: 14px;
}

@media (width < 480px) {
  .btn-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 14px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--ink);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav__link {
  color: var(--ink);
}

.site-nav__link:hover,
.site-nav__link--accent {
  color: var(--accent);
}

.site-nav__link[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.nav-toggle {
  display: none;
}

@media (width < 900px) {
  :root {
    --anchor-offset: 88px;
  }

  .site-header__inner {
    flex-wrap: nowrap;
  }

  .wordmark {
    align-items: center;
    min-height: 44px;
    margin-block: -8px;
    font-size: clamp(22px, 6.4vw, 28px);
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentcolor;
    transition: transform var(--transition), background-color var(--transition);
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .nav-toggle__bars::before {
    top: -7px;
  }

  .nav-toggle__bars::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    font-size: 17px;
  }

  .site-nav__item + .site-nav__item {
    border-top: 1px solid var(--line);
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  /* Ohne JavaScript: Menü immer sichtbar, kein Burger */
  @media (scripting: none) {
    .site-header__inner {
      flex-wrap: wrap;
    }

    .nav-toggle {
      display: none;
    }

    .site-nav {
      position: static;
      display: block;
      background: transparent;
      border: 0;
    }

    .site-nav__list {
      flex-flow: row wrap;
      gap: 6px 24px;
      padding: 0;
      font-size: 15px;
    }

    .site-nav__item + .site-nav__item {
      border-top: 0;
    }

    .site-nav__link {
      min-height: 44px;
    }
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(48px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: sepia(0.15) contrast(1.05);
}

.hero__caption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  hyphens: manual;
}

.hero__intro {
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink-2);
  hyphens: manual;
}

@media (width < 900px) {
  .hero__img {
    max-height: 60vh;
    max-height: 60svh;
  }
}

/* ---------- Banner „Nächstes Konzert“ ---------- */

.next-concert {
  display: block;
  background: var(--accent);
  color: var(--cream);
}

.next-concert:hover {
  background: var(--accent-dark);
  color: var(--cream);
}

.next-concert__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding-block: 24px;
}

.next-concert__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.next-concert__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}

.next-concert__place {
  font-size: 17px;
}

@media (width < 640px) {
  .next-concert__inner {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- Willkommen ---------- */

.welcome__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- Ziele und Motive ---------- */

.quote {
  max-width: 1000px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.quote em {
  color: var(--cream);
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px clamp(32px, 4vw, 64px);
  font-size: 16px;
  line-height: 1.75;
}

.columns strong {
  font-weight: 500;
}

/* ---------- Dozenten ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px clamp(24px, 3vw, 40px);
  align-items: start;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.person__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--placeholder);
  filter: grayscale(0.2);
}

.person__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person__name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.person__role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.bio {
  border-top: 1px solid var(--line);
}

.bio__summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.bio__summary::after,
.archive-year__count::after {
  content: "+";
  content: "+" / "";
  margin-left: 0.35em;
}

.bio[open] > .bio__summary::after,
.archive-year[open] .archive-year__count::after {
  content: "−";
  content: "−" / "";
}

.bio__summary:hover {
  color: var(--accent);
}

.bio__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
  padding-bottom: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- Angebote ---------- */

.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px 48px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line-2);
}

.offer__title {
  font-family: var(--serif);
  font-size: clamp(30px, 2.9vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}

.offer__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.offer__body .btn {
  margin-top: 8px;
}

/* ---------- Education Programme ---------- */

.education {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
}

.poster {
  box-sizing: content-box; /* 440px Inhalt + Innenabstand, wie im Prototyp */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  padding: 40px;
  background: var(--ink);
  color: var(--cream);
}

.poster__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.poster__center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poster__kv {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  line-height: 1;
  color: var(--accent-light);
}

.poster__title {
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.poster__desc {
  max-width: 300px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.poster__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-3);
}

.poster__img {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.poster__credit {
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

@media (width < 600px) {
  .poster {
    box-sizing: border-box;
    aspect-ratio: auto;
    padding: clamp(28px, 7vw, 40px);
  }
}

.mozart {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mozart__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mozart__title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.mozart__title em {
  color: var(--accent);
}

.mozart__subtitle {
  font-size: 15px;
  font-weight: 600;
}

.mozart__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.mozart__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Definitionslisten (Mozart-Besetzung, Spenden-Dialog) */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.facts dt {
  color: var(--muted);
}

.facts--lg {
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 16px;
}

@media (width < 420px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .facts dd + dt {
    margin-top: 12px;
  }
}

/* ---------- Termine (Konzert-Eintrag) ---------- */

.event {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-on-accent);
}

.event__when {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event__date {
  display: block;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.event__meta {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.event__text,
.event__place {
  font-size: 16px;
  line-height: 1.6;
}

.event__place span {
  display: block;
}

.event__place span + span {
  margin-top: 4px;
}

.events-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}

.link-light,
.link-light:hover {
  color: var(--cream);
}

.link-light--underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.link-light--underline:hover {
  text-decoration-color: transparent;
}

@media (width < 900px) {
  .link-light {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---------- Mitgliedschaft/Spenden ---------- */

.membership {
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.membership__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.membership__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.membership__title em {
  color: var(--accent);
}

/* ---------- Spenden-Dialog ---------- */

.is-scroll-locked {
  overflow: hidden;
}

.donate {
  width: min(100% - 48px, 560px + 2 * clamp(28px, 4vw, 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 80px rgb(0 0 0 / 35%);
}

.donate::backdrop {
  background: var(--overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.donate__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
}

.donate__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.donate__titles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donate__title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.donate__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.donate__close:hover {
  color: var(--accent);
}

.donate__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.iban {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  hyphens: none;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--ink);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  padding-top: 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--muted);
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.site-footer__mark {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer__link {
  color: var(--ink);
}

.site-footer__link:hover {
  color: var(--accent);
}

@media (width < 900px) {
  .site-footer__link {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
}

/* ---------- Termine-Seite ---------- */

.season {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.archive-year {
  border-bottom: 1px solid var(--ink);
}

.archive-year__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.archive-year__year {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.archive-year__count {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.archive-year__summary:hover .archive-year__year {
  color: var(--accent);
}

.archive-year__list {
  padding-bottom: 24px;
}

.archive-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px 32px;
  align-items: baseline;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.archive-entry__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.archive-entry__when {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.archive-entry__time {
  color: var(--muted);
}

.archive-entry__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.archive-entry__program {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.archive-entry__place {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Impressum & Datenschutz ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px clamp(32px, 4vw, 64px);
  align-items: start;
}

.info-grid--ruled {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-block__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.info-block p,
.info-block address,
.policy-item p,
.policy-item ul {
  font-size: 16px;
  font-style: normal;
  line-height: 1.7;
  color: var(--ink-2);
}

.policy-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.policy-block__title {
  position: sticky;
  top: var(--anchor-offset);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.policy-block__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.policy-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.policy-item ul {
  padding-left: 1.1em;
  list-style: "– ";
}

.policy-item a {
  overflow-wrap: anywhere;
}

.policy-meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (width < 700px) {
  .policy-block__title {
    position: static;
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  min-height: 50vh;
}

.not-found__title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.not-found__text {
  max-width: 560px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink-2);
}

/* ---------- Mobile Feinschliff ---------- */

@media (width < 600px) {
  /* Silbentrennung nur auf schmalen Viewports (lange deutsche Komposita) */
  p,
  dd,
  h1,
  h2,
  h3,
  h4,
  h5 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero__title,
  .mozart__title,
  .poster__title {
    hyphens: manual;
  }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none;
    animation: none;
    scroll-behavior: auto;
  }
}

/* ---------- Druck ---------- */

@media print {
  :root {
    --accent: #000;
    --ink: #000;
    --ink-2: #000;
    --muted: #333;
    --line: #999;
    --line-2: #999;
    --cream: #fff;
    --cream-2: #fff;
    --line-on-accent: #999;
  }

  @page {
    margin: 18mm 16mm;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .skip-link,
  .nav-toggle,
  .site-nav,
  .site-footer__list,
  .next-concert,
  .btn,
  .btn-row,
  .donate,
  .events-foot .link-light {
    display: none;
  }

  .site-header {
    position: static;
    background: none;
    border-bottom: 1px solid #000;
    backdrop-filter: none;
  }

  .section,
  .hero {
    padding-block: 12mm;
  }

  .section--accent,
  .section--sand,
  .poster {
    background: none;
    color: #000;
  }

  .poster {
    border: 1px solid #000;
    aspect-ratio: auto;
  }

  .poster__kv,
  .poster__top,
  .poster__desc,
  .poster__credit,
  .quote em {
    color: #000;
  }

  .hero__img,
  .person__img,
  .poster__img {
    filter: grayscale(1);
  }

  .person__img {
    max-width: 45mm;
  }

  .hero__img {
    max-width: 80mm;
  }

  .policy-block__title {
    position: static;
  }

  details::details-content {
    content-visibility: visible;
    display: block;
  }

  .bio__summary::after,
  .archive-year__count::after {
    content: none;
  }

  .archive-year,
  .archive-entry,
  .person,
  .offer,
  .event {
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}
