/* ==========================================================================
   BlackKonzept – Muster „Imbiss und Streetfood“ (Beispiel: Urban Grill)
   Aufbau: Schriften · Variablen · Basis · Bausteine · Bereiche · Unterseiten
   Mobile first: Grundstile gelten für Smartphones, Media Queries erweitern.

   ANPASSEN FÜR EINEN NEUEN KUNDEN
   1. Farben unter „Variablen“ an den Laden anpassen. --sign ist die
      Schildfarbe (Kopfzeile, Hero, Bestellnummern), z. B. die Farbe der
      Leuchtreklame oder des Logos. Auf ausreichenden Kontrast achten.
   2. Schriften unter „Schriften“ tauschen (Dateien in assets/fonts).
   3. Bestellnummern (.dish-no) entfernen, wenn der Laden keine nutzt.
   ========================================================================== */

/* Schriften (lokal gehostet, keine Verbindung zu Google) ------------------ */
@font-face {
  font-family: "Anton";
  src: url("../assets/fonts/anton-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Variablen --------------------------------------------------------------- */
:root {
  --sign: #f4c20d;
  --sign-deep: #e3b100;
  --char: #1d1c1a;
  --char-2: #2a2926;
  --char-3: #141412;
  --white: #ffffff;
  --paper: #f6f5f2;
  --muted: #5d5a54;
  --line: rgba(29, 28, 26, 0.13);
  --line-dark: rgba(255, 255, 255, 0.16);
  --on-dark: #f4f3ef;
  --on-dark-muted: rgba(244, 243, 239, 0.72);
  --open: #2e8a50;
  --closed: #c0392b;

  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 6px;
  --section-space: 64px;
  --overlap: 48px;
  --focus: var(--char);
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
    --section-space: 96px;
    --overlap: 80px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--char);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
figure,
table {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.section {
  padding-block: var(--section-space);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--char);
  color: var(--white);
  border-radius: var(--radius);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0.003em;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Bausteine: Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-dark {
  background: var(--char);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--char-2);
}

.btn-line {
  border-color: var(--char);
  color: var(--char);
}

.btn-line:hover {
  background: var(--char);
  color: var(--white);
}

.btn-sign {
  background: var(--sign);
  color: var(--char);
}

.btn-sign:hover {
  background: #ffd33a;
}

.btn-line-light {
  border-color: rgba(244, 243, 239, 0.55);
  color: var(--on-dark);
}

.btn-line-light:hover {
  border-color: var(--on-dark);
}

/* Bestellnummer (Speisekarte und Favoriten) */
.dish-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--sign);
  color: var(--char);
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Geöffnet-Anzeige: Text wird per JavaScript aus den Öffnungszeiten berechnet */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 14px 4px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--char);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.status.is-open::before {
  background: var(--open);
  box-shadow: 0 0 0 3px rgba(46, 138, 80, 0.18);
}

.status.is-closed::before {
  background: var(--closed);
}

/* Beispielseite: Hinweisleiste (bei echten Kunden entfernen) -------------- */
.demo-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding: 9px 56px 9px max(var(--gutter), env(safe-area-inset-left));
  background: var(--char-3);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.demo-bar-link {
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 3px;
}

.demo-bar-close {
  position: absolute;
  top: 50%;
  right: max(8px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

.demo-bar :focus-visible {
  outline-color: var(--sign);
}

/* Kopfzeile --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sign);
  color: var(--char);
  border-bottom: 1px solid rgba(29, 28, 26, 0.12);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  padding-block: 6px;
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 30px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-sub {
  margin-top: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--char);
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.header-call-label {
  display: none;
}

.nav-toggle {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 899px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    display: none;
    flex-direction: column;
    padding: 8px var(--gutter) 20px;
    background: var(--sign);
    border-bottom: 1px solid rgba(29, 28, 26, 0.16);
    box-shadow: 0 16px 24px rgba(29, 28, 26, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(29, 28, 26, 0.14);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 560px) {
  .header-call {
    padding: 0 18px;
  }

  .header-call-label {
    display: inline;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .brand-mark {
    width: 26px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.875rem;
  }

  .site-nav {
    display: flex;
    gap: 28px;
    margin-right: 24px;
  }

  .site-nav a {
    padding: 8px 0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover {
    border-bottom-color: var(--char);
  }
}

/* Hero: das Ladenschild --------------------------------------------------- */
.hero {
  background: var(--sign);
  padding-top: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-title {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.002em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34ch;
  margin-top: 18px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions .btn {
  flex: 1 1 200px;
}

.hero-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
}

.hero-address a {
  padding-block: 6px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-figure {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  margin-bottom: calc(-1 * var(--overlap));
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--char-2);
  box-shadow: 0 18px 40px rgba(29, 28, 26, 0.22);
  aspect-ratio: 4 / 3;
}

.hero-figure picture {
  display: block;
  height: 100%;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 560px) {
  .hero-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 56px;
  }

  .hero-text {
    padding-bottom: 72px;
  }

  .hero-title {
    margin-top: 22px;
    font-size: clamp(4rem, 6.6vw, 6rem);
  }

  .hero-lead {
    font-size: 1.25rem;
  }

  .hero-figure {
    margin-top: 0;
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1200px) {
  .hero-grid {
    gap: 72px;
  }
}

/* Favoriten --------------------------------------------------------------- */
.favorites {
  padding-top: calc(var(--overlap) + 44px);
}

.fav-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 24px;
  border-top: 2px solid var(--char);
}

.fav {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.fav img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper);
}

.fav-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
}

.fav-name .dish-no {
  min-width: 1.75rem;
  height: 1.75rem;
  font-size: 0.9375rem;
}

