/* knopi Design-System: Farben, Schrift, Knöpfe und alles, was jede Seite braucht.
   Die Regeln dazu stehen in BRAND.md. Seitenspezifisches liegt in home.css, cards.css, catalog.css,
   plans.css, calc.css und editor.css.
   Schriften: Fredoka (Titel, Knöpfe), Geist (Text), Geist Mono (Zahlen/Labels), Inter (Editor). */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* ---- Markenfarben ---- */
  --paper: #FBF8F1;      /* Hintergrund */
  --paper-2: #F3EEE3;    /* abgesetzte Flächen */
  --card: #FFFFFF;
  --ink: #16181F;        /* Text, dunkle Flächen */
  --ink-2: #51555F;
  --ink-3: #8C9099;
  --line: #E8E1D3;
  --line-2: #D6CDBB;
  --blue: #2D4EF5;       /* knopi-Blau: Hauptfarbe, Hauptknöpfe */
  --blue-d: #1B33C4;
  --blue-t: #E7ECFF;
  --coral: #FF5A3C;      /* Akzent */
  --coral-d: #D93F22;
  --coral-t: #FFE8E1;
  --sun: #FFC83D;        /* Hervorhebung */
  --sun-d: #D99A00;
  --sun-t: #FFF3CF;
  --mint: #12A06B;
  --mint-t: #DBF4E8;
  --pink: #FF8FB8;
  --pink-t: #FFE6EF;
  --lilac: #8E7CFF;
  --lilac-t: #EDE8FF;

  /* ---- Rollen (diese Namen in den Seiten verwenden) ---- */
  --bg: var(--paper);
  --bg-elev: var(--card);
  --bg-subtle: var(--paper-2);
  --bg-overlay: rgba(251, 248, 241, .88);
  --fg: var(--ink);
  --fg-muted: var(--ink-2);
  --fg-subtle: var(--ink-3);
  --border: var(--line);
  --border-strong: var(--line-2);
  --accent: var(--blue);
  --accent-hover: var(--blue-d);
  --accent-fg: #FFFFFF;
  --accent-tint: var(--blue-t);
  --hl: var(--coral);
  --hl-tint: var(--coral-t);
  --pill: var(--sun);
  --pill-ink: #3A2C00;
  --ok: var(--mint);
  --ok-bg: rgba(18, 160, 107, .1);
  --warn: #A86400;
  --warn-bg: rgba(168, 100, 0, .1);
  --danger: #C2361F;
  --danger-bg: rgba(194, 54, 31, .08);
  --grid-dot: #E2DACA;
  --tint-blue: var(--blue-t);
  --tint-red: var(--coral-t);
  --tint-yellow: var(--sun-t);
  --tint-green: var(--mint-t);
  --tint-violet: var(--lilac-t);
  --tint-pink: var(--pink-t);

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-card: 24px;
  --r-xl: 32px;
  --r-full: 9999px;
  --shadow-card: 0 1px 2px rgba(22, 24, 31, .05), 0 8px 24px rgba(22, 24, 31, .06);
  --shadow-lift: 0 2px 4px rgba(22, 24, 31, .06), 0 18px 40px rgba(22, 24, 31, .12);
  --shadow-pop: 0 10px 30px rgba(22, 24, 31, .14), 0 0 0 1px var(--border);
  --press: 4px;          /* Hub eines Knopfs: so weit „drückt“ er sich ein */
  --container: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.015em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
/* Nur für Screenreader sichtbar */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-muted); }

/* Kleine Zeile über Titeln. Davor steht das Knopf-Zeichen der Marke (Kreis mit zwei Löchern). */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--coral-d);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background-color: currentColor;
  background-image: radial-gradient(circle at 34% 50%, var(--paper) 1.4px, transparent 1.9px), radial-gradient(circle at 66% 50%, var(--paper) 1.4px, transparent 1.9px);
}
.eyebrow.plain::before { display: none; }

/* Muster der Marke */
.dotgrid { background-image: radial-gradient(var(--grid-dot) 1.1px, transparent 1.1px); background-size: 22px 22px; }
/* Schichtlinien wie bei einem 3D-Druck, z. B. als Abschluss einer Fläche */
.layers { background-image: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(22, 24, 31, .07) 5px 6px); }

/* ---------- Knöpfe: man kann sie „drücken“ (Markenzeichen) ---------- */
.btn {
  --btn-bg: var(--card); --btn-fg: var(--ink); --btn-shade: var(--line-2); --btn-edge: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .005em; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  box-shadow: inset 0 0 0 1.5px var(--btn-edge), 0 var(--press) 0 var(--btn-shade);
  transform: translateY(0);
  transition: transform .09s ease, box-shadow .09s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translateY(1px); box-shadow: inset 0 0 0 1.5px var(--btn-edge), 0 calc(var(--press) - 1px) 0 var(--btn-shade); }
