/*
 * 1ander · Gestaltung der Homepage. Leicht und wie von Hand gezeichnet: Papier, Tusche, Textmarker.
 * Aufbau: 1 Schriften · 2 Farben und Maße · 3 Grundlagen · 4 Zeichenstil (Strich, Wackelrand, Marker) · 5 Rahmen der Seite ·
 * 6 Bausteine (Knöpfe, Karten, Boxen, Spalten, Tabellen, Preise, Akkordeon, Reiter, Modal, Formulare …) · 7 Hilfsklassen.
 * Jeder Baustein steht mit Beispiel auf der Seite „Baukasten“ (baukasten.html). Neue Seiten nur aus diesen Bausteinen bauen;
 * Farben, Abstände und Schriften nur über die Variablen. Die Schriften liegen unter assets/fonts (frei lizenziert, OFL),
 * es wird nichts von fremden Servern geladen.
 */

/* ---------- 1 Schriften ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- 2 Farben und Maße ---------- */
:root {
  --paper: #fbf7ee;        /* Papier, Grundfläche */
  --paper-2: #f3ecdc;      /* etwas dunkleres Papier für Bänder */
  --white: #fffdf8;        /* Karten */
  --ink: #1f1b2d;          /* Tusche: Text und Striche */
  --ink-soft: #57516b;     /* Nebentexte */
  --line: #d9cfba;         /* feine Linien */
  --marker: #ffe066;       /* Textmarker gelb */
  --berry: #8a3b5c;        /* 1ander-Beere (Marke) */
  --berry-soft: #f6dfe8;
  --mint: #2f9e7a;         /* Sport */
  --mint-soft: #d8f1e6;
  --sky: #2f6fd6;          /* Kita */
  --sky-soft: #dbe8fb;
  --coral: #e2603f;        /* Hinweis, Aktion */
  --coral-soft: #fbe2d9;
  --ok: #2f9e7a;
  --warn: #b7791f;
  --bad: #b3261e;

  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  --fs-3xl: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --wrap: 1140px;
  --gutter: clamp(18px, 4vw, 48px);
  --stroke: 2px;
  /* Wackelränder: drei Varianten, damit nicht alle Kästen gleich aussehen */
  --wobble-1: 160px 14px 140px 14px / 14px 120px 14px 150px;
  --wobble-2: 16px 150px 14px 130px / 130px 14px 150px 16px;
  --wobble-3: 130px 18px 150px 20px / 18px 140px 16px 120px;
  --shadow: 4px 5px 0 var(--ink);
  --shadow-sm: 2px 3px 0 var(--ink);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3 Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  /* feines Punktraster wie auf Notizpapier */
  background-image: radial-gradient(rgba(31, 27, 45, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.6;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 var(--s4); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
p, ul, ol, table, blockquote, figure { margin: 0 0 var(--s4); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--berry); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--marker); color: var(--ink); }
hr { border: 0; height: 12px; margin: var(--s7) 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 7c12-6 18 5 30 0s18-6 30-1 18 5 30 0 16-4 26 0' fill='none' stroke='%231f1b2d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 120px 12px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--white); padding: var(--s2) var(--s4); z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: var(--s8); }
.section > :last-child, .card > :last-child, .box > :last-child, .notice > :last-child { margin-bottom: 0; }
.band { background: var(--paper-2); border-block: var(--stroke) solid var(--ink); }
.band.dark { background: var(--ink); color: var(--white); background-image: radial-gradient(rgba(255, 253, 248, 0.08) 1px, transparent 1.2px); background-size: 22px 22px; }
.band.dark a { text-decoration-color: var(--marker); }
.band.berry { background: var(--berry-soft); }
.band.mint { background: var(--mint-soft); }
.band.sky { background: var(--sky-soft); }
.muted { color: var(--ink-soft); }
.band.dark .muted { color: #c9c3d9; }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.right { text-align: end; }
.lead { font-size: var(--fs-lg); max-width: 46em; }
.prose { max-width: 46em; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s6); }

