/* ==========================================================================
   Musikhaus Klangwerk – Globale Stylesheet-Datei
   Wird von allen Seiten geteilt.
   ========================================================================== */

/* ---------- 1. Design-Tokens (CSS Custom Properties) ---------------------- */
:root {
  /* Farbpalette: ruhig, mit Burgund-Rot als Hauptfarbe */
  --color-bg:        #f7f4f1;   /* warmes Off-White */
  --color-bg-alt:    #ece6df;   /* sandiges Beige */
  --color-surface:   #ffffff;
  --color-ink:       #1f1a18;   /* dunkles Anthrazit mit Rotanteil */
  --color-ink-soft:  #4a423f;
  --color-muted:     #8a807c;
  --color-line:      #ddd5cc;
  --color-accent:    #6d150c;   /* Hauptfarbe: Burgund */
  --color-accent-2:  #b08a5a;   /* warmes Messing */
  --color-dark:      #2a0a07;   /* sehr dunkles Burgund */

  /* Hero-Holztöne (vom Hero-SVG referenziert) */
  --hero-stop-1:     #7a2218;
  --hero-stop-2:     #4a1410;
  --hero-stop-3:     #2a0a07;
  --hero-spot:       #a52015;

  /* Typografie */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Maße */
  --container:    1200px;
  --radius-sm:    4px;
  --radius-md:    10px;
  --radius-lg:    18px;
  --shadow-sm:    0 2px 8px rgba(28,26,23,0.06);
  --shadow-md:    0 12px 32px rgba(28,26,23,0.10);

  /* Layout */
  --nav-height:   76px;
}

/* ---------- 1b. (Theme-Switcher entfernt) ------------------------------- */

/* ---------- 2. Reset / Basisstile ---------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--color-ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p  { text-wrap: pretty; margin: 0 0 1em; }

/* Eyebrow / Kicker-Label über Headlines */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* ---------- 3. Layout-Hilfsklassen --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(40px, 5vw, 72px);
}

.section--alt   { background-color: var(--color-bg-alt); }
.section--dark  { background-color: var(--color-dark); color: #f1ebe0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #faf6f0; }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn--primary:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--ghost:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn--light {
  background: var(--color-bg);
  color: var(--color-ink);
}
.btn--light:hover { background: var(--color-accent-2); color: var(--color-ink); }

/* ---------- 5. Navbar ---------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.navbar.is-scrolled {
  border-bottom-color: var(--color-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--color-accent); }
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-bg);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-block: 6px;
}
.nav-links a:hover { color: var(--color-ink); }
.nav-links a.is-active { color: var(--color-ink); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
}

/* Mobile-Burger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #f6efe2;
  background: var(--color-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(74,20,16,0.50) 0%, rgba(42,10,7,0.82) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 56px;
  max-width: 760px;
}
.hero h1 {
  color: #fbf7ee;
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 24px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(246,239,226,0.85);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero .eyebrow { color: var(--color-accent-2); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Kompakter Hero (Subseiten) */
.page-hero {
  background: var(--color-bg-alt);
  padding-block: clamp(48px, 7vw, 84px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--color-line);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.15rem; color: var(--color-ink-soft); max-width: 640px; }

/* ---------- 7. Bild-Platzhalter ------------------------------------------ */
/* Gestreifter Platzhalter mit Mono-Caption – signalisiert „Bild hier“ */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      #e6ddd3 0px, #e6ddd3 14px,
      #d9cfc3 14px, #d9cfc3 28px
    );
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--color-ink-soft);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}
.placeholder::after {
  content: attr(data-label);
  background: rgba(250,246,240,0.85);
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--color-line);
}
.placeholder--dark {
  background:
    repeating-linear-gradient(
      135deg,
      #5a1a14 0px, #5a1a14 14px,
      #4a1410 14px, #4a1410 28px
    );
  color: #e0c9c2;
  border-color: #6d2520;
}
.placeholder--dark::after {
  background: rgba(74,20,16,0.75);
  border-color: #6d2520;
  color: #e0c9c2;
}

/* Aspect-Ratio-Helper */
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1  { aspect-ratio: 1 / 1; }

/* ---------- 8. Karten / Grids -------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-2);
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(165, 32, 21, 0.10);
  color: var(--color-accent);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-ink-soft); margin-bottom: 0; }

/* Highlights (Home) */
.highlight {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.highlight__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
}
.highlight h3 { margin: 0; font-size: 1.2rem; }
.highlight p { color: var(--color-ink-soft); margin: 0; }

/* Split-Layout: Text + Bild */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }

/* ---------- 9. Timeline (Geschichte) ------------------------------------- */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--color-line);
}
.timeline__item {
  position: relative;
  padding-bottom: 32px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -32px; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-accent);
}
.timeline__year {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 4px;
  display: block;
}
.timeline__item h3 { margin-bottom: 8px; }
.timeline__item p { color: var(--color-ink-soft); margin: 0; max-width: 640px; }

/* ---------- 10. Service – große Service-Reihen --------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  padding-block: 48px;
  border-bottom: 1px solid var(--color-line);
}
.service-row:last-child { border-bottom: 0; }
.service-row--reverse > :first-child { order: 2; }
.service-row ul {
  list-style: none;
  padding: 0; margin: 24px 0 0;
}
.service-row ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink-soft);
}
.service-row ul li:last-child { border-bottom: 0; }
.service-row ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 2px;
  background: var(--color-accent);
}

/* ---------- 11. Kontaktformular & Info ----------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-info {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 36px;
}
.contact-info h3 { margin-top: 0; }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.map-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.map-embed__caption {
  position: absolute; right: 12px; bottom: 12px; margin: 0;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.contact-info dl {
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}
.contact-info dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.contact-info dd { margin: 0; color: var(--color-ink); }

.form {
  display: grid;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(165, 32, 21, 0.15);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form__success {
  background: #eaf2ea;
  border: 1px solid #b6d3b8;
  color: #2f5a32;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: none;
}
.form__success.is-visible { display: block; }

.map-placeholder {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---------- 12. Impressum / Rechtstext ----------------------------------- */
.legal {
  max-width: 760px;
}
.legal h2 { margin-top: 48px; font-size: 1.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal address {
  font-style: normal;
  color: var(--color-ink-soft);
}

/* ---------- 13. Footer --------------------------------------------------- */
.footer {
  margin-top: clamp(48px, 7vw, 96px);   /* Luft zur vorigen Sektion (kein „Kleben") */
  background: var(--color-dark);
  color: #d8c5bf;
  padding-block: 44px 24px;
}
.footer a { color: #e0d2cd; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #6d2520;
}
.footer h4 {
  color: #f1ebe0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}
.footer__brand .logo {
  color: #f1ebe0;
  margin-bottom: 16px;
}
.footer__brand .logo-mark {
  background: #f1ebe0;
  color: var(--color-dark);
}
.footer__brand p { color: #a89691; max-width: 320px; }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #8a7873;
}

/* ---------- 14. Responsive ----------------------------------------------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .split, .service-row, .contact-grid {
    grid-template-columns: 1fr;
  }
  .split--reverse > :first-child,
  .service-row--reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- 15. Sanfte Einblendungen beim Scrollen ----------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
