:root {
  --papier: #E9E6DF;
  --tanne: #3D5C57;
  --salbei: #7DA3A1;
  --nacht: #16231f;
  --grund: #dcd8cf;
  --rand: 1rem;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #0e1614; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--grund);
  color: var(--nacht);
}
a { color: inherit; }
:focus-visible { outline: 3px solid #f0e442; outline-offset: 3px; box-shadow: 0 0 0 6px var(--nacht); }
.sprung { position: absolute; left: .5rem; top: -4rem; background: var(--papier); color: var(--nacht); padding: .75rem 1rem; z-index: 10; }
.sprung:focus { top: .5rem; }

/* Kopf mit Parallax */
.kopf {
  position: relative;
  overflow: hidden;
  min-height: min(78svh, 34rem);
  display: grid;
  align-items: end;
  background: var(--nacht);
  color: var(--papier);
  padding: 2rem var(--rand) 2.5rem;
}
.ebenen { position: absolute; inset: 0; pointer-events: none; }
.wuerfel { position: absolute; fill: none; stroke: var(--salbei); stroke-width: 2.2; }
.wuerfel circle { fill: var(--salbei); stroke: none; }
.w1 { width: 62vmin; right: -12vmin; top: 6vmin; opacity: .9; transform: rotate(14deg); }
.w2 { width: 22vmin; left: 4vw; top: 5vmin; opacity: .55; transform: rotate(-18deg); stroke: var(--papier); }
.w2 circle { fill: var(--papier); }
.w3 { width: 18vmin; right: 24vw; bottom: 8vmin; opacity: .4; transform: rotate(32deg); }
.kopf-text { position: relative; max-width: 72rem; width: 100%; margin-inline: auto; }
.kicker { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .875rem; }
.kopf h1 { margin: .2rem 0 .4rem; font-size: clamp(3rem, 14vw, 8rem); line-height: .95; font-weight: 800; letter-spacing: -.03em; }
.unter { margin: 0; font-size: clamp(1.1rem, 3.4vw, 1.6rem); max-width: 30rem; }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .w1 { animation: dreh1 linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .w2 { animation: dreh2 linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .w3 { animation: dreh3 linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .kopf-text { animation: hoch linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
    .kachel { animation: auf linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes dreh1 { to { transform: translateY(14vh) rotate(150deg); } }
@keyframes dreh2 { to { transform: translateY(-6vh) rotate(-140deg); } }
@keyframes dreh3 { to { transform: translateY(24vh) rotate(210deg); } }
@keyframes hoch { to { transform: translateY(-3.5rem); } }
@keyframes auf { from { transform: translateY(2.5rem); } to { transform: none; } }

/* Kacheln */
main {
  display: grid;
  gap: var(--rand);
  padding: var(--rand);
  max-width: 76rem;
  margin-inline: auto;
}
.kachel { border-radius: 1.5rem; padding: 1.5rem; }
.kachel h2 { margin: 0 0 .5rem; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.kachel p { margin: 0 0 .9rem; }
.kachel .lead { font-size: 1.15rem; }
.etikett { font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.klein { margin: 1.2rem 0 .5rem; font-size: 1rem; }

.kirche { background: var(--tanne); color: var(--papier); }
.dice { background: var(--salbei); color: var(--nacht); }
.nicht { background: var(--papier); color: var(--tanne); border: 2px solid var(--tanne); }
.spiele { background: var(--nacht); color: var(--papier); }
.appsb { background: var(--papier); color: var(--tanne); border: 2px solid var(--tanne); }
.about { background: var(--salbei); color: var(--nacht); }
.kurz { background: var(--tanne); color: var(--papier); }
.kurz .knopf:hover { background: var(--papier); color: var(--tanne); }

.kirche h2 { font-size: clamp(2.4rem, 9vw, 4.5rem); }
.neu { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .5rem; }
.neu a { display: grid; gap: .1rem; text-decoration: none; padding: .75rem 1rem; border: 2px solid var(--papier); border-radius: 1rem; }
.neu a:hover { background: var(--papier); color: var(--tanne); }
.datum { font-size: .875rem; }
.titel { font-weight: 700; }

.knoepfe, .aktion { display: flex; flex-wrap: wrap; gap: .6rem; }
.knopf {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: .45rem 1.1rem; border: 2px solid currentColor; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.knopf:hover { background: currentColor; }
.knopf:hover { color: inherit; }
.kirche .knopf.haupt { background: var(--papier); color: var(--tanne); border-color: var(--papier); font-size: 1.15rem; padding-inline: 1.6rem; }
.kirche .knopf.haupt:hover { background: transparent; color: var(--papier); }
.dice .knopf:hover { background: var(--nacht); color: var(--salbei); }
.about .knopf:hover { background: var(--nacht); color: var(--salbei); }
.nicht .knopf:hover, .appsb .knopf:hover { background: var(--tanne); color: var(--papier); }
.spiele .knopf:hover { background: var(--papier); color: var(--nacht); }

.apps { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .75rem; }
.app { display: grid; grid-template-columns: 4rem 1fr; gap: .9rem; align-items: center; text-decoration: none; padding: .6rem; border-radius: 1rem; border: 2px solid transparent; }
.app:hover { border-color: var(--tanne); }
.app img { width: 4rem; height: 4rem; border-radius: 1rem; display: block; }
.app-text { display: grid; }
.app-text span { font-size: .95rem; }

@media (min-width: 48rem) {
  main { grid-template-columns: repeat(2, 1fr); }
  .kirche, .appsb, .about { grid-column: 1 / -1; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .neu { grid-template-columns: repeat(2, 1fr); }
  .kachel { padding: 2rem; }
}
@media (min-width: 72rem) {
  main { grid-template-columns: repeat(12, 1fr); }
  .kirche { grid-column: 1 / -1; padding: 2.5rem; }
  .dice, .nicht, .spiele, .kurz { grid-column: span 3; }
  .appsb { grid-column: 1 / -1; }
    .apps { grid-template-columns: repeat(3, 1fr); }
  .neu { grid-template-columns: repeat(4, 1fr); }
}

.fuss { max-width: 76rem; margin: .75rem auto 0; padding: 1rem var(--rand) 3rem; font-size: .95rem; }
.fuss p { margin: .2rem 0; }
@media (prefers-color-scheme: dark) { .fuss { color: var(--papier); } }

.recht { background: var(--papier); color: var(--nacht); }
.recht main { display: block; max-width: 42rem; padding: 2rem var(--rand) 3rem; line-height: 1.65; }
.recht h2 { margin-top: 2rem; font-size: 1.2rem; }

.kopf .kontakt { position: absolute; top: 1rem; right: 1rem; z-index: 2; color: var(--papier); }
.kopf .kontakt:hover { background: var(--papier); color: var(--nacht); }
