/* TopfKompass, Marken-Schicht: Schriften, Farbwelt, Grundgeruest, Kopf/Fuss,
   Hero, Kennzahlen, Bento-Werkzeuge, Vertrauens-Sektion, Pictos.
   Komponenten liegen in site.css.
   Design-Sprache: warm-menschlich (Community-Plattform), warmes Papier,
   Espresso-Tinte, Koralle als einziger lauter Ton, grosse Radien,
   weiche Schatten, Duotone-Pictos. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-var.woff2?v=2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-var.woff2?v=2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-italic-var.woff2?v=2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* Kontraste auf Papier #FBF6EF: ink 15.1:1, ink-2 7.4:1, coral-ink 4.9:1 (nur
   fett/gross), coral-deep 6.5:1, Weiss auf espresso 14.9:1. */
:root {
  --papier: #FBF6EF;
  --papier-2: #F4EADE;
  --karte: #FFFDFA;
  --tinte: #241C17;
  --tinte-2: #574A41;
  --tinte-3: #7d6f63;
  --espresso: #271C15;
  --koralle: #E5533D;
  --koralle-ink: #BF3826;
  --koralle-tief: #A22C1D;
  --koralle-hell: #F2856F;
  --honig: #E3A24A;
  --pfirsich: #FBE3D5;
  --sand: #EFE2D2;
  --gruen-ok: #3f5a3d;
  --hairline: rgba(36, 28, 23, 0.12);
  --hairline-soft: rgba(36, 28, 23, 0.07);
  --schatten-1: 0 1px 2px rgba(53, 34, 20, 0.05), 0 6px 16px -8px rgba(53, 34, 20, 0.14);
  --schatten-2: 0 2px 6px rgba(53, 34, 20, 0.06), 0 24px 48px -20px rgba(53, 34, 20, 0.28);
  --schatten-lift: 0 30px 60px -28px rgba(120, 50, 28, 0.42);
  --radius: 14px;
  --radius-gross: 22px;
  --radius-riesig: 34px;
  --radius-xl: 44px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --schrift-display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", sans-serif;
  --schrift-text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* warmes Papierkorn ueber allem */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60;
  pointer-events: none; opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 {
  font-family: var(--schrift-display); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.06; color: var(--tinte);
  font-optical-sizing: auto;
}
a { color: var(--koralle-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--koralle-tief); }
::selection { background: var(--koralle); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--koralle);
  outline-offset: 2px;
}
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--koralle-ink);
  color: #fff; padding: 8px 14px; z-index: 110;
}
.skip-link:focus { left: 8px; }

/* Ueberzeile: Punkt + Versalien, das wiederkehrende Ordnungselement */
.zeile-label {
  display: inline-flex; align-items: center; gap: 0.55em; margin: 0;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--koralle-ink);
}
.zeile-label .tick {
  width: 7px; height: 7px; border-radius: 50%; background: var(--koralle);
  flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(229, 83, 61, 0.16);
}

/* Pictos: Duotone-Kacheln, Flaeche Pfirsich, Zeichnung Koralle-Tinte */
.picto {
  width: 56px; height: 56px; border-radius: 18px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--pfirsich); color: var(--koralle-ink);
  box-shadow: inset 0 0 0 1px rgba(191, 56, 38, 0.14);
}
.picto svg { width: 34px; height: 34px; display: block; }
.picto-gross { width: 84px; height: 84px; border-radius: 26px; }
.picto-gross svg { width: 52px; height: 52px; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 100;
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(251, 246, 239, 0.82);
  border-bottom: 1px solid var(--hairline-soft);
}
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1.2rem; }
.marke {
  display: inline-flex; align-items: center; gap: 0.62rem;
  font-family: var(--schrift-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.02em; color: var(--tinte); text-decoration: none; white-space: nowrap;
}
.marke:hover { color: var(--tinte); }
.marke svg { width: 34px; height: 34px; flex: 0 0 auto; }
.kopf-nav { display: flex; align-items: center; gap: 1.8rem; font-size: 0.96rem; font-weight: 500; }
.kopf-nav a { position: relative; padding: 0.2em 0; color: var(--tinte-2); text-decoration: none; transition: color 0.2s; }
.kopf-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--koralle); border-radius: 2px; transition: right 0.3s var(--ease);
}
.kopf-nav a:hover { color: var(--tinte); }
.kopf-nav a:hover::after { right: 0; }
.kopf-rechts { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.badge-demo {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tinte-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 11px;
}
.pass-aktiv { font-size: 0.9rem; font-weight: 600; color: var(--gruen-ok); }
@media (max-width: 760px) {
  .kopf-zeile { flex-wrap: wrap; row-gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .kopf-nav { gap: 1.1rem; }
}

/* Fuss: hell und aufgeraeumt */
.fuss {
  margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--hairline-soft);
  padding: clamp(36px, 5vw, 56px) 0 clamp(30px, 4vw, 44px);
}
.fuss-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; justify-content: space-between; }
.fuss .marke { font-size: 1.05rem; }
.fuss .marke svg { width: 28px; height: 28px; }
.fuss p { margin: 8px 0 0; font-size: 0.88rem; color: var(--tinte-2); max-width: 78ch; }
@media (max-width: 720px) { .fuss-zeile { flex-direction: column; align-items: flex-start; } }

