/* Matratzen-Allianz – Design-System 2026
   Tokens, Basis, Komponenten. Keine Frameworks. */

:root {
  --ink: #0f1720;
  --ink-2: #1b2634;
  --ink-3: #2a3647;
  --paper: #f5f1e8;
  --paper-2: #ece6d9;
  --paper-3: #e2dbcb;
  --line: #d6cfbf;
  --muted: #5c6676;
  --steel: #2e4c7e;
  --steel-2: #6082b6;
  --steel-tint: #dce5f3;
  --signal: #ea5045;
  --signal-deep: #c93b31;
  --foam: #f3d985;
  --foam-tint: #fbf2d6;
  --moss: #2f7a5b;
  --moss-tint: #dcefe4;
  --white: #ffffff;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 8px;
  --radius: 16px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgb(15 23 32 / .06), 0 12px 32px -12px rgb(15 23 32 / .18);
  --shadow-l: 0 2px 4px rgb(15 23 32 / .08), 0 32px 64px -24px rgb(15 23 32 / .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);

  --step--1: clamp(.85rem, .82rem + .15vw, .95rem);
  --step-0: clamp(1rem, .96rem + .25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.6rem + 4vw, 4.4rem);
  --step-5: clamp(3rem, 1.8rem + 6.5vw, 6.5rem);

  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 650; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.5em; height: 2px; background: var(--signal); border-radius: 2px; }
.section--ink .eyebrow { color: var(--steel-2); }
.measure { max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--foam); color: var(--ink); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius-s);
}
.skip:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }

