/* Haus Ahrenberg — Konzeptprojekt (Phase R12)
   Eigenes Design-System, bewusst nicht die Tokens der Hauptseite.
   Kein Kartenraster, keine Schatten auf Inhaltsflaechen, keine Icons.
   Bildbaender mit gedeckelter Hoehe (Spec §8 s). */

@font-face {
  font-family: 'Prata';
  src: url('assets/fonts/Prata-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('assets/fonts/Jost-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal:  #1a1a1a;
  --charcoal-2:#242220;   /* Eingabefelder auf Anthrazit */
  --linen:     #efe9df;
  --linen-2:   #f6f2ea;   /* hellerer Tonwert, Pult und Felder */
  --linen-3:   #e6dfd2;   /* dritter Tonwert, Zimmerband */
  --linen-dim: #b3aa9c;   /* Fliesstext auf Anthrazit — 7,6:1 */
  --brass:     #a8854a;   /* nur auf Anthrazit und als Flaeche */
  --brass-ink: #7a5f2a;   /* Messing als Text auf Leinen — 5,0:1 */
  --brass-lit: #b8955a;   /* Hover auf der Messingflaeche */
  --moss:      #5c6b5a;
  --ink:       #201d1a;
  --muted:     #5d564c;   /* Fliesstext sekundaer — 6,0:1 auf Leinen */
  --line:      #d7cfc0;
  --line-2:    #c3b9a6;
  --line-dark: #38332e;

  --font-display: 'Prata', Georgia, 'Times New Roman', serif;
  --font-text: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-h1:    clamp(2.9rem, 6.2vw, 5.1rem);
  --t-h2:    clamp(1.9rem, 3.6vw, 3rem);
  --t-h3:    clamp(1.35rem, 2vw, 1.7rem);
  --t-lead:  clamp(1.0625rem, 1.3vw, 1.1875rem);
  --t-body:  1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --sec:    clamp(4rem, 8vw, 8.5rem);
  --measure: 62ch;

  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 900ms;
  --dur-fast: 260ms;

  --scale-c1: 17rem;
  --scale-c3: 4.5rem;
  --scale-gap: 2.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--brass-ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--linen);
  padding: 0.75rem 1.25rem;
  z-index: 60;
}
.skip:focus { left: 0; }

.h2 {
  font-size: var(--t-h2);
  margin: 0 0 1.25rem;
}
.h2--light { color: var(--linen); }

/* ---------- Kopf: Wortmarke zentriert, Navigation beidseitig ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: var(--linen);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
}
.head.is-scrolled {
  border-bottom-color: var(--line);
  padding-block: 0.6rem;
}

.head__mark {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.head__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: var(--t-small);
}
.head__nav--l { grid-column: 1; justify-content: flex-start; }
.head__nav--r { grid-column: 3; justify-content: flex-end; }

.head__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* Touch-Ziel, Spec §8 */
  text-decoration: none;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}
.head__nav a:hover { color: var(--ink); }

.head__action {
  color: var(--brass-ink) !important;
  border-bottom: 1px solid var(--brass-ink);
}

@media (max-width: 899px) {
  /* Wortmarke oben, alle vier Anker in EINER Zeile: 44-px-Ziele, ohne dass der
     klebende Kopf ein Drittel des Bildschirms frisst. */
  .head {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.4rem;
    padding-block: 0.5rem;
    text-align: center;
  }
  .head.is-scrolled { padding-block: 0.35rem; }
  .head__mark { order: -1; flex: 1 0 100%; }
  .head__nav--l, .head__nav--r { gap: 1.4rem; font-size: var(--t-small); }
  /* Buchungsweg liegt auf dem Handy in der Leiste am unteren Rand.
     Selektor mit derselben Spezifitaet wie `.head__nav a`, sonst gewinnt dessen
     `display: inline-flex` gegen das `display: none` (dieselbe Falle wie
     Spec §8 (k), nur zwischen zwei eigenen Regeln). */
  .head__nav a.head__action { display: none; }
}

/* ---------- Hero: Textspalte mit Pult, daneben das Bogenfenster ---------- */

