/* Klavier- und Akkordeonunterricht Søren Thies
   Elfenbein, Ebenholz und das Gold aus dem Logo */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ebony: #1e1a17;
  --ivory: #f8f4ea;
  --paper: #fffdf8;
  --sand: #efe8d8;
  --gold: #c28a3a;
  --gold-deep: #8a5a14;
  --ink: #2a2521;
  --muted: #5e554b;
  --hairline: #d9cfbb;
  --on-dark: #e6dece;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 68px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(194, 138, 58, 0.25);
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--ebony); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ebony);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--ivory); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nobr { white-space: nowrap; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ebony); hyphens: manual; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { text-wrap: pretty; }

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.8rem;
}
.section-dark .kicker { color: var(--gold); }

/* ---------- Kopfzeile (bleibt sichtbar, blendet beim Runterscrollen aus) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 234, 0.96);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.35s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 28px rgba(30, 26, 23, 0.1); }
.site-header.is-hidden { transform: translateY(-101%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ebony); }
.brand-mark { flex: none; }
.tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; width: 100%; margin-top: 0.5rem; }
.tip-grid p { margin-bottom: 0.9rem; }
@media (max-width: 700px) { .tip-grid { grid-template-columns: 1fr; } .instrument-tip .btn { width: 100%; text-align: center; } }
.brand-name { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ebony);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.is-current { border-bottom-color: var(--gold); color: var(--ebony); }
.nav-links .nav-cta { background: var(--ebony); color: var(--ivory); padding: 0.55rem 1.15rem; border-radius: 999px; border-bottom: 0; }
.nav-links .nav-cta:hover { background: var(--gold-deep); color: #fff; border-bottom: 0; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid var(--ebony);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ebony);
  cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s, background 0.2s; }
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -5px; }
.menu-toggle .bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ebony); }
.btn-gold:hover { background: #d9a050; color: var(--ebony); }
.btn-dark { background: var(--ebony); color: var(--ivory); }
.btn-dark:hover { background: var(--gold-deep); color: #fff; }
.btn-line { border-color: var(--ebony); color: var(--ebony); }
.btn-line:hover { background: var(--ebony); color: var(--ivory); }

/* ---------- Hero: breites Foto, Titelkarte überlappt ---------- */
.hero { background: var(--ivory); }

.hero-photo { position: relative; height: clamp(300px, 46vw, 680px); background: #3a322b; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(0deg, rgba(30, 26, 23, 0.38), rgba(30, 26, 23, 0)); }

.hero-card {
  position: relative;
  z-index: 2;
  width: min(33rem, 100%);
  margin-top: clamp(-7rem, -7vw, -3rem);
  padding: clamp(1.2rem, 2.4vw, 2rem);
  background: var(--paper);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(30, 26, 23, 0.2);
  animation: rise 0.8s ease-out both;
}
.hero-card h1 { font-size: clamp(1.45rem, 2.6vw, 2.3rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 0.8rem; text-wrap: balance; }
.hero-lead { font-size: 1.05rem; line-height: 1.55; color: #3f372f; margin-bottom: 1.25rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.usps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.usps li { border-top: 3px solid var(--gold); padding-top: 0.8rem; }
.usps strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ebony); margin-bottom: 0.15rem; }
.usps span { color: var(--muted); font-size: 0.98rem; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ebony); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark); }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { max-width: 38rem; margin-bottom: 1.1rem; font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2.25rem; }
.fact { border-top: 3px solid var(--gold); padding-top: 0.9rem; }
.fact { min-width: 0; }
.fact h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); margin-bottom: 0.3rem; overflow-wrap: break-word; }
.fact p { font-size: 0.95rem; color: var(--muted); margin: 0; }

.vita {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--ebony);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 6px solid var(--gold);
}
.vita .kicker { color: var(--gold); }
.vita p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: #fff; }
.vita .sign { margin-top: 1.5rem; font-family: var(--sans); font-size: 0.95rem; color: var(--on-dark); }

