/* ============================================================
   MUSIKUNTERRICHT KONKRET — Stylesheet
   Schrift: Nunito (selbst gehostet, DSGVO-konform)
   Farben:  Boomwhacker-Skala als Produkt-Akzente
   ============================================================ */

@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --papier: #ffffff;
  --papier-alt: #f6f4ee;
  --tinte: #2b2721;
  --tinte-leise: #6b645a;
  --linie: #e4e0d7;

  /* Boomwhacker-Skala (absolut) */
  --bw-c: #d63a2f;   /* rot */
  --bw-d: #f08a24;   /* orange */
  --bw-e: #f5d020;   /* gelb */
  --bw-f: #a6ce39;   /* hellgruen */
  --bw-fis: #5cb832; /* mittelgruen */
  --bw-g: #1f6b33;   /* dunkelgruen */
  --bw-a: #1f3f8f;   /* dunkelblau */
  --bw-b: #8e44ad;   /* violett */
  --bw-h: #e57fb1;   /* rosa */

  --radius: 14px;
  --breite: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
}

a { color: var(--bw-a); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--bw-a);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; border-radius: 10px; }

.innen { max-width: var(--breite); margin: 0 auto; padding: 0 22px; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.kopf .innen {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.wortmarke {
  font-weight: 900; font-size: 1.15rem; text-decoration: none; color: var(--tinte);
  letter-spacing: .01em;
}
.wortmarke span { color: var(--bw-c); }
.kopf nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.kopf nav a {
  text-decoration: none; color: var(--tinte); font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
}
.kopf nav a:hover { background: var(--papier-alt); }
.kopf nav a.bestell-knopf { background: var(--tinte); color: #fff; }
.kopf nav a.bestell-knopf:hover { background: #000; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .innen { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 900; line-height: 1.08; margin: 0 0 18px;
  letter-spacing: -.01em;
}
.hero p.gross { font-size: 1.22rem; margin: 0 0 26px; color: var(--tinte-leise); max-width: 34ch; }
.hero-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.knopf {
  display: inline-block; text-decoration: none; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--tinte);
  color: var(--tinte); background: transparent; cursor: pointer;
  font-family: inherit; font-size: 1rem;
}
.knopf.voll { background: var(--tinte); color: #fff; }
.knopf.voll:hover { background: #000; border-color: #000; }
.knopf:hover { background: var(--papier-alt); }

/* Aufgefächerte SOUNDCARDS im Hero — reine CSS-Karten im A6-Format */
.kartenfaecher { position: relative; height: 320px; }
.a6karte {
  position: absolute; left: 50%; bottom: 30px;
  width: 132px; height: 187px;               /* A6-Proportion */
  border-radius: 12px;
  padding: 12px 0 0 14px;
  font-weight: 900; font-size: 1.5rem; color: #fff;
  box-shadow: 0 10px 24px rgba(43,39,33,.22);
  transform-origin: 50% 115%;
  border: 5px solid #fff;
}
.a6karte.gelb { color: var(--tinte); }
.a6karte:nth-child(1) { transform: translateX(calc(-50% - 104px)) rotate(-16deg); }
.a6karte:nth-child(2) { transform: translateX(calc(-50% - 52px)) rotate(-8deg); }
.a6karte:nth-child(3) { transform: translateX(-50%) rotate(0deg); }
.a6karte:nth-child(4) { transform: translateX(calc(-50% + 52px)) rotate(8deg); }
.a6karte:nth-child(5) { transform: translateX(calc(-50% + 104px)) rotate(16deg); }

/* ---------- Abschnitte ---------- */
section { padding: 56px 0; }
section.alt { background: var(--papier-alt); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; margin: 0 0 18px; }
h3 { font-weight: 800; }
.abschnitt-einleitung { max-width: 62ch; color: var(--tinte-leise); }

/* ---------- Produkt-Kacheln ---------- */
.kachelraster {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px;
}
.kachel {
  position: relative; display: block; text-decoration: none; color: var(--tinte);
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px 16px 16px; border-top: 6px solid var(--akzent, var(--tinte));
}
.kachel:hover { box-shadow: 0 8px 20px rgba(43,39,33,.10); }
.kachel strong { font-size: 1.08rem; font-weight: 800; display: block; margin-bottom: 4px; }
.kachel span { color: var(--tinte-leise); font-size: .93rem; line-height: 1.45; display: block; }

/* ---------- Produkt-Detailabschnitte ---------- */
.produkt { border-top: 1px solid var(--linie); }
.produkt .innen {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start;
}
.produkt.gespiegelt .innen { grid-template-columns: 1.1fr .9fr; }
.produkt.gespiegelt .produkt-bild { order: 2; }
.produkt-bild { position: sticky; top: 90px; }
.produkt-bild img { border: 1px solid var(--linie); background: #fff; }
.produkt-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.kartenreiter {
  width: 34px; height: 48px; border-radius: 6px; flex: none;
  background: var(--akzent); border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(43,39,33,.25);
}
.produkt h2 { margin: 0; }
.produkt ul { padding-left: 1.2em; margin: 16px 0; }
.produkt li { margin: 4px 0; }
.preisbalken {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--papier-alt); border-radius: var(--radius);
  padding: 14px 18px; margin-top: 20px; border-left: 6px solid var(--akzent);
}
.preisbalken strong { font-size: 1.15rem; }
.preisbalken .porto { color: var(--tinte-leise); font-size: .95rem; }
.info-pdf { font-weight: 700; }

/* ---------- Edu-Pakete ---------- */
.eduraster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.edukarte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 20px; border-top: 6px solid var(--bw-fis);
  display: flex; flex-direction: column; gap: 10px;
}
.edukarte h3 { margin: 0; font-size: 1.15rem; }
.edukarte .edupreis { font-weight: 900; font-size: 1.3rem; margin-top: auto; }
.edukarte .edupreis s { color: var(--tinte-leise); font-weight: 400; font-size: .95rem; margin-left: 8px; }

/* ---------- Bestellformular ---------- */
.bestellraster { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; margin-top: 26px; }
.bestellliste { display: flex; flex-direction: column; gap: 10px; }
.bestellzeile {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 14px;
}
.bestellzeile input[type=number] {
  width: 62px; padding: 8px; border: 1px solid var(--linie); border-radius: 8px;
  font-family: inherit; font-size: 1rem; text-align: center;
}
.bestellzeile label { font-weight: 700; }
.bestellzeile .einzelpreis { color: var(--tinte-leise); font-size: .95rem; white-space: nowrap; }
.eduwahl { margin: 4px 0 0 82px; font-size: .93rem; color: var(--tinte-leise); }
.eduwahl label { margin-right: 12px; font-weight: 400; }
.adressfeld { display: flex; flex-direction: column; gap: 10px; }
.adressfeld input, .adressfeld textarea {
  padding: 11px 13px; border: 1px solid var(--linie); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.adressfeld textarea { min-height: 90px; resize: vertical; }
.summenzeile {
  display: flex; justify-content: space-between; font-weight: 900; font-size: 1.2rem;
  border-top: 2px solid var(--tinte); padding-top: 10px; margin-top: 6px;
}
.hinweis-klein { font-size: .9rem; color: var(--tinte-leise); }

/* ---------- Fußzeile ---------- */
footer {
  border-top: 1px solid var(--linie); padding: 34px 0 44px;
  color: var(--tinte-leise); font-size: .95rem;
}
footer .innen { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: inherit; }
.farbstreifen { display: flex; height: 8px; }
.farbstreifen span { flex: 1; }

/* ---------- Unterseiten (Impressum, AGB, Downloads) ---------- */
.textseite { max-width: 72ch; }
.platzhalter {
  border: 2px dashed var(--bw-d); border-radius: var(--radius);
  padding: 18px; background: #fff8ef; color: #8a5a17;
}

/* ---------- Download-Seite ---------- */
.schleuse {
  max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.schleuse input {
  width: 100%; padding: 12px 14px; font-size: 1.1rem; text-align: center;
  border: 2px solid var(--linie); border-radius: 10px; font-family: inherit; margin: 14px 0;
}
.schleuse .fehler { color: var(--bw-c); font-weight: 700; min-height: 1.5em; margin: 0 0 8px; }
.downloadliste { list-style: none; padding: 0; display: grid; gap: 10px; }
.downloadliste a {
  display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
  background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 12px 16px;
  color: var(--tinte);
}
.downloadliste a:hover { border-color: var(--bw-a); }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .kachelraster { grid-template-columns: repeat(2, 1fr); }
  .hero .innen, .produkt .innen, .produkt.gespiegelt .innen, .bestellraster { grid-template-columns: 1fr; }
  .produkt.gespiegelt .produkt-bild { order: 0; }
  .produkt-bild { position: static; }
  .eduraster { grid-template-columns: 1fr; }
  .kartenfaecher { height: 240px; }
  .a6karte { width: 100px; height: 142px; font-size: 1.15rem; padding: 9px 0 0 11px; }
  .a6karte:nth-child(1) { transform: translateX(calc(-50% - 78px)) rotate(-16deg); }
  .a6karte:nth-child(2) { transform: translateX(calc(-50% - 39px)) rotate(-8deg); }
  .a6karte:nth-child(4) { transform: translateX(calc(-50% + 39px)) rotate(8deg); }
  .a6karte:nth-child(5) { transform: translateX(calc(-50% + 78px)) rotate(16deg); }
}
@media (max-width: 520px) {
  .kachelraster { grid-template-columns: 1fr; }
  .bestellzeile { grid-template-columns: 58px 1fr; }
  .bestellzeile .einzelpreis { grid-column: 2; }
  .eduwahl { margin-left: 0; }
}