/* Auftakt: Typo links, schwebende UI-Kaertchen rechts */
.auftakt { position: relative; padding: clamp(46px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); overflow: visible; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none; }
.blob-1 { width: min(38vw, 440px); aspect-ratio: 1; right: -8%; top: -14%; background: radial-gradient(circle at 35% 30%, var(--pfirsich), rgba(251, 227, 213, 0) 70%); }
.blob-2 { width: min(30vw, 340px); aspect-ratio: 1; right: 8%; bottom: -18%; background: radial-gradient(circle at 50% 50%, rgba(227, 162, 74, 0.28), rgba(227, 162, 74, 0) 70%); }
.blob-3 { width: min(26vw, 300px); aspect-ratio: 1; left: -14%; bottom: -8%; background: radial-gradient(circle at 50% 50%, rgba(229, 83, 61, 0.14), rgba(229, 83, 61, 0) 72%); }
.auftakt-zeile { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.auftakt-text { position: relative; z-index: 2; max-width: 640px; }
.auftakt h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin: 0.55rem 0 0; }
.schwung { position: relative; white-space: nowrap; color: var(--koralle-ink); }
.schwung svg {
  position: absolute; left: -2%; right: -2%; bottom: -0.16em;
  width: 104%; height: 0.36em; color: var(--koralle);
}
.auftakt-claim { margin: 1.35rem 0 0; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--tinte-2); max-width: 34em; }
.auftakt-micro { margin: 1.25rem 0 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--tinte-3); }
.auftakt-micro svg { width: 16px; height: 16px; color: var(--koralle); flex: 0 0 auto; }

