/* proBoot design system
 * Goals: readable for older users (large type, strong contrast, big targets),
 * mobile-first, no external resources (privacy: no web fonts from third parties).
 * All colour pairs meet WCAG 2.2 AA (≥ 4.5:1 for text). */

/* Atkinson Hyperlegible (Braille Institute, OFL-1.1), self-hosted: designed for low-vision
 * readers, clearly distinguishes similar letters (I/l/1, O/0). */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --color-primary: #0b4a6f;        /* deep sea blue, 9.4:1 on white */
  --color-primary-hover: #083a58;
  --color-accent: #f4b740;         /* sail yellow, decoration only */
  --color-water: #e6f3f8;
  --color-text: #1a2630;
  --color-muted: #4a5a66;          /* 7:1 on white */
  --color-bg: #f7f9fa;
  --color-surface: #ffffff;
  --color-border: #8a9aa6;
  --color-focus: #c2410c;          /* high-visibility focus ring */

  --color-info: #0b4a6f;      --color-info-bg: #e6f3f8;
  --color-success: #166534;   --color-success-bg: #e8f5ec;
  --color-warning: #8a4b00;   --color-warning-bg: #fff4dc;
  --color-error: #b42318;     --color-error-bg: #fdecea;
  --color-progress: #5b21b6;  --color-progress-bg: #f1ebfd;
  --color-closed-bg: #eef1f3;      /* finished statuses, blocked calendar entries */
  --color-blocked: #6b7a86;        /* blocked times in the calendar */
  --color-divider: #e3e8ec;        /* light lines inside cards */
  --color-highlight-bg: #fffaf0;   /* a sail-yellow tint */
  --stripes-a: #f2f4f6; --stripes-b: #e7ebee;   /* closed / impossible days */

  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 0.5rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --target: 3rem;                  /* 48px minimum touch target */
  --container: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must win over component display rules (e.g. .alert is flex). */
[hidden] { display: none !important; }

html {
  font-size: 112.5%;               /* 18px base, scales with the user's browser setting */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 { line-height: 1.25; color: var(--color-primary); margin: 0 0 var(--space-2); }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-2); max-width: 65ch; }
.lead { font-size: 1.15rem; color: var(--color-muted); }

a { color: var(--color-primary); text-underline-offset: 0.2em; }
a:hover { color: var(--color-primary-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.site-main { flex: 1; padding-top: var(--space-4); padding-bottom: var(--space-6); }
.site-main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -10rem;
  z-index: 10;
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface);
  border: 3px solid var(--color-focus);
  font-weight: 700;
}
.skip-link:focus { top: var(--space-1); }

.site-header {
  background: var(--color-surface);
  border-bottom: 4px solid var(--color-accent);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-2);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--target);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
}
.brand__logo { display: block; }

.lang-switch ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  padding: 0 0.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.lang-switch a[aria-current="true"] {
  background: var(--color-primary);
  color: #fff;
}

