/* Musikschule Herzogenrath – Farbpalette aus Logo (Blau) und Wartungsseite (Signalgelb). */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --ink: #1d2b3a;
  --muted: #56657a;
  --line: #d9e0e6;
  --brand: #1a64a8;
  --brand-ink: #134b7f;
  --brand-tint: #e6f0f8;
  --signal: #f2c230;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a23;
    --surface: #1a2531;
    --surface-2: #16202b;
    --ink: #e6ecf1;
    --muted: #a1afbe;
    --line: #2c3a49;
    --brand: #7fb6ea;
    --brand-ink: #a9cff3;
    --brand-tint: #1c3148;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Kopf und Navigation */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: inline-flex; border-radius: 8px; }
.brand img { display: block; height: 48px; width: auto; }
@media (prefers-color-scheme: dark) {
  .brand { background: #fff; padding: 6px 10px; }
  .brand img { height: 40px; }
}
.menu-toggle {
  display: none;
  font: 600 1rem var(--sans);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem .9rem;
  cursor: pointer;
}
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: .45rem .7rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav li.active > a, .site-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--signal); border-radius: 8px 8px 0 0; }
.site-nav li ul {
  list-style: none;
  margin: 0;
  padding: .35rem;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 13rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .12);
  display: none;
  z-index: 5;
}
.site-nav li ul a { font-weight: 400; }
.site-nav li ul a[aria-current="page"] { box-shadow: none; background: var(--brand-tint); border-radius: 8px; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }

@media (max-width: 60rem) {
  .brand img { height: 38px; }
  .js .menu-toggle { display: inline-block; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
  .site-nav li ul { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; background: none; }
  .site-nav li.active > a, .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); border-radius: 0 8px 8px 0; }
}

/* Inhalt */
main { padding-top: 2.5rem; padding-bottom: 4rem; }
main > * { max-width: 46rem; }
main > .teasers, main > .card, main > .intro { max-width: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 0 0 1.5rem; }
h2 { font-size: 1.6rem; margin: 2.2rem 0 .75rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
h4, h5 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
h6 { font-size: 1rem; font-weight: 400; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
main img { border-radius: 8px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .975rem; }
th, td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.callout { background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; }
.callout p { margin: 0; }

.subpages { margin-top: 3rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.subpages h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.subpages ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Startseite */
.intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
.intro h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.intro h1 + p { font-size: 1.15rem; }
.intro-text > :last-child { margin-bottom: 0; }
.hours { background: var(--surface-2); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.hours h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
.hours .table-wrap { margin-bottom: .8rem; }
.hours p { margin: 0; font-size: .975rem; }
@media (max-width: 50rem) {
  .intro { grid-template-columns: 1fr; }
}
.teasers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2rem; }
.teaser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.teaser > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; display: block; }
.teaser-body { padding: 1.1rem 1.25rem 1.25rem; }
.teaser h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.teaser h2 a { color: var(--ink); text-decoration: none; }
.teaser h2 a:hover { color: var(--brand); }
.teaser p { font-size: .975rem; }
.teaser p:last-child { margin-bottom: 0; }

/* Instrumente */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: .95rem; }
.chips a { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.page-instrumente main > h2:not(:first-child) { font-size: 1.75rem; margin: 3rem 0 1rem; padding-bottom: .4rem; border-bottom: 3px solid var(--signal); display: inline-block; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 0 0 1rem; }
.instrument { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; scroll-margin-top: 1rem; }
.instrument figure { margin: 0; }
.instrument figure img { width: 170px; height: auto; }
.instrument h2 { margin: 0 0 .5rem; font-size: 1.45rem; }
.instrument .label { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .35rem; }
.teachers { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.teachers li { background: var(--surface-2); border-radius: 999px; padding: .15rem .7rem; font-size: .95rem; }
.instrument p:last-child { margin-bottom: 0; }
@media (max-width: 36rem) {
  .instrument { grid-template-columns: 1fr; }
  .instrument figure { order: -1; }
  .instrument figure img { width: 100%; height: auto; }
}

/* Fuß */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .5rem 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.footer-inner p { margin: 0 0 .5rem; }
.footer-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.footer-links { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .5rem; }