/* Unterricht */
.instruments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.instrument-card { background: var(--ivory); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.instrument-card picture, .instrument-card img { width: 100%; }
.instrument-card img { aspect-ratio: 2 / 1; object-fit: cover; height: auto; }
.instrument-body { padding: clamp(1.4rem, 3vw, 2rem); }
.instrument-body h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.instrument-body p { color: var(--muted); }

.concept { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.concept article { border-top: 1px solid var(--ebony); padding-top: 1.1rem; }
.concept h3 { margin-bottom: 0.5rem; }
.concept p { color: var(--muted); }

/* Preise */
.pricing { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.price-card { background: var(--paper); border: 1px solid var(--hairline); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.5rem 1rem; }
.price-card h3 { margin-bottom: 1rem; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.85rem 0; border-top: 1px solid var(--hairline); }
.price-row dt { font-size: 1.02rem; }
.price-row dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--ebony); }
.terms h3 { margin-bottom: 1rem; }
.terms-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin-bottom: 1.75rem; }
.terms-list li { position: relative; padding-left: 1.6rem; }
.terms-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.7rem; border-radius: 2px 2px 5px 5px; background: var(--gold); }
.instrument-tip { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.75rem 2rem; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius); display: grid; gap: 0.5rem; justify-items: start; }
.instrument-tip p { color: var(--muted); margin-bottom: 0.6rem; }

/* Warum bei mir */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); }
.reason { padding-block: 1.75rem 2rem; border-top: 1px solid rgba(194, 138, 58, 0.55); }
.reason h3 { color: var(--gold); margin-bottom: 0.6rem; }
.reason p { max-width: 34rem; }
.reason a { color: #fff; }

/* Häufige Fragen */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--ebony); }
.faq details:last-child { border-bottom: 1px solid var(--ebony); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 1.15rem 2.75rem 1.15rem 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; color: var(--ebony); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.6rem; color: var(--gold-deep); }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 1.4rem; color: var(--muted); max-width: 42rem; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-block h3 { margin-bottom: 1.25rem; }
.contact-list { display: grid; gap: 1.25rem; }
.contact-list dt { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.1rem; }
.contact-list dd { margin: 0; font-size: 1.2rem; }
.contact-list a { font-weight: 600; }
.contact-list address { font-style: normal; }
.contact-note { margin-top: 1.75rem; color: var(--muted); font-size: 0.98rem; max-width: 30rem; }
.cta-panel { background: var(--ebony); color: var(--on-dark); padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); border-top: 6px solid var(--gold); }
.cta-panel h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.75rem; }
.cta-panel p { margin-bottom: 1.5rem; }
.cta-panel .small { font-size: 0.95rem; margin: 1.1rem 0 0; color: #cfc5b2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ebony); color: var(--on-dark); font-size: 0.95rem; }
.footer-inner { padding-block: 2.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; }
.footer-links a { display: inline-block; padding: 0.55rem 0; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.legal p { margin-bottom: 0.9rem; }
.legal .back { margin-top: 2.5rem; }

.mobile-bar { display: none; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .vita { position: static; }
  .pricing, .contact { grid-template-columns: 1fr; }
  .concept { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { flex-wrap: wrap; row-gap: 0.25rem; }
  .nav-links { flex-wrap: wrap; gap: 0 1.25rem; }
  .nav-links a { padding: 0.6rem 0; }

  .js .menu-toggle { display: inline-flex; }
  .js .nav { flex-wrap: nowrap; }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 30px rgba(30, 26, 23, 0.12);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links li { border-bottom: 1px solid var(--hairline); }
  .js .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .js .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 0; }
  .js .nav-links .nav-cta { text-align: center; padding: 0.9rem 1.1rem; }

  .hero-photo { height: auto; aspect-ratio: 4 / 3; }
  .hero-photo img { object-position: 86% center; }
  .hero-card { margin-top: -2.75rem; }
  .usps { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }

  .instruments { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--ivory);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 -8px 20px rgba(30, 26, 23, 0.08);
  }
  .mobile-bar .btn { padding: 0.8rem 1rem; }
  body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); background: var(--ebony); }
  main { background: var(--ivory); }
}

@media (max-width: 520px) {
  .brand-name small { display: none; }
  .hero-card h1 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .nav { gap: 0.75rem; }
  .brand { gap: 0.55rem; }
  .brand-name { font-size: 0.92rem; }
  .menu-toggle { padding: 0.4rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none; }
  .site-header { transition: none; }
  * { transition: none !important; }
}