.hero {
  padding: clamp(2rem, 4vw, 4rem) var(--gutter) clamp(3rem, 5vw, 5.5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero__title {
  font-size: var(--t-h1);
  margin: 0 0 1.25rem;
}

.hero__lead {
  font-weight: 300;
  font-size: var(--t-lead);
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

/* Rezeptionspult */
.desk {
  border: 1px solid var(--line-2);
  background: var(--linen-2);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  max-width: 32rem;
}
.desk__h {
  font-size: 1.0625rem;
  font-family: var(--font-text);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}
.desk__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.desk__state,
.ask__state {
  font-size: var(--t-small);
  color: var(--muted);
  margin: 0.85rem 0 0;
  min-height: 1.5em;
}
.desk__state.is-warn { color: var(--brass-ink); }
/* Auf Anthrazit traegt --muted nicht (2,4:1). Heller Tonwert statt Palette aufweichen. */
.ask__state { color: var(--linen-dim); }

.hero__window {
  overflow: hidden;
  border-radius: 50% 50% var(--r) var(--r) / 26% 26% var(--r) var(--r);
  background: var(--linen-3);
  height: clamp(20rem, 52vw, 41rem);
}
.hero__window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  will-change: transform;
}
.hero__cap {
  font-size: var(--t-micro);
  color: var(--muted);
  margin: 0;
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(24rem, 44fr) minmax(0, 56fr);
    grid-template-rows: auto auto;
    column-gap: clamp(2.5rem, 4vw, 5rem);
    align-items: start;
  }
  .hero__text { grid-column: 1; grid-row: 1 / span 2; }
  .hero__window { grid-column: 2; grid-row: 1; }
  .hero__cap { grid-column: 2; grid-row: 2; margin-top: -1.25rem; }
}

/* ---------- Formularfelder ---------- */

.field { margin: 0; display: block; }
.field label {
  display: block;
  font-size: var(--t-micro);
  color: var(--muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: border-color var(--dur-fast) var(--ease);
}
.field textarea { min-height: 5.5rem; line-height: 1.5; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea { border-color: #8f3a26; }

.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  background: var(--brass);
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--brass-lit); }

.nojs { font-size: var(--t-micro); color: var(--linen-dim); margin-top: 1rem; }
.js .nojs { display: none; }

/* ---------- Zimmer: vollflaechiger Snap-Slider ---------- */

.rooms {
  background: var(--linen-3);
  padding: var(--sec) 0;
}
.rooms__head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(2rem, 3vw, 3rem);
}
.rooms__lead {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}
.rooms__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
.rooms__nav button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.35rem 0;
  min-height: 44px;
  font-family: var(--font-text);
  font-size: var(--t-small);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.rooms__nav button:hover { color: var(--ink); }
.rooms__nav button[aria-current="true"] {
  color: var(--brass-ink);
  border-bottom-color: var(--brass-ink);
}

.rooms__track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter) 0.5rem;
  scrollbar-width: thin;
}
.room {
  flex: 0 0 min(84vw, 54rem);
  scroll-snap-align: start;
}
.room img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  background: var(--linen);
  margin-bottom: 1.25rem;
}
.room__name {
  font-size: var(--t-h3);
  margin-bottom: 0.5rem;
}
.room__data {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: var(--t-small);
  color: var(--brass-ink);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 0.5rem;
}
.room__text {
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}

.rooms__foot {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem var(--gutter) 0;
}
.rooms__count {
  font-size: var(--t-micro);
  color: var(--muted);
  font-variant-numeric: lining-nums tabular-nums;
  margin: 0;
  white-space: nowrap;
}
.rooms__rail {
  flex: 1;
  height: 1px;
  background: var(--line-2);
  position: relative;
}
.rooms__rail span {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  width: 25%;
  background: var(--brass-ink);
  transition: transform var(--dur-fast) var(--ease);
}

/* ---------- Restaurant: Anthrazit, zweispaltig ---------- */

.dine {
  background: var(--charcoal);
  color: var(--linen-dim);
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  padding: var(--sec) var(--gutter);
}
.dine__lead {
  font-size: var(--t-lead);
  font-weight: 300;
  max-width: 44ch;
  margin-bottom: 2.5rem;
}
.menu {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.menu li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.menu__no {
  font-size: var(--t-micro);
  color: var(--brass);
  padding-top: 0.35rem;
}
.menu__d {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.3;
  color: var(--linen);
}
.dine__price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--linen);
  margin-bottom: 1rem;
  font-variant-numeric: lining-nums;
}
.dine__note {
  font-size: var(--t-small);
  max-width: 52ch;
  margin: 0;
}
.dine__img img {
  width: 100%;
  height: 100%;
  max-height: 34rem;
  object-fit: cover;
  border-radius: var(--r);
}

