/* ostern-ausmalbilder.de
   Idee: Die Seite ist selbst ein Ausmalbild. Alles ist Bleistiftlinie auf weißem
   Papier – Farbe gibt es nur dort, wo ein Kind mit Wachsmalstift drübergemalt hat. */

:root {
  --papier: #ffffff;
  --graphit: #2e2f36;
  --graphit-hell: #6b6d78;
  --linie: #d9dae0;

  --krokus: #f7c531;
  --himmel: #5aa9e6;
  --wiese: #5aa35e;
  --veilchen: #8e6cc0;
  --tulpe: #e8505b;

  --schrift-hand: "Shantell Sans", "Comic Neue", system-ui, sans-serif;
  --schrift-text: "Atkinson Hyperlegible", system-ui, sans-serif;

  /* Skala 1.25 (große Terz) ab 18px */
  --t-klein: 0.889rem;
  --t-text: 1.125rem;
  --t-gross: 1.406rem;
  --t-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --t-h1: clamp(2.8rem, 1.6rem + 5vw, 5.4rem);

  --rand: clamp(1.25rem, 4vw, 3rem);
  --breite: 72rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--graphit);
  font-family: var(--schrift-text);
  font-size: var(--t-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--schrift-hand);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--krokus);
  padding: 0.6rem 1rem;
  border: 2px solid var(--graphit);
  border-radius: 8px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---------- Kopf ---------- */

.kopf {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1.25rem var(--rand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--schrift-hand);
  font-weight: 700;
  font-size: 1.15rem;
}
.marke svg {
  width: 1.5rem;
  height: auto;
  fill: var(--krokus);
  stroke: var(--graphit);
  stroke-width: 3;
  stroke-linejoin: round;
}
.marke svg path + path { fill: none; }
.marke .tld { color: var(--graphit-hell); font-weight: 500; }

.kopf nav { display: flex; gap: 1.5rem; }
.kopf nav a {
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0;
  background: linear-gradient(var(--krokus), var(--krokus)) 0 88% / 0 0.4em no-repeat;
  transition: background-size 0.2s ease;
}
.kopf nav a:hover { background-size: 100% 0.4em; }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) var(--rand) clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero h1 {
  font-size: var(--t-h1);
  letter-spacing: -0.015em;
  max-width: 9ch;
}

.einleitung {
  margin-top: 1.5rem;
  font-size: var(--t-gross);
  line-height: 1.45;
  max-width: 30ch;
}

.knopf {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.6rem 0.85rem;
  font-family: var(--schrift-hand);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  background: var(--krokus);
  border: 2.5px solid var(--graphit);
  border-radius: 1.6rem 1.4rem 1.7rem 1.3rem;
  box-shadow: 3px 4px 0 var(--graphit);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.knopf:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--graphit); }
.knopf:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--graphit); }

.termin {
  margin-top: 1.75rem;
  color: var(--graphit-hell);
  font-size: var(--t-klein);
}
.termin strong { color: var(--graphit); }

/* Das große Ei: wird beim Laden ausgemalt */

.hero-ei {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(100%, 26rem);
}
.hero-ei > svg:first-child { display: block; width: 100%; height: auto; overflow: visible; }

