/* aufnahmeplattform.at – Stil „Schulheft“ */
/* font-display: optional + preload: kommt eine Schrift zu spät, bleibt die Ersatzschrift, statt dass die Seite springt */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: optional; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: optional; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: optional; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: optional; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: optional; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: optional; }

:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --paper-dark: #f4efe3;
  --line: #dfe7f3;
  --margin: #f2a5a5;
  --ink: #1d2b4f;
  --ink-soft: #4a5677;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --marker: #ffe066;
  --red: #d9480f;
  --good: #ebfbee;
  --good-ink: #2b8a3e;
  --bad: #fff4e6;
  --bad-ink: #c2410c;
  --white: #fff;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --radius: 12px;
  --shadow: 3px 3px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --wrap: 1100px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; hyphens: auto; }
h1 { font-weight: 800; font-size: clamp(2rem, 7vw, 3.4rem); hyphens: manual; } /* nur an &shy; trennen */
h2 { font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.4rem); hyphens: manual; }
h3 { font-weight: 600; font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Kopf */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--marker); }
.head-demo { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .site-header { position: static; }
  .head-demo { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 0 8px; }
}
@media (max-width: 600px) {
  .head-demo { display: none; } /* Demo-Knöpfe stehen gleich darunter im Hero */
}

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem/1.2 var(--font-body); padding: 12px 20px; border-radius: 10px; border: 2px solid var(--ink); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--ink); }
.btn-secondary:hover { background: var(--marker); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn[hidden] { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Bausteine */
.marker { background: linear-gradient(transparent 55%, var(--marker) 55%); padding: 0 .1em; }
.hand { font-family: var(--font-hand); font-weight: 600; color: var(--red); font-size: 1.8rem; line-height: 1.1; }
.tilt-l { transform: rotate(-2deg); display: inline-block; }
.tilt-r { transform: rotate(1.5deg); display: inline-block; }
.icon { width: 28px; height: 28px; flex: none; color: var(--blue); }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card .icon { margin-bottom: 8px; }
.note { background: var(--marker); padding: 8px 14px; font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; box-shadow: 2px 3px 8px rgba(0, 0, 0, .15); display: inline-block; margin: 0; }
.sticky-note { background: var(--marker); border: 2px solid var(--ink); border-radius: 4px; padding: 20px 22px; transform: rotate(1.5deg); box-shadow: var(--shadow); }
.sticky-note > :last-child { margin-bottom: 0; }
.refs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ref { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 24px 18px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); font-weight: 600; text-decoration: none; }
.ref:hover { box-shadow: var(--shadow-lg); }
.ref img { height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.ref img.logo-tall { height: 96px; } /* G19: großes G, kleine Schrift */
.refs li:nth-child(1) .ref { transform: rotate(-1deg); }
.refs li:nth-child(3) .ref { transform: rotate(1deg); }
.badge-new { display: inline-block; background: var(--marker); border: 1.5px solid var(--ink); border-radius: 999px; font: 800 .7rem/1.4 var(--font-body); padding: 0 8px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .05em; }
.muted { color: var(--ink-soft); }

/* Abschnitte */
.section { padding: 64px 0; }
.section-alt { background: var(--paper-dark); border-top: 2px dashed #e0d6c2; border-bottom: 2px dashed #e0d6c2; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 80px; background-image: repeating-linear-gradient(var(--paper) 0 31px, var(--line) 31px 32px); }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(6px, calc(50% - var(--wrap) / 2 - 10px)); width: 2px; background: var(--margin); }
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.45fr 1fr; } }
.hero h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); }
.lead { font-size: 1.15rem; max-width: 560px; }
.trust { margin: 18px 0 0; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.slot-card { position: relative; max-width: 420px; margin: 0 auto 24px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.slot-card .day { font-weight: 800; margin-bottom: 10px; }
.slots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: .9rem; }
.slot { padding: 8px; border-radius: 8px; background: var(--good); }
.slot.taken { background: #e9ecef; color: #6b7280; text-decoration: line-through; }
.slot.mine { background: var(--marker); font-weight: 800; }
.slot-card .note { position: absolute; right: 0; bottom: -28px; transform: rotate(-4deg); }

/* Vorher / Nachher */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare > div { padding: 22px 24px; }
.compare .before { background: var(--bad); }
.compare .after { background: var(--good); }
.compare h3 { font: 800 .85rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.compare .before h3 { color: var(--bad-ink); }
.compare .after h3 { color: var(--good-ink); }
.compare ul { margin: 0; padding-left: 1.2em; }
.compare li { margin: .35em 0; }

/* Funktionen */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; }
.feature b { display: block; }

/* Screenshots */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tablist[hidden] { display: none; }
.tab { font: 600 .95rem var(--font-body); background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.shot { margin: 0 0 28px; }
.shot figure { margin: 0; }
.shot[hidden] { display: none; }
.shot img { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-lg); background: var(--white); }
.js .shot img { cursor: zoom-in; }
.shot figcaption { margin-top: 12px; color: var(--ink-soft); }

/* Wer steckt dahinter */
.about { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .about { grid-template-columns: 280px 1fr; } }
.about > div { max-width: 680px; }
.polaroid { position: relative; margin: 0 auto; width: 260px; background: var(--white); padding: 12px 12px 8px; border: 1px solid #e5dccb; box-shadow: 0 6px 18px rgba(29, 43, 79, .18); transform: rotate(-3deg); }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: rgba(255, 224, 102, .75); transform: rotate(2deg); }
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid figcaption { text-align: center; color: var(--ink); font-size: 1.5rem; margin-top: 6px; }

/* Zitate */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 12px; font-size: 1.1rem; }
.quote figcaption { font-weight: 600; }
.quote figcaption span { display: block; font-weight: 400; color: var(--ink-soft); }
.quote:nth-child(odd) { transform: rotate(-1deg); }
.quote:nth-child(even) { transform: rotate(1deg); }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--blue); color: var(--white); font: 800 1.3rem var(--font-head); }