.btn:active { transform: translateY(var(--press)); box-shadow: inset 0 0 0 1.5px var(--btn-edge), 0 0 0 var(--btn-shade); }
.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-shade: var(--blue-d); --btn-edge: transparent; }
.btn-coral { --btn-bg: var(--coral); --btn-fg: #fff; --btn-shade: var(--coral-d); --btn-edge: transparent; }
.btn-sun { --btn-bg: var(--sun); --btn-fg: var(--ink); --btn-shade: var(--sun-d); --btn-edge: transparent; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-shade: #000; --btn-edge: transparent; }
.btn-ghost { --btn-bg: var(--card); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; --press: 3px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 18px; border-radius: 16px; --press: 5px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1.5px var(--btn-edge), 0 var(--press) 0 var(--btn-shade); }

/* Runde Symbol-Knöpfe (Sprache, Menü, Rückgängig) */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer;
  display: inline-grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2), 0 3px 0 var(--line-2);
  transition: transform .09s ease, box-shadow .09s ease;
}
.icon-btn:hover { transform: translateY(1px); box-shadow: inset 0 0 0 1.5px var(--line-2), 0 2px 0 var(--line-2); }
.icon-btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--line-2), 0 0 0 var(--line-2); }
.icon-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* Etiketten */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.badge-free { background: var(--mint-t); color: #0B7A50; }
.badge-member { background: var(--blue-t); color: var(--blue-d); }
.badge-soon { background: var(--paper-2); color: var(--ink-2); }
.badge-sun { background: var(--sun); color: var(--pill-ink); }

.link-arrow { font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: 15.5px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Umschalter aus mehreren Knöpfen */
.seg { display: inline-flex; background: var(--paper-2); border-radius: var(--r-full); padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: var(--r-full); cursor: pointer; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Farbpunkte */
.swatches { display: flex; gap: 6px; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* Farbige Flächen */
.tint-blue { background: var(--tint-blue); }
.tint-red { background: var(--tint-red); }
.tint-yellow { background: var(--tint-yellow); }
.tint-green { background: var(--tint-green); }
.tint-violet { background: var(--tint-violet); }
.tint-pink { background: var(--tint-pink); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.wm { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -.035em; line-height: 1; display: inline-flex; align-items: baseline; }
.wm-o { display: inline-block; width: .6em; height: .66em; margin: 0 .035em 0 .03em; align-self: baseline; transform: translateY(.085em); overflow: visible; }
.logo-icon { width: 30px; height: 30px; flex: none; display: none; }
.logo:hover .wm-o { transform: translateY(.12em); }
.logo:hover .wm-o .wm-top { transform: translateY(1.6px); }
.wm-o, .wm-o .wm-top { transition: transform .12s ease; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--bg-overlay); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-full); color: var(--ink-2); font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--sun-t); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-right .btn { display: none; }
  .mobile-nav.open {
    display: flex; flex-direction: column; gap: 2px; padding: 10px var(--pad) 18px;
    background: var(--card); border-bottom: 1px solid var(--border);
  }
  .mobile-nav a { padding: 12px 0; font-family: var(--font-display); font-weight: 500; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
}

/* ---------- Fusszeile ---------- */
.site-footer { margin-top: 112px; background: var(--ink); color: #fff; padding: 64px 0 36px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; background-image: repeating-linear-gradient(to bottom, transparent 0 4px, var(--ink) 4px 6px); }
.site-footer .logo { color: #fff; }
.site-footer .wm { font-size: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-claim { margin-top: 14px; max-width: 320px; font-size: 15px; color: #B9BDC9; }
.footer-tag { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--sun); }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: #8D92A0; font-weight: 500; margin-bottom: 14px; }
.footer-grid a { display: block; color: #D9DCE4; padding: 4px 0; font-size: 15px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8D92A0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 9vw, 108px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); margin-top: 12px; max-width: 680px; }

/* Kopf der Unterseiten */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background: var(--paper-2); }
.page-head h1 { font-size: clamp(40px, 5.4vw, 64px); margin-top: 14px; }
.page-head h1 em, .section-head h2 em { font-style: normal; color: var(--coral); }
.page-head p { color: var(--fg-muted); margin-top: 12px; max-width: 640px; font-size: 17px; }

/* Kurze Meldung unten */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 4px 0 #000, var(--shadow-lift); max-width: min(92vw, 560px); text-align: center;
  transition: opacity .25s, transform .25s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