.linien { fill: none; stroke: var(--graphit); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

.strich {
  fill: none;
  stroke-width: 42;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ausmalen 0.9s cubic-bezier(.45, .05, .4, 1) forwards;
}
.s1 { stroke: var(--krokus);   animation-delay: 0.35s; }
.s2 { stroke: var(--himmel);   animation-delay: 1.15s; }
.s3 { stroke: var(--wiese);    animation-delay: 1.95s; }
.s4 { stroke: var(--veilchen); animation-delay: 2.75s; }

@keyframes ausmalen { to { stroke-dashoffset: 0; } }

.stift {
  position: absolute;
  width: 14%;
  right: -6%;
  bottom: -2%;
  transform: rotate(28deg);
  transform-origin: 50% 10%;
  stroke: var(--graphit);
  stroke-width: 4;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .strich { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Motive ---------- */

.motive {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) clamp(4rem, 8vw, 7rem);
}

.motive-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 2px dashed var(--linie);
}

h2 { font-size: var(--t-h2); }

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter button,
.leer button {
  font: 700 1rem/1 var(--schrift-text);
  color: var(--graphit);
  background: var(--papier);
  border: 2px solid var(--graphit);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.filter button:hover { background: #fff6d6; }
.filter button[aria-pressed="true"] { background: var(--krokus); }

.galerie {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 2.75rem 2rem;
}

.blatt-link {
  display: block;
  text-decoration: none;
}

/* Vorschau im echten DIN-A4-Seitenverhältnis, als Blatt auf einem kleinen Stapel */
.zeichnung {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 210 / 297;
  background: var(--papier);
  border: 1.5px solid var(--linie);
  box-shadow: 5px 5px 0 -1.5px var(--papier), 5px 5px 0 0 var(--linie);
  fill: none;
  stroke: var(--graphit);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.zeichnung .voll { fill: var(--graphit); }

.blatt-link:hover .zeichnung { border-color: var(--graphit); transform: rotate(-1.2deg); }
@media (prefers-reduced-motion: reduce) { .blatt-link:hover .zeichnung { transform: none; } }

.blatt-titel {
  display: block;
  margin-top: 1rem;
  font-family: var(--schrift-hand);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
}
.blatt-link:hover .blatt-titel { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.blatt-info {
  margin-top: 0.35rem;
  font-size: var(--t-klein);
  color: var(--graphit-hell);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Schwierigkeit als gefüllte Eier: 1 bis 3 */
.stufe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--graphit);
  font-weight: 700;
}
.stufe::before {
  content: "";
  width: 2.3rem;
  height: 0.85rem;
  background:
    radial-gradient(ellipse 0.3rem 0.4rem at 0.35rem 50%, var(--e1) 94%, transparent 100%),
    radial-gradient(ellipse 0.3rem 0.4rem at 1.15rem 50%, var(--e2) 94%, transparent 100%),
    radial-gradient(ellipse 0.3rem 0.4rem at 1.95rem 50%, var(--e3) 94%, transparent 100%);
}
.stufe { --e1: var(--wiese); --e2: var(--linie); --e3: var(--linie); }
.stufe[data-stufe="2"] { --e1: var(--krokus); --e2: var(--krokus); }
.stufe[data-stufe="3"] { --e1: var(--tulpe); --e2: var(--tulpe); --e3: var(--tulpe); }

.leer { margin-top: 1rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.leer[hidden] { display: none; }

/* ---------- Drucken ---------- */

.drucken {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) clamp(4rem, 8vw, 7rem);
}

.schritte {
  list-style: none;
  counter-reset: schritt;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2rem 3rem;
}
.schritte li { counter-increment: schritt; max-width: 34ch; }
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.8rem;
  margin-bottom: 1rem;
  font: 800 1.6rem/1 var(--schrift-hand);
  border: 2.5px solid var(--graphit);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.schritte li:nth-child(1)::before { background: var(--krokus); }
.schritte li:nth-child(2)::before { background: var(--himmel); }
.schritte li:nth-child(3)::before { background: var(--wiese); }
.schritte h3 { font-size: var(--t-gross); margin-bottom: 0.5rem; }
.schritte p { color: var(--graphit-hell); }
.schritte em { font-style: normal; font-weight: 700; color: var(--graphit); }

/* ---------- Fragen ---------- */

.fragen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) clamp(4rem, 8vw, 7rem);
}
.fragen h2 { margin-bottom: 1.5rem; }

details { border-top: 2px dashed var(--linie); max-width: 46rem; }
details:last-of-type { border-bottom: 2px dashed var(--linie); }

summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font: 700 1.6rem/1 var(--schrift-hand);
  transition: rotate 0.2s ease;
}
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 0 1.35rem; max-width: 62ch; color: var(--graphit-hell); }
details strong { color: var(--graphit); }

/* ---------- Fuß ---------- */

.fuss {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2rem var(--rand) 3rem;
  border-top: 2px solid var(--graphit);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--t-klein);
  color: var(--graphit-hell);
}
.fuss nav { display: flex; gap: 1.5rem; }

/* ---------- Schmal ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-ei { order: -1; width: min(70%, 18rem); }
  .hero h1 { max-width: none; }
  .kopf nav { gap: 1rem; }
}
