/* ─────────────────────────────────────────────────────────────
   Musikschule Flohwalzer
   Colours taken from the original page: paper #f7eedd, ink #8a211b,
   and the three red stripes down its left edge.
   No external requests: no CDNs, no webfonts, no analytics.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper:  #f7eedd;
  --card:   #fbf6ec;
  --ink:    #2b1b17;
  --muted:  #6a4d46;   /* ~6.9:1 on --paper */
  --line:   #e4d3b8;
  --brand:  #8a211b;   /* ~8:1 on --paper */
  --on-brand: #fbf6ec;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           "URW Palladio L", P052, Georgia, serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
           Roboto, "Helvetica Neue", Arial, sans-serif;

  --column: 62rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --stripes: clamp(1.1rem, 3.2vw, 2.4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #1c1412;
    --card:   #251b18;
    --ink:    #f3e9d8;
    --muted:  #c9b3a6;   /* ~9:1 on --paper */
    --line:   #3b2b26;
    --brand:  #e8998e;   /* ~8:1 on --paper */
    --on-brand: #1c1412;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  padding-left: var(--stripes);
}

/* The three stripes from the old page, thick–thin–thick */
body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--stripes);
  background: linear-gradient(90deg,
    var(--brand) 0 22%, transparent 22% 38%,
    var(--brand) 38% 52%, transparent 52% 74%,
    var(--brand) 74% 92%, transparent 92%);
  pointer-events: none;
}

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: calc(var(--stripes) + 1rem); top: -4rem;
  background: var(--brand); color: var(--on-brand);
  padding: .5rem 1rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ─────────────────────────────────────────────────── */

header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.25rem;
}
.brand { display: inline-flex; color: var(--brand); }
.brand svg { height: 2.4rem; width: auto; display: block; }
nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--brand); text-decoration: underline; }

/* ── Hero ───────────────────────────────────────────────────── */

.hero { padding-block: clamp(2.5rem, 8vw, 6rem) clamp(3rem, 9vw, 6.5rem); text-align: center; }
.hero h1 { margin: 0; color: var(--brand); line-height: 0; }
.hero h1 svg { width: min(100%, 34rem); height: auto; }

/* a faint stave the logo sits on */
.stave {
  --gap: 10px;
  height: calc(4 * var(--gap) + 1px);   /* five lines */
  max-width: 40rem; margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  background: linear-gradient(color-mix(in srgb, var(--brand) 28%, transparent) 0 1px, transparent 1px)
              0 0 / 100% var(--gap) repeat-y;
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  max-width: 32ch;
  margin: clamp(1.5rem, 4vw, 2.25rem) auto 0;
  text-wrap: balance;
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--brand);
}
.button.primary { background: var(--brand); color: var(--on-brand); }
.button.primary:hover { filter: brightness(1.08); }
.button.ghost { color: var(--brand); }
.button.ghost:hover { background: var(--card); }

/* ── Sections ───────────────────────────────────────────────── */

section { padding-block: clamp(3rem, 8vw, 5.5rem); border-top: 1px solid var(--line); }

h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.2;
  margin: 0 0 .75rem; color: var(--ink); text-wrap: balance;
}
.eyebrow {
  margin: 0 0 .5rem; color: var(--brand);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.intro { color: var(--muted); max-width: 40rem; margin: 0; }

.cards {
  display: grid; gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.cards li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem 1.5rem 1.6rem; position: relative; overflow: hidden;
}
.cards li::before {   /* a short red rule, echoing the stripes */
  content: ""; position: absolute; left: 0; top: 1.6rem; width: 4px; height: 1.6rem;
  background: var(--brand); border-radius: 0 2px 2px 0;
}
h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 .4rem; }
.cards p { margin: 0; color: var(--muted); }

.steps {
  counter-reset: step; display: grid; gap: 1.5rem 2.5rem; margin: 2.5rem 0 0; padding: 0;
  list-style: none; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .9rem;
  border: 2px solid var(--brand); border-radius: 50%;
  font: 600 1.2rem/1 var(--serif); color: var(--brand);
}
.steps p { margin: 0; color: var(--muted); }

.contact { text-align: center; }
.contact .intro { margin-inline: auto; }
.mail {
  display: inline-block; margin-top: 1.75rem;
  font-family: var(--serif); font-size: clamp(1.15rem, 3.6vw, 1.8rem);
  overflow-wrap: anywhere;
}

/* ── Footer ─────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding-block: 1.75rem;
}
footer p { margin: 0; }
footer a { color: var(--muted); }

@media (max-width: 26rem) {
  nav ul { gap: .25rem 1rem; }
}
