/* ==========================================================================
   SWETLANA WECKSTEIN — KONZERT, KLAVIER & KAMMERMUSIK (site-1-musik)
   Farbwelt: Obsidian (#0B0C0E), Rauchbraun (#151311), Elfenbein (#F2EFE9), Messing (#B89B5E)
   ========================================================================== */

:root {
  --bg-obsidian: #0b0c0e;
  --bg-smoke: #151311;
  --bg-card: #181715;
  --ivory: #f2efe9;
  --ivory-muted: #b5afa4;
  --brass: #c4a464;
  --brass-bright: #dfc182;
  --border-brass: rgba(196, 164, 100, 0.28);
  --border-subtle: rgba(242, 239, 233, 0.14);
  --focus-ring: #dfc182;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--ivory);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-sans);
  line-height: 1.68;
  color: var(--ivory);
  background: var(--bg-obsidian);
  overflow-x: hidden;
  text-align: start;
}

p, li, blockquote {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  text-wrap: balance;
  font-weight: 500;
}

/* Accessibility utilities */
.visually-hidden:where(:not(:focus-within, :active)),
.skip-link:where(:not(:focus, :focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brass);
  color: var(--bg-obsidian);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

:where(a:any-link, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  min-block-size: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.8rem clamp(1.25rem, 3.5vw, 3.5rem);
  z-index: 100;
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-brass);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ivory);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass);
  border-left: 1px solid var(--border-brass);
  padding-left: 0.75rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  padding: 0.4rem 0.2rem;
  min-block-size: 24px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--brass-bright);
}

@media (min-width: 1120px) {
  .site-header {
    flex-wrap: nowrap;
  }
  .nav-links {
    flex-wrap: nowrap;
  }
  .site-header .btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-block-size: 44px;
  padding: 0.72rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--transition-ease), border-color 0.25s ease;
  }
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn-brass {
  background: var(--brass);
  color: var(--bg-obsidian);
  border-color: var(--brass);
}

.btn-brass:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--border-brass);
}

.btn-outline:hover {
  border-color: var(--brass-bright);
  background: rgba(196, 164, 100, 0.1);
}

/* Hero */
.hero-section {
  position: relative;
  min-block-size: calc(100svh - 4.8rem);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 75% 40%, rgba(196, 164, 100, 0.08) 0%, transparent 55%), var(--bg-obsidian);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

#soundwave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

.motion-toggle {
  position: relative;
  z-index: 5;
  margin-top: 1.5rem;
  background: rgba(21, 19, 17, 0.85);
  color: var(--ivory-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  min-block-size: 36px;
}

.motion-toggle:hover {
  color: var(--ivory);
  border-color: var(--brass);
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 3.8vw, 4rem) clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 1.15rem;
}

.hero-title {
  font-size: clamp(2.2rem, 1.35rem + 2.4vw, 3.6rem);
  line-height: 1.08;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.2rem);
  color: var(--ivory-muted);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-frame {
  border: 1px solid var(--border-brass);
  background: var(--bg-smoke);
  padding: 0.65rem;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 805;
  object-fit: cover;
}

.hero-caption {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ivory-muted);
  padding: 0.65rem 0.25rem 0.25rem;
}

/* Credentials strip */
.trust-strip {
  background: var(--bg-smoke);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.trust-item {
  border-left: 1px solid var(--border-brass);
  padding-left: 1rem;
}

.trust-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 0.2rem;
}

.trust-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--ivory-muted);
}

/* General Section Container */
.section-block {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(3.5rem, 6vw, 6.5rem) clamp(1.25rem, 4vw, 4rem);
}

.section-border-top {
  border-top: 1px solid var(--border-subtle);
}

.section-heading {
  font-size: clamp(1.9rem, 1.35rem + 1.8vw, 3rem);
  line-height: 1.14;
  margin-bottom: 1.25rem;
  max-width: 24ch;
}

/* Herkunft & Moissejew Essay */
.essay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.essay-media {
  border: 1px solid var(--border-subtle);
  background: var(--bg-smoke);
  padding: 0.65rem;
}

.essay-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 805;
  object-fit: cover;
}

.essay-body p {
  color: var(--ivory-muted);
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

.essay-quote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--brass);
  background: var(--bg-smoke);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ivory);
}

.essay-quote footer {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}

/* Repertoire 3 Columns (A04 & B08) */
.repertoire-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.repertoire-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.repertoire-num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.repertoire-card h3 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
  color: var(--ivory);
}

.repertoire-card p {
  font-size: 0.94rem;
  color: var(--ivory-muted);
  margin-bottom: 1.25rem;
}

.repertoire-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.repertoire-list li {
  font-size: 0.86rem;
  color: var(--ivory-muted);
  padding: 0.3rem 0;
}

/* Interactive Program Inspector (Honest replacement for fake Live Audio synth) */
.program-console {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--border-brass);
  background: var(--bg-smoke);
}

