/* Der Pianör – Gestaltung
   Konzept: Konzertprogramm statt Baukasten. Lackschwarz und Messing wie am Flügel
   (Messing = Pedale), Didone-Schrift wie auf Notentitelseiten, ruhige Grotesk für Text. */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bodoni-moda-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #EEF0F1;      /* kühles Notenpapier */
  --ink: #1A2230;        /* Tinte, leicht blau */
  --muted: #5B6573;
  --lacquer: #11151C;    /* Flügellack */
  --on-lacquer: #E9EAEC;
  --brass: #94712F;      /* Pedalmessing, auf hellem Grund */
  --brass-lit: #CFAE68;  /* Messing im Licht, auf dunklem Grund */
  --rule: #C9CDD2;
  --surface: #FFFFFF;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter-l: max(1.25rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1.25rem, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151A21; --ink: #E4E6E9; --muted: #9AA3AE; --lacquer: #0B0E13; --on-lacquer: #E9EAEC;
    --brass: #CFAE68; --brass-lit: #D9BB7A; --rule: #2C333D; --surface: #1C222B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151A21; --ink: #E4E6E9; --muted: #9AA3AE; --lacquer: #0B0E13; --on-lacquer: #E9EAEC;
  --brass: #CFAE68; --brass-lit: #D9BB7A; --rule: #2C333D; --surface: #1C222B; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; }

/* Kopfzeile */
.site-head { background: var(--lacquer); color: var(--on-lacquer); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1rem; }
.mark { font-family: var(--display); font-size: 2.2rem; font-weight: 500; line-height: 1; text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: baseline; color: var(--on-lacquer); }
.mark-p { height: 1em; width: auto; fill: currentColor; color: inherit !important; margin-right: .02em; align-self: baseline; overflow: visible; }
.mark .oe { color: var(--brass-lit); }
.nav { min-width: 0; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; margin: 0; padding: 0; }
.nav li { white-space: nowrap; }
.nav a { text-decoration: none; font-size: 1.12rem; color: var(--on-lacquer); opacity: .82; padding-block: .25rem; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -1px 0 var(--brass-lit); }

/* Hero: Porträt randlos, Text auf der dunklen linken Bildhälfte */
.hero { position: relative; background: var(--lacquer); color: var(--on-lacquer); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,21,28,.92) 0%, rgba(17,21,28,.7) 38%, rgba(17,21,28,0) 62%); }
.hero-inner { position: relative; z-index: 1; min-height: clamp(30rem, 72vh, 44rem); display: flex; align-items: center; }
.hero-text { padding-block: clamp(3rem, 7vw, 6rem); display: flex; flex-direction: column; gap: 1.5rem; max-width: 34rem; min-width: 0; }
.hero-name { font-family: var(--text); font-size: 1.25rem; letter-spacing: .02em; color: var(--brass-lit); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 400; }
.hero-lede { color: var(--on-lacquer); opacity: .88; max-width: 36ch; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .8rem 1.25rem; border-radius: 2px; border: 1px solid var(--brass-lit); }
.btn-solid { background: var(--brass-lit); color: #11151C; }
.btn-solid:hover { background: #E0C285; }
.btn-line { color: var(--on-lacquer); }
.btn-line:hover { background: rgba(207,174,104,.12); }

/* Abschnitte */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: .75rem; margin-bottom: 2.5rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); }

/* Programm: das Erkennungsmerkmal der Seite */
.programme { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.programme li { border-bottom: 1px solid var(--rule); }
.programme a { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 14rem); gap: 1rem 2.5rem; align-items: center; padding-block: 1.75rem; text-decoration: none; }
.programme h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1; transition: color .2s; }
.programme a:hover h3 { color: var(--brass); }
.programme .desc { max-width: 46ch; }
.programme .cast { font-size: .92rem; color: var(--muted); font-style: normal; }
.programme .cast em { display: block; font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--brass); margin-bottom: .15rem; }

/* Live erleben: ein Filmstreifen, Quer- und Hochformat auf gleicher Höhe */
.live { background: var(--surface); }
.films { display: grid; grid-template-columns: minmax(0, 3.16fr) minmax(0, 3fr); gap: 1rem; align-items: start; }
.films-tall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; min-width: 0; }
.film { margin: 0; display: grid; gap: .6rem; min-width: 0; }
.film video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--lacquer); border-radius: 2px; display: block; }
.film-wide video { aspect-ratio: 16 / 9; }
.film figcaption { font-size: .9rem; color: var(--muted); display: grid; gap: .1rem; }
.film figcaption strong { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--ink); }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--brass); }
.steps h3 { font-family: var(--text); font-size: 1.05rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .98rem; }

/* Anfrage: Hände am Keyboard, stark abgedunkelt */
.ask { position: relative; background: var(--lacquer); color: var(--on-lacquer); overflow: hidden; }
.ask-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .32; }
.ask-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.ask h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 400; }
.ask p { opacity: .88; margin-top: .75rem; max-width: 46ch; }