.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) 0;
}
.site-footer a { color: #fff; }

/* ---------- Home ---------- */
.hero {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  margin-bottom: var(--space-4);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
@media (min-width: 48rem) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
}
.steps__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 600;
}
.steps__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--target);
  padding: 0.6rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button--primary { background: var(--color-primary); color: #fff; }
.button--primary:hover { background: var(--color-primary-hover); color: #fff; }
.button--secondary { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-primary); }
.button--secondary:hover { background: var(--color-water); }
.button--danger { background: var(--color-surface); color: var(--color-error); border-color: var(--color-error); }
.button--danger:hover { background: var(--color-error-bg); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* On phones, buttons fill the width: easier to hit. */
@media (max-width: 30rem) {
  .button-row .button { width: 100%; }
  .button-row > form { flex: 1 1 100%; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-3); max-width: 36rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 700; }
.field__hint { margin: 0; color: var(--color-muted); font-size: 0.95rem; }
:is(section, .card) > .field__hint { margin-bottom: var(--space-2); }
.form > p, .form > ul { margin: 0; }
.field__error { margin: 0; color: var(--color-error); font-weight: 700; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  width: 100%;
  min-height: var(--target);
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
}
input:hover, select:hover, textarea:hover { border-color: var(--color-primary); }
.field--error input, .field--error select, .field--error textarea {
  border-color: var(--color-error);
  border-width: 3px;
}

.field--check { display: flex; align-items: center; gap: 0.75rem; }
.field--check input { flex: none; width: 1.75rem; height: 1.75rem; margin: 0; accent-color: var(--color-primary); }
.field--check label { font-weight: 400; min-height: var(--target); display: flex; align-items: center; }

/* ---------- Alerts ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  border-left: 6px solid;
  border-radius: var(--radius);
}
.alert p { margin: 0; font-weight: 600; }
.alert__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.alert--info    { background: var(--color-info-bg);    border-color: var(--color-info);    color: var(--color-info); }
.alert--success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success); }
.alert--warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: var(--color-warning); }
.alert--error   { background: var(--color-error-bg);   border-color: var(--color-error);   color: var(--color-error); }
.alert--info .alert__icon    { background: var(--color-info); }
.alert--success .alert__icon { background: var(--color-success); }
.alert--warning .alert__icon { background: var(--color-warning); }
.alert--error .alert__icon   { background: var(--color-error); }

/* ---------- Cards & badges ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card + p { margin-top: var(--space-2); }
/* Cards one after another keep a gap (they touched on the status page, 2026-11-12), and the
   last element's margin does not add to the card's bottom padding. */
.card + .card { margin-top: var(--space-2); }
.card > :last-child { margin-bottom: 0; }
.card-note { color: var(--color-muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 2px solid;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap; /* a status like "In Bearbeitung" never breaks inside its pill */
}
.badge--new       { color: var(--color-info);    background: var(--color-info-bg); }
.badge--progress  { color: var(--color-progress); background: var(--color-progress-bg); }
.badge--booked    { color: var(--color-warning); background: var(--color-warning-bg); }
.badge--confirmed { color: var(--color-success); background: var(--color-success-bg); }
.badge--overdue   { color: #fff;                 background: var(--color-error); border-color: var(--color-error); }
.badge--closed    { color: var(--color-muted);   background: var(--color-closed-bg); }

/* ---------- Error page ---------- */
.error-page { text-align: center; padding: var(--space-4) 0; }
.error-page p { margin-left: auto; margin-right: auto; }
.error-page__code { font-size: 4rem; font-weight: 800; color: var(--color-primary); margin: 0; line-height: 1; }

/* ---------- Generic helpers ---------- */
.muted { color: var(--color-muted); }
.nowrap { white-space: nowrap; }
/* Request codes like "K7M-4TQ": spaced out so they read well on the phone. */
.code { letter-spacing: 0.08em; font-weight: 700; white-space: nowrap; }
.narrow { max-width: 34rem; }
.section { margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.page-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2); margin-bottom: var(--space-3);
}
.page-head h1 { margin: 0; }
.button--small { min-height: var(--target); padding: 0.4rem 1rem; } /* smaller text padding, same 48px target */
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 700; }

/* ---------- Staff: no top menu (2026-11-11) ---------- */
/* Every staff page except the dashboard links back to it; logging out sits in the footer. */
.back-to-dashboard { margin: 0 0 var(--space-2); }
.back-to-dashboard:has(+ .error-page) { display: none; }
.back-to-dashboard a { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 700; }
.footer-logout { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0 0 0 auto; }
.footer-logout__user { font-weight: 700; }

/* ---------- Dashboard tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-3);
}
.tile p { margin: 0; }
.tile__title { font-size: 1.25rem; margin-bottom: var(--space-1); }
.tile__title a { text-decoration: none; }
.tile__title a::after { content: " →"; }
.tile__title a:hover { text-decoration: underline; }
.tile--soon { border-style: dashed; background: transparent; }

/* ---------- Facts (definition list) ---------- */
.facts { display: grid; gap: var(--space-1); margin: 0 0 var(--space-3); }
.facts div { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.facts dt { font-weight: 700; min-width: 10rem; }
.facts dd { margin: 0; }

/* ---------- Tables: real tables on wide screens, stacked cards on phones ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.table th { background: var(--color-water); color: var(--color-primary); }
.table a { font-weight: 700; }
.kv { display: inline-block; margin-right: 0.75rem; color: var(--color-muted); overflow-wrap: anywhere; }

@media (max-width: 47.99rem) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    margin-bottom: var(--space-2); border: 1px solid var(--color-border);
    border-radius: var(--radius); background: var(--color-surface);
  }
  .table td { border-bottom: 1px solid var(--color-divider); overflow-wrap: anywhere; }
  .table td:last-child { border-bottom: 0; }
  .table td[data-label]::before {
    content: attr(data-label); display: block; font-size: 0.9rem; font-weight: 700; color: var(--color-muted);
  }
}

/* ---------- Checkbox groups ---------- */
.checkgroup { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-2); margin: 0; background: var(--color-surface); }
.checkgroup > legend, .formgroup > legend { float: left; width: 100%; padding: 0; color: var(--color-primary); font-weight: 700; }
.checkgroup > legend { margin-bottom: var(--space-1); }
.checkgroup > legend + * { clear: both; }

/* ---------- Catalog: forms, photos, ordering ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form--wide { max-width: 44rem; }
.formgroup {
  display: grid; gap: var(--space-3); margin: 0; padding: var(--space-3) var(--space-2);
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface);
}
.formgroup > legend { font-size: 1.2rem; }
.field__hint--below { margin-top: -0.75rem; padding-left: 2.5rem; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input[type="radio"] { width: 1.75rem; height: 1.75rem; margin: 0; accent-color: var(--color-primary); }
input[type="file"] { font: inherit; padding: 0.5rem 0; width: 100%; max-width: 100%; }
input[type="file"]::file-selector-button {
  min-height: var(--target); margin-right: 1rem; padding: 0.5rem 1.25rem; font: inherit; font-weight: 700;
  color: var(--color-primary); background: var(--color-surface);
  border: 2px solid var(--color-primary); border-radius: var(--radius); cursor: pointer;
}

.thumb { display: block; width: 6rem; height: 4rem; object-fit: cover; border-radius: 0.35rem; background: var(--color-water); }
.thumb--empty { display: grid; place-items: center; font-size: 1.75rem; }

.photo-grid {
  list-style: none; margin: 0 0 var(--space-3); padding: 0;
  display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.photo-card {
  display: grid; gap: var(--space-1); align-content: start; padding: var(--space-1);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.35rem; }
.photo-card form { margin: 0; }
.photo-card .button { width: 100%; }
.photo-card .badge { justify-self: start; margin: 0.4rem 0; }

.move { display: flex; gap: var(--space-1); }
.move form { margin: 0; }
.button--icon { min-width: var(--target); padding: 0; font-size: 1.35rem; }

/* ---------- Styleguide ---------- */
.sg-section { margin-bottom: var(--space-6); }

/* ---------- Times & availability ---------- */
.hours-row { border: 0; border-top: 1px solid var(--color-border); margin: 0; padding: var(--space-2) 0 0; min-width: 0; }
.hours-row > legend { font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: var(--space-1); }
.hours-row > .field__error { clear: both; margin-bottom: var(--space-1); }
.hours-row__inputs { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.hours-row .field label { font-weight: 400; }
.note { margin: 0.4rem 0 0; }
.note--warning { color: var(--color-warning); font-weight: 700; }
.date-picker { margin-bottom: var(--space-3); }
.day-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
/* ---------- Public: boat cards & boat page ---------- */
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.boat-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.boat-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.boat-card__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-water); }
.boat-card__photo--empty { display: grid; place-items: center; font-size: 3rem; }
.boat-card__body { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2); flex: 1; }
.boat-card__title { margin: 0; font-size: 1.4rem; }
.boat-card__facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; }
.boat-card__action { margin: auto 0 0; padding-top: var(--space-1); }
.price-list { margin: 0 0 var(--space-2); padding-left: 1.25rem; }
/* Boat photos: the main photo large, the others as a strip; each opens the lightbox. */
.photos { max-width: 48rem; margin: 0 0 var(--space-3); }
.photos__main { position: relative; display: block; border-radius: var(--radius); }
.photos__main img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photos__hint {
  position: absolute; right: var(--space-1); bottom: var(--space-1);
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgb(10 30 45 / 0.85); color: #fff; font-weight: 700;
}
.photos__thumbs {
  list-style: none; margin: var(--space-1) 0 0; padding: 0 0 0.25rem;
  display: flex; gap: var(--space-1); overflow-x: auto;
}
.photos__thumbs a { display: block; border-radius: var(--radius); }
.photos__thumbs img {
  display: block; width: 7.5rem; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 2px solid var(--color-border);
}
.photos__thumbs a:hover img { border-color: var(--color-primary); }