@media (min-width: 900px) {
  .dine {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* ---------- Das Haus: Text und Parallax-Baender ---------- */

.house { padding: var(--sec) 0; }
.house__intro { padding: 0 var(--gutter); margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.house__cols { display: grid; gap: 1.5rem; }
.house__cols p { color: var(--muted); max-width: var(--measure); }
@media (min-width: 900px) {
  .house__cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.band { margin: 0 0 clamp(1.5rem, 2.5vw, 2.25rem); }
.band__clip {
  overflow: hidden;
  height: clamp(13rem, 30vw, 24rem);   /* gedeckelte Bandhoehe, Spec §8 (s) */
  background: var(--linen-3);
}
.band__clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.band figcaption {
  padding: 0.9rem var(--gutter) 0;
  font-size: var(--t-small);
  color: var(--muted);
  max-width: 62ch;
}
.house__aside {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(2.5rem, 4vw, 3.5rem);
  color: var(--muted);
  max-width: calc(var(--measure) + 2 * var(--gutter));
}

/* ---------- Umgebung: Band und Entfernungs-Skala ---------- */

.near { padding-bottom: var(--sec); }
.near__band {
  overflow: hidden;
  height: clamp(11rem, 24vw, 20rem);
  background: var(--linen-3);
}
.near__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  will-change: transform;
}
.near__body { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) 0; }
.near__lead { color: var(--muted); max-width: 46ch; margin-bottom: 2.5rem; }

.scale { font-variant-numeric: lining-nums tabular-nums; }

.scale__axis {
  position: relative;
  height: 1.5rem;
  margin-left: calc(var(--scale-c1) + var(--scale-gap));
  margin-right: var(--scale-c3);
  font-size: var(--t-micro);
  color: var(--muted);
}
.scale__axis span {
  position: absolute;
  left: calc(var(--at) / 40 * 100%);
  bottom: 0;
  white-space: nowrap;
}
.scale__axis span::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 1px;
  height: 0.35rem;
  background: var(--line-2);
}
.scale__axis span:last-child { transform: translateX(-100%); }
.scale__axis span:last-child::before { left: auto; right: 0; }

.scale__row {
  display: grid;
  grid-template-columns: var(--scale-c1) minmax(0, 1fr) var(--scale-c3);
  column-gap: var(--scale-gap);
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.scale__row:last-child { border-bottom: 1px solid var(--line); }

.scale__name { grid-area: 1 / 1; font-size: var(--t-h3); }
.scale__mode { grid-area: 2 / 1; font-size: var(--t-small); color: var(--brass-ink); margin: 0.35rem 0 0; }
.scale__track {
  grid-area: 1 / 2 / 2 / 4;
  position: relative;
  display: flex;
  align-items: center;
  height: 1.8rem;
}
.scale__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: var(--scale-c3);
  top: 50%;
  height: 1px;
  background: var(--line);
}
.scale__bar {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  width: calc(var(--to) / 40 * (100% - var(--scale-c3)));
  background: var(--brass-ink);
}
.scale__bar::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--brass-ink);
}
.scale__val { margin-left: auto; font-size: var(--t-small); white-space: nowrap; }
.scale__note {
  grid-area: 2 / 2 / 3 / 4;
  font-size: var(--t-small);
  color: var(--muted);
  margin: 0.35rem 0 0;
  max-width: 56ch;
}

@media (max-width: 819px) {
  .scale__axis { margin-left: 0; margin-right: 0; }
  .scale__row { grid-template-columns: minmax(0, 1fr); }
  .scale__name, .scale__mode, .scale__track, .scale__note { grid-area: auto; }
  .scale__track { order: 3; margin-top: 0.75rem; }
  .scale__note { order: 4; }
}

/* ---------- Gutscheine ---------- */

.gift {
  border-top: 1px solid var(--line);
  padding: var(--sec) var(--gutter);
}
.gift__body { max-width: var(--measure); }
.gift__body p { color: var(--muted); }
.gift__sums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
  margin: 1.75rem 0 1.25rem;
  font-variant-numeric: lining-nums;
}
.gift__hint { font-size: var(--t-small); }

/* ---------- Anfrage ---------- */

.ask {
  background: var(--charcoal);
  color: var(--linen-dim);
  display: grid;
  gap: clamp(2.5rem, 4vw, 4rem);
  padding: var(--sec) var(--gutter);
}
.ask__lead { font-size: var(--t-lead); font-weight: 300; max-width: 44ch; margin-bottom: 2rem; }
.ask__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.field--wide { grid-column: 1 / -1; }

