/* randnotiz – eigener Shop. Heller Apple-artiger Look + Randnotiz-Elemente (Königsblau, Handschrift, Gelb-Marker).
   Farben und Typo wie die Shopify-Startseite (randnotiz-start.src.html). */
@font-face { font-family: "RN Serif"; src: url("fonts/SourceSerif4.ttf"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "RN Sans"; src: url("fonts/SourceSans3.ttf"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "RN Hand"; src: url("fonts/Caveat.ttf"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --line: #d2d2d7; --line-2: #e8e8ed; --white: #fff; --parch: #f5f5f7;
  --dark: #1d1d1f; --blue: #2443a6; --blue-hover: #1b3488; --blue-dark: #8ea6ff; --blue-soft: #e8edfb; --marker: #ffe76a;
  --ok: #1f7a3d; --warn: #b3261e;
  --max: 1080px; --pad: clamp(20px, 5vw, 48px); --r: 18px;
}
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "RN Sans", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--white);
       font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap--eng { max-width: 760px; }
.hand { font-family: "RN Hand", cursive; color: var(--blue); font-weight: 600; line-height: 1; }
.mk { background-image: linear-gradient(176deg, transparent 20%, var(--marker) 22%, var(--marker) 88%, transparent 91%);
      background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 1.1s cubic-bezier(.65,0,.35,1) .35s;
      padding: 0 .06em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.is-in .mk, .mk.is-in, .mk--fest { background-size: 100% 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Testmodus-Leiste */
.test { background: var(--marker); color: #3d3500; font-size: 13px; text-align: center; padding: 6px var(--pad); font-weight: 600; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.8); -webkit-backdrop-filter: saturate(180%) blur(20px);
       backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.wm { font-weight: 700; letter-spacing: -0.02em; font-size: 22px; white-space: nowrap; }
.wm .i { position: relative; }
.wm .i::after { content: ""; position: absolute; left: 50%; top: .13em; width: .19em; height: .19em; background: var(--blue); transform: translateX(-50%) rotate(45deg); }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: #424245; }
.nav nav a:hover { color: var(--ink); }
.nav nav a[aria-current] { color: var(--ink); font-weight: 600; }
.korb { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 980px; background: var(--parch); color: var(--ink) !important; font-weight: 600; }
.korb svg { width: 18px; height: 18px; }
.korb b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.korb b:empty, .korb b[data-n="0"] { display: none; }
@media (max-width: 700px) { .nav nav a.nav-x { display: none; } .nav nav { gap: 14px; } }

/* Kacheln */
.tile { padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.tile--parch { background: var(--parch); }
.tile--dark { background: var(--dark); color: #f5f5f7; }
.tile--dark .hand { color: var(--blue-dark); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--blue); margin: 0 0 10px; letter-spacing: 0; }
.tile--dark .eyebrow { color: var(--blue-dark); }
.h1 { font-weight: 700; font-size: clamp(42px, 8vw, 84px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
.h2 { font-weight: 700; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.03em; margin: 0; }
.h3 { font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.sub { font-size: clamp(19px, 2.2vw, 25px); line-height: 1.3; color: var(--ink-2); font-weight: 400; margin: 18px auto 0; max-width: 34em; }
.tile--dark .sub { color: #a1a1a6; }
.serif { font-family: "RN Serif", Georgia, serif; letter-spacing: -0.02em; }

/* Buttons */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff !important; font-size: 17px; font-weight: 600;
        padding: 12px 24px; border-radius: 980px; border: 0; cursor: pointer; transition: background .2s, transform .15s, opacity .2s; }
.pill:hover { background: var(--blue-hover); }
.pill:active { transform: scale(.97); }
.pill[disabled] { opacity: .45; cursor: not-allowed; }
.pill--ghost { background: transparent; color: var(--blue) !important; box-shadow: inset 0 0 0 1.5px var(--blue); }
.pill--ghost:hover { background: rgba(36,67,166,.07); }
.pill--klein { font-size: 14px; padding: 7px 16px; }
.pill--gross { font-size: 19px; padding: 15px 30px; }
.pill--voll { width: 100%; }
.pill.ist-drin { background: var(--ok); }
.link { color: var(--blue) !important; font-weight: 500; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }
.tile--dark .link { color: var(--blue-dark) !important; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.fan { position: relative; aspect-ratio: 16 / 10.5; max-width: 760px; margin: clamp(36px, 6vw, 64px) auto 0; }
.fan img { position: absolute; width: 38%; top: 0; left: 31%; border-radius: 4px; box-shadow: rgba(0,0,0,.22) 3px 5px 30px; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); background: #fff; }
.fan img:nth-child(1) { transform: translate(0, 30px); }
.fan img:nth-child(2) { transform: translate(0, 15px); }
.is-in.fan img:nth-child(1) { transform: rotate(-9deg) translate(-58%, 34px); }
.is-in.fan img:nth-child(2) { transform: rotate(8deg) translate(58%, 24px); }
.fan .hand { position: absolute; right: 0; bottom: 6%; font-size: clamp(24px, 3vw, 34px); transform: rotate(-6deg); }
.zahlen { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); margin-top: 44px; flex-wrap: wrap; }
.zahlen div { text-align: center; }
.zahlen b { display: block; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1; }
.zahlen span { color: var(--ink-2); font-size: 15px; }

/* Fächer-Kacheln */
.faecher { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 48px; text-align: left; }
.fach { position: relative; background: var(--white); border-radius: var(--r); padding: 28px 28px 0; overflow: hidden; display: flex; flex-direction: column;
        min-height: 300px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.fach:hover { transform: translateY(-3px); box-shadow: rgba(0,0,0,.08) 0 12px 30px; }
.fach h3 { margin: 0; font-size: 28px; letter-spacing: -0.025em; }
.fach p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.fach .bild { margin: 22px -28px 0; flex: 1; display: flex; justify-content: center; align-items: flex-start; gap: 0; position: relative; min-height: 150px; }
.fach .bild img { width: 46%; border-radius: 3px 3px 0 0; box-shadow: rgba(0,0,0,.18) 0 -2px 24px; position: absolute; top: 0; }
.fach .bild img:nth-child(1) { left: 12%; transform: rotate(-4deg); top: 12px; }
.fach .bild img:nth-child(2) { right: 12%; transform: rotate(4deg); }
.fach .mehr { position: absolute; top: 30px; right: 28px; color: var(--blue); font-weight: 600; font-size: 15px; }

/* Zwei Karten Überblick / Vertiefung */
.duo { display: grid; gap: 20px; margin-top: 52px; text-align: left; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }
.karte { background: var(--white); border-radius: var(--r); padding: 38px 34px 0; overflow: hidden; display: flex; flex-direction: column; }
.karte .preis { font-size: 21px; font-weight: 600; margin: 6px 0 0; }
.karte .preis.gratis { color: var(--blue); }
.karte p { color: var(--ink-2); margin: 12px 0 0; }
.karte .ctas { justify-content: flex-start; margin-top: 22px; }
.karte-crop { margin: 30px -34px 0; height: clamp(200px, 25vw, 290px); overflow: hidden; display: flex; justify-content: center; padding-top: 6px; }
.karte-crop img { width: 64%; height: auto; align-self: flex-start; border-radius: 4px 4px 0 0; box-shadow: rgba(0,0,0,.18) 0 -2px 30px; }
.code { margin: 40px auto 0; font-size: clamp(18px, 2.1vw, 23px); }
.code b { color: var(--blue); letter-spacing: .04em; }

/* Produkt-Kacheln */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); text-align: left; }
.prod { background: var(--parch); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.prod:hover { transform: scale(1.015); }
.prod-bild { aspect-ratio: 4 / 3.5; display: grid; place-items: start center; padding: 22px 22px 0; overflow: hidden; }
.prod-bild img { width: 74%; border-radius: 3px 3px 0 0; box-shadow: rgba(0,0,0,.2) 3px 5px 26px; background: #fff; }
.prod-text { padding: 16px 20px 20px; background: var(--white); flex: 1; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.tile--parch .prod-text { border: 0; }
.prod-k { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.prod-k .gratis { color: var(--blue); }
.prod-t { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.prod-s { color: var(--ink-2); font-size: 15px; margin-top: 6px; flex: 1; }
.prod-p { margin-top: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prod-p .gratis { color: var(--blue); }

/* Fach-Seite: Themen */
.kopf { padding: clamp(44px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); text-align: center; }
.kopf .sub { margin-top: 12px; }
.hj-nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; padding: 7px 15px; border-radius: 980px; background: var(--parch); font-size: 15px; font-weight: 600; color: var(--ink); border: 0; cursor: pointer; }
.chip:hover { background: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.thema { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line-2); scroll-margin-top: 70px; }
.thema-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.thema-kopf .hj { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.paket { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 18px 22px;
         border-radius: var(--r); background: var(--blue-soft); }
.paket b { font-size: 18px; }
.paket span { color: var(--ink-2); font-size: 15px; }

/* Produktseite */
.pd { display: grid; gap: clamp(28px, 5vw, 64px); padding: clamp(32px, 5vw, 64px) 0; align-items: start; }
@media (min-width: 900px) { .pd { grid-template-columns: 1.05fr 1fr; } .pd-info { position: sticky; top: 84px; } }
.galerie .haupt { background: var(--parch); border-radius: var(--r); padding: clamp(20px, 4vw, 44px); }
.galerie .haupt img { border-radius: 3px; box-shadow: rgba(0,0,0,.2) 3px 6px 30px; background: #fff; margin: 0 auto; }
.galerie .daumen { display: flex; gap: 10px; margin-top: 12px; }
.galerie .daumen button { width: 76px; padding: 8px; border-radius: 12px; border: 2px solid transparent; background: var(--parch); cursor: pointer; }
.galerie .daumen button[aria-current="true"] { border-color: var(--blue); }
.krumen { font-size: 14px; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; }
.krumen a:hover { color: var(--ink); text-decoration: underline; }
.pd-info h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; margin: 10px 0 0; }
.pd-preis { font-size: 26px; font-weight: 700; margin: 14px 0 0; }
.pd-preis.gratis { color: var(--blue); }
.pd-preis small { font-size: 13px; font-weight: 400; color: var(--ink-2); display: block; letter-spacing: 0; }
.pd-text { color: #333336; margin-top: 18px; }
.pd-text ul { padding-left: 1.1em; margin: 10px 0; }
.pd-text li { margin: 4px 0; }
.pd-text em { color: var(--ink-2); font-style: normal; font-size: 15px; }
.pd-fakten { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pd-fakten li { background: var(--parch); border-radius: 980px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: #424245; }
.pd-kauf { margin-top: 26px; display: grid; gap: 10px; }
.pd-hinweis { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.pd-hinweis a { color: var(--blue); }

/* Warenkorb / Kasse */
.kasse { display: grid; gap: clamp(28px, 5vw, 56px); padding: clamp(28px, 4vw, 48px) 0 80px; align-items: start; }
@media (min-width: 900px) { .kasse { grid-template-columns: 1.2fr 1fr; } .kasse-sum { position: sticky; top: 84px; } }
.posten { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.posten li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.posten img { width: 64px; border-radius: 3px; box-shadow: rgba(0,0,0,.15) 0 2px 10px; }
.posten .t { font-weight: 600; line-height: 1.2; }
.posten .k { font-size: 13px; color: var(--ink-2); }
.posten .weg { background: none; border: 0; color: var(--ink-2); font-size: 13px; cursor: pointer; padding: 4px 0 0; text-decoration: underline; }
.posten .p { font-weight: 600; text-align: right; white-space: nowrap; }
.leer { padding: 48px 0; text-align: center; color: var(--ink-2); }
.box { background: var(--parch); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }
.box h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: -0.02em; }
.zeile { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.zeile.summe { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 21px; font-weight: 700; }
.zeile .rabatt { color: var(--ok); }
.feld { display: grid; gap: 6px; margin-top: 14px; }
.feld label { font-size: 14px; font-weight: 600; }
.feld input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 16px; }
.feld input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.feld .reihe { display: flex; gap: 8px; }
.feld .reihe input { flex: 1; }
.feld small { color: var(--ink-2); font-size: 13px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: 16px; font-size: 14px; line-height: 1.4; color: #333336; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.check a { color: var(--blue); text-decoration: underline; }
.meldung { margin-top: 12px; font-size: 14px; }
.meldung.fehler { color: var(--warn); }
.meldung.ok { color: var(--ok); }
.klein { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.zahlarten { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.zahlarten span { font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: #424245; background: #fff; }

/* Danke-Seite */
.danke { text-align: center; padding: clamp(48px, 7vw, 96px) 0 40px; }
.danke .haken { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; }
.danke .haken svg { width: 36px; height: 36px; }
.downloads { list-style: none; padding: 0; margin: 28px auto 0; max-width: 620px; text-align: left; }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }

/* Suche / Alle Zettel */
.suche { max-width: 560px; margin: 26px auto 0; position: relative; }
.suche input { width: 100%; border: 1px solid var(--line); border-radius: 980px; padding: 13px 20px 13px 46px; font-size: 17px; background: #fff; }
.suche input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.suche svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.nichts { text-align: center; color: var(--ink-2); padding: 40px 0; display: none; }

/* Prinzip / Anatomie */
.drei { display: grid; gap: 28px; margin-top: 48px; text-align: left; }
@media (min-width: 820px) { .drei { grid-template-columns: repeat(3, 1fr); } }
.drei .n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.drei b { display: block; font-size: 22px; letter-spacing: -0.02em; margin-top: 14px; }
.drei p { color: var(--ink-2); margin: 6px 0 0; }
.tile--dark .drei p { color: #a1a1a6; }

/* Fragen */
.fragen { max-width: 760px; margin: 40px auto 0; text-align: left; }
.fragen details { border-bottom: 1px solid var(--line); }
.fragen summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--blue); transition: transform .25s; }
.fragen details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fragen details p { margin: 0 0 22px; color: var(--ink-2); }

/* Rechtstexte */
.recht { padding: clamp(32px, 5vw, 64px) 0 80px; }
.recht h1, .recht h2:first-child { font-size: clamp(32px, 4.5vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 24px; }
.recht h2 { font-size: 26px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.recht h3 { font-size: 19px; margin: 28px 0 6px; }
.recht p, .recht li { color: #333336; }
.recht a { color: var(--blue); text-decoration: underline; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 14px 12px 20px; border-radius: 980px;
         display: flex; align-items: center; gap: 14px; font-size: 15px; box-shadow: rgba(0,0,0,.25) 0 10px 30px; transition: transform .35s cubic-bezier(.2,.7,.2,1); z-index: 50; max-width: calc(100% - 32px); }
.toast.zeigen { transform: translate(-50%, 0); }
.toast a { background: #fff; color: var(--ink); padding: 6px 14px; border-radius: 980px; font-weight: 600; white-space: nowrap; }

/* Fußzeile */
.fuss { background: var(--parch); color: var(--ink-2); font-size: 13px; padding: 40px 0 48px; }
.fuss .spalten { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.fuss h4 { color: var(--ink); font-size: 13px; margin: 0 0 10px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss a:hover { color: var(--ink); text-decoration: underline; }
.fuss .unten { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }

/* Einblenden */
.js .up { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .up.is-in { opacity: 1; transform: none; }
.standbild *, .standbild *::before, .standbild *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .js .up { opacity: 1; transform: none; transition: none; } .fan img { transition: none; } .mk { transition: none; } }

/* Handy: Zettel zweispaltig, damit man nicht endlos scrollt */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod-bild { padding: 14px 14px 0; }
  .prod-bild img { width: 86%; }
  .prod-text { padding: 12px 12px 14px; }
  .prod-k { font-size: 10.5px; letter-spacing: .04em; }
  .prod-t { font-size: 16px; }
  .prod-s { display: none; }
  .prod-p { flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .prod-p .pill { padding: 6px 12px; font-size: 13px; }
}
