/* ==========================================================================
   SWETLANA WECKSTEIN — INSTRUMENTALPÄDAGOGIK & PRIVATUNTERRICHT (site-4-klavier)
   Farbwelt: Kalkweiß (#FAF8F4), Steinsand (#ECE7DF), Graphit (#1A1C1E), Nussbaum (#8C4A32)
   100 % SÄKULAR — Keine religiöse Festlegung, keine Textilarbeit
   ========================================================================== */

:root {
  --chalk: #faf8f4;
  --stone: #ece7df;
  --paper: #ffffff;
  --graphite: #1a1c1e;
  --graphite-muted: #55595e;
  --walnut: #8c4a32;
  --walnut-deep: #6b3522;
  --brass-muted: #9b7b46;
  --border-soft: rgba(26, 28, 30, 0.12);
  --border-walnut: rgba(140, 74, 50, 0.28);
  --focus-ring: #6b3522;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --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(--chalk);
  color: var(--graphite);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--graphite);
  background: var(--chalk);
  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;
  color: var(--graphite);
}

.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(--walnut);
  color: #fff;
  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.75rem clamp(1.25rem, 3.5vw, 3.5rem);
  z-index: 100;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}

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

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

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--graphite-muted);
  padding: 0.4rem 0.15rem;
  min-block-size: 24px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.78rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  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(--ease), border-color 0.25s ease;
  }
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn-walnut {
  background: var(--walnut);
  color: #fff;
  border-color: var(--walnut);
}

.btn-walnut:hover {
  background: var(--walnut-deep);
}

.btn-dark {
  background: var(--graphite);
  color: #fff;
  border-color: var(--graphite);
}

.btn-outline {
  background: transparent;
  color: var(--graphite);
  border-color: var(--border-walnut);
}

.btn-outline:hover {
  border-color: var(--graphite);
  background: rgba(26, 28, 30, 0.04);
}

/* Hero */
.hero-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 3.8vw, 4.2rem) 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.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.1rem, 1.3rem + 2vw, 3.15rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.hero-lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--graphite-muted);
  max-width: 55ch;
  margin-bottom: 2rem;
}

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

.media-frame {
  border: 1px solid var(--border-soft);
  background: var(--paper);
  padding: 0.65rem;
}

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

.media-caption {
  font-size: 0.78rem;
  color: var(--graphite-muted);
  padding: 0.6rem 0.25rem 0.2rem;
}

/* Trust Bar */
.trust-strip {
  background: var(--stone);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.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: 2px solid var(--walnut);
  padding-left: 1rem;
}

.trust-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.trust-sub {
  font-size: 0.82rem;
  color: var(--graphite-muted);
}

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

.section-heading {
  font-size: clamp(1.85rem, 1.35rem + 1.6vw, 2.85rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 26ch;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.prose-block p {
  color: var(--graphite-muted);
  max-width: 60ch;
  margin-bottom: 1.2rem;
}

.pull-quote {
  margin: 1.6rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--walnut);
  background: var(--stone);
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.48;
  color: var(--graphite);
}

.pull-quote footer {
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--walnut);
  font-weight: 600;
}

/* 3 Instrument Families + Age Tiers */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}

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

.card h3 {
  font-size: 1.48rem;
  margin-bottom: 0.85rem;
}

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

.card-list {
  list-style: none;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.9rem;
  margin-bottom: 1.4rem;
}

.card-list li {
  font-size: 0.86rem;
  color: var(--graphite-muted);
  padding: 0.28rem 0;
}

/* Private Residency Banner (Anti-Nachhilfe Framing) */
.residency-panel {
  background: var(--graphite);
  color: var(--chalk);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2.5rem;
  align-items: center;
}

.residency-panel h2 {
  color: var(--chalk);
}

.residency-panel .kicker {
  color: #dfaa93;
}

.residency-panel p {
  color: rgba(250, 248, 244, 0.85);
  max-width: 58ch;
  margin-bottom: 1rem;
}

.fee-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.75rem;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

/* Native Details Accordion */
.accordion {
  max-width: 820px;
  margin-top: 2rem;
}

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

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

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

.accordion summary::before {
  content: "";
  inline-size: 0.65em;
  block-size: 0.65em;
  flex-shrink: 0;
  border-right: 2px solid var(--walnut);
  border-bottom: 2px solid var(--walnut);
  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(--graphite-muted);
  max-width: 62ch;
}

/* Dialog */
dialog#piano-dialog {
  margin: auto;
  max-width: 540px;
  width: calc(100% - 2rem);
  background: var(--chalk);
  color: var(--graphite);
  border: 1px solid var(--border-walnut);
  padding: 2rem;
  border-radius: 3px;
}

dialog#piano-dialog::backdrop {
  background: rgba(26, 28, 30, 0.72);
  backdrop-filter: blur(4px);
}

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

.dialog-close {
  background: transparent;
  border: 1px solid var(--border-soft);
  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.8rem;
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #fff;
  color: var(--graphite);
  border: 1px solid var(--border-walnut);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--stone);
  border-top: 1px solid var(--border-soft);
  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(--graphite-muted);
  text-decoration: none;
  font-size: 0.86rem;
}

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

.footer-bottom {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--graphite-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;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .header-actions .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    min-block-size: 38px;
    white-space: nowrap;
  }
  .hero-section,
  .split-grid,
  .cards-grid,
  .trust-grid,
  .residency-panel {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .btn, .card, .media-frame, .residency-panel, dialog#piano-dialog {
    border: 1px solid CanvasText;
  }
}


/* Header actions & Language Switcher Pill */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--graphite-muted);
  padding: 0.15rem 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--walnut);
}

.lang-btn.active {
  background: var(--walnut);
  color: #ffffff;
}

.lang-sep {
  color: var(--border-soft);
  font-size: 0.7rem;
  user-select: none;
}


@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;
}
