/* ============================================================
   bitewise — DRAFT 2 "SPIELWIESE"
   Verspielt-kinetisch · Farbblock · premium
   Geteiltes Design-System für alle Unterseiten.
   ============================================================ */

/* -------- 1 · CI-Tokens ----------------------------------- */
:root {
  --ink:      #151311;
  --bone:     #F1EFE7;
  --coral:    #EE4230;
  --coral-deep:#D6321F;
  --warmgray: #6B6356;
  --card:     #F4F1E9;
  --line:     #D7D0C0;

  --ink-90:   rgba(21, 19, 17, 0.90);
  --ink-12:   rgba(21, 19, 17, 0.12);
  --bone-70:  rgba(241, 239, 231, 0.70);

  /* Typo */
  --display: "Bricolage Grotesque", "Times New Roman", serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;

  /* Maße */
  --shell:   clamp(1.1rem, 5vw, 6rem);
  --maxw:    1400px;
  --radius:  26px;
  --radius-pill: 999px;

  /* Motion */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft:   cubic-bezier(.22, 1, .36, 1);

  /* Fluid type scale */
  --fs-mega:  clamp(3.4rem, 14vw, 12rem);
  --fs-h1:    clamp(2.6rem, 8vw, 6.4rem);
  --fs-h2:    clamp(2rem, 5.2vw, 4.2rem);
  --fs-h3:    clamp(1.4rem, 2.6vw, 2.1rem);
  --fs-lead:  clamp(1.15rem, 1.7vw, 1.5rem);
  --fs-body:  clamp(1rem, 1.15vw, 1.12rem);
  --fs-kick:  clamp(.72rem, .9vw, .82rem);
}

/* -------- 2 · Reset / Basis -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: var(--coral); color: var(--bone); }

/* -------- 3 · Layout-Helfer -------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--shell);
}
.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Farbblock-Panels */
.panel-ink   { background: var(--ink);  color: var(--bone); }
.panel-coral { background: var(--coral); color: var(--bone); }
.panel-bone  { background: var(--bone); color: var(--ink); }
.panel-card  { background: var(--card); color: var(--ink); }
.panel-ink a, .panel-coral a { color: inherit; }

/* Diagonale / runde Übergänge zwischen Blöcken */
.block-round-top    { border-radius: clamp(28px, 6vw, 72px) clamp(28px, 6vw, 72px) 0 0; }
.block-round-bottom { border-radius: 0 0 clamp(28px, 6vw, 72px) clamp(28px, 6vw, 72px); }

/* -------- 4 · Typografie ----------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.display-mega {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-mega);
  line-height: 0.82;
  letter-spacing: -0.035em;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1; }

.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 46ch; }
.measure { max-width: 58ch; }
.measure-sm { max-width: 40ch; }

.kicker {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--fs-kick);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.kicker::before {
  /* Punktpaar-Atom als Kicker-Marke */
  content: "";
  width: 1.5em; height: .5em;
  background-image: radial-gradient(circle, var(--coral) 42%, transparent 46%),
                    radial-gradient(circle, var(--coral) 42%, transparent 46%);
  background-size: .5em .5em;
  background-position: left center, right center;
  background-repeat: no-repeat;
}
.kicker--num { color: var(--coral); }

.giant-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.coral-text { color: var(--coral); }
.serifish em { font-style: italic; }

/* -------- 5 · Punktpaar-Atom (statisch) -------------------- */
.dotpair {
  display: inline-flex;
  gap: .42em;
  vertical-align: middle;
}
.dotpair > span {
  width: .58em; height: .58em;
  border-radius: 50%;
  background: var(--coral);
  display: block;
}
.dotpair--lg > span { width: 1.1rem; height: 1.1rem; }

/* Floating dots (per JS positioniert) */
#dotfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  display: none;
}
.float-dot {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--coral);
  will-change: transform;
  box-shadow: 0 6px 22px rgba(238, 66, 48, .35);
}

