@font-face { font-family: "Patrick Hand"; src: url("../fonts/patrick-hand.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  --papier: #FBFAF6;
  --karo: #C4DBED;
  --karo-fein: #DDEAF4;
  --tinte: #23272C;
  --tinte-weich: #4F555D;
  --akzent: #465562;
  --stift: #E9912E;
  --stift-text: #A85A14;
  --limette: #C5CD32;
  --rand-rot: #D67069;
  --kaestchen: 24px;
  --hand: "Patrick Hand", "Comic Neue", "Segoe Print", cursive;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --rand: clamp(30px, 8vw, 104px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--tinte); font-family: var(--sans); font-size: 18px; line-height: 1.6;
  background-color: var(--papier);
  background-image:
    linear-gradient(var(--karo-fein) 1px, transparent 1px),
    linear-gradient(90deg, var(--karo-fein) 1px, transparent 1px);
  background-size: var(--kaestchen) var(--kaestchen);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--stift-text); }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }
.sprung { position: absolute; left: 12px; top: -60px; background: var(--tinte); color: var(--papier);
  padding: 10px 16px; z-index: 20; text-decoration: none; }
.sprung:focus { top: 12px; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.heft { position: relative; min-height: 100dvh; }
.heft::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rand) - 14px);
  width: 2px; background: var(--rand-rot); opacity: .75; pointer-events: none; }
.heft > * { position: relative; }
.handschrift { font-family: var(--hand); color: var(--akzent); line-height: 1.15; }
.kopf { padding: 26px var(--rand) 18px calc(var(--rand) + 6px); }
.kopf-innen { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 36px; }
.feld { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--tinte); margin: 0; min-height: 44px; padding-top: 6px; }
.feld-titel { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-weich); font-weight: 600; }
.feld-wert { font-family: var(--hand); font-size: 26px; color: var(--akzent); padding: 0 6px 2px;
  border-bottom: 1.5px solid var(--tinte); min-width: 160px; }
.feld-name:hover .feld-wert { color: var(--stift-text); }
.menue { margin-left: auto; display: flex; gap: 6px; }
.menue a { font-family: var(--hand); font-size: 22px; color: var(--tinte); text-decoration: none; padding: 6px 12px;
  min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.menue a:hover { color: var(--akzent); }
.menue a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--akzent); color: var(--akzent); }
main { padding-bottom: 24px; }
.bereich-reiten { --akzent: #661D3E; }
.bereich-lernen { --akzent: #465562; }
.logo-titel { margin: 0 0 22px; }
.logo-titel img { width: min(100%, 400px); }
.iban { white-space: nowrap; }
@media (max-width: 640px) {
  :root { --rand: 30px; --kaestchen: 20px; }
  body { font-size: 17px; }
  .kopf { padding-top: 18px; }
  .kopf-innen { gap: 10px 20px; }
  .feld-wert { font-size: 22px; min-width: 0; }
  .feld-fach { display: none; }
  .menue { margin-left: 0; flex-wrap: wrap; gap: 2px; }
  .menue a { font-size: 20px; padding: 6px 10px; }
  .menue a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.blatt, .titelblatt { padding: clamp(36px, 6vw, 72px) var(--rand) clamp(36px, 6vw, 72px) calc(var(--rand) + 6px); max-width: 1220px; }
.blatt + .blatt { border-top: 2px dashed rgba(29, 90, 176, .18); }
.aufgabe { display: flex; align-items: baseline; gap: 12px; font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.aufgabe-nr { font-family: var(--hand); font-size: 20px; font-weight: 400; color: var(--papier); background: var(--tinte);
  padding: 2px 12px 3px; border-radius: 4px; transform: rotate(-1.5deg); }
.titelblatt { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.frage { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; transform: rotate(-1deg); transform-origin: left; }
.titelblatt h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(48px, 7.6vw, 104px); line-height: .98;
  letter-spacing: -.025em; margin-bottom: 26px; }
.unterstrichen { background-image: linear-gradient(var(--stift), var(--stift)), linear-gradient(var(--stift), var(--stift));
  background-size: 100% 4px, 100% 4px; background-position: 0 calc(100% - 2px), 0 calc(100% + 8px);
  background-repeat: no-repeat; padding-bottom: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--tinte-weich); max-width: 40ch; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px;
  background: var(--akzent); color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 17px;
  border-radius: 10px; box-shadow: 3px 3px 0 var(--tinte); transition: transform .15s ease, box-shadow .15s ease; }
.knopf:hover { color: #FFFFFF; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--tinte); }
.knopf:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinte); }
.knopf-hell { background: var(--papier); color: var(--tinte); box-shadow: 3px 3px 0 var(--akzent), inset 0 0 0 2px var(--tinte); }
.knopf-hell:hover { color: var(--akzent); box-shadow: 4px 4px 0 var(--akzent), inset 0 0 0 2px var(--tinte); }
.abzug { margin: 0; background: #FFFFFF; padding: 12px 12px 14px; box-shadow: 0 14px 28px -16px rgba(35, 39, 44, .45);
  transform: rotate(1.6deg); position: relative; }
.abzug::before { content: ""; position: absolute; top: -14px; left: 50%; width: 112px; height: 30px; margin-left: -56px;
  background: rgba(214, 112, 105, .32); transform: rotate(-3deg); }
.abzug img { width: 100%; height: auto; }
.abzug-gross { max-width: 460px; justify-self: end; }
.abzug-schief { transform: rotate(-2.2deg); }
.rechnung { font-family: var(--sans); font-weight: 700; font-size: clamp(44px, 7vw, 96px); line-height: 1;
  letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; }
.zeichen { color: var(--stift-text); font-family: var(--hand); font-weight: 400; }
.nebenbei { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 18px;
  border-top: 3px solid var(--tinte); max-width: 980px; }
.nebenbei .handschrift { font-size: 28px; }
.kette { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; display: inline-flex; flex-wrap: wrap; gap: 0 .45em; }
.zitat { margin: 30px 0 0; max-width: 46ch; font-size: 19px; color: var(--tinte-weich); padding-left: 18px;
  border-left: 3px solid var(--karo); }
.loesung { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 24px; }
.loesung.gross { font-size: clamp(44px, 6.4vw, 84px); }
.strahl { list-style: none; margin: 8px 0 34px; padding: 0 0 0 4px; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr));
  max-width: 760px; border-bottom: 3px solid var(--tinte); }
