/* Quirky-Startseite (TG-766): Handschrift, Kritzel, Spielereien.
   Liegt als Schicht über dem bestehenden Startseiten-CSS, damit Struktur,
   Übersetzungen und Screens unverändert bleiben. */

/* Caveat – lokal gehostet (OFL, Lizenz in fonts/OFL-Caveat.txt), variabel 400–700 */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Farben: warmes Papier statt Grau ── */
:root {
  --bg:   #FDFAF4;
  --bg2:  #F3EBDB;
  --ink:  #8A5408;          /* Kuli-Ocker für Handschrift, AA-Kontrast auf Papier */
  --line: #B87010;
  --paper-edge: #EDE5D4;
}
nav { background: rgba(253,250,244,0.94); border-bottom: 1.5px dashed rgba(184,112,16,0.22); }

/* ── Handschrift ── */
.hand {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0;
}

/* Abschnitts-Labels werden zu Randnotizen */
.s-label {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  color: var(--ink);
  transform: rotate(-2deg); transform-origin: left center;
}
.s-label::before { display: none; }
.ki-teaser .s-label { color: #E8C48A; }

/* ── Überschriften: Kuli-Unterstrich und Textmarker ── */
h1 em {
  color: var(--slate);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 50 6, 110 4, 216 10 M 30 20 C 90 13, 150 13, 200 16' fill='none' stroke='%23B87010' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.32em no-repeat;
  padding-bottom: 0.1em;
}
h2 em, .showcase-copy h3 em {
  color: inherit;
  font-style: italic;
  background: linear-gradient(100deg, transparent 0.15em, rgba(232,168,48,0.38) 0.2em, rgba(232,168,48,0.30) calc(100% - 0.3em), transparent 100%) 0 0.72em / 100% 0.5em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.08em;
}
.ki-teaser h2 em, .cta-wrap h2 em {
  color: #E8C48A;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 50 6, 110 4, 216 10' fill='none' stroke='%23E8C48A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.25em no-repeat;
  padding: 0 0 0.08em;
}

/* ── Buttons: dicker Rand, versetzter Schatten ── */
.btn-primary, .nav-cta, .btn-white, .dl-btn {
  border: 2px solid var(--slate) !important;
  box-shadow: 3px 3px 0 var(--slate) !important;
  border-radius: 999px !important;
  transition: transform 0.12s, box-shadow 0.12s !important;
}
.btn-primary:hover, .nav-cta:hover, .btn-white:hover, .dl-btn:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0 var(--slate) !important;
}
.btn-primary:active, .nav-cta:active, .btn-white:active, .dl-btn:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 var(--slate) !important;
}
.btn-white { border-color: #FDFAF4 !important; box-shadow: 3px 3px 0 var(--amber3) !important; }
.btn-white:hover { box-shadow: 4px 4px 0 var(--amber3) !important; }

/* ── Hero: Schluss mit … ── */
.q-schluss-label { font-size: 1.65rem; margin: 4px 0 8px; }
.q-schluss {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 0 0 22px; padding: 0;
}
.q-schluss li {
  padding: 6px 12px;
  border: 1.5px dashed #C9B48F; border-radius: 10px;
  font-size: 0.88rem; color: #5B6575;
  text-decoration: line-through; text-decoration-color: var(--line); text-decoration-thickness: 2px;
  background: #FFFDF8;
}
.q-schluss li:nth-child(1) { transform: rotate(-1.5deg); }
.q-schluss li:nth-child(2) { transform: rotate(1deg); }
.q-schluss li:nth-child(3) { transform: rotate(-0.5deg); }

/* ── Hero: Kritzel rund ums Karussell ── */
.hero::before, .hero-visual::before { display: none; }
.hero-visual .kritzel { color: rgba(184,112,16,0.55); }
.q-k-hero-sonne   { top: 2%;  left: 2%;  width: 70px; }
.q-k-hero-herz    { bottom: 22%; right: 0; width: 44px; }
.q-k-hero-haus    { top: 0;   right: 1%; width: 78px; }
.q-k-hero-familie { bottom: 0; left: 0; width: 104px; }
.hero-screens-wrap { position: relative; z-index: 1; }
/* Kein harter Kasten ums Karussell: Seiten-Screens weich ausblenden statt abschneiden */
.hero-screens-stage {
  box-sizing: content-box;          /* JS setzt die Höhe; Polster oben/unten, damit Schatten der Screens nicht als graue Kante abgeschnitten werden */
  padding-block: 90px; margin-block: -90px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-composite: intersect;
}
.q-hero-note {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  margin: 10px auto 0; font-size: 1.5rem;
  transform: rotate(-2deg);
}
.q-arrow {
  flex: 0 0 auto; width: 44px; height: 32px; margin-bottom: 8px;
  fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.hero-visual:has(> .hero-screens-wrap) { flex-direction: column; }   /* nur Startseiten-Karussell */

/* ── KI-Teaser ── */
.q-hand-light { color: #E8C48A; margin-bottom: 4px; transform: rotate(-2deg); transform-origin: left; }

/* ── Features ── */
.q-features-hand { margin-top: -30px; margin-bottom: 18px; transform: rotate(-1.5deg); transform-origin: left; }
.showcase-row { border-bottom: none; position: relative; }
.showcase-row + .showcase-row::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(320px, 60%); height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 14'%3E%3Cpath d='M2 7 Q 12 1 22 7 T 42 7 T 62 7 T 82 7 T 102 7 T 122 7 T 142 7 T 162 7 T 182 7 T 202 7 T 222 7 T 242 7 T 262 7 T 282 7 T 302 7 T 318 7' fill='none' stroke='%23C9B48F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.showcase-copy p.q-note {
  font-family: 'Caveat', cursive; font-weight: 600; line-height: 1.1; color: var(--ink);
  font-size: 1.6rem;
  margin-top: 14px;
  max-width: 30ch;
  transform: rotate(-1.5deg); transform-origin: left center;
}
.showcase-row:nth-child(even) p.q-note { transform: rotate(1deg); }

/* Screens wie eingeklebte Fotos: leicht schief, mit Klebestreifen */
.showcase-visual--single > .showcase-frame { position: relative; transform: rotate(1.5deg); }
.showcase-row--reverse .showcase-visual--single > .showcase-frame { transform: rotate(-1.5deg); }
.showcase-visual--single > .showcase-frame::before {
  content: ''; position: absolute; z-index: 2;
  top: -12px; left: 50%; width: 96px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(232,196,138,0.72);
  border-left: 1.5px dashed rgba(255,255,255,0.6);
  border-right: 1.5px dashed rgba(255,255,255,0.6);
  box-shadow: 0 1px 3px rgba(60,40,10,0.12);
}

/* ── Mitmach-Kärtchen ── */
.q-demo {
  margin-top: 18px; max-width: 360px;
  background: #FFFFFF; border: 1.5px solid var(--paper-edge); border-radius: 16px;
  padding: 14px 18px 16px;
  box-shadow: 4px 5px 0 rgba(201,180,143,0.35);
  transform: rotate(-0.6deg);
}
.showcase-copy p.hand { font-family: 'Caveat', cursive; font-weight: 600; line-height: 1.1; color: var(--ink); max-width: none; }
.showcase-copy p.q-demo-try { font-size: 1.4rem; margin-bottom: 4px; }
.q-check {
  all: unset; cursor: pointer; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px; font-size: 1rem; color: var(--slate);
  border-radius: 8px;
}
.q-check:focus-visible, .q-putz-btn:focus-visible { outline: 2.5px solid var(--line); outline-offset: 3px; }
.q-box {
  flex: 0 0 auto; width: 22px; height: 22px; box-sizing: border-box;
  border: 2px solid #9AA4B2; border-radius: 7px; background: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.q-check[aria-pressed="true"] .q-box {
  background: var(--slate); border-color: var(--slate);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.q-check[aria-pressed="true"] > span:last-child { text-decoration: line-through; text-decoration-color: var(--line); color: #7A8494; }
.showcase-copy p.q-demo-done { font-size: 1.55rem; margin-top: 6px; color: var(--slate2); }

.q-putz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.q-putz-task { display: flex; flex-direction: column; font-size: 0.95rem; color: var(--slate); }
.q-putz-task span { font-size: 0.85rem; color: #5B6575; }
.q-putz-btn-wrap { position: relative; }
.q-putz-btn {
  all: unset; cursor: pointer; box-sizing: border-box;
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  background: var(--amber); color: #FFFFFF; font-weight: 700; font-size: 0.92rem;
  border: 2px solid var(--slate); border-radius: 999px; box-shadow: 3px 3px 0 var(--slate);
  transition: transform 0.12s, box-shadow 0.12s;
}
.q-putz-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--slate); }
.q-putz-stars {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed #DCCFB4;
  font-size: 0.95rem; color: var(--slate);
}
.q-star { width: 22px; height: 22px; fill: var(--line); flex: 0 0 auto; }
.q-putz-left { margin-left: auto; font-size: 1.35rem; }
.q-star-pop {
  position: absolute; left: 50%; top: -4px; margin-left: -12px;
  width: 24px; height: 24px; fill: var(--amber3); pointer-events: none;
  animation: q-pop 0.9s ease-out forwards;
}
@keyframes q-pop {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-46px) scale(1.2) rotate(25deg); opacity: 0; }
}

/* ── Über uns, Download, Preise, FAQ ── */
.about-photo { opacity: 1; transform: rotate(-2deg); border: 8px solid #FFFFFF; border-bottom-width: 30px; border-radius: 6px; box-shadow: 0 14px 30px rgba(30,36,48,0.16); }
.q-dl-hand { margin: -4px 0 12px; transform: rotate(-1.5deg); transform-origin: left; }
.dl-card { border: 1.5px solid var(--paper-edge); }
.q-pricing-hand, .q-faq-hand { font-size: 1.7rem; transform: rotate(-2deg); transform-origin: left; margin-bottom: 4px; }
.price-card.pop { box-shadow: 6px 7px 0 rgba(184,112,16,0.22); }

/* ── Mobil ── */
@media (max-width: 840px) {
  .q-hero-note { font-size: 1.35rem; }
  .q-schluss { justify-content: center; }
  .q-k-hero-sonne { width: 48px; }
  .q-k-hero-haus  { width: 54px; }
  .q-k-hero-herz, .q-k-hero-familie { display: none; }
  .q-features-hand { margin-top: -26px; }
  .q-demo { max-width: none; }
  .showcase-visual--single > .showcase-frame,
  .showcase-row--reverse .showcase-visual--single > .showcase-frame { transform: rotate(0.8deg); }
  .showcase-copy p.q-note { font-size: 1.45rem; }
}

/* ── Unterseiten (TG-766) ── */
/* Kritzel-Masken wie auf der Startseite (dort zusätzlich inline definiert) */
.kritzel {
  position: absolute; pointer-events: none; z-index: 0;
  background-color: currentColor;
  -webkit-mask: var(--k) center / contain no-repeat;
  mask: var(--k) center / contain no-repeat;
}
.kritzel-sonne   { --k: url(/images/kritzel/sonne.svg);   aspect-ratio: 1; }
.kritzel-stern   { --k: url(/images/kritzel/stern.svg);   aspect-ratio: 1; }
.kritzel-herz    { --k: url(/images/kritzel/herz.svg);    aspect-ratio: 1; }
.kritzel-haus    { --k: url(/images/kritzel/haus.svg);    aspect-ratio: 1400 / 1360; }
.kritzel-familie { --k: url(/images/kritzel/familie.svg); aspect-ratio: 1880 / 1520; }
.hero-visual { position: relative; }
.hero-visual > .kritzel { color: rgba(184,112,16,0.5); }
.hero > .kritzel { color: rgba(184,112,16,0.5); }
.q-k-sub-sonne { top: 34px; left: 47%; width: 62px; }
.q-k-sub-herz  { bottom: 4%; right: 2%; width: 46px; }
p.q-sub-note {
  font-size: 1.6rem; margin: -6px 0 14px;
  transform: rotate(-2deg); transform-origin: left center;
}
@media (max-width: 840px) {
  p.q-sub-note { transform-origin: center; font-size: 1.45rem; }
  .q-k-sub-sonne { top: 14px; left: auto; right: 6%; width: 44px; }
  .q-k-sub-herz { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .q-star-pop { animation: none; opacity: 0; }
}