.program-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
}

.program-tab-btn {
  text-align: start;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.4rem 1.75rem;
  color: var(--ivory-muted);
  cursor: pointer;
  min-block-size: 64px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.program-tab-btn:last-child {
  border-bottom: none;
}

.program-tab-btn[aria-selected="true"] {
  background: rgba(196, 164, 100, 0.1);
  color: var(--ivory);
  border-left: 3px solid var(--brass);
}

.tab-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.tab-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--brass);
}

.program-detail-pane {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-detail-pane h3 {
  font-size: 1.75rem;
  color: var(--ivory);
  margin-bottom: 1rem;
}

.program-detail-pane p {
  color: var(--ivory-muted);
  max-width: 55ch;
  margin-bottom: 1.25rem;
}

.program-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
}

.meta-val {
  font-size: 0.92rem;
  color: var(--ivory);
}

/* Native Details/Summary Accordion (Modern Web Guidance) */
.accordion {
  max-width: 820px;
  margin-top: 2.25rem;
}

.accordion details {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  color: var(--ivory);
  cursor: pointer;
  min-block-size: 48px;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "";
  inline-size: 0.7em;
  block-size: 0.7em;
  flex-shrink: 0;
  border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}

.accordion details[open] > summary::before {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before {
    transition: transform 0.25s ease;
  }
  .accordion details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
    transition: block-size 0.3s ease, content-visibility 0.3s ease, display 0.3s ease;
    transition-behavior: allow-discrete;
  }
  .accordion details:not([open])::details-content {
    block-size: 0;
  }
}

.faq-body {
  padding: 0 0 1.35rem 1.85rem;
  color: var(--ivory-muted);
  max-width: 62ch;
}

/* Native Dialog Inquiry Builder */
dialog#inquiry-dialog {
  margin: auto;
  max-width: 560px;
  width: calc(100% - 2rem);
  background: var(--bg-smoke);
  color: var(--ivory);
  border: 1px solid var(--border-brass);
  padding: 2.25rem;
  border-radius: 3px;
}

dialog#inquiry-dialog::backdrop {
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.dialog-close {
  background: transparent;
  color: var(--ivory-muted);
  border: 1px solid var(--border-subtle);
  min-block-size: 38px;
  min-inline-size: 38px;
  cursor: pointer;
  font-size: 1.1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-obsidian);
  color: var(--ivory);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* Footer (Autark — 0 Cross-Links zu Kita/Hort/Atelier per B19!) */
.site-footer {
  background: var(--bg-smoke);
  border-top: 1px solid var(--border-brass);
  padding: 3.5rem clamp(1.25rem, 4vw, 4rem) 2.5rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--ivory-muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--brass-bright);
}

.footer-bottom {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--ivory-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 920px) {
  .site-header {
    height: 4.5rem;
    min-block-size: 4.5rem;
    max-height: 4.5rem;
    padding: 0 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .brand-sub {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .site-header .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    min-block-size: 38px;
    white-space: nowrap;
  }
  .hero-container,
  .essay-grid,
  .repertoire-grid,
  .program-console,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .program-tabs {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (forced-colors: active) {
  .btn, .repertoire-card, .hero-frame, .essay-media, dialog#inquiry-dialog {
    border: 1px solid CanvasText;
  }
}


@media (max-width: 1280px) {
  .brand-sub {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
}


.btn-short { display: none; }
@media (max-width: 480px) {
  .btn-full { display: none; }
  .btn-short { display: inline; }
}
@media (max-width: 600px) {
  .site-header {
    padding: 0 0.75rem;
    gap: 0.4rem;
  }
  .brand-title {
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .header-actions .btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
    min-block-size: 32px;
  }
  .lang-toggle {
    padding: 0.15rem 0.3rem;
    font-size: 0.68rem;
  }
  .lang-btn {
    padding: 0.1rem 0.2rem;
    font-size: 0.68rem;
  }
}


/* WECKSTEIN Brand Logo SVG */
.brand-logo-svg {
  height: 38px;
  width: auto;
  max-width: 220px;
  display: block;
}
@media (max-width: 480px) {
  .brand-logo-svg {
    height: 30px;
    max-width: 160px;
  }
}

/* Infographic Card */
.infographic-card {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  background: rgba(128, 128, 128, 0.04);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 4px;
}
.infographic-head {
  margin-bottom: 1.5rem;
}
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.info-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-step-num {
  font-family: var(--font-serif, serif);
  font-size: 1.6rem;
  font-weight: 700;
  opacity: 0.5;
  line-height: 1;
}
.info-step-body strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.info-step-body p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.85;
}

/* Legal AI Footnote */
.legal-footnote {
  max-width: 1320px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
  font-size: 0.68rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.legal-footnote:hover {
  opacity: 0.85;
}