.strahl li { position: relative; height: 54px; }
.strahl li::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3px; height: 16px; background: var(--tinte); }
.strahl li span { position: absolute; left: 0; top: 0; transform: translateX(-40%); font-family: var(--hand); font-size: 24px; color: var(--tinte); }
.strahl li.ziel span { color: var(--stift-text); }
.strahl li.ziel span::after { content: ""; position: absolute; inset: -6px -10px; border: 2.5px solid var(--stift);
  border-radius: 50% 45% 55% 48%; transform: rotate(-8deg); }
.haken { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.haken li { position: relative; padding: 11px 0 11px 46px; font-size: clamp(18px, 1.6vw, 20px);
  border-bottom: 1px solid var(--karo); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.haken li::before { content: ""; position: absolute; left: 10px; top: 14px; width: 9px; height: 18px;
  border: solid var(--stift); border-width: 0 3px 3px 0; transform: rotate(40deg); border-radius: 0 0 2px 0; }
.blatt-zwei { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.preis { margin-top: 10px; }
.preis-text { margin-top: 16px; }
.kringel { display: inline-block; position: relative; font-family: var(--hand); font-size: clamp(64px, 8vw, 104px);
  color: var(--akzent); line-height: 1; padding: 18px 26px 10px; }
.kringel::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--stift);
  border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; transform: rotate(-6deg); }
.bilderleiste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1080px; }
.bilderleiste .abzug { max-width: 480px; }
.bilderleiste .abzug-schief { justify-self: end; max-width: 400px; }
.schluss .knoepfe { margin-top: 10px; }
.unterschrift { font-size: clamp(30px, 3.6vw, 44px); margin-top: 34px; transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.seitenkopf h1 { font-size: clamp(44px, 6.4vw, 84px); margin-bottom: 16px; }
.kontaktblatt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.wege { display: grid; gap: 16px; }
.weg { display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; background: #FFFFFF; text-decoration: none; color: var(--tinte);
  box-shadow: 3px 3px 0 var(--tinte), inset 0 0 0 2px var(--tinte); border-radius: 10px; transition: transform .15s ease; }
.weg:hover { transform: translate(-1px, -1px); color: var(--tinte); }
.weg-art { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--tinte-weich); }
.weg-wert { font-size: clamp(28px, 3.4vw, 40px); overflow-wrap: anywhere; }
.merkzettel { margin-top: 8px; font-size: 17px; background: #FFF6B8; padding: 14px 18px; transform: rotate(-.8deg);
  box-shadow: 0 10px 18px -14px rgba(35, 39, 44, .5); max-width: 520px; }
.kontaktblatt .abzug { max-width: 380px; }
.recht { max-width: 860px; }
.recht h2 { font-family: var(--hand); color: var(--akzent); font-size: 32px; margin: 28px 0 8px; }
.recht p, .recht ul { margin: 0 0 12px; }
.recht ul { padding-left: 22px; }
.merkzettel p + p { margin-top: 6px; }
.bilderleiste-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; }
.bilderleiste-drei .abzug, .bilderleiste-drei .abzug-schief { max-width: 360px; justify-self: center; }
.praktisch { margin-top: 30px; }
.praktisch li { font-size: 17px; }
.bereiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); max-width: 980px; margin-top: 30px; }
.bereich-karte { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 22px; background: #FFFFFF;
  color: var(--tinte); text-decoration: none; border-radius: 10px; border-top: 8px solid var(--akzent);
  box-shadow: 4px 4px 0 var(--akzent), inset 0 0 0 2px var(--tinte); transition: transform .15s ease; }