/* The lightbox overlay (lightbox.js). Swiping uses scroll-snap. */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: var(--space-2);
  border: 0; background: #0a1a26; color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; gap: var(--space-2); }
.lightbox::backdrop { background: rgb(0 0 0 / 0.8); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.lightbox__count { margin: 0; font-size: 1.15rem; font-weight: 700; }
.lightbox__track {
  list-style: none; margin: 0; padding: 0; min-height: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.lightbox__slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; min-height: 0; }
.lightbox__slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__stage { position: relative; display: grid; min-height: 0; }
.lightbox :focus-visible { outline-color: var(--color-accent); }

/* Photo page (the lightbox without JavaScript). */
.photo-view { margin: 0 0 var(--space-3); }
.photo-view__stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.photo-view img { display: block; max-width: 100%; height: auto; max-height: 75vh; border-radius: var(--radius); }
.photo-view__count { margin-top: var(--space-1); text-align: center; font-weight: 700; }

/* Round chevron buttons on the left and right edge of a photo (lightbox and photo page). */
.chevron-button {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; padding: 0;
  border: 2px solid #fff; border-radius: 50%;
  background: rgb(10 30 45 / 0.75); color: #fff; cursor: pointer;
}
.chevron-button:hover { background: rgb(10 30 45 / 0.95); }
.chevron-button--prev { left: var(--space-1); }
.chevron-button--next { right: var(--space-1); }
.chevron { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chevron-button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
/* Phones (touch screen, narrow or low) swipe in the lightbox: no chevrons over the photo. The
   photo page keeps them, as it has no swiping. */
@media (pointer: coarse) and (max-width: 47.99rem), (pointer: coarse) and (max-height: 30rem) {
  .lightbox .chevron-button { display: none; }
}
.prewrap { white-space: pre-line; }
.two-col { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card h2 { font-size: 1.35rem; }
.legal-text { max-width: 44rem; }
.legal-text h2 { font-size: 1.35rem; margin-top: var(--space-4); }
.link-list { padding-left: 1.25rem; }
.link-list li { margin-bottom: var(--space-1); }

/* ---------- Request form ---------- */
.progress { margin-bottom: var(--space-3); }
/* Phone bookings use the customer's steps; this bar says that staff fill them in (2026-11-11). */
.flow-badge { margin: 0 0 var(--space-2); padding: var(--space-1) var(--space-2); border-left: 6px solid var(--color-accent); background: var(--color-warning-bg); font-weight: 700; }
.progress__text { font-weight: 700; color: var(--color-primary); margin: 0 0 var(--space-1); }
.progress__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.progress__item { flex: 1; min-width: 0; }
.progress__item > a, .progress__item > span {
  display: flex; align-items: center; gap: 0.5rem; min-height: var(--target); padding: 0.25rem 0.5rem;
  border-bottom: 4px solid var(--color-border); color: var(--color-muted); text-decoration: none;
}
.progress__item.is-done > a { color: var(--color-primary); border-color: var(--color-primary); }
.progress__item.is-done > a:hover .progress__label { text-decoration: underline; }
.progress__item.is-current > span { color: var(--color-text); font-weight: 700; border-color: var(--color-accent); }
.progress__num {
  flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 2px solid currentColor; font-weight: 700; font-size: 0.95rem;
}
.progress__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 47.99rem) {
  .progress__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .progress__item > a, .progress__item > span { justify-content: center; }
}

.choice-group { display: grid; gap: var(--space-1); }
.choice { position: relative; }
.choice input { position: absolute; top: 1.1rem; left: 1rem; margin: 0; width: 1.75rem; height: 1.75rem; accent-color: var(--color-primary); }
.choice label {
  display: flex; align-items: center; gap: var(--space-2); min-height: var(--target);
  padding: 0.75rem 1rem 0.75rem 3.5rem; cursor: pointer;
  border: 2px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface);
}
.choice label:hover { border-color: var(--color-primary); }
.choice input:checked + label { border-color: var(--color-primary); background: var(--color-water); box-shadow: inset 0 0 0 1px var(--color-primary); }
.choice input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.choice__photo { flex: none; width: 6rem; height: 4rem; object-fit: cover; border-radius: 0.35rem; }
.choice__text { display: grid; gap: 0.15rem; min-width: 0; }
.choice__title { font-weight: 700; font-size: 1.1rem; }
.choice__meta { color: var(--color-muted); }
.choice__price { font-weight: 700; }
/* A flex range among the possible times (2026-11-11): stands out with a sail-yellow edge. */
.choice--flex label { border-left: 6px solid var(--color-accent); background: var(--color-highlight-bg); }
.choice--flex input:checked + label { background: var(--color-water); }
.flex-steps { margin-top: var(--space-3); }
.choice__note { color: var(--color-warning); }
.choice__note--warning { color: var(--color-error); font-weight: 700; }
@media (max-width: 30rem) { .choice__photo { display: none; } }

.wish-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-1); }
.wish {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2);
  padding: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.wish-list--plain .wish { padding: var(--space-1) 0; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; background: none; }