/* ---------- Demo-Hinweis ---------- */
.demo-hinweis {
  font-size: .8rem; line-height: 1; padding: 8px var(--gutter);
  background: var(--foam-tint); color: var(--ink-2); border-bottom: 1px solid var(--foam);
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
@media (max-width: 719px) { .brand span { display: none; } }

.primary { margin-left: auto; }
.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.primary li { position: relative; }
.primary a, .primary button.navlink {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 500; font-size: .98rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.primary a:hover, .primary button.navlink:hover, .primary a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.primary a[aria-current="page"] { font-weight: 650; }
.primary .sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: .5rem; display: none; flex-direction: column; gap: .15rem;
}
.primary li:hover > .sub, .primary li:focus-within > .sub { display: flex; }
.primary .sub a { display: block; padding: .6rem .8rem; border-radius: 10px; }
.primary .sub a small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

.lang { display: inline-flex; gap: .15rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { text-decoration: none; padding: .3rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--white); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: .25s; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  .primary {
    position: fixed; inset: 0; top: 0; z-index: 90; background: var(--paper);
    padding: 110px var(--gutter) 120px; overflow: auto; display: none;
  }
  .primary.is-open { display: block; }
  .primary ul { flex-direction: column; gap: .25rem; }
  .primary a, .primary button.navlink { font-size: 1.35rem; padding: .8rem .5rem; font-family: var(--font-display); }
  .primary .sub { position: static; display: flex; box-shadow: none; border: 0; background: none; padding: 0 0 .5rem 1rem; }
  .primary .sub a { font-size: 1.05rem; font-family: var(--font-body); }
  .header-cta { display: none; }
  .site-header.menu-open { background: var(--paper); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.1;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-3); color: var(--white); }
.btn-signal { background: var(--signal); color: var(--white); }
.btn-signal:hover { background: var(--signal-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }
.section--ink .btn-ghost, .hero:not(.hero--page) .btn-ghost, .hero--ink .btn-ghost, .cta-band .btn-ghost { color: var(--white); border-color: rgb(255 255 255 / .5); }
.section--ink .btn-ghost:hover, .hero:not(.hero--page) .btn-ghost:hover, .hero--ink .btn-ghost:hover, .cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; min-height: 36px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper-2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink a:not(.btn) { color: #a9c0e3; }
.section--ink a:not(.btn):hover { color: var(--white); }
.section-head > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section--ink .muted { color: #a9b3c2; }
.section--ink .lead, .section--steel .lead { color: #c9d1dd; }
.section--ink .hint { color: #a9b3c2; }
.section--steel { background: var(--steel); color: var(--white); }
.section--steel h2, .section--steel h3 { color: var(--white); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .section-head .lead { justify-self: end; }
}
.section-head h2 { margin: 0; }

/* ---------- Grid / Bento ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.bento { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 6; }
@media (min-width: 720px) {
  .bento > .span-2 { grid-column: span 2; } .bento > .span-3 { grid-column: span 3; }
  .bento > .span-4 { grid-column: span 4; } .bento > .span-6 { grid-column: span 6; }
}

/* ---------- Karten ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); position: relative; display: flex; flex-direction: column; gap: .75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card > p { margin: 0; color: var(--ink-2); }
.card .link-arrow { margin-top: auto; }
.card--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--ink h3 { color: var(--white); } .card--ink > p { color: #c9d1dd; } .card--ink a { color: var(--white); }
.card--steel { background: var(--steel); color: var(--white); border-color: var(--steel); }
.card--steel h3 { color: var(--white); } .card--steel > p { color: #dfe7f5; } .card--steel a { color: var(--white); }
.card--foam { background: var(--foam-tint); border-color: var(--foam); }
.card--paper { background: var(--paper-2); border-color: var(--paper-3); }
.card--flat:hover { transform: none; box-shadow: none; }
.card--image { padding: 0; overflow: hidden; }
.card--image img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card--image .card__body { padding: clamp(1.25rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: .6rem; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--steel-tint); color: var(--steel); margin-bottom: .25rem;
}
.card--ink .card__icon, .card--steel .card__icon { background: rgb(255 255 255 / .12); color: var(--white); }
.card__icon svg { width: 24px; height: 24px; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2);
}
.tag--signal { background: var(--signal); color: var(--white); }
.tag--moss { background: var(--moss-tint); color: var(--moss); }
.tag--steel { background: var(--steel-tint); color: var(--steel); }
.tag--foam { background: var(--foam); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(92vh, 900px); display: flex; align-items: flex-end;
  padding-block: clamp(5rem, 12vw, 9rem) clamp(2.5rem, 6vw, 5rem);
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(15 23 32 / .55) 0%, rgb(15 23 32 / .25) 35%, rgb(15 23 32 / .82) 100%),
    linear-gradient(90deg, rgb(15 23 32 / .55) 0%, transparent 70%);
}
.hero h1 { color: var(--white); font-size: var(--step-5); font-weight: 650; letter-spacing: -.035em; line-height: .98; max-width: 14ch; margin-bottom: 1rem; }
.hero .lead { color: #e9e4d8; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.4fr 1fr; } }
.hero__eyebrow { color: var(--foam); }
.hero__eyebrow::before { background: var(--foam); }
.hero__credit { position: absolute; right: var(--gutter); bottom: .75rem; font-size: .72rem; color: rgb(255 255 255 / .6); }
.hero--page:not(.hero--ink) .hero__credit { color: var(--muted); }

.hero--page {
  min-height: 0; color: var(--ink); align-items: start;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}
.hero--page h1 { color: var(--ink); font-size: var(--step-4); max-width: 18ch; }
.hero--page .lead { color: var(--ink-2); }
.hero--page .hero__eyebrow { color: var(--steel); } .hero--page .hero__eyebrow::before { background: var(--signal); }
.hero--page .hero__grid { align-items: center; }
.hero--page .hero__image { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); }
.hero--page .hero__image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero--ink { background: var(--ink); color: var(--paper); }
.hero--ink h1 { color: var(--white); } .hero--ink .lead { color: #c9d1dd; }
.hero--ink .hero__eyebrow { color: var(--foam); } .hero--ink .hero__eyebrow::before { background: var(--foam); }

.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span::before { content: "/"; margin-right: .5rem; color: var(--line); }

/* Einstiegskarten im Hero */
.entry { display: grid; gap: .75rem; }
.entry a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: var(--radius); text-decoration: none; color: var(--white);
  background: rgb(15 23 32 / .72); border: 1px solid rgb(255 255 255 / .18);
  transition: background .2s, transform .2s;
}
.entry a:hover { background: rgb(15 23 32 / .9); transform: translateX(4px); color: var(--white); }
.entry strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.entry small { color: #d9d4c8; font-size: .9rem; }
.entry .num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--foam); }
.entry .arrow { font-size: 1.3rem; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { border-top: 2px solid var(--line); padding-top: 1rem; }
.section--ink .stat { border-color: rgb(255 255 255 / .2); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.section--ink .stat__value { color: var(--white); }
.stat__value sup, .stat__value .unit { font-size: .45em; font-weight: 600; vertical-align: top; margin-left: .1em; color: var(--signal); }
.stat__label { margin-top: .4rem; color: var(--muted); font-size: .95rem; max-width: 26ch; }
.section--ink .stat__label { color: #a9b3c2; }
.stat__source { display: block; font-size: .75rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Zeitleiste ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2.25rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--steel); }
.timeline li.is-now::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px rgb(234 80 69 / .18); }
.timeline time, .timeline .year { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); display: block; line-height: 1; margin-bottom: .5rem; color: var(--ink); }
.timeline p { color: var(--ink-2); max-width: 62ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline::before { left: 8px; right: 8px; top: 7px; bottom: auto; height: 2px; width: auto; }
  .timeline li { padding: 2rem 1.5rem 0 0; }
  .timeline li::before { top: 0; left: 0; }
}

/* ---------- Schritte ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; padding: 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--signal); line-height: 1; padding-top: .15rem; }
.steps h3, .steps h4 { margin: 0 0 .3rem; font-size: var(--step-1); }
.steps p { margin: 0; color: var(--ink-2); }
.section--ink .steps li { background: var(--ink-2); border-color: var(--ink-3); } .section--ink .steps p { color: #c9d1dd; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .steps--row li { grid-template-columns: 1fr; } }

/* ---------- Akkordeon / FAQ ---------- */
.accordion { display: grid; gap: .5rem; }
.accordion details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center/12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/2px 12px no-repeat;
  transition: transform .25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details[open] summary { border-bottom: 1px solid var(--line); }
.accordion .body { padding: 1rem 1.25rem 1.4rem; color: var(--ink-2); }
.accordion .body p:last-child { margin: 0; }
.faq-filter { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.faq-filter input { width: 100%; }
.faq-empty { display: none; padding: 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.faq-empty.is-visible { display: block; }

/* ---------- Personen ---------- */
.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.person { display: grid; gap: .6rem; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.person strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.person span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.person a { word-break: break-word; }
.contact-card { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.contact-card strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.contact-card span { display: block; color: var(--muted); }
.contact-card a { display: block; overflow-wrap: anywhere; }
.contact-card > div { min-width: 0; }
.grid > *, .split > *, .bento > * { min-width: 0; }

/* ---------- Mitgliederliste ---------- */
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.members li a, .members li span.chip {
  display: inline-flex; flex-direction: column; gap: .05rem; padding: .6rem .9rem; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  transition: border-color .2s, transform .2s;
}
.members li a:hover { border-color: var(--steel); transform: translateY(-2px); }
.members li small { font-weight: 400; color: var(--muted); font-size: .8rem; }

/* ---------- Medien / Downloads ---------- */
.media-list { list-style: none; margin: 0; padding: 0; display: grid; }
.media-list li { display: grid; gap: .25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.media-list li:first-child { border-top: 1px solid var(--line); }
.media-list a { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); text-decoration: none; color: var(--ink); }
.media-list a:hover { color: var(--steel); text-decoration: underline; }
.media-list .meta { color: var(--muted); font-size: .9rem; display: flex; gap: .75rem; flex-wrap: wrap; }
@media (min-width: 720px) { .media-list li { grid-template-columns: 1fr auto; align-items: baseline; } }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.docs a {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 1rem; align-items: center;
  padding: .9rem 1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600;
}
.docs a:hover { border-color: var(--steel); }
.docs a::before { content: "PDF"; font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: var(--white); background: var(--signal); border-radius: 8px; padding: .5rem 0; text-align: center; }
.docs small { color: var(--muted); font-weight: 400; grid-column: 2; display: block; margin-top: -.75rem; }
.docs a { row-gap: .75rem; }
.docs a::before { grid-row: 1 / span 2; align-self: center; }
.section--ink .docs a { background: var(--ink-2); color: var(--white); border-color: var(--ink-3); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .35rem; }
label .req { color: var(--signal); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--steel-tint); border-color: var(--steel); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0; }
legend { font-weight: 600; padding: 0 .5rem; }
.choice { display: grid; gap: .5rem; }
.choice label { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; font-weight: 500; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--white); }
.choice label:has(input:checked) { border-color: var(--steel); background: var(--steel-tint); }
.choice input { width: 22px; height: 22px; min-height: 0; margin: .15rem 0 0; accent-color: var(--steel); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; font-weight: 500; }
.check input { width: 22px; height: 22px; min-height: 0; margin: .15rem 0 0; accent-color: var(--steel); }
.hint { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.notice { display: none; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--moss-tint); color: var(--moss); border: 1px solid #bfe0cf; font-weight: 500; }
.notice.is-visible { display: block; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

/* ---------- Werkzeuge (Tools) ---------- */
.tool { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.tool--ink { background: var(--ink-2); border-color: var(--ink-3); color: var(--paper); }
.tool--ink h2, .tool--ink h3 { color: var(--white); }
.tool__result { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.tool__result[hidden] { display: none; }
.tool__result h3 { margin-bottom: .5rem; }
.result-ok { border-color: #bfe0cf; background: var(--moss-tint); }
.result-warn { border-color: var(--foam); background: var(--foam-tint); }
.result-no { border-color: #f3c3bf; background: #fdecea; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
@media (max-width: 480px) { .search-row { grid-template-columns: 1fr; } }
.toggle-row { display: grid; gap: .5rem; }
.toggle-row label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; margin: 0; }
.toggle-row input { width: 44px; height: 24px; min-height: 0; appearance: none; background: var(--paper-3); border-radius: 999px; position: relative; border: 0; cursor: pointer; flex: 0 0 44px; padding: 0; }
.toggle-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: left .2s; }
.toggle-row input:checked { background: var(--moss); } .toggle-row input:checked::after { left: 23px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--ink); line-height: 1; }
.price small { font-size: .4em; color: var(--muted); font-weight: 500; }

/* Sammelstellen-Karte */
.map-wrap { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 1.1fr .9fr; } }
.map { background: var(--paper-2); border-radius: var(--radius-l); padding: 1rem; border: 1px solid var(--line); }
.map svg { width: 100%; height: auto; }
.map .canton { fill: var(--paper-3); stroke: var(--paper); stroke-width: 1.2; transition: fill .3s; }
.map .canton.is-active { fill: var(--steel-2); }
.map .pin { cursor: pointer; }
.map .pin circle { fill: var(--signal); stroke: var(--white); stroke-width: 3; transition: r .2s; }
.map .pin:hover circle, .map .pin.is-active circle { r: 11; }
.map .pin text { font: 600 12px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--paper-2); stroke-width: 4px; }
.site-list { display: grid; gap: .75rem; }
.site { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: .25rem; transition: border-color .2s; }
.site.is-active { border-color: var(--signal); box-shadow: 0 0 0 3px rgb(234 80 69 / .15); }
.site strong { font-family: var(--font-display); font-size: 1.05rem; }
.site .addr { color: var(--ink-2); }
.site .links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; margin-top: .25rem; }

/* Matratzen-Querschnitt */
.layers { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .layers { grid-template-columns: 1fr 1fr; } }
.layers svg { width: 100%; height: auto; overflow: visible; }
.layer { cursor: pointer; transition: transform .25s ease, filter .25s ease; transform-box: fill-box; transform-origin: center; }
.layer:hover, .layer.is-active { transform: translateX(14px); filter: drop-shadow(0 8px 16px rgb(15 23 32 / .25)); }
.layer-info { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); min-height: 220px; }
.layer-info h3 { display: flex; align-items: center; gap: .6rem; }
.layer-info .swatch { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }
.layer-info ul { padding-left: 1.1rem; color: var(--ink-2); }
.layer-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.layer-tabs button { font: inherit; font-weight: 600; font-size: .9rem; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.layer-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Zitat / Band ---------- */
.cta-band { border-radius: var(--radius-l); padding: clamp(2rem, 5vw, 4rem); background: var(--steel); color: var(--white); display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: #dfe7f5; margin: 0; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .18), transparent 70%); pointer-events: none; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr auto; } }
.cta-band .btn { white-space: nowrap; }
.cta-band--signal { background: var(--signal); } .cta-band--signal p { color: #fde3e0; }
.cta-band--ink { background: var(--ink); } .cta-band--ink p { color: #c9d1dd; }
.quote { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; margin: 0; }
.quote footer { font-family: var(--font-body); font-size: var(--step-0); color: var(--muted); margin-top: 1rem; font-weight: 400; }

/* ---------- News-Karten ---------- */
.news { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.news article { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.news article time, .news article .date { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.news h3 { font-size: var(--step-1); margin: 0; }
.news p { color: var(--ink-2); margin: 0; }
.news .link-arrow { margin-top: auto; }
.news article.is-featured { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.news article.is-featured h3 { color: var(--white); font-size: var(--step-2); } .news article.is-featured p { color: #c9d1dd; } .news article.is-featured a { color: var(--white); } .news article.is-featured time { color: var(--foam); }
@media (min-width: 900px) { .news article.is-featured { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; } .news article.is-featured .link-arrow { margin: 0; } }

/* ---------- Bilder / Figuren ---------- */
figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.img-round { border-radius: var(--radius-l); overflow: hidden; }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }
.prose h2 { margin-top: 2.5rem; } .prose h3 { margin-top: 2rem; } .prose ul li, .prose ol li { margin-bottom: .4rem; }
.prose > :first-child { margin-top: 0; }

/* Mobile-Leiste unten */
.mobile-bar { display: none; }
@media (max-width: 719px) {
  body { padding-bottom: 76px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: .7rem .5rem; font-size: .9rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d1dd; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid .logo-box { background: var(--white); border-radius: 12px; padding: .75rem 1rem; display: inline-block; }
.footer-grid .logo-box img { height: 36px; width: auto; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-3); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .9rem; color: #8b96a8; }
.footer-bottom a { color: #c9d1dd; }
.footer-brand img { height: 44px; width: auto; background: var(--white); border-radius: 10px; padding: 6px 8px; }

/* ---------- Bewegung ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit { animation: spin 60s linear infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Hilfsklassen ---------- */
.flow > * + * { margin-top: 1rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.kicker { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.two-col { columns: 2; column-gap: 2rem; } @media (max-width: 719px) { .two-col { columns: 1; } }
.aside-box { padding: 1.25rem; border-radius: var(--radius); background: var(--steel-tint); color: var(--ink-2); border-left: 4px solid var(--steel); }
.aside-box--foam { background: var(--foam-tint); border-color: var(--foam); }
.aside-box--signal { background: #fdecea; border-color: var(--signal); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }

/* Nachtraege */
.site-header .header-cta { display: inline-flex; }
@media (max-width: 1099px) { .site-header .header-cta { display: none; } .site-header .lang { margin-left: auto; } }
.map .canton { stroke-width: .4; }
.map .pin circle { r: 3.2; stroke-width: 1; }
.map .pin:hover circle, .map .pin.is-active circle { r: 4.4; }
.map .pin text { font-size: 6.5px; stroke-width: 1.6px; }
.map .orte text { font-size: 6px; }
.map .orte circle { r: 1; }