.bereich-karte:hover { color: var(--tinte); transform: translate(-1px, -1px); }
.karte-marke img { width: min(100%, 230px); margin-bottom: 6px; }
.karte-text { font-size: 18px; color: var(--tinte-weich); }
.karte-weiter { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--akzent); }
.kontakt-start .kontaktblatt { margin-top: 26px; }
.kursliste { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kursliste a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px; font-family: var(--hand);
  font-size: 24px; color: var(--akzent); text-decoration: none; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--akzent); }
.kursliste a:hover { background: var(--akzent); color: #FFFFFF; }
.kurs-titel { font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 6vw, 80px); line-height: 1;
  letter-spacing: -.02em; margin: 6px 0 22px; }
.kurs-kopf .lead { max-width: 46ch; }
.titelblatt h1.name-titel { font-size: clamp(44px, 6vw, 84px); }
.bereich-karte.bereich-reiten { position: relative; overflow: hidden; background: #FFF7E6; }
.bereich-karte.bereich-reiten::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 104px; height: 104px;
  border-radius: 50%; border: 12px solid var(--limette); box-shadow: 0 0 0 10px #FFF7E6, 0 0 0 22px #661D3E; opacity: .9; pointer-events: none; }
.bereich-karte.bereich-reiten > * { position: relative; z-index: 1; max-width: calc(100% - 64px); }
.js .abzug[data-auf] { opacity: 0; transform: translateY(16px) rotate(4deg); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1.1); }
.js .abzug[data-auf].sichtbar { opacity: 1; transform: rotate(1.6deg); }
.js .abzug-schief[data-auf].sichtbar { transform: rotate(-2.2deg); }
.js .kringel[data-auf]::after { opacity: 0; transform: rotate(-30deg) scale(.7); transition: opacity .4s ease .15s, transform .6s cubic-bezier(.2, .8, .2, 1.2) .15s; }
.js .kringel[data-auf].sichtbar::after { opacity: 1; transform: rotate(-6deg); }
@media (max-width: 900px) {
  .titelblatt, .blatt-zwei, .kontaktblatt, .bilderleiste { grid-template-columns: 1fr; }
  .abzug-gross { justify-self: start; max-width: 420px; }
  .bilderleiste .abzug-schief { justify-self: start; }
  .bilderleiste-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 640px) {
  .knopf { width: 100%; }
  .blatt, .titelblatt { padding-right: 18px; }
  .strahl li span { font-size: 19px; }
  .aufgabe { flex-wrap: wrap; }
  .bereiche { grid-template-columns: 1fr; }
  .bilderleiste-drei { grid-template-columns: 1fr; gap: 40px; }
  .bilderleiste-drei .abzug, .bilderleiste-drei .abzug-schief { max-width: 300px; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .js .abzug[data-auf] { opacity: 1; transform: rotate(1.6deg); }
  .js .abzug-schief[data-auf] { transform: rotate(-2.2deg); }
  .js .kringel[data-auf]::after { opacity: 1; transform: rotate(-6deg); }
}
.fuss-innen { position: relative; }
.fuss-jahr {
  margin: 0; font-size: .84rem; opacity: .7;
}
.fuss-signatur {
  margin: 0; font-size: .78rem; letter-spacing: .01em;
}
@media (min-width: 760px) {
  .fuss-signatur { position: absolute; right: 0; bottom: 0; margin: 0; }
}
@media (max-width: 759px) {
  .fuss-signatur { margin-top: 20px; opacity: .9; }
}
.fuss-signatur a {
  color: rgba(236, 232, 226, .45);
  text-decoration: none;
  display: inline-block;
  padding: 12px 4px;
  position: relative;
  transition: color .14s linear;
}
.fuss-signatur a:hover { color: rgba(236, 232, 226, .85); }
.fuss-signatur a::after {
  content: "";
  position: absolute; left: 4px; right: 4px; bottom: 8px;
  height: 1px; background: currentColor;
  opacity: 0; transition: opacity .14s linear;
}
.fuss-signatur a:hover::after { opacity: .8; }
.fuss-signatur a:focus-visible::after { opacity: .8; }
.sig-stern {
  color: #EFC050;
  padding: 0 7px 0 6px;
  font-size: 1.05em;
}
.sig-name { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .fuss-signatur a { transition: none; } }
.fuss { padding: 30px var(--rand) 26px calc(var(--rand) + 6px); border-top: 3px double var(--tinte); background: rgba(251, 250, 246, .92); }
.fuss .fuss-innen { max-width: 1120px; }
.fuss-zeilen { display: grid; gap: 6px; margin-bottom: 18px; font-size: 16px; }
.fuss-zeilen a { display: inline-block; padding: 4px 0; min-height: 32px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fuss-jahr, .fuss-signatur { font-size: 15px; }
.fuss-signatur a { color: rgba(35, 39, 44, .58); }
.fuss-signatur a:hover { color: var(--tinte); }