/* Preis */
.price { font: 800 3rem/1 var(--font-head); margin-bottom: .3em; }
.price small { font: 600 1rem var(--font-body); color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 16px 0; }
.checklist li { position: relative; padding-left: 28px; margin: .4em 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--good-ink); font-weight: 800; }

/* FAQ */
.faq details { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.3em; font-weight: 800; color: var(--blue); }
.faq details[open] summary::before { content: "–"; }
.faq details p { padding: 0 18px 14px 42px; margin: 0; }

/* Band */
.band { background: var(--blue); color: var(--white); padding: 36px 0; font-size: 1.15rem; }
.band p { margin: 0; }
.band a { color: var(--white); font-weight: 800; }
.band .hand { color: var(--marker); margin-bottom: 4px; }

/* Vorlagen (Elternseite) */
.letter { background: var(--white); border: 1px solid #cfc6b3; border-radius: 8px; padding: 18px 20px; margin: 0; font: .95rem/1.6 ui-monospace, "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-status { font-size: .9rem; color: var(--good-ink); min-height: 1.5em; margin: 8px 0 0; }
.card details { margin-top: 12px; }
.card summary { cursor: pointer; font-weight: 600; }
.card details .letter { margin-top: 10px; font-size: .85rem; }
code { font: .9rem ui-monospace, "Courier New", monospace; background: var(--paper-dark); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }

/* Fuß */
.site-footer { background: #efe8d8; border-top: 2px solid var(--ink); padding: 40px 0; font-size: .95rem; }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h2 { font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1em; }
.site-footer a { color: var(--ink); }
.site-footer img { width: 160px; }

/* Dialoge */
dialog { width: 100%; max-width: min(560px, calc(100vw - 32px)); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(29, 43, 79, .55); }
dialog.zoom { max-width: min(1300px, calc(100vw - 32px)); padding: 12px; }
dialog.zoom img { display: block; width: 100%; }
.dialog-close { float: right; margin: 0 0 8px 8px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-row input, .form-row textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); }
.form-hint { font-size: .9rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; border: 2px solid var(--ink); }
.status[hidden] { display: none; }
.status.ok { background: var(--good); }
.status.err { background: var(--bad); }

/* Fließtext (Datenschutz) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* Elternseite: Telefon-Geschichte im Hero */
.phone-story { text-align: center; }
.phone-story .emoji { font-size: 4rem; line-height: 1.1; margin: 0; }
.phone-story .hand { display: inline-block; transform: rotate(-3deg); margin: 8px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tilt-l, .tilt-r, .slot-card, .slot-card .note, .quote, .sticky-note, .phone-story .hand, .refs .ref, .polaroid, .polaroid::before, .btn:active { transform: none !important; }
}