/* -------- 6 · Navigation ----------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone-70);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding-block: .7rem;
}
.nav__logo img { height: 26px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: clamp(.4rem, 2vw, 1.7rem);
}
.nav__link {
  font-weight: 600;
  font-size: .98rem;
  padding: .45rem .2rem;
  position: relative;
  transition: color .25s var(--ease-soft);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: .15rem;
  width: 100%; height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-soft);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--coral); }
.nav__link:hover::after, .nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

.nav__toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  color: var(--ink);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 26px; height: 26px; }

/* -------- 7 · Buttons / Pills ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--body); font-weight: 700;
  font-size: 1.02rem; line-height: 1;
  padding: 1.05em 1.7em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .35s var(--ease-spring),
              background .25s var(--ease-soft),
              color .25s var(--ease-soft),
              box-shadow .3s var(--ease-soft);
  will-change: transform;
  text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.btn--coral { background: var(--coral); color: var(--bone); }
.btn--coral:hover { background: var(--coral-deep); transform: translateY(-3px) rotate(-1.2deg); box-shadow: 0 14px 34px rgba(238,66,48,.34); }

.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { transform: translateY(-3px) rotate(1deg); box-shadow: 0 14px 34px rgba(21,19,17,.28); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); transform: translateY(-3px); }

.btn--ghost-light { background: transparent; color: var(--bone); border-color: var(--bone-70); }
.btn--ghost-light:hover { background: var(--bone); color: var(--ink); transform: translateY(-3px); }

.btn--lg { font-size: 1.15rem; padding: 1.25em 2.1em; }

.btn .arrow { transition: transform .3s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(5px); }

/* magnetic button hook (JS setzt --mx/--my) */
.magnetic { transform: translate(var(--mx, 0), var(--my, 0)); }

/* -------- 8 · Marquee / Laufschrift ------------------------ */
.marquee {
  overflow: hidden;
  border-block: 2px solid currentColor;
  padding-block: .55rem;
  user-select: none;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2.8rem);
  letter-spacing: -0.01em;
  padding-inline: .55em;
  display: inline-flex; align-items: center; gap: .55em;
}
.marquee__dot {
  width: .42em; height: .42em; border-radius: 50%;
  background: var(--coral); display: inline-block; flex: none;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------- 9 · Karten (Flächen) ----------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.flcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-soft);
  position: relative;
  will-change: transform;
}
.flcard:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 26px 50px rgba(21,19,17,.16); }
.flcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.flcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-soft), filter .5s var(--ease-soft);
}
.flcard:hover .flcard__media img { transform: scale(1.06); }
.flcard__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.flcard__loc {
  font-size: var(--fs-kick); letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--warmgray);
}
.flcard__name { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.flcard__cap {
  display: inline-flex; align-items: baseline; gap: .4em;
  font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; color: var(--coral); margin-top: .2rem;
}
.flcard__cap small { font-family: var(--body); font-weight: 600; font-size: .8rem; color: var(--warmgray); letter-spacing: .02em; }
.flcard__desc { color: var(--warmgray); font-size: .98rem; }
.flcard__link {
  margin-top: auto; padding-top: .9rem;
  font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: .5em;
}
.flcard__link .arrow { transition: transform .3s var(--ease-spring); }
.flcard:hover .flcard__link .arrow { transform: translateX(5px); }

/* großer Index-Tag in Karten-Ecke */
.flcard__index {
  position: absolute; top: .9rem; right: 1.1rem;
  font-family: var(--display); font-weight: 800;
  font-size: 1.1rem; color: var(--bone);
  background: var(--ink); border-radius: 999px;
  width: 2.3em; height: 2.3em; display: grid; place-items: center;
  z-index: 2;
}

/* -------- 10 · Section-Header ------------------------------ */
.shead { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.shead--split {
  flex-direction: row; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.shead__title { max-width: 16ch; }

/* -------- 11 · Format-Pills / Chips ------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  padding: .5em 1.05em;
  border-radius: var(--radius-pill);
  border: 2px solid currentColor;
  transition: transform .3s var(--ease-spring), background .25s, color .25s;
  will-change: transform;
  display: inline-flex; align-items: center; gap: .5em;
}
.chip:hover { transform: rotate(-2deg) scale(1.04); background: var(--coral); border-color: var(--coral); color: var(--bone); }
.chip__dot { width: .4em; height: .4em; border-radius: 50%; background: var(--coral); }
.chip:hover .chip__dot { background: var(--bone); }

/* -------- 12 · Prozess / Steps ----------------------------- */
.steps { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { display: flex; flex-direction: column; gap: .7rem; }
.step__n { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1; color: var(--coral); }
.step h3 { font-size: var(--fs-h3); }
.step p { color: inherit; opacity: .82; }

/* -------- 13 · Pull-Quote ---------------------------------- */
.pullquote {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
  max-width: 18ch;
}
.pullquote .dotpair { transform: translateY(-.1em); }

/* -------- 14 · Stat-Reihe ---------------------------------- */
.stats { display: grid; gap: clamp(1.5rem,4vw,3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%,160px),1fr)); }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem,6vw,4.6rem); line-height: .9; }
.stat__lbl { font-weight: 600; color: var(--warmgray); margin-top: .4rem; }
.panel-ink .stat__lbl, .panel-coral .stat__lbl { color: var(--bone-70); }