.wish__label { font-weight: 700; min-width: 6.5rem; }
.wish__time { flex: 1 1 14rem; }
.wish__price { flex-basis: 100%; color: var(--color-muted); }
.wish__boat { flex-basis: 100%; font-weight: 700; }
.wish__avail { flex-basis: 100%; display: grid; gap: var(--space-1); justify-items: start; }
.wish__avail p { margin: 0; }
.wish__boat-form { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.wish__boat-form select { width: auto; min-width: 12rem; }
.chosen-boat { font-size: 1.1rem; }
.wish__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.wish__actions form { margin: 0; }
.select--short { max-width: 8rem; }
.field-row { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); }
@media (max-width: 30rem) { .field-row { grid-template-columns: 1fr; } }
.alt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.alt h3 { margin-bottom: var(--space-1); }
.book-options { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.book-options .card p:last-child { margin-bottom: 0; }
.alt form { margin: 0; }

.review { margin-bottom: var(--space-3); }
.review__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1); }
.review__head a { font-weight: 700; min-height: var(--target); display: inline-flex; align-items: center; }
.review__wish { font-size: 1.1rem; margin-top: var(--space-2); }
.estimate { width: 100%; border-collapse: collapse; margin-bottom: var(--space-2); }
.estimate th, .estimate td { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.estimate thead th { font-size: 0.95rem; color: var(--color-muted); }
.estimate .num { text-align: right; white-space: nowrap; padding-left: var(--space-2); }
.estimate tfoot th { font-weight: 700; }
.estimate tfoot tr:first-child th, .estimate tfoot tr:first-child td { border-top: 2px solid var(--color-text); }

/* Honeypot: invisible for people, tempting for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha__status { margin: 0; color: var(--color-muted); }
.captcha__status--done { color: var(--color-success); font-weight: 700; }
.captcha__status--failed { color: var(--color-error); font-weight: 700; }
.button:disabled { opacity: 0.6; cursor: not-allowed; }

.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-3); }
.tabs a {
  display: inline-flex; align-items: center; min-height: var(--target); padding: 0.25rem 1rem; font-weight: 700;
  border: 2px solid var(--color-primary); border-radius: var(--radius); text-decoration: none;
}
.tabs a[aria-current="page"] { background: var(--color-primary); color: #fff; }
.request-list { padding-left: 1.25rem; }
.request-list li { margin-bottom: var(--space-1); }

.boat-cards + * , .section + .steps { margin-top: var(--space-4); }
.table td:first-child a { white-space: nowrap; }

/* ---------- Request handling (M5) ---------- */
.search { margin-bottom: var(--space-3); max-width: 44rem; }
.search__row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.search__row input, .search__row select { flex: 1 1 14rem; min-width: 0; }
.search > p { margin: var(--space-1) 0 0; }
/* Dashboard: greeting on the left, search on the right; stacked on narrow screens. */
.page-head--top { align-items: flex-start; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-2); }
.dashboard-search { flex: 0 1 28rem; margin: 0; }
.dashboard-search .field { margin: 0; }
.actions .button-row form { margin: 0; }
.assign { margin-top: var(--space-3); max-width: 36rem; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.contact-links .button { overflow-wrap: anywhere; }
.request-list--actions { list-style: none; padding: 0; }
.request-list--actions li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1);
  padding: var(--space-1) 0; border-bottom: 1px solid var(--color-border); }