.fav-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.fav-price {
  align-self: start;
  padding-top: 2px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .fav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 40px;
    margin-top: 32px;
  }

  .fav {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    padding-block: 20px;
    border-bottom: 0;
  }

  .fav img {
    width: 88px;
    height: 88px;
  }
}

/* Speisekarte ------------------------------------------------------------- */
.menu {
  background: var(--paper);
}

.menu-head p {
  margin-top: 10px;
  color: var(--muted);
}

.menu-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 24px calc(-1 * var(--gutter)) 0;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tabs[hidden] {
  display: none;
}

/* Hinweis auf weitere Kategorien: rechter Rand blendet aus, solange gescrollt werden kann */
.menu-tabs.is-scrollable:not(.at-end) {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

.menu-tabs button {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.menu-tabs button:hover {
  border-color: var(--char);
}

.menu-tabs button[aria-selected="true"] {
  border-color: var(--char);
  background: var(--char);
  color: var(--white);
}

.menu-panels {
  margin-top: 8px;
}

.menu-panel {
  padding-top: 16px;
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel:focus-visible {
  outline: none;
}

.menu-panel-title {
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
}

/* Mit JavaScript übernehmen die Tabs die Überschrift */
.js .menu-panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-panel-note {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.menu-panel + .menu-panel {
  margin-top: 32px;
}

.js .menu-panel + .menu-panel {
  margin-top: 0;
}

.dishes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.dish {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.dish-body {
  flex: 1;
  min-width: 0;
  padding-top: 5px;
}

.dish-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.dish-price {
  flex: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish-desc {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.menu-foot {
  max-width: 68ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 700px) {
  .dishes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

@media (min-width: 900px) {
  .menu-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
  }

  .menu-tabs {
    margin-inline: 0;
    padding-inline: 0;
  }

  .menu-panel {
    padding-top: 24px;
  }

  .dishes {
    column-gap: 64px;
  }
}

/* So kommst du an dein Essen ---------------------------------------------- */
.ways-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.ways-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.ways-icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sign);
}

.ways-icon svg {
  width: 26px;
  height: 26px;
}

.ways-list h3 {
  padding-top: 10px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

.ways-list p {
  max-width: 40ch;
  margin-top: 6px;
  color: var(--muted);
}

.ways-link {
  display: inline-block;
  padding-block: 4px;
  color: var(--char);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (min-width: 900px) {
  .ways-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 40px;
  }

  .ways-list li {
    display: block;
    padding: 0 32px;
    border-left: 1px solid var(--line);
  }

  .ways-list li:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .ways-list h3 {
    padding-top: 20px;
  }
}

/* Öffnungszeiten und Anfahrt ---------------------------------------------- */
.visit {
  --focus: var(--sign);
  background: var(--char);
  color: var(--on-dark);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
}

.status-large {
  min-height: 40px;
  padding-inline: 14px 16px;
  font-size: 1rem;
}

.hours {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: top;
  text-align: left;
}

.hours tr:first-child th,
.hours tr:first-child td {
  border-top: 1px solid var(--line-dark);
}

.hours th {
  padding-right: 16px;
  font-weight: 400;
  color: var(--on-dark-muted);
}

.hours td {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--sign);
}

.hours tr.is-today th::after {
  content: "heute";
  display: inline-block;
  margin-left: 10px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.visit-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 24px;
  align-content: start;
}

.visit-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.visit-item p {
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
}

.visit-item a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.visit-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.visit-actions .btn {
  flex: 1 1 220px;
}

@media (min-width: 900px) {
  .visit-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    margin-top: 32px;
  }

  .visit-contact {
    padding-top: 60px;
  }

  .visit-actions .btn {
    flex: 0 0 auto;
  }
}

/* Fußzeile ---------------------------------------------------------------- */
.footer {
  --focus: var(--sign);
  padding-block: 48px calc(96px + env(safe-area-inset-bottom));
  background: var(--char-3);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.footer .brand-name {
  display: block;
  margin-bottom: 8px;
  color: var(--on-dark);
  font-size: 1.625rem;
}

.footer a {
  color: var(--on-dark);
  text-underline-offset: 3px;
}

.footer-contact a {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer-legal a {
  padding-block: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr auto;
    gap: 32px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 2px;
  }
}

@media (min-width: 900px) {
  .footer {
    padding-bottom: 48px;
  }
}

/* Schnellzugriff am Smartphone -------------------------------------------- */
.quickbar {
  --focus: var(--sign);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--char);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, visibility 0.3s;
}

.quickbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  border-radius: var(--radius);
  color: var(--on-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.quickbar a:first-child {
  background: var(--sign);
  color: var(--char);
}

.js .quickbar:not(.is-visible) {
  transform: translateY(110%);
  visibility: hidden;
}

@media (min-width: 900px) {
  .quickbar {
    display: none;
  }
}

/* Unterseiten: Impressum und Datenschutz ---------------------------------- */
.legal {
  padding-block: 56px var(--section-space);
}

.legal-inner {
  max-width: 720px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 10vw, 4rem);
  line-height: 1;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.75rem;
}

.legal p,
.legal address {
  max-width: 64ch;
  margin-top: 12px;
  font-style: normal;
  color: var(--muted);
}

.legal a {
  color: var(--char);
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--sign-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fdf6d8;
  color: var(--char);
  font-size: 1rem;
}

.placeholder {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--char);
  font-weight: 600;
  outline: 1px dashed rgba(29, 28, 26, 0.35);
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  padding: 10px 0;
  color: var(--char);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-page .footer {
  padding-bottom: 40px;
}

/* Bewegung reduzieren, wenn im System eingestellt ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