/* -------- 15 · Bildbehandlung ------------------------------ */
.media-frame { border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-32 { aspect-ratio: 3/2; }
.ratio-11 { aspect-ratio: 1/1; }
.ratio-916 { aspect-ratio: 9/16; }
.img-duo { filter: grayscale(1) contrast(1.06); }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: .82rem; color: var(--warmgray); margin-top: .6rem; letter-spacing: .01em; }

/* -------- 16 · Formular ------------------------------------ */
.form { display: grid; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { color: var(--warmgray); font-size: .85rem; }
.input, .select, .textarea {
  font: inherit;
  padding: .95rem 1.1rem;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--bone);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(238,66,48,.16);
}
.field-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
.checkbox { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--warmgray); }
.checkbox input { margin-top: .2rem; width: 1.2rem; height: 1.2rem; accent-color: var(--coral); flex: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success {
  display: none;
  padding: 1.6rem 1.8rem; border-radius: var(--radius);
  background: var(--ink); color: var(--bone);
  align-items: center; gap: 1rem;
}
.form__success.is-visible { display: flex; }
.demo-note { font-size: .8rem; color: var(--warmgray); }

/* -------- 17 · Footer -------------------------------------- */
.footer { background: var(--ink); color: var(--bone); padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; }
.footer__grid {
  display: grid; gap: clamp(2rem,4vw,3rem);
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}
.footer__logo img { height: 30px; margin-bottom: 1.2rem; }
.footer__tag { color: var(--bone-70); max-width: 32ch; }
.footer h4 { font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-70); margin-bottom: 1rem; }
.footer__list li { margin-bottom: .55rem; }
.footer__list a { transition: color .2s; }
.footer__list a:hover, .footer__list a:focus-visible { color: var(--coral); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.6rem; border-top: 1px solid rgba(241,239,231,.16);
  font-size: .85rem; color: var(--bone-70);
}
.footer__bottom .dotpair > span { width: .5rem; height: .5rem; }

/* -------- 18 · Reveal / Motion-Klassen --------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

.wobble:hover { animation: wobble .5s var(--ease-spring); }
@keyframes wobble {
  0%,100% { transform: rotate(0); }
  30% { transform: rotate(-2.5deg); }
  60% { transform: rotate(1.8deg); }
}

/* coral konfetti burst (JS) */
.confetti {
  position: fixed; width: 11px; height: 11px; border-radius: 50%;
  background: var(--coral); pointer-events: none; z-index: 70;
  will-change: transform, opacity;
}

/* -------- 19 · Diverse Utilities --------------------------- */
.stack > * + * { margin-top: var(--gap, 1.2rem); }
.flow > * + * { margin-top: 1rem; }
.eyebrow-line { display: flex; align-items: center; gap: 1rem; }
.eyebrow-line::after { content: ""; height: 2px; flex: 1; background: currentColor; opacity: .25; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: .35em .8em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--warmgray);
}
.center { text-align: center; }
.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--ink); color: var(--bone); padding: .8rem 1.4rem; border-radius: 0 0 14px 14px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* split-hero asym grid */
.asym { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 880px) {
  .asym--7-5 { grid-template-columns: 1.35fr 1fr; }
  .asym--5-7 { grid-template-columns: 1fr 1.35fr; }
}

