:root {
  color-scheme: light;
  --paper: #f3e4c8;
  --card: #fffaf2;
  --ink: #241910;
  --muted: #6f5c4b;
  --line: #1c140f;
  --green: #2c6b4a;
  --green-dark: #1e4a33;
  --red: #c73e2a;
  --yellow: #ffd84a;
  --soft: #e7f0ea;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  transform: translateY(-150%);
  background: var(--yellow);
  color: var(--ink);
  padding: 0.35rem 0.6rem;
  z-index: 5;
}

.skip:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

a {
  color: var(--green-dark);
  text-underline-offset: 0.16em;
}

a:hover { color: var(--green); }

.rahmen {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.leiste {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  padding: 1.15rem 0 1.1rem;
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.marke-wort {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.marke-logo {
  position: relative;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  border: 2px solid var(--line);
  border-radius: 22%;
  background: var(--paper);
  overflow: hidden;
}

.marke-logo canvas {
  position: absolute;
  width: 141.18%;
  height: 141.18%;
  left: -20.59%;
  top: -23.53%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.fassung {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.3rem 0.5rem;
  border: 3px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover { border-color: var(--line); }

.nav a[aria-current="page"] {
  background: var(--green);
  border-color: var(--line);
  color: var(--card);
}

.menuknopf {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  margin-left: auto;
  padding: 0;
  border: 3px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.menuknopf svg { width: 1.35rem; height: 1.35rem; display: block; }
.menuknopf .icon-x { display: none; }
.leiste.ist-offen .menuknopf .icon-menu { display: none; }
.leiste.ist-offen .menuknopf .icon-x { display: block; }

.kicker {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0.25rem 0 0.7rem;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  font-size: 1.12rem;
}

.lead + .lead { margin-top: 0.85rem; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.held {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto;
  gap: 2rem 2.6rem;
  align-items: center;
  padding: 0.4rem 0 2.4rem;
}

.held-text {
  grid-template-columns: minmax(16rem, 42rem);
}

.rahmen.weit {
  width: min(1480px, calc(100% - 2.4rem));
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.2rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--green);
  color: var(--card);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.knopf:hover { color: var(--card); background: var(--green-dark); }

.knopf.ghost {
  background: transparent;
  color: var(--ink);
}

.knopf.ghost:hover { color: var(--ink); background: var(--card); }

.knopf:active { transform: translateY(1px); }

.status {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.geraet-platz {
  --mass: 0.46;
  position: relative;
  width: calc(804px * var(--mass));
  height: calc(1060px * var(--mass));
}

.ipad {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--line);
  border-radius: calc(36px * var(--mass));
  box-shadow: 0 22px 50px rgba(36, 25, 16, 0.16);
}

.linse {
  position: absolute;
  z-index: 2;
  top: calc(7px * var(--mass));
  left: 50%;
  width: calc(8px * var(--mass));
  height: calc(8px * var(--mass));
  margin-left: calc(-4px * var(--mass));
  border-radius: 50%;
  background: #3a3128;
}

.ipad iframe {
  position: absolute;
  top: calc(18px * var(--mass));
  left: calc(18px * var(--mass));
  width: 768px;
  height: 1024px;
  border: 0;
  border-radius: calc(22px * var(--mass));
  background: var(--paper);
  transform: scale(var(--mass));
  transform-origin: top left;
}

.geraet-platz.still { --mass: 0.52; }

.ipad-schirm {
  position: absolute;
  top: calc(18px * var(--mass));
  left: calc(18px * var(--mass));
  width: calc(768px * var(--mass));
  height: calc(1024px * var(--mass));
  border-radius: calc(22px * var(--mass));
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
}

.ipad-zug {
  position: relative;
  height: 100%;
}

.ipad-zug img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: ipad-blende 16s linear infinite;
}

.ipad-zug img:nth-child(2) { animation-delay: 4s; }
.ipad-zug img:nth-child(3) { animation-delay: 8s; }
.ipad-zug img:nth-child(4) { animation-delay: 12s; }

@keyframes ipad-blende {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ipad-zug img { animation: none; opacity: 0; }
  .ipad-zug img:first-child { opacity: 1; }
}

.bildlegende {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.block { padding: 0.4rem 0 2.2rem; }

.rubrik-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.9rem;
}

.rubrik-wahl button {
  min-height: 2.6rem;
  padding: 0.35rem 0.9rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rubrik-wahl button[aria-selected="true"] {
  background: var(--green);
  color: var(--card);
}

.rubrik-wahl button:hover { background: var(--card); }

.rubrik-wahl button[aria-selected="true"]:hover {
  background: var(--green-dark);
  color: var(--card);
}

.rubrik-panel h3 {
  margin: 0.15rem 0 0.2rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.quiz-karte {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(40rem, 100%);
  margin: 0 auto 1.6rem;
}

.quiz-karte .quiz-ask {
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}

.quiz-karte .quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quiz-karte .quiz-choices button {
  min-height: 3.25rem;
  padding: 0.7rem 1.15rem;
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.quiz-karte .quiz-choices button:hover { background: #fff4c2; }

.quiz-karte .quiz-choices button.is-wrong {
  background: #f6d5ce;
  color: var(--ink);
}

.quiz-karte .quiz-choices button.is-right {
  background: var(--green);
  color: var(--card);
}

.quiz-karte .quiz-choices button[aria-disabled="true"] { cursor: default; }

.quiz-karte .quiz-note {
  margin: 0;
  text-align: center;
}

.quiz-karte .quiz-note:empty { display: none; }

.rubrik-mehr { margin: 0.9rem 0 0; font-weight: 700; }

.karten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.karten.vier { grid-template-columns: repeat(4, 1fr); }

.flaeche-zeichen {
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0 0 0.55rem;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
}

.flaeche-zeichen svg {
  display: block;
  width: 100%;
  height: 100%;
}

.karten.vier .karte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  column-gap: 0.65rem;
  row-gap: 0.55rem;
}

.karten.vier .flaeche-zeichen { margin: 0; }

.karten.vier .karte h3 {
  margin: 0;
  flex: 1 1 auto;
}

.karten.vier .karte p { flex: 1 0 100%; }

.karte,
.notiz,
.hinweis,
.partner {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem 1.05rem;
}

.karte p,
.partner p,
.hinweis p { margin: 0.35rem 0 0; }

.karte a,
.partner a { font-weight: 700; }

.hinweis { background: var(--soft); }

.probe-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
}

.probe-kopf h1 { margin-bottom: 0; }

.probe-kopf .knopf { margin-bottom: 0.35rem; }

.probe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.2rem 1.4rem;
  align-items: start;
  padding-bottom: 1rem;
}

.probe .geraet-platz { grid-column: 2; grid-row: 1; }

.notiz {
  grid-row: 1;
  max-width: 22rem;
}

.notiz.links { grid-column: 1; justify-self: end; }
.notiz.rechts { grid-column: 3; justify-self: start; }

.notiz p { margin: 0.4rem 0 0; }

.lese { max-width: 44rem; }

.impressum {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.1rem 1.3rem;
  align-items: start;
  margin-top: 0.8rem;
}

.impressum img {
  width: 100%;
  height: auto;
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
}

.impressum p:first-child { margin-top: 0; }

.lese h2 { margin-top: 2rem; }

.lese h2:first-child { margin-top: 0; }

.lese h3 { margin-top: 1.15rem; }

.modi h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
}

.modi-zeichen {
  display: block;
  width: 3rem;
  height: 3rem;
  flex: none;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
}

.modi-zeichen svg {
  display: block;
  width: 100%;
  height: 100%;
}

.modi {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.modi article {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem 1.05rem;
}

.modi p { margin: 0.55rem 0 0; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

th,
td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px solid #e6d3b4;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
}

tr:last-child td { border-bottom: 0; }

.partner-liste {
  display: grid;
  gap: 0.8rem;
}

.partner-schule {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.9rem 1.15rem;
  align-items: start;
}

.bildplatz {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0;
  aspect-ratio: 3 / 4;
  padding: 0.7rem;
  border: 3px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  color: var(--muted);
}

.bildplatz span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bildplatz figcaption {
  font-size: 0.82rem;
  line-height: 1.3;
}

.lese .partner h2,
.lese .hinweis h2 { margin-top: 0.15rem; }

.ruf { margin-top: 1.4rem; }

.ruf .knopf { margin-top: 0.35rem; }

.folgt { color: var(--muted); }

form.kontakt {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.falle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

label { display: grid; gap: 0.3rem; font-weight: 700; }

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 3px solid var(--line);
  border-radius: 0.8rem;
  background: var(--card);
  color: inherit;
  font: inherit;
}

textarea { min-height: 9rem; resize: vertical; }

.form-status { min-height: 1.4em; margin: 0; }

.form-status.is-fehler { color: var(--red); font-weight: 700; }

.danke { font-size: 1.2rem; font-weight: 700; }

.fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-items: baseline;
  margin-top: 2.6rem;
  padding-top: 1rem;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.fuss p { margin: 0; }

.fuss nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }

@media (max-width: 1080px) {
  .leiste:not(:has(.menuknopf)),
  .leiste:not(:has(.menuknopf)) .nav { flex-wrap: wrap; }

  .leiste:has(.menuknopf) {
    flex-wrap: nowrap;
    position: relative;
    z-index: 30;
  }

  .leiste:has(.menuknopf) .menuknopf { display: inline-flex; }

  .leiste:has(.menuknopf) .nav {
    display: none;
    position: absolute;
    z-index: 31;
    top: calc(100% - 0.35rem);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0.2rem;
    max-height: min(70vh, 28rem);
    overflow: auto;
    padding: 0.4rem;
    background: var(--card);
    border: 3px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 16px 36px rgba(36, 25, 16, 0.14);
  }

  .leiste.ist-offen .nav { display: flex; }

  .leiste:has(.menuknopf) .nav a {
    min-height: 3rem;
    justify-content: flex-start;
    padding: 0.35rem 0.85rem;
    font-size: 1rem;
  }
}

@media (max-width: 980px) {
  .held,
  .karten,
  .karten.vier,
  .probe {
    grid-template-columns: 1fr;
  }

  .held-geraet,
  .probe .geraet-platz,
  .notiz,
  .notiz.links,
  .notiz.rechts {
    grid-column: 1;
    justify-self: center;
  }

  .notiz { grid-row: 2; max-width: 36rem; }

}

@media (max-width: 720px) {
  html { font-size: 17px; }
  .rahmen { width: min(1180px, calc(100% - 1.4rem)); }
  .lese table { display: block; max-width: 100%; overflow-x: auto; }
  table { font-size: 0.92rem; }
  .impressum,
  .partner-schule { grid-template-columns: 7.5rem 1fr; }
}

@media (max-width: 520px) {
  .marke { font-size: 1.2rem; }
  .geraet-platz.still { --mass: 0.4; }
  .held { gap: 1.2rem; }
}