/* ---------- 4 Zeichenstil ---------- */
/* Textmarker hinter einem Wort */
.mark { background-image: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mark.berry { background-image: linear-gradient(transparent 52%, var(--berry-soft) 52%, var(--berry-soft) 92%, transparent 92%); }
.mark.mint { background-image: linear-gradient(transparent 52%, var(--mint-soft) 52%, var(--mint-soft) 92%, transparent 92%); }
/* von Hand unterstrichen */
.scribble { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='14' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-7 52 4 80-1s58-6 114 1M12 12c40-3 90-4 150-1' fill='none' stroke='%238a3b5c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.42em; padding-bottom: 0.28em; }
/* eingekringelt */
.circled { position: relative; white-space: nowrap; }
.circled::after { content: ""; position: absolute; inset: -0.18em -0.4em -0.22em; border: 2.5px solid var(--coral); border-radius: 52% 48% 55% 45% / 60% 44% 56% 40%; transform: rotate(-2deg); pointer-events: none; }
/* Handschrift für Randbemerkungen */
.hand { font-family: var(--font-hand); font-size: 1.5em; line-height: 1.15; font-weight: 600; color: var(--berry); }
.kicker { font-family: var(--font-hand); font-size: 1.6rem; font-weight: 700; color: var(--berry); margin-bottom: var(--s2); transform: rotate(-1.5deg); transform-origin: left; display: inline-block; }
.band.dark .kicker, .band.dark .hand { color: var(--marker); }
/* Wackelrand: Kasten wie mit dem Stift gezogen */
.sketch { border: var(--stroke) solid var(--ink); border-radius: var(--wobble-1); background: var(--white); }
.sketch.alt, :is(.cards, .cols) > :nth-child(3n + 2).card { border-radius: var(--wobble-2); }
.sketch.alt-2, :is(.cards, .cols) > :nth-child(3n).card { border-radius: var(--wobble-3); }
/* Zeichnungen (inline-SVG): Striche in Tuschefarbe, runde Enden */
.doodle { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.doodle.fill-marker { fill: var(--marker); }
.icon { width: 1.5em; height: 1.5em; flex: none; vertical-align: -0.3em; }
.icon.lg { width: 2.75rem; height: 2.75rem; }
/* Pfeil mit Bemerkung neben einem Element */
.aside-note { display: inline-flex; align-items: flex-start; gap: var(--s2); color: var(--berry); }
.aside-note svg { width: 56px; height: 40px; flex: none; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(1.5deg); }
/* Klebestreifen oben am Kasten */
.taped { position: relative; }
.taped::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 224, 102, 0.75); border-left: 2px dashed rgba(31, 27, 45, 0.25); border-right: 2px dashed rgba(31, 27, 45, 0.25); }