/* -------- 20 · Hero ---------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__wrap { padding-block: clamp(3rem, 9vw, 8rem) clamp(2rem, 5vw, 4rem); position: relative; z-index: 2; }
.hero__title { margin-block: .2em .4em; }
.hero__title .line { display: block; }
.hero__title .swash { color: var(--coral); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2.6rem; margin-top: 2.6rem; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.hero__meta span { color: var(--bone-70); font-size: .85rem; letter-spacing: .04em; }
.hero__blob {
  position: absolute; z-index: 1; border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  background: var(--coral); opacity: .9; filter: blur(2px);
  width: 38vw; height: 38vw; max-width: 540px; max-height: 540px;
  right: -8vw; top: -6vw; pointer-events: none;
  animation: blobspin 22s linear infinite;
}
@keyframes blobspin { to { transform: rotate(360deg); } }

/* -------- 21 · Breakpoints --------------------------------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bone); border-bottom: 1px solid var(--line);
    padding: 1.4rem var(--shell) 2rem; gap: .4rem;
    transform: translateY(-130%); transition: transform .4s var(--ease-soft);
    box-shadow: 0 20px 40px rgba(21,19,17,.12);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links .nav__link { font-size: 1.3rem; width: 100%; }
  .nav__links .btn { margin-top: .6rem; }
  .nav__toggle { display: inline-flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__blob { display: none; }
}

/* -------- 22 · prefers-reduced-motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__blob { animation: none !important; }
  #dotfield { display: none !important; }
}

/* ============================================================
   23 · ADDITIVE Erweiterungen für Unterseiten (Stufe 2)
   Brechen keine bestehenden Regeln; nur neue Klassen.
   ============================================================ */

/* -- Brotkrumen (flaeche.html) ------------------------------ */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6em;
  font-weight: 700; font-size: var(--fs-kick);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-70); margin-bottom: 1.4rem;
}
.crumbs a { transition: color .2s; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--coral); }
.crumbs [aria-current="page"] { color: var(--bone); }

/* -- Galerie (flaeche.html) --------------------------------- */
.gallery {
  display: grid; gap: clamp(.8rem, 1.6vw, 1.2rem);
  grid-template-columns: repeat(2, 1fr);
}
.gallery figure { display: flex; flex-direction: column; }
.gallery figure.media-frame { background: var(--ink); }
.gallery__big { grid-column: 1 / -1; }
.gallery__big img { aspect-ratio: 16 / 9; }
.gallery figure:not(.gallery__big) img { aspect-ratio: 4 / 3; }
.gallery figcaption { padding: .55rem .2rem 0; }
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; }
}

/* -- Eckdaten-Liste (flaeche.html) -------------------------- */
.speclist {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border-top: 2px solid var(--line);
}
.spec {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.2rem 1.4rem 1.2rem 0;
  border-bottom: 2px solid var(--line);
}
.spec dt {
  font-size: var(--fs-kick); letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--warmgray);
}
.spec dd {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.1;
}

/* -- Vergleichstabelle (flaechen.html) ---------------------- */
.ftable {
  width: 100%; border-collapse: collapse; min-width: 640px;
  font-size: 1rem;
}
.ftable caption { caption-side: top; }
.ftable th, .ftable td {
  text-align: left; padding: 1rem 1.2rem 1rem 0;
  border-bottom: 1px solid var(--line); vertical-align: baseline;
}
.ftable thead th {
  font-family: var(--body); font-weight: 700;
  font-size: var(--fs-kick); letter-spacing: .18em; text-transform: uppercase;
  color: var(--warmgray); border-bottom: 2px solid var(--ink);
}
.ftable tbody th[scope="row"] {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink);
  white-space: nowrap;
}
.ftable tbody td { color: var(--warmgray); }
.ftable tbody tr:hover { background: var(--card); }

/* -- Kontakt-Karten (kontakt.html) -------------------------- */
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--bone);
}
.contact-card.panel-ink { border-color: transparent; }
.contact-card__name {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1;
  margin-top: .6rem;
}
.pledge {
  display: flex; align-items: center; gap: .6em;
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* -- AA-Lesbarkeit auf Coral-Flächen ------------------------ */
/* bone auf coral = 3.34:1 → nur als großer/fetter Text AA-sicher.
   Fließtext auf coral daher kräftiger setzen, keine reduzierte
   Deckkraft, und bone (nicht bone-70) erzwingen. */
.panel-coral .lead { color: var(--bone); font-weight: 500; }
/* Kicker-Punktpaar auf Coral: coral-auf-coral wäre unsichtbar → bone */
.panel-coral .kicker::before {
  background-image: radial-gradient(circle, var(--bone) 42%, transparent 46%),
                    radial-gradient(circle, var(--bone) 42%, transparent 46%);
}
.panel-coral .step p,
.panel-coral p:not(.kicker):not(.demo-note) { opacity: 1; }
.panel-coral .step h3 { color: var(--bone); }

/* -- Formular-Fehlerzustände (kontakt.html) ----------------- */
.field__error {
  color: var(--coral); font-size: .85rem; font-weight: 600;
}
.input.is-error, .select.is-error, .textarea.is-error {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(238, 66, 48, .12);
}