/* schwebende Kaertchen */
.auftakt-buehne { position: relative; z-index: 2; min-height: 360px; }
.schwebe-karte {
  position: relative; z-index: 3; background: var(--karte);
  border: 1px solid var(--hairline); border-radius: var(--radius-gross);
  box-shadow: var(--schatten-lift); padding: 1.05rem 1.15rem;
}
.sk-beleg { max-width: 300px; margin-left: auto; }
.sk-plan { max-width: 255px; margin-top: 1.1rem; transform: translateX(-6%); }
.sk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
.sk-titel { font-family: var(--schrift-display); font-weight: 600; font-size: 1rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.74rem; font-weight: 600;
  padding: 0.28em 0.6em; border-radius: 999px; letter-spacing: 0.01em;
}
.pill-aktiv { background: rgba(94, 122, 92, 0.14); color: var(--gruen-ok); }
.pill-aktiv .dot { width: 6px; height: 6px; border-radius: 50%; background: #5e7a5c; }
.beleg-zeile {
  display: flex; align-items: center; gap: 0.55rem; font-size: 0.86rem;
  color: var(--tinte-2); padding: 0.5rem 0; border-top: 1px solid var(--hairline-soft);
}
.beleg-zeile svg { width: 18px; height: 18px; color: var(--koralle); flex: 0 0 auto; }
.beleg-link { display: inline-flex; align-items: center; gap: 0.35em; color: var(--koralle-ink); font-weight: 600; font-size: 0.86rem; text-decoration: none; }
.beleg-link svg { width: 13px; height: 13px; }
.plan-zeile { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--tinte-2); margin: 0.5rem 0; }
.plan-balken { height: 9px; border-radius: 999px; flex: 0 0 auto; }
.plan-nr {
  width: 20px; height: 20px; border-radius: 50%; background: var(--sand); color: var(--tinte-2);
  font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto;
}
@media (max-width: 1000px) {
  .auftakt-zeile { grid-template-columns: 1fr; gap: 8px; }
  .auftakt-buehne { min-height: 0; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
  .sk-beleg, .sk-plan { margin: 0; transform: none; flex: 1 1 260px; }
  .blob-1 { right: -30%; top: -30%; }
  .blob-2, .blob-3 { display: none; }
}

/* Kennzahlen: warme grosse Karte */
.kennzahlen { padding: clamp(26px, 4vw, 48px) 0 0; }
.kennzahlen-karte {
  background: linear-gradient(180deg, var(--papier-2), #F1E5D6);
  border: 1px solid var(--hairline-soft); border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
  position: relative; overflow: hidden;
}
.kennzahlen-karte::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(229, 83, 61, 0.1), transparent 70%);
  pointer-events: none;
}
.kennzahl { position: relative; z-index: 1; }
.kennzahl + .kennzahl { border-left: 1px solid var(--hairline-soft); padding-left: clamp(20px, 3vw, 40px); }
.kennzahl b {
  display: block; font-family: var(--schrift-display); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1; font-size: clamp(2.3rem, 3.6vw, 3.3rem);
  font-variant-numeric: tabular-nums;
}
.kennzahl b span { color: var(--koralle-ink); }
.kennzahl small { display: block; margin-top: 0.6rem; font-size: 0.92rem; color: var(--tinte-2); line-height: 1.45; max-width: 15em; }
@media (max-width: 1000px) {
  .kennzahlen-karte { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .kennzahl + .kennzahl { border-left: 0; padding-left: 0; }
  .kennzahl:nth-child(3), .kennzahl:nth-child(4) { border-top: 1px solid var(--hairline-soft); padding-top: 24px; }
}
@media (max-width: 560px) {
  .kennzahlen-karte { grid-template-columns: 1fr; }
  .kennzahl + .kennzahl { border-top: 1px solid var(--hairline-soft); padding-top: 22px; }
}

/* Sektions-Koepfe und Rhythmus */
.sektion { padding: clamp(56px, 8vw, 110px) 0 0; }
.sektion-kopf { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sektion-kopf h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0.8rem 0 0; }
.sektion-kopf p { margin: 1rem 0 0; color: var(--tinte-2); font-size: clamp(1rem, 1.4vw, 1.14rem); }

/* Werkzeuge als Bento-Raster */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.werkzeug {
  position: relative; overflow: hidden;
  background: var(--karte); border: 1px solid var(--hairline);
  border-radius: var(--radius-riesig); padding: clamp(24px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: 1rem; margin: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.werkzeug:hover { transform: translateY(-4px); box-shadow: var(--schatten-2); border-color: rgba(36, 28, 23, 0.16); }
.werkzeug-breit { grid-column: span 7; }
.werkzeug-schmal { grid-column: span 5; }
.werkzeug-nr {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--schrift-display); font-weight: 700; font-size: 1rem;
  color: var(--tinte-3); opacity: 0.5;
}
.werkzeug h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 0; }
.werkzeug p { margin: 0; color: var(--tinte-2); font-size: 1rem; max-width: 38em; }
.werkzeug-detail { margin-top: auto; padding-top: 0.4rem; }
.werkzeug .mehr { display: inline-flex; align-items: center; gap: 0.35em; margin-top: 0.2rem; font-size: 0.92rem; font-weight: 600; }
@media (max-width: 1000px) { .werkzeug-breit, .werkzeug-schmal { grid-column: span 6; } }
@media (max-width: 720px) { .bento { grid-template-columns: 1fr; } .werkzeug-breit, .werkzeug-schmal { grid-column: span 1; } }

/* Vertrauens-Sektion: dunkler Espresso-Anker */
.vertrauen {
  background: var(--espresso); color: var(--papier);
  border-radius: var(--radius-xl); position: relative; overflow: hidden;
}
.vertrauen-zeile {
  padding: clamp(48px, 6vw, 84px) clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 4vw, 60px);
  align-items: center; position: relative; z-index: 2;
}
.vertrauen::before {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(229, 83, 61, 0.34), transparent 68%);
  pointer-events: none;
}
.vertrauen::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(227, 162, 74, 0.2), transparent 70%);
  pointer-events: none;
}
.vertrauen .zeile-label { color: var(--koralle-hell); }
.vertrauen .zeile-label .tick { background: var(--koralle-hell); box-shadow: 0 0 0 4px rgba(242, 133, 111, 0.2); }
.gross-wert {
  font-family: var(--schrift-display); font-weight: 700; letter-spacing: -0.03em;
  line-height: 0.95; font-size: clamp(3.2rem, 7.5vw, 6rem); color: #fff; margin-top: 1rem;
}
.gross-wert span { color: var(--koralle-hell); }
.gross-sub { margin-top: 0.5rem; font-size: 1.05rem; color: rgba(251, 246, 239, 0.72); max-width: 20em; }
.vertrauen-zitat h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; margin: 0; }
.vertrauen-zitat p { margin: 1.1rem 0 0; color: rgba(251, 246, 239, 0.66); font-size: 0.95rem; }
.vertrauen-zitat .quelle-zeit {
  margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--koralle-hell); font-weight: 600;
}
.vertrauen-zitat .quelle-zeit svg { width: 16px; height: 16px; }
@media (max-width: 1000px) { .vertrauen-zeile { grid-template-columns: 1fr; gap: 2rem; } }

/* Sanfter Seiteneinstieg */
@media (prefers-reduced-motion: no-preference) {
  .rein { opacity: 0; transform: translateY(18px); animation: rein-anim 0.8s var(--ease) forwards; }
  .rein-2 { animation-delay: 0.12s; } .rein-3 { animation-delay: 0.22s; }
  .rein-4 { animation-delay: 0.32s; } .rein-5 { animation-delay: 0.44s; } .rein-6 { animation-delay: 0.56s; }
  @keyframes rein-anim { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