/* ---------- 5 Rahmen der Seite ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 238, 0.94); backdrop-filter: blur(6px); border-bottom: var(--stroke) solid var(--ink); }
.top-row { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; text-decoration: none; letter-spacing: -0.03em; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--berry); color: var(--white); border: var(--stroke) solid var(--ink); border-radius: 46% 54% 50% 50% / 54% 46% 54% 46%; transform: rotate(-4deg); font-size: 1.2rem; }
.top nav { display: flex; gap: var(--s4); flex: 1; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 600; padding: var(--s1) var(--s2); border-radius: 6px; }
.top nav a:hover { background: var(--marker); }
.top nav a[aria-current="page"] { background-image: linear-gradient(transparent 60%, var(--marker) 60%); }
.top-actions { display: flex; gap: var(--s2); align-items: center; }
.btn.nav-toggle { display: none; }
.foot { border-top: var(--stroke) solid var(--ink); background: var(--ink); color: var(--white); padding-block: var(--s7); font-size: var(--fs-sm); }
.foot a { text-decoration-color: var(--marker); }
.foot-row { display: grid; gap: var(--s6); grid-template-columns: 2fr 1fr 1fr; }
.foot h4 { font-size: var(--fs-md); color: var(--marker); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.foot-legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px dashed rgba(255, 253, 248, 0.35); display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: space-between; color: #c9c3d9; }
.crumbs { font-size: var(--fs-sm); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; }
.crumbs li + li::before { content: "›"; margin-inline-end: var(--s2); }

/* Auftakt einer Seite */
.hero { padding-block: var(--s8) var(--s7); position: relative; overflow: clip; }
.hero.small { padding-block: var(--s7) var(--s5); }
.hero.small h1 { font-size: var(--fs-2xl); }
.hero-grid { display: grid; gap: var(--s7); grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero-art { position: relative; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.center .actions, .actions.center, .cta .actions { justify-content: center; }
.cta { text-align: center; }
.cta p { margin-inline: auto; max-width: 40em; }
.trust { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; padding: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.trust li { display: inline-flex; gap: var(--s2); align-items: center; }

/* ---------- 6 Bausteine ---------- */
/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); font: inherit; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.btn:hover { transform: translate(-1px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--marker); }
.btn.berry { background: var(--berry); color: var(--white); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; }
.btn.ghost:hover { background: var(--marker); transform: none; }
.btn.sm { min-height: 38px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn.lg { min-height: 58px; padding: 0 var(--s6); font-size: var(--fs-lg); }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.band.dark .btn { box-shadow: 2px 3px 0 var(--marker); }
.link-more, .more { font-weight: 700; text-decoration: underline; text-decoration-color: var(--berry); }
.link-more::after, .more::after { content: " →"; }

/* Etiketten */
.tag { display: inline-flex; align-items: center; gap: var(--s1); padding: 2px var(--s3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; background: var(--white); border: 1.5px solid var(--ink); border-radius: 20px 14px 18px 12px / 12px 18px 14px 20px; }
.tag.marker { background: var(--marker); }
.tag.berry { background: var(--berry-soft); }
.tag.mint { background: var(--mint-soft); }
.tag.sky { background: var(--sky-soft); }
.tag.coral { background: var(--coral-soft); }
/* Aufkleber: schräg, rund */
.sticker { display: inline-grid; place-items: center; text-align: center; width: 112px; height: 112px; padding: var(--s2); background: var(--marker); border: var(--stroke) solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%; font-family: var(--font-hand); font-weight: 700; font-size: 1.4rem; line-height: 1; transform: rotate(-9deg); box-shadow: var(--shadow-sm); }
.sticker.berry { background: var(--berry); color: var(--white); }

/* Karten und Raster */
.cards { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cols { display: grid; gap: var(--s6); }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols.four { grid-template-columns: repeat(4, 1fr); }
.cols.wide-left { grid-template-columns: 2fr 1fr; }
.cols.wide-right { grid-template-columns: 1fr 2fr; }
.cols.kit { grid-template-columns: 200px 1fr; }
.cols.middle { align-items: center; }
.card { background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--wobble-1); padding: var(--s5); box-shadow: var(--shadow); color: var(--ink); }
.card.flat { box-shadow: none; }
.card.marker { background: var(--marker); }
.card.berry { background: var(--berry-soft); }
.card.mint { background: var(--mint-soft); }
.card.sky { background: var(--sky-soft); }
.card h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
a.card { text-decoration: none; display: block; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
a.card:hover { transform: translate(-2px, -3px) rotate(-0.4deg); box-shadow: 7px 8px 0 var(--ink); }
.card .icon.lg { margin-bottom: var(--s3); color: var(--berry); }
.door h3 { font-size: 1.6rem; }
/* Zitat / Stimme */
.quote { position: relative; padding-top: var(--s6); }
.quote::before { content: "“"; position: absolute; top: -6px; inset-inline-start: var(--s4); font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--berry); }
.quote blockquote { font-size: var(--fs-lg); margin: 0 0 var(--s4); }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.avatar { width: 56px; height: 56px; border: var(--stroke) solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%; background: var(--berry-soft); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.person { display: flex; gap: var(--s3); align-items: center; }
/* Zahlen */
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1; }
.stat span { color: var(--ink-soft); }
.band.dark .stat span { color: #c9c3d9; }
/* Logos von Kunden / Partnern */
.logos { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center; justify-content: center; list-style: none; padding: 0; }
.logos li { min-width: 120px; height: 56px; display: grid; place-items: center; padding: 0 var(--s4); border: 1.5px dashed var(--ink-soft); border-radius: 14px; color: var(--ink-soft); font-weight: 700; }

/* Boxen und Hinweise */
.box, .notice { border: var(--stroke) solid var(--ink); border-radius: var(--wobble-2); background: var(--white); padding: var(--s5); }
.box.dashed { border-style: dashed; background: transparent; }
.notice { background: var(--marker); }
.notice h2 { font-size: var(--fs-xl); }
.notice.success, .box.ok { background: var(--mint-soft); }
.notice.error, .box.bad { background: var(--coral-soft); border-color: var(--bad); }
.box.info { background: var(--sky-soft); }
.box.tip { background: var(--marker); }
.box.warn { background: #fdf0d2; }
.box.with-icon { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: start; }
/* Notizzettel */
.sticky { background: #fff3a8; border: 0; border-radius: 2px 2px 26px 2px / 2px 2px 8px 2px; box-shadow: 3px 6px 0 rgba(31, 27, 45, 0.18); padding: var(--s5); transform: rotate(-1.6deg); font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.25; }
.sticky.berry { background: var(--berry-soft); transform: rotate(1.4deg); }
.sticky.mint { background: var(--mint-soft); transform: rotate(-0.8deg); }

/* Listen */
.ticks, .crosses { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.ticks li, .crosses li { padding-inline-start: 2em; position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.2em; width: 1.3em; height: 1.3em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13c2 2 4 4 5.500 7C11 13 15 7 21 3' fill='none' stroke='%232f9e7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.crosses li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.2em; width: 1.2em; height: 1.2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5c5 4 9 9 14 15M19 4C14 9 9 13 5 20' fill='none' stroke='%23b3261e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; }
/* Schritte: nummeriert, mit handgemalten Ziffern */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: var(--s5); }
.steps li { counter-increment: step; position: relative; padding-inline-start: 68px; min-height: 48px; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -4px; width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--font-hand); font-size: 2rem; font-weight: 700; background: var(--marker); border: var(--stroke) solid var(--ink); border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%; color: var(--ink); }
.steps.across { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps.across li { padding-inline-start: 0; padding-top: 64px; }
.steps.across li::before { top: 0; }
/* Zeitstrahl */
.timeline { list-style: none; padding: 0; padding-inline-start: var(--s6); border-inline-start: 2px dashed var(--ink); display: grid; gap: var(--s5); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: calc(-1 * var(--s6) - 9px); top: 0.35em; width: 16px; height: 16px; background: var(--berry); border: var(--stroke) solid var(--ink); border-radius: 50%; }
.timeline time { font-family: var(--font-hand); font-size: 1.35rem; font-weight: 700; color: var(--berry); display: block; line-height: 1; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: var(--stroke) solid var(--ink); border-radius: 16px 22px 14px 24px / 22px 14px 24px 16px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: start; padding: var(--s3) var(--s4); border-bottom: 1.5px dashed var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-size: var(--fs-md); border-bottom: var(--stroke) solid var(--ink); background: var(--paper-2); }
tbody tr:last-child > * { border-bottom: 0; }
table.simple { background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.striped tbody tr:nth-child(odd) { background: rgba(243, 236, 220, 0.5); }
td.right, th.right { text-align: end; }
td.center, th.center { text-align: center; }
/* Vergleich: Stufen nebeneinander, eine hervorgehoben */
table.compare th:first-child, table.compare td:first-child { width: 40%; }
table.compare .is-best { background: #fff6c7; }
table.compare thead .is-best { background: var(--marker); }
table.compare tr.group th { background: var(--ink); color: var(--white); font-size: var(--fs-sm); letter-spacing: 0.04em; text-transform: uppercase; }
.yes, .no { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.25em; background: no-repeat center / contain; }
.yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13c2 2 4 4 5.500 7C11 13 15 7 21 3' fill='none' stroke='%232f9e7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12c4-1 8-1 12 0' fill='none' stroke='%2357516b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Preise */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h2, .plan h3 { font-size: var(--fs-xl); }
.plan .ticks { flex: 1; align-content: start; }
.plan.featured { background: #fff6c7; transform: rotate(-0.6deg); box-shadow: 7px 8px 0 var(--ink); }
.plan.featured::before { content: "beliebt"; position: absolute; top: -18px; inset-inline-end: 18px; font-family: var(--font-hand); font-weight: 700; font-size: 1.4rem; background: var(--berry); color: var(--white); padding: 0 var(--s3); border: var(--stroke) solid var(--ink); border-radius: 20px 14px 18px 12px / 12px 18px 14px 20px; transform: rotate(4deg); }
.price { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.price { flex-wrap: wrap; }
.price strong { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1; white-space: nowrap; }
.price span { color: var(--ink-soft); font-size: var(--fs-sm); white-space: nowrap; }
.price s { color: var(--ink-soft); }
/* Umschalter (monatlich / jährlich, Art des Vereins) */
.switcher { display: inline-flex; padding: 4px; gap: 4px; background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 30px 26px 32px 24px / 26px 32px 24px 30px; }
.switcher button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: var(--s2) var(--s4); border-radius: 22px; cursor: pointer; color: var(--ink); }
.switcher button[aria-pressed="true"], .switcher button[aria-selected="true"] { background: var(--ink); color: var(--white); }
/* Preisrechner */
.calc { display: grid; gap: var(--s4); }
.calc output { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; line-height: 1; }
input[type="range"] { width: 100%; accent-color: var(--berry); height: 28px; }

/* Akkordeon (details) */
.accordion { display: grid; gap: var(--s3); }
.accordion details { border: var(--stroke) solid var(--ink); background: var(--white); border-radius: 14px 20px 12px 22px / 20px 12px 22px 14px; }
.accordion details:nth-child(even) { border-radius: 20px 12px 22px 14px / 12px 22px 14px 20px; }
.accordion summary { cursor: pointer; list-style: none; padding: var(--s4) var(--s5); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--font-hand); font-size: 2rem; line-height: 0.6; transition: transform 0.2s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details[open] summary { border-bottom: 1.5px dashed var(--line); }
.accordion .accordion-body { padding: var(--s4) var(--s5) var(--s5); }
.accordion .accordion-body > :last-child { margin-bottom: 0; }

/* Reiter */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: -2px; position: relative; z-index: 1; padding-inline-start: var(--s4); }
.tabs [role="tab"] { font: inherit; font-weight: 700; padding: var(--s2) var(--s4); border: var(--stroke) solid var(--ink); border-bottom: 0; background: var(--paper-2); border-radius: 14px 18px 0 0 / 16px 14px 0 0; cursor: pointer; color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--white); padding-bottom: calc(var(--s2) + 2px); }
.tabs [role="tabpanel"] { border: var(--stroke) solid var(--ink); background: var(--white); padding: var(--s5); border-radius: 6px 22px 14px 24px / 6px 14px 24px 16px; }
.tabs [role="tabpanel"][hidden] { display: none; }

/* Modal (dialog) */
dialog.modal { border: var(--stroke) solid var(--ink); border-radius: var(--wobble-3); background: var(--white); color: var(--ink); padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 8px 10px 0 var(--ink); }
dialog.modal::backdrop { background: rgba(31, 27, 45, 0.55); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1.5px dashed var(--line); }
.modal-head h3 { margin: 0; font-size: var(--fs-xl); }
.modal-body { padding: var(--s5); }
.modal-foot { padding: var(--s4) var(--s5); display: flex; gap: var(--s3); justify-content: flex-end; border-top: 1.5px dashed var(--line); }
.modal-close { font: inherit; font-family: var(--font-hand); font-size: 2rem; line-height: 0.7; background: none; border: 0; cursor: pointer; color: var(--ink); padding: var(--s2); }

/* Formulare */
.form { display: grid; gap: var(--s4); }
.form .row { display: grid; gap: var(--s4); grid-template-columns: repeat(2, 1fr); }
.form label, .field { display: grid; gap: var(--s1); font-weight: 700; font-size: var(--fs-sm); }
.field .hint, .hint { font-weight: 400; color: var(--ink-soft); font-size: var(--fs-xs); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="search"], input[type="password"], input[type="date"], select, textarea { font: inherit; font-weight: 400; font-size: var(--fs-md); color: var(--ink); background: var(--white); border: var(--stroke) solid var(--ink); border-radius: 12px 16px 10px 18px / 16px 10px 18px 12px; padding: 0 var(--s4); min-height: 48px; width: 100%; }
textarea { padding-block: var(--s3); min-height: 120px; resize: vertical; }
select { appearance: none; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M2 2c2 2 4 4 6 6 2-2 4-4 6-6' fill='none' stroke='%231f1b2d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--marker); outline-offset: 0; box-shadow: var(--shadow-sm); }
input[aria-invalid="true"], .field.has-error :is(input, select, textarea) { border-color: var(--bad); background: #fff5f3; }
.field .error-text { color: var(--bad); font-weight: 700; font-size: var(--fs-xs); }
label.check, label.radio { display: flex; grid-template-columns: none; gap: var(--s3); align-items: flex-start; font-weight: 400; font-size: var(--fs-sm); cursor: pointer; }
label.check input, label.radio input { appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: var(--stroke) solid var(--ink); background: var(--white); border-radius: 6px 8px 5px 9px / 8px 5px 9px 6px; cursor: pointer; display: grid; place-items: center; }
label.radio input { border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%; }
label.check input:checked { background: var(--marker) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13c2 2 3 3 4.500 6C11 13 15 8 20 4' fill='none' stroke='%231f1b2d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 80%; }
label.radio input:checked { background: radial-gradient(var(--ink) 42%, var(--marker) 46%); }
/* Schalter */
label.toggle { display: inline-flex; gap: var(--s3); align-items: center; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
label.toggle input { appearance: none; width: 52px; height: 30px; margin: 0; border: var(--stroke) solid var(--ink); border-radius: 30px 26px 32px 24px / 26px 32px 24px 30px; background: var(--white); position: relative; cursor: pointer; transition: background 0.2s; flex: none; }
label.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--ink); border-radius: 50%; transition: transform 0.2s var(--ease); }
label.toggle input:checked { background: var(--marker); }
label.toggle input:checked::after { transform: translateX(22px); }
/* Eingabe mit Knopf (z. B. Rückruf, Newsletter) */
.input-group { display: flex; gap: var(--s2); flex-wrap: wrap; }
.input-group input { flex: 1 1 220px; }

/* Fortschritt, Hinweisleiste, Tooltip */
.progress { height: 18px; border: var(--stroke) solid var(--ink); border-radius: 12px 14px 10px 16px / 14px 10px 16px 12px; background: var(--white); overflow: hidden; }
.progress > span { display: block; height: 100%; background: repeating-linear-gradient(-55deg, var(--marker) 0 8px, #ffd23f 8px 16px); border-inline-end: var(--stroke) solid var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: var(--s3) var(--s5); border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px; box-shadow: 3px 4px 0 var(--marker); z-index: 90; font-weight: 700; }
.toast[hidden] { display: none; }
[data-tip] { position: relative; border-bottom: 2px dotted var(--berry); cursor: help; }
[data-tip]:hover::after, [data-tip]:focus::after { content: attr(data-tip); position: absolute; inset-inline-start: 0; bottom: calc(100% + 8px); width: max-content; max-width: 260px; background: var(--ink); color: var(--white); padding: var(--s2) var(--s3); border-radius: 10px; font-size: var(--fs-xs); font-weight: 400; z-index: 20; }
.banner { background: var(--marker); border-bottom: var(--stroke) solid var(--ink); text-align: center; padding: var(--s2) var(--gutter); font-weight: 700; font-size: var(--fs-sm); }

/* Handbuch: Kapitelliste links, Abschnitte mit Schritten, Bild, Beispiel und Tipp */
.manual { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s7); align-items: start; }
.manual-toc { position: sticky; top: 96px; font-size: var(--fs-sm); }
.manual-toc h2 { font-size: var(--fs-md); margin-bottom: var(--s3); }
.manual-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.manual-toc a { display: block; padding: var(--s1) var(--s3); text-decoration: none; border-inline-start: 3px solid var(--line); }
.manual-toc a:hover { background: var(--marker); }
.manual-toc a[aria-current="page"] { border-inline-start-color: var(--berry); font-weight: 700; }
.manual-body > section { padding-block: var(--s6); border-top: 1.5px dashed var(--line); }
.manual-body > section:first-of-type { border-top: 0; padding-top: 0; }
.manual-body h2 { font-size: var(--fs-xl); scroll-margin-top: 96px; }
.manual-body p, .manual-body .steps, .manual-body .box { max-width: 46em; }
.manual-body .steps { margin-block: var(--s5); gap: var(--s4); }
.manual-body .box { margin-top: var(--s4); }
.manual-body .box .hand { margin-bottom: var(--s1); color: var(--berry); }
.manual-meta { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.manual-meta a.tag { text-decoration: none; }
.manual-meta a.tag:hover { background: var(--marker); }
.manual-list { gap: var(--s4); }
.manual-list .card { border-radius: 16px 22px 14px 24px / 22px 14px 24px 16px; }
.manual-next { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s6); }
.manual-next .next { text-align: end; }
.shot { margin: var(--s5) 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone { max-width: 300px; }
.shot figcaption { font-family: var(--font-hand); font-size: 1.35rem; color: var(--ink-soft); margin-top: var(--s3); }
.frame-plain { border: var(--stroke) solid var(--ink); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }

/* Rahmen für Bildschirmfotos */
.frame-browser { border: var(--stroke) solid var(--ink); border-radius: 16px 20px 14px 22px / 20px 14px 22px 16px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.frame-browser::before { content: ""; display: block; height: 30px; border-bottom: var(--stroke) solid var(--ink); background: var(--paper-2) radial-gradient(circle at 18px 15px, var(--coral) 5px, transparent 6px), var(--paper-2); background-image: radial-gradient(circle at 18px 15px, var(--coral) 5px, transparent 6px), radial-gradient(circle at 36px 15px, var(--marker) 5px, transparent 6px), radial-gradient(circle at 54px 15px, var(--mint) 5px, transparent 6px); }
.frame-phone { width: 230px; aspect-ratio: 9 / 18; border: 3px solid var(--ink); border-radius: 34px 30px 36px 32px / 32px 36px 30px 34px; background: var(--white); box-shadow: var(--shadow); padding: 26px 12px 16px; position: relative; }
.frame-phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 64px; height: 6px; transform: translateX(-50%); background: var(--ink); border-radius: 4px; }
.placeholder { display: grid; place-items: center; min-height: 180px; background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(31, 27, 45, 0.06) 14px 16px); color: var(--ink-soft); font-family: var(--font-hand); font-size: 1.5rem; }
/* Seitenzahlen */
.pager { display: flex; gap: var(--s2); list-style: none; padding: 0; flex-wrap: wrap; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; border: var(--stroke) solid var(--ink); border-radius: 12px 16px 10px 18px / 16px 10px 18px 12px; text-decoration: none; font-weight: 700; background: var(--white); }
.pager [aria-current="page"] { background: var(--ink); color: var(--white); }
/* Firma: Anschrift, Ansprechpersonen */
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); margin: 0; }
.contact-card dt { font-weight: 700; }
.contact-card dd { margin: 0; }
/* Baukasten-Seite selbst */
.kit-nav { position: sticky; top: 84px; display: grid; gap: 2px; font-size: var(--fs-sm); align-content: start; align-self: start; }
.kit-nav a { text-decoration: none; padding: 2px var(--s2); border-radius: 6px; }
.kit-nav a:hover { background: var(--marker); }
.kit-section { padding-block: var(--s7); border-bottom: 2px dashed var(--line); scroll-margin-top: 90px; }
.kit-section > h2 { font-size: var(--fs-xl); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s3); }
.swatch { border: var(--stroke) solid var(--ink); border-radius: 12px; overflow: hidden; font-size: var(--fs-xs); background: var(--white); }
.swatch i { display: block; height: 56px; border-bottom: var(--stroke) solid var(--ink); }
.swatch span { display: block; padding: var(--s1) var(--s2); }
pre.code { background: var(--ink); color: #f3ecdc; padding: var(--s4); border-radius: 12px; overflow-x: auto; font-size: var(--fs-xs); line-height: 1.5; }

/* ---------- 7 Hilfsklassen ---------- */
.stack > * + * { margin-top: var(--s4); }
.stack.lg > * + * { margin-top: var(--s6); }
.row-flex { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.mt-0 { margin-top: 0; } .mt-4 { margin-top: var(--s4); } .mt-6 { margin-top: var(--s6); } .mb-0 { margin-bottom: 0; } .mb-6 { margin-bottom: var(--s6); }
.hide-mobile { display: initial; }
.only-mobile { display: none; }

/* Kopfzeile: sechs Menüpunkte brauchen Platz. Unter 1140 px enger gesetzt, unter 1040 px als Menü hinter dem Knopf
   (früher als der übrige Mobil-Umbruch bei 900 px, damit die Navigation nie zweizeilig wird) */
@media (min-width: 1040px) and (max-width: 1139px) {
  .top-row { gap: var(--s3); }
  .top nav { gap: 0; font-size: var(--fs-sm); }
  .top nav a { padding-inline: var(--s2); }
}
@media (max-width: 1039px) {
  .btn.nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .top nav, .top-actions { display: none; }
  .top.open nav, .top.open .top-actions { display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; padding-bottom: var(--s4); }
  .top.open .top-row { flex-wrap: wrap; }
  .top.open nav a { padding: var(--s3) var(--s2); border-bottom: 1.5px dashed var(--line); }
  .top.open nav a[aria-current="page"] { background-image: none; font-weight: 800; }
}
@media (max-width: 899px) {
  .hero-grid, .cols.two, .cols.three, .cols.four, .cols.wide-left, .cols.wide-right, .cols.kit, .cards.three, .foot-row, .form .row { grid-template-columns: 1fr; }
  .cols.four { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--s7); }
  .plan.featured { transform: none; }
  .hide-mobile { display: none; }
  .only-mobile { display: initial; }
  .kit-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .manual, .manual-next { grid-template-columns: 1fr; }
  .manual-toc { position: static; order: 2; }
  .manual-toc ol { grid-template-columns: repeat(2, 1fr); }
  .manual-next .next { text-align: start; }
  /* breite Tabellen bleiben Tabellen und lassen sich wischen */
  .table-wrap table { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .top, .foot, .nav-toggle, .actions, .banner { display: none; }
  body { background: #fff; }
  .card, .btn { box-shadow: none; }
}

/* Baukasten: Farbfelder und Breiten ohne style-Attribute (die Seite erlaubt keine eingebetteten Stile) */
.sw-paper i { background: var(--paper); } .sw-paper-2 i { background: var(--paper-2); } .sw-ink i { background: var(--ink); } .sw-marker i { background: var(--marker); }
.sw-berry i { background: var(--berry); } .sw-mint i { background: var(--mint); } .sw-sky i { background: var(--sky); } .sw-coral i { background: var(--coral); }
.w-25 { width: 25%; } .w-40 { width: 40%; } .w-60 { width: 60%; } .w-80 { width: 80%; } .w-100 { width: 100%; }
tr.is-best { background: #fff6c7; }


/* ---------- Mehrsprachigkeit ----------
   Abstände und Ausrichtung sind logisch angegeben (inline-start/-end), damit Arabisch (dir=rtl) ohne eigene Regeln stimmt.
   Texte, die im Stylesheet stehen, je Sprache; Schriften: die eingebetteten decken lateinische Schrift ab, andere Schriften
   fallen auf die des Geräts zurück, bis eigene Schriftdateien dazukommen. */
.lang-switch { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4); font-size: 0.95rem; }
.lang-switch strong { font-weight: 700; }
:lang(en) .plan.featured::before { content: "popular"; }
:lang(tr) .plan.featured::before { content: "popüler"; }
:lang(ar), :lang(ru), :lang(zh), :lang(th) { --font-display: system-ui, "Segoe UI", "Noto Sans", sans-serif; --font-text: system-ui, "Segoe UI", "Noto Sans", sans-serif; --font-hand: system-ui, "Segoe UI", "Noto Sans", sans-serif; }
:lang(ar) { --font-text: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --font-display: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
:lang(zh) { --font-text: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:lang(th) { --font-text: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; --font-display: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; line-height: 1.8; }
[dir="rtl"] select { background-position: left 14px center; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
[dir="rtl"] .doodle.arrow, [dir="rtl"] .more::after { transform: scaleX(-1); }
