@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/fonts/caveat.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d4;
  --card: #fffdf8;
  --ink: #221d18;
  --ink-2: #5b524a;
  --accent: #ffe45e;
  --green: #1f6f3d;
  --note-yellow: #ffe98a;
  --note-pink: #ffc9d6;
  --note-green: #c7ecb0;
  --note-blue: #bfe3ff;
  --ui: 'Bricolage Grotesque', system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.05rem/1.55 var(--ui); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.top, main, footer { max-width: 1120px; margin: 0 auto; padding: 20px 24px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.lang { font-weight: 700; }
h1 { max-width: 20ch; margin: 1.5rem 0 1rem; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.lead { max-width: 60ch; color: var(--ink-2); font-size: 1.2rem; }
.btn { display: inline-block; padding: 0.8em 1.4em; border: 2px solid var(--ink); border-radius: 14px; background: var(--accent); font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.actions { margin: 1.4rem 0; }
.crumb a, .group-link a { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; }
.icon { flex: none; }
footer { color: var(--ink-2); font-size: 0.9rem; }
.foot-brand strong { color: var(--ink); font-size: 1.05rem; letter-spacing: -0.02em; }
.foot-brand .claim { margin-left: 0.4em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Übersicht: Karten mit Mini-Vorschau ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.cards a { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 0 0 1.1rem; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); text-decoration: none; overflow: hidden; transition: transform 140ms ease, box-shadow 140ms ease; }
.cards a:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--ink); }
.cards strong, .cards .desc, .cards small { padding: 0 1.1rem; }
.cards strong { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; }
.cards .desc { color: var(--ink-2); font-size: 0.95rem; }
.cards small { margin-top: auto; color: var(--ink-2); font-weight: 700; }
.strip { display: flex; gap: 8px; margin-bottom: 0.6rem; padding: 16px 1.1rem; background: var(--paper-2); border-bottom: 2px solid var(--ink); overflow: hidden; }
.mini { flex: 0 0 auto; display: grid; width: 58px; height: 40px; padding: 6px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--card); }
.mini i { display: block; }
.m-choice, .m-quiz { align-content: space-between; }
.m-choice i, .m-quiz i { height: 5px; border-radius: 3px; background: var(--ink); }
.m-choice i:nth-child(1), .m-quiz i:nth-child(1) { width: 80%; }
.m-choice i:nth-child(2), .m-quiz i:nth-child(2) { width: 50%; background: var(--accent); outline: 1px solid var(--ink); }
.m-choice i:nth-child(3), .m-quiz i:nth-child(3) { width: 30%; }
.m-quiz i:nth-child(2) { background: var(--green); outline: none; }
.m-scale { grid-template-columns: repeat(3, 1fr); align-items: end; gap: 4px; }
.m-scale i { background: var(--ink); border-radius: 2px 2px 0 0; }
.m-scale i:nth-child(1) { height: 30%; }
.m-scale i:nth-child(2) { height: 100%; background: var(--accent); outline: 1px solid var(--ink); }
.m-scale i:nth-child(3) { height: 60%; }
.m-wordcloud { place-items: center; grid-template-columns: repeat(3, auto); gap: 3px; align-content: center; justify-content: center; }
.m-wordcloud i { height: 5px; border-radius: 3px; background: var(--ink); }
.m-wordcloud i:nth-child(1) { width: 10px; }
.m-wordcloud i:nth-child(2) { width: 18px; height: 9px; background: var(--accent); outline: 1px solid var(--ink); }
.m-wordcloud i:nth-child(3) { width: 8px; }
.m-wall { grid-template-columns: repeat(3, 1fr); gap: 4px; align-items: center; }
.m-wall i { aspect-ratio: 1; border: 1px solid var(--ink); }
.m-wall i:nth-child(1) { background: var(--note-yellow); rotate: -6deg; }
.m-wall i:nth-child(2) { background: var(--note-pink); rotate: 4deg; }
.m-wall i:nth-child(3) { background: var(--note-green); rotate: -2deg; }
.m-qa { align-content: space-between; }
.m-qa i { height: 7px; border: 1px solid var(--ink); border-radius: 3px; }
.m-qa i:nth-child(1) { width: 90%; background: var(--accent); }
.m-qa i:nth-child(2) { width: 70%; }
.m-qa i:nth-child(3) { width: 55%; }