.ask .field label { color: var(--linen-dim); }
.ask .field input,
.ask .field select,
.ask .field textarea {
  background: var(--charcoal-2);
  border-color: var(--line-dark);
  color: var(--linen);
  color-scheme: dark;
}
/* Ohne eigene Regel setzt Chromium #757575 - auf --charcoal-2 nur 3,44:1 (R14). */
.ask .field input::placeholder,
.ask .field textarea::placeholder { color: var(--linen-dim); opacity: 1; }
.ask .field input:hover,
.ask .field select:hover,
.ask .field textarea:hover { border-color: var(--linen-dim); }
.ask .field.is-bad input,
.ask .field.is-bad select,
.ask .field.is-bad textarea { border-color: #d98a72; }
.ask :focus-visible { outline-color: var(--brass); }
.ask .btn { width: auto; min-width: 14rem; }
.ask__state.is-warn { color: var(--brass); }

.ask__data { font-size: var(--t-small); }
.ask__h3 { font-size: var(--t-h3); color: var(--linen); margin-bottom: 1rem; }
.ask__data p { margin-bottom: 1.25rem; }
/* Telefon und E-Mail sind auf dem Handy echte Aktionen -> 44 px (Spec §8). */
.ask__data a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--linen);
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .ask { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

/* ---------- Fuss ---------- */

.foot {
  background: var(--charcoal);
  color: var(--linen-dim);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) clamp(2rem, 3vw, 3rem);
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-small);
}
.foot__grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 700px) {
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.foot__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--linen);
  margin-bottom: 0.5rem;
}
.foot__h { color: var(--linen); margin-bottom: 0.5rem; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--linen); }
/* Touch-Ziele im Fuss (Spec §8): die Navigations- und Kontaktzeilen sind
   eigenstaendige Links und brauchen 44 px Hoehe, nicht nur Zeilenabstand. */
.foot__grid a,
.foot__cred a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.foot__note {
  border: 1px solid var(--line-dark);
  padding: 1.25rem;
  max-width: 68ch;
  margin-bottom: 2rem;
}
.foot__note-h { color: var(--linen); margin-bottom: 0.4rem; }
.foot__note p:last-child { font-size: var(--t-micro); }

.foot__cred { font-size: var(--t-micro); margin-bottom: 0.35rem; }
.foot__cred a { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.foot__year { font-size: var(--t-micro); color: #8a8175; margin: 0; }

/* ---------- Sticky-Buchungsleiste (nur unter 900 px) ---------- */

.bookbar { display: none; }
.bookbar[hidden] { display: none !important; }   /* Spec §8 (k) */

@media (max-width: 899px) {
  .desk { display: none; }

  /* Die Leiste steht auf dem Handy von Anfang an da (Brief: „sticky am unteren
     Rand"). Ihre Hoehe misst app.js in --bar-h; ohne JS gibt es keine Leiste,
     also auch keinen leeren Streifen. */
  .js body { padding-bottom: calc(var(--bar-h, 9.5rem) + 0.75rem); }

  .bookbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--charcoal);
    border-top: 1px solid var(--line-dark);
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    transform: translateY(0);
    transition: transform var(--dur-fast) var(--ease);
  }
  .bookbar[hidden] { display: none !important; }
  .bookbar.is-out { transform: translateY(110%); }

  .bookbar__in {
    display: grid;
    grid-template-columns: 1fr 1fr 3.6rem;
    gap: 0.4rem 0.5rem;
  }
  .bookbar .field label {
    color: var(--linen-dim);
    font-size: var(--t-micro);   /* 13 px: 11 px war unter der Lesbarkeitsgrenze */
    margin-bottom: 0.15rem;
  }
  .bookbar .field input,
  .bookbar .field select {
    min-height: 44px;
    padding: 0.35rem 0.4rem;
    font-size: 0.9375rem;
    background: var(--charcoal-2);
    border-color: var(--line-dark);
    color: var(--linen);
    color-scheme: dark;
  }
  .bookbar .btn {
    grid-column: 1 / -1;
    min-height: 46px;
    padding: 0.5rem 1rem;
  }
  .bookbar__state {
    grid-column: 1 / -1;
    margin: 0;
    font-size: var(--t-micro);   /* 13 px statt 11 px */
    line-height: 1.35;
    color: var(--linen-dim);
    text-align: center;
    font-variant-numeric: lining-nums;
  }
  .bookbar__state.is-warn { color: var(--brass); }
  .bookbar :focus-visible { outline-color: var(--brass); }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(30rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.9rem 1.25rem;
  background: var(--charcoal);
  color: var(--linen);
  border: 1px solid var(--brass);
  border-radius: var(--r);
  font-size: var(--t-small);
}
.toast[hidden] { display: none !important; }
@media (max-width: 899px) { .toast { bottom: calc(var(--bar-h, 9.5rem) + 1.25rem); } }

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}