.request-list--actions form { margin: 0; }
.save-card { margin-top: var(--space-6); border-width: 2px; border-color: var(--color-primary); }
.save-card .button-row form { margin: 0; }

/* History and notes: a simple timeline of entries. */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.log__item { padding: var(--space-1) 0 var(--space-1) var(--space-2); border-left: 4px solid var(--color-water); }
.log__item p { margin: 0; }
.log__meta { color: var(--color-muted); font-size: 0.95rem; }
.log__title { font-weight: 700; }
.log__lines { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.log__internal { margin-top: 0.25rem; color: var(--color-warning); }

/* ---------- Calendar ---------- */
.cal-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2); margin-bottom: var(--space-3); }
.cal-legend { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.cal-legend li { display: flex; align-items: center; gap: 0.5rem; }
.cal-swatch { display: inline-block; width: 1.5rem; height: 1rem; border-radius: 0.25rem; border: 1px solid var(--color-text); }
/* Kinds: blocked = grey, booked = sail yellow, wish = outlined blue. */
.cal-swatch--blocked { background: var(--color-blocked); }
.cal-swatch--booked  { background: var(--color-accent); }
.cal-swatch--wish    { background: var(--color-water); border: 2px dashed var(--color-primary); }

.cal-entries { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: grid; gap: 0.35rem; }
.cal-entry { display: flex; flex-wrap: wrap; gap: 0 0.5rem; padding: 0.25rem 0.5rem; border-left: 6px solid; border-radius: 0.25rem; background: var(--color-surface); }
.cal-entry--blocked { border-color: var(--color-blocked); background: var(--color-closed-bg); }
.cal-entry--booked { border-color: var(--color-accent); background: var(--color-warning-bg); }
.cal-entry--wish { border-color: var(--color-primary); border-left-style: dashed; background: var(--color-water); }
.cal-entry__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-entry__what { font-weight: 700; }
.cal-entry__meta { color: var(--color-muted); }
.cal-entries--compact .cal-entry { font-size: 0.9rem; flex-direction: column; }

.cal-filter > .field { flex: 0 1 20rem; }
.cal-filter > .button-row { flex: 1 0 100%; }
.cal-boats { flex: 1 0 100%; }
.cal-boats .field__hint { margin: 0; }
.cal-boats__list { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.cal-filter .cal-boats__list .field { flex: 0 1 auto; }

/* Boats × days (2026-11-11): the table scrolls inside its box, sideways on phones; the day
   column and the boat names stay in place. Every boat column is at least 10rem wide. */
.cal-scroll { overflow: auto; max-height: 75vh; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.cal-scroll:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.cal-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--color-surface); }
.cal-table th, .cal-table td { border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 0.4rem; vertical-align: top; text-align: left; }
.cal-table thead th { position: sticky; top: 0; z-index: 2; background: var(--color-water); color: var(--color-primary); vertical-align: middle; }
.cal-table thead th:first-child { left: 0; z-index: 3; width: 6.5rem; }
.cal-table tbody th { position: sticky; left: 0; z-index: 1; width: 6.5rem; background: var(--color-surface); color: var(--color-primary); white-space: nowrap; }
.cal-table .cal-month-row th { width: auto; background: var(--color-bg); padding: var(--space-1) 0.4rem; font-size: 1.1rem; }
.cal-table .cal-closed-run th { white-space: normal; }
.cal-table .cal-closed-run td { font-weight: 700; color: var(--color-muted); vertical-align: middle; }
.cal-table td.is-closed { background: repeating-linear-gradient(135deg, var(--stripes-a) 0 8px, var(--stripes-b) 8px 16px); }
.cal-table tr.is-today th, .cal-table tr.is-today td { box-shadow: inset 0 3px 0 var(--color-primary), inset 0 -3px 0 var(--color-primary); }
.cal-table .cal-entries { margin: 0; }
.cal-table .cal-entries--compact .cal-entry { flex-direction: row; }
.cal-col { display: block; min-width: 9rem; }
.card--gap { margin-bottom: var(--space-2); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* ---------- Request step 2: calendar (2026-11-11) ---------- */
/* Seven columns fit a 390 px phone (≥ 48 px per day). Free days are white with a bold number,
   taken days yellow-ish with "belegt", impossible days striped and muted (not links). */
.req-cal { max-width: 40rem; }
.req-cal__head { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; gap: var(--space-1); margin: var(--space-2) 0; }
.req-cal__head .button { min-width: var(--target); min-height: var(--target); padding: 0; justify-content: center; }
.req-cal__month { margin: 0; text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.req-cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.req-cal__grid th { padding: 0.25rem 0; font-size: 0.95rem; color: var(--color-muted); text-align: center; }
.req-cal__day { padding: 2px; text-align: center; height: 3.5rem; }
.req-cal__day a, .req-cal__day > .req-cal__num {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--target); height: 100%; border-radius: var(--radius); text-decoration: none;
}
.req-cal__day.is-free a { background: var(--color-surface); border: 2px solid var(--color-primary); font-weight: 700; }
.req-cal__day.is-booked a { background: var(--color-warning-bg); border: 2px dashed var(--color-warning); color: var(--color-text); }
.req-cal__day a:hover { background: var(--color-water); }
.req-cal__day.is-selected a, .req-cal__day a[aria-current="date"] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.req-cal__day.is-unavailable > .req-cal__num { color: var(--color-muted); background: repeating-linear-gradient(135deg, var(--stripes-a) 0 6px, var(--stripes-b) 6px 12px); }
.req-cal__num { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.req-cal__note { font-size: 0.75rem; line-height: 1; }
.req-cal__legend { margin-top: var(--space-2); }
.req-cal__swatch { display: inline-block; width: 1.5rem; height: 1rem; border-radius: 0.25rem; }
.req-cal__swatch.is-free { background: var(--color-surface); border: 2px solid var(--color-primary); }
.req-cal__swatch.is-booked { background: var(--color-warning-bg); border: 2px dashed var(--color-warning); }
.req-cal__swatch.is-unavailable { background: repeating-linear-gradient(135deg, #f2f4f6 0 4px, #c9d1d7 4px 8px); border: 1px solid var(--color-border); }
.field--check label .muted { margin-left: 0.35em; } /* "(Möwe)" after a service in a flex label */

/* ---------- ToDo list: the staff start page (2026-11-11) ---------- */
/* Every request is its own clearly bordered card so nothing is booked by accident. */
.todo-area + .todo-area { border-top: 3px solid var(--color-primary); padding-top: var(--space-3); }
.todo-empty { font-weight: 700; color: var(--color-success); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.task {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-left: 8px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
}
.task--done-step { border-left-color: var(--color-success); }
.task p { margin: 0 0 var(--space-1); }
.task form { margin: 0; }
.task__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin-bottom: var(--space-1); }
.task__num {
  display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: var(--color-primary); color: var(--color-surface); font-weight: 800;
}
.task__title { margin: 0; font-size: 1.35rem; }
.task__meta { color: var(--color-muted); }
.task__meta strong { color: var(--color-text); }
.task__steps { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.task__step { border-top: 1px solid var(--color-border); padding-top: var(--space-2); display: grid; gap: var(--space-1); }
.task__step-label { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); }
.task__call { font-size: 1.2rem; font-weight: 700; }
.task__phone { display: inline-flex; align-items: center; gap: 0.35rem; min-height: var(--target); white-space: nowrap; }
.task__tick { font-size: 1.1rem; }
.task__failed { max-width: 36rem; }
.task__failed label, .task__followup label { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.task__ref { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.04em; }
.task__amount { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.task__followup { margin-top: var(--space-2); padding: var(--space-2); border-radius: var(--radius);
  background: var(--color-warning-bg); border: 2px solid var(--color-warning); display: grid; gap: var(--space-1); max-width: 44rem; }
.badge--phoned { color: var(--color-success); background: var(--color-success-bg); }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1);
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.link-grid a { display: flex; align-items: center; min-height: var(--target); padding: 0 var(--space-2);
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); font-weight: 700; }
.inline-form { display: inline-block; margin: 0 0 0 var(--space-1); }
.facts dd:has(> .inline-form) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.facts dd > .inline-form { margin: 0; }
.older ul { margin: var(--space-1) 0 0; padding-left: 1.25rem; }
.shortcuts { margin-bottom: var(--space-3); }
.shortcut { font-size: 1.1rem; }

/* ---------- Calendar picker: choose a boat on a day (2026-11-11) ---------- */
.pick-table td { vertical-align: top; }
.pick-table th.is-first { background: var(--color-success-bg); }
.pick__wishboat { display: block; font-size: 0.85rem; font-weight: 700; color: var(--color-success); }
.pick__choose { margin-top: 0.25rem; }
.pick__anyway { display: inline-flex; align-items: center; min-height: var(--target); font-size: 0.95rem; }
.pick__note { color: var(--color-muted); font-size: 0.9rem; font-weight: 700; }
.cal-entry--mine { outline: 3px solid var(--color-success); outline-offset: -1px; }
.cal-swatch--mine { background: var(--color-success-bg); border: 3px solid var(--color-success); }
/* Picker and calendar page grow with the page: they only scroll sideways, never in their own
   frame (owner request 2026-11-11, calendar page 2026-11-12). The boat names then scroll with
   the page; the day column stays put. */
.cal-scroll--page { max-height: none; overflow-x: auto; overflow-y: hidden; }
.cal-scroll--page .cal-table thead th { position: static; }
.cal-scroll--page .cal-table thead th:first-child { position: sticky; left: 0; }
.task__expire { margin-top: var(--space-2); }

/* Calendars (2026-11-11): the date filter next to the range headline, the boat filter below. */
.cal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.cal-head h2, .cal-head h3 { margin: 0; flex: 1 1 18rem; }
.cal-datefilter { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-1) var(--space-2); }
.cal-datefilter .field { margin: 0; flex: 0 1 16rem; }
.cal-datefilter .field__hint { margin: 0; }
.cal-boatfilter { margin-top: var(--space-3); }

/* The tick box of "Angerufen – abhaken" / "Vorbereitet – abhaken": drawn, not a font glyph. */
.tick-box { display: inline-block; width: 1.1em; height: 1.1em; border: 3px solid currentColor; border-radius: 3px;
  vertical-align: -0.2em; margin-right: 0.35em; flex: none; }
@media (min-width: 60rem) {
  .cal-head { flex-wrap: nowrap; }
  .cal-datefilter { flex-wrap: nowrap; }
  .cal-datefilter .button { white-space: nowrap; }
}

/* Status page: bank details with the Girocode (EPC QR) beside them, below on phones (2026-11-12).
   The mail links to #anzahlung. */
.payment-block { scroll-margin-top: var(--space-2); }
.payment-layout { display: grid; gap: var(--space-3); align-items: start; margin-bottom: var(--space-3); }
.payment-layout > .facts { margin: 0; }
.girocode { margin: 0; max-width: 16rem; }
.girocode__code { width: 12rem; max-width: 100%; padding: var(--space-1); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.girocode__code svg { display: block; width: 100%; height: auto; }
.girocode figcaption { margin-top: var(--space-1); font-size: 0.95rem; color: var(--color-muted); }
.girocode figcaption p { margin: 0 0 var(--space-1); }
.girocode .girocode__check { font-weight: 700; color: var(--color-text); }
@media (min-width: 48rem) {
  .payment-layout { grid-template-columns: 1fr auto; }
}

/* Copy buttons right after the payment values (js/copy.js shows them, 2026-11-12): quiet, no
   border, muted until hovered or focused. The tap area stays 48px high. On phones a long value
   (IBAN) lets the button wrap to the next line. */
/* All payment rows as high as a copy button, so the spacing stays even. */
.facts.payment > div { min-height: var(--target); align-items: center; }
.facts dd.copyable { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.25rem; }
.copy-button {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: var(--target); padding: 0 0.5rem;
  border: 0; border-radius: var(--radius); background: none;
  color: var(--color-muted); font: inherit; font-size: 0.85rem; cursor: pointer;
}
.copy-button:hover, .copy-button:focus-visible { color: var(--color-primary); background: var(--color-water); }
.copy-button svg { width: 1.05em; height: 1.05em; flex: none; }
.copy-button--done, .copy-button--done:hover { color: var(--color-success); background: none; }

/* ---------- Handover documents (2026-11-12) ---------- */
.field__label { font-weight: 700; margin: 0 0 var(--space-1); }
.doc-status .button-row { margin-top: var(--space-2); }
.doc-editor { display: grid; gap: var(--space-3); align-items: start; }
@media (min-width: 64rem) {
  .doc-editor { grid-template-columns: minmax(0, 1fr) 18rem; }
}
.doc-editor__save { margin-bottom: var(--space-2); }
.doc-blocks { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
.doc-block { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-2); scroll-margin-top: var(--space-2); }
.doc-block fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.doc-block__legend { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); padding: 0; margin-bottom: var(--space-1); }
.doc-block--error { border: 2px solid var(--color-error); }
.doc-block:target { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.doc-block textarea { width: 100%; }
.doc-block__actions { margin-top: var(--space-1); }
.placeholder-list { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.placeholder-list code, .field__error code { font-size: 0.95em; }
.logo-grid { display: grid; gap: var(--space-2); }
@media (min-width: 48rem) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-card__img { display: block; max-width: 100%; max-height: 6rem; width: auto; height: auto; margin-bottom: var(--space-1);
  background: #fff; border: 1px solid var(--color-divider); padding: 0.5rem; }
.print-list { list-style: none; margin: 0; padding: 0; }
.print-list li { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: center; justify-content: space-between;
  padding: var(--space-1) 0; border-top: 1px solid var(--color-divider); }
.print-list p { margin: 0; }
.docs-card h3 { margin-top: var(--space-3); }
.docs-card form + form { margin-top: var(--space-2); }

/* ---------- Closing an outing (2026-11-12) ---------- */
.closing-missing { margin: var(--space-1) 0 0; padding-left: 1.25rem; }
.closing-missing li + li { margin-top: 0.25rem; }
.yesno { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.closing-sum { margin-bottom: var(--space-1); }
.pay-row { border-top: 1px solid var(--color-divider); padding-top: var(--space-1); margin-top: var(--space-1); }
.pay-row:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.pay-row__title { font-weight: 700; margin: 0 0 var(--space-1); }
.pay-row__fields { display: grid; gap: var(--space-1) var(--space-2); }
@media (min-width: 48rem) { .pay-row__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 12rem); } }
.pay-row.field--error { border-left: 4px solid var(--color-error); padding-left: var(--space-1); }
.damage-case { border-top: 1px solid var(--color-divider); margin-top: var(--space-2); padding-top: var(--space-2); }
.damage-case h3 { margin-top: 0; }

/* ---------- Bonuskarte (2026-11-12) ---------- */
.tier-row { display: grid; gap: var(--space-1) var(--space-2); }
@media (min-width: 48rem) { .tier-row { grid-template-columns: 10rem 10rem minmax(0, 1fr); } }
.card-progress { font-size: 1.25rem; font-weight: 700; }

/* ---------- Demo mode (2026-11-12) ---------- */
.demo-banner { background: var(--color-accent); color: var(--color-text); padding: 0.5rem 0; font-size: 1rem; }
.demo-banner a { color: inherit; font-weight: 700; }
.demo-logins { margin-top: var(--space-3); }
.demo-logins code { overflow-wrap: anywhere; }
.demo-mails { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-1); }
.demo-mails summary { cursor: pointer; min-height: var(--target); }
.demo-mail__body { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 1rem; margin: var(--space-1) 0 0; }

/* ---------- Script-enhanced pages (app.js, docs/frontend.md) ----------
   app.js adds the class "js" to <html>. It never styles anything itself: what is shown in
   which state is decided here and in the server-rendered HTML. */
.js .js-hide { display: none !important; }      /* e.g. Save buttons of autosave forms */
.js-only { display: none !important; }
.js .js-only { display: revert !important; }

.autosave-status { display: none; }
/* In the flow above the form's buttons, never over a field (a sticky bar covered the field
   being typed in on phones). */
.js .autosave-status {
  display: block;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--color-muted);
}
.autosave-status [data-when] { display: none; }
.autosave-status:not([data-state]) [data-when="idle"],
.autosave-status[data-state="dirty"] [data-when="dirty"],
.autosave-status[data-state="saving"] [data-when="saving"],
.autosave-status[data-state="saved"] [data-when="saved"],
.autosave-status[data-state="error"] [data-when="error"],
.autosave-status[data-state="failed"] [data-when="failed"] { display: inline; }
.autosave-status[data-state="saved"] { color: var(--color-success); border-color: var(--color-success); background: var(--color-success-bg); }
.autosave-status[data-state="dirty"] { color: var(--color-warning); border-color: var(--color-warning); background: var(--color-warning-bg); }
.autosave-status[data-state="error"],
.autosave-status[data-state="failed"] { color: var(--color-error); border-color: var(--color-error); background: var(--color-error-bg); }

/* A form that is being sent by the script: the buttons wait (no double clicks). */
form[data-busy] button { opacity: 0.6; cursor: progress; }

/* The live price on the services step (2026-11-12). */
.price-preview { display: grid; gap: var(--space-2); }
.price-preview h2 { margin: 0; font-size: 1.15rem; }
.price-preview__list { margin: 0; padding: 0; list-style: none; font-weight: 700; font-size: 1.1rem; }
.price-preview__wish { font-weight: 400; color: var(--color-muted); }