/* ---------- Einzelne Vorlage ---------- */
.detail-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.facts { margin: 0 0 1.4rem; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); display: grid; gap: 12px; }
.facts dt { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.howto { margin: 1rem 0 2rem; padding: 22px 26px; background: var(--note-yellow); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); rotate: -0.4deg; }
.howto h2 { margin: 0 0 0.6rem; }
.howto ol { margin: 0; padding-left: 1.3em; display: grid; gap: 0.5rem; }
.howto li { max-width: 72ch; }
.slides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.slide { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; padding: 18px 20px 20px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); aspect-ratio: auto; }
.slide-top { display: flex; align-items: center; gap: 10px; margin: 0; }
.num { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: 0.9rem; }
.type { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.q { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.opts, .notes, .qas { margin: 0; padding: 0; list-style: none; }
.opts { display: grid; gap: 8px; }
.opts li { display: grid; grid-template-columns: minmax(0, 1fr) 3.4em; grid-template-areas: 'text pct' 'bar bar'; gap: 3px 8px; font-size: 0.95rem; }
.opt-text { grid-area: text; }
.opt-text strong { color: var(--green); font-size: 0.85rem; white-space: nowrap; }
.pct { grid-area: pct; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { grid-area: bar; display: block; height: 12px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--paper); overflow: hidden; }
.fill { display: block; height: 100%; background: repeating-linear-gradient(135deg, var(--ink) 0 2px, transparent 2px 6px); }
.opts li:first-child .fill, .s-choice .opts li .fill { background-color: transparent; }
.s-choice .opts li:nth-child(odd) .fill { background: var(--accent); }
.s-quiz .opts li .fill { background: repeating-linear-gradient(135deg, var(--ink-2) 0 2px, transparent 2px 6px); }
.s-quiz .opts li.ok .fill { background: var(--green); }
.scale { display: grid; gap: 6px; }
.hist { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; gap: 4px; }
.colbar { display: block; background: var(--accent); border: 1.5px solid var(--ink); border-radius: 4px 4px 0 0; }
.collabel { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.ends { display: flex; justify-content: space-between; margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.avg { margin: 0; font-weight: 800; }
.cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 110px; margin: 0; padding: 10px; background: var(--paper); border-radius: 12px; text-align: center; line-height: 1.1; }
.word { font-weight: 800; letter-spacing: -0.02em; }
.z1 { font-size: 2rem; }
.z2 { font-size: 1.45rem; color: #3d352e; }
.z3 { font-size: 1.1rem; color: var(--ink-2); }
.z4 { font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.notes { display: flex; flex-wrap: wrap; gap: 10px; }
.notes li { flex: 1 1 140px; padding: 12px 12px 14px; border: 1.5px solid var(--ink); font-family: var(--hand); font-size: 1.3rem; font-weight: 600; line-height: 1.15; box-shadow: 2px 2px 0 var(--ink); }
.notes li:nth-child(1) { background: var(--note-yellow); rotate: -1.5deg; }
.notes li:nth-child(2) { background: var(--note-pink); rotate: 1deg; }
.notes li:nth-child(3) { background: var(--note-green); rotate: -0.5deg; }
.qas { display: grid; gap: 8px; }
.qas li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.qas li:first-child { background: #fff6c2; }
.votes { flex: none; min-width: 3.2em; padding: 2px 6px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); font-weight: 800; font-size: 0.85rem; text-align: center; font-variant-numeric: tabular-nums; }
.sample-note { margin: 1.2rem 0 0; color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 760px) {
  .detail-head, .slides { grid-template-columns: minmax(0, 1fr); }
  .howto { padding: 18px 18px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cards a { transition: none; }
}
/* Breiten und Höhen der Beispielbalken (keine Inline-Styles wegen CSP) */
.w5 { width: 5%; }
.w10 { width: 10%; }
.w15 { width: 15%; }
.w20 { width: 20%; }
.w25 { width: 25%; }
.w30 { width: 30%; }
.w35 { width: 35%; }
.w40 { width: 40%; }
.w45 { width: 45%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w65 { width: 65%; }
.w70 { width: 70%; }
.w75 { width: 75%; }
.w80 { width: 80%; }
.w85 { width: 85%; }
.w90 { width: 90%; }
.w95 { width: 95%; }
.w100 { width: 100%; }
.h5 { height: 5%; }
.h10 { height: 10%; }
.h15 { height: 15%; }
.h20 { height: 20%; }
.h25 { height: 25%; }
.h30 { height: 30%; }
.h35 { height: 35%; }
.h40 { height: 40%; }
.h45 { height: 45%; }
.h50 { height: 50%; }
.h55 { height: 55%; }
.h60 { height: 60%; }
.h65 { height: 65%; }
.h70 { height: 70%; }
.h75 { height: 75%; }
.h80 { height: 80%; }
.h85 { height: 85%; }
.h90 { height: 90%; }
.h95 { height: 95%; }
.h100 { height: 100%; }

/* Verweis auf die passende Zielgruppen-Seite (Galerie und Detailseite) */
.group-link { margin: 0.4rem 0 1rem; }
.group-link a { font-weight: 700; }

/* Kündigen/Widerrufen (nur mit YOUPI_B2C): beide Links gleich hervorgehoben (§ 356a Abs. 1 BGB). */
.contract-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; margin: 1rem 0 0; }
.contract-links .pill { padding: .35em .9em; border: 2px solid currentColor; border-radius: 999px; font-weight: 700; text-decoration: none; }