/* Fußzeile */
.site-foot { padding-block: 2.5rem; font-size: .92rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.site-foot address { font-style: normal; }

@media (max-width: 52rem) {
  .hero { display: flex; flex-direction: column; }
  .hero-img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; object-position: 68% 25%; }
  .hero::after { inset: 0 0 auto 0; height: 75vw; background: linear-gradient(180deg, rgba(17,21,28,0) 55%, rgba(17,21,28,1) 100%); }
  .hero-inner { min-height: 0; margin-top: -3rem; }
  .hero-text { padding-block: 0 3rem; }
  .programme a { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-block: 1.5rem; }
  .films { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .mark { font-size: 1.9rem; }
  .nav { width: 100%; }
  .nav ul { display: grid; grid-template-columns: repeat(3, max-content); gap: .3rem 1.75rem; }
  .nav a { font-size: 1.05rem; }
  .hero-name .sep { display: none; }
  .hero-name .roles { display: block; }
  .films-tall { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .films-tall .film { scroll-snap-align: start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Unterseiten: Kopfbereich */
.page-head { background: var(--lacquer); color: var(--on-lacquer); }
.page-head .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1rem; }
.page-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 400; }
.page-head p { opacity: .88; max-width: 46ch; font-size: 1.125rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 500; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: .35rem; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; padding: .7rem .8rem; width: 100%; min-width: 0; }
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: .8; }
.event { border: 0; border-top: 1px solid var(--ink); margin: .75rem 0 0; padding: 1.25rem 0 0; display: grid; gap: 1.25rem; min-width: 0; }
.event legend { font-family: var(--display); font-size: 1.5rem; padding: 0 .75rem 0 0; }
.privacy { font-size: .9rem; color: var(--muted); }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: 2rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.contact-aside h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.contact-aside address { font-style: normal; }
.contact-aside a { color: var(--brass); }

/* Hinweisseiten (Danke, 404, Formularfehler) */
.notice { display: grid; gap: 1.25rem; max-width: 40rem; }
.notice h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice .muted { color: var(--muted); font-size: .92rem; }
.notice a:not(.btn) { color: var(--brass); }
.notice .btn { justify-self: start; }

@media (max-width: 52rem) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .form .row { grid-template-columns: minmax(0, 1fr); }
}

/* Rechtstexte */
.legal { max-width: 44rem; display: grid; gap: 1rem; }
.legal h2 { font-size: 1.6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal address { font-style: normal; }
.legal a { color: var(--brass); }
.legal .credits { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal .stand { color: var(--muted); font-size: .92rem; margin-top: 1.5rem; }

/* Unterseiten: Angebote ohne Link, gleiche Optik wie das Programm */
.offers li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 14rem); gap: 1rem 2.5rem; align-items: center; padding-block: 1.75rem; }
.intro .offers li { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.aside-note { margin-top: 1.5rem; color: var(--muted); max-width: 60ch; }
.aside-note a { color: var(--brass); }

/* Einleitung mit Bild oder Zitat */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro-text { min-width: 0; }
.intro-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: 2px; }
.quote { margin: 0; padding: 2rem 0 0; border-top: 1px solid var(--ink); }
.quote p { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; color: var(--brass); text-wrap: balance; }

/* Fakten als Liste */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 2rem; border-top: 1px solid var(--ink); }
.facts div { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); display: grid; gap: .35rem; align-content: start; }
.facts dt { font-family: var(--display); font-size: 1.3rem; }
.facts dd { margin: 0; color: var(--muted); }

/* Videos auf Unterseiten */
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.media-grid.one { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.media-grid .film video { aspect-ratio: 16 / 9; }

/* Galerie */
.gallery { columns: 3 18rem; column-gap: 1rem; }
.gallery a { display: block; margin-bottom: 1rem; break-inside: avoid; }
.gallery img { width: 100%; height: auto; border-radius: 2px; }
.gallery a:hover img { opacity: .9; }

@media (max-width: 52rem) {
  .offers li, .intro .offers li { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-block: 1.5rem; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro-img { aspect-ratio: 3 / 2; }
  .media-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Spalte mit mehreren Bildern oder Zitat und Bild */
.intro-stack { display: grid; gap: 1rem; min-width: 0; }
.intro-stack img { width: 100%; height: auto; border-radius: 2px; }
.intro-stack .quote + img { margin-top: 1rem; }

/* Trauerfeier: Ablauf mit drei Schritten, Liederliste */
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps em { font-style: italic; color: var(--ink); }
.repertoire { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.rep-group { min-width: 0; }
.rep-group h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.rep-group ul { list-style: none; margin: 0; padding: 0; }
.rep-modern ul { columns: 2; column-gap: 2.5rem; }
.rep-group li { break-inside: avoid; padding-block: .4rem; border-bottom: 1px solid var(--rule); display: grid; }
.rep-group .t { font-weight: 500; }
.rep-group .a { font-size: .88rem; color: var(--muted); }
@media (max-width: 52rem) {
  .steps.steps-3 { grid-template-columns: minmax(0, 1fr); }
  .repertoire { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rep-modern { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .repertoire { grid-template-columns: minmax(0, 1fr); }
  .rep-modern ul { columns: 1; }
}
