/* ==========================================================================
   BlackKonzept – Muster „Restaurant mediterran“ (Beispiel: Osteria Bellavista)
   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“ (--olive, --tomato …) an das Restaurant anpassen.
   2. Schriften unter „Schriften“ tauschen (Dateien in assets/fonts).
   3. Das Gestaltungsmotiv (Markisen-Bogenkante im Hero, .hero::after)
      passend zum Restaurant ersetzen, z. B. Rundbögen für eine Taverna.
   ========================================================================== */

/* Schriften (lokal gehostet, keine Verbindung zu Google) ------------------ */
@font-face {
  font-family: "Bitter";
  src: url("../assets/fonts/bitter-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../assets/fonts/bitter-italic-400.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Variablen --------------------------------------------------------------- */
:root {
  --olive: #3b4a2c;
  --olive-deep: #2a3520;
  --olive-soft: #e7eadf;
  --tomato: #b4402c;
  --tomato-dark: #963322;
  --paper: #fbfaf6;
  --linen: #f1efe7;
  --ink: #23271e;
  --muted: #5a5f52;
  --line: rgba(35, 39, 30, 0.14);
  --line-light: rgba(255, 255, 255, 0.2);
  --on-olive: #f6f3e8;
  --on-olive-muted: rgba(246, 243, 232, 0.78);

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 4px;
  --section-space: 72px;
}

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
    --header-h: 78px;
    --section-space: 112px;
  }
}

/* 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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(59, 74, 44, 0.14);
}

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

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

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.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;
}

.nowrap {
  white-space: nowrap;
}

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

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

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--olive);
}

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

/* Bausteine: Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-tomato {
  background: var(--tomato);
  color: #fff;
}

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

.btn-outline-light {
  border-color: rgba(246, 243, 232, 0.5);
  color: var(--on-olive);
}

.btn-outline-light:hover {
  border-color: var(--on-olive);
}

.btn-primary {
  background: var(--olive);
  color: #fff;
}

.btn-primary:hover {
  background: var(--olive-deep);
}

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

.btn-secondary:hover {
  border-color: var(--olive);
}

/* Beispielseite: Hinweisleiste (bei echten Kunden entfernen) -------------- */
.demo-bar {
  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));
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.demo-bar-link {
  color: #fff;
  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;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  transform: translateY(-50%);
}

/* Kopfzeile --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--olive);
  color: var(--on-olive);
}

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

.brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  text-decoration: none;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.625rem;
  letter-spacing: 0.005em;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--on-olive-muted);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  color: var(--on-olive);
  text-decoration: none;
}

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

.nav-toggle {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-olive);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s;
}

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

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

/* Mobile Navigation: klappt unter der Kopfzeile auf */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(35, 39, 30, 0.1);
}

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

.site-nav a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  text-decoration: none;
}

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

/* Ohne JavaScript: Navigation immer sichtbar */
html:not(.js) .nav-toggle {
  display: none;
}

@media (max-width: 899px) {
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 10px 4px;
  }

  html:not(.js) .site-nav {
    position: static;
    order: 3;
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    background: none;
    color: inherit;
    border: 0;
    box-shadow: none;
  }

  html:not(.js) .site-nav a {
    flex: none;
    padding: 8px 0;
    border: 0;
    font-size: 1rem;
  }
}

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

  .site-nav,
  html:not(.js) .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-right: 32px;
    padding: 0;
    background: none;
    color: inherit;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 0;
    border: 0;
    font-size: 1rem;
    color: var(--on-olive-muted);
  }

  .site-nav a:hover {
    color: var(--on-olive);
  }

  .header-call {
    width: auto;
    padding: 0 18px;
    border-color: var(--tomato);
    background: var(--tomato);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
  }

  .header-call:hover {
    background: var(--tomato-dark);
  }

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

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

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 32px 64px;
  background: var(--olive);
  color: var(--on-olive);
}

/* Das Motiv: die Bogenkante einer Markise, wie über dem Eingang vieler Osterias */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 16px;
  background: radial-gradient(circle at 15px 0, var(--olive) 14.5px, transparent 15px) 0 0 / 30px 16px repeat-x;
  pointer-events: none;
}

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

.hero-title {
  display: block;
  font-weight: 400;
}

.hero-kicker {
  display: block;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: #e9c5a5;
}

.hero-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.25rem, 15vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-name-small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.42em;
  letter-spacing: 0.01em;
  color: var(--on-olive-muted);
}

.hero-lead {
  max-width: 36ch;
  margin-top: 22px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--on-olive);
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.hero-facts {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line-light);
}

.hero-facts > div {
  display: grid;
  grid-template-columns: 7.75rem minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
}

.hero-facts dt {
  padding-top: 2px;
  font-size: 0.9375rem;
  color: var(--on-olive-muted);
}

.hero-facts dd {
  font-size: 1.0625rem;
  font-weight: 600;
}

.hero-facts a {
  text-decoration: underline;
  text-decoration-color: rgba(246, 243, 232, 0.4);
  text-underline-offset: 4px;
}

.hero-facts a:hover {
  text-decoration-color: currentColor;
}

.hero-figure {
  width: 100%;
  max-width: 440px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--olive-deep);
}

@media (min-width: 560px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 700px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 40px;
  }

  .hero-name {
    font-size: clamp(3.5rem, 9vw, 7rem);
  }

  .hero-figure {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-block: 64px 96px;
  }

  .hero-grid {
    gap: 64px;
  }

  .hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    border-top: 0;
  }

  .hero-facts > div {
    display: block;
    flex: none;
    padding: 14px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-light);
  }

  .hero-facts dt {
    margin-bottom: 4px;
  }

  .hero-facts dd {
    white-space: nowrap;
  }
}

/* Unsere Küche ------------------------------------------------------------ */
.kitchen {
  padding-top: calc(var(--section-space) + 8px);
}

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

.kitchen-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--linen);
}

figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

.kitchen-text p {
  max-width: 50ch;
  margin-top: 18px;
  color: var(--muted);
}

.kitchen-facts {
  max-width: 460px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.kitchen-facts li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.kitchen-facts strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--olive);
}

@media (min-width: 900px) {
  .kitchen-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 72px;
  }
}

/* Galerie ----------------------------------------------------------------- */
.gallery {
  padding-bottom: var(--section-space);
}

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

.gallery-list img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--linen);
}

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

@media (min-width: 900px) {
  .gallery-list {
    gap: 32px;
  }
}

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

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

.menu-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  gap: 4px;
  margin: 28px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter);
  background: var(--linen);
  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: 52px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.0625rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.menu-tabs button:first-child {
  padding-left: 0;
}

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

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

.menu-tabs button:focus-visible {
  outline-offset: -4px;
}

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

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

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

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

.menu-panel-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--olive);
}

/* 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;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

.dish {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

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

.dish-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}

.dish-price {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--olive);
  white-space: nowrap;
}

.dish-desc {
  max-width: 44ch;
  margin-top: 3px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

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

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

  .menu-head p {
    margin-top: 0;
  }

  .menu-tabs {
    margin-inline: 0;
    padding-inline: 0;
    gap: 16px;
    margin-top: 36px;
  }

  .menu-tabs button {
    padding: 0 14px;
  }

  .dishes {
    columns: 2;
    column-gap: 72px;
  }

  .menu-panel {
    min-height: 330px;
  }
}

/* Besuch: Öffnungszeiten und Anfahrt -------------------------------------- */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  margin-top: 28px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--olive);
}

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

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

.hours td {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hours td span {
  display: block;
  white-space: nowrap;
}

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

.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.6;
  vertical-align: 2px;
}

.visit-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
  align-content: start;
  padding-top: 18px;
  border-top: 2px solid var(--olive);
}

.visit-item h3 {
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
}

.visit-item a {
  font-weight: 600;
  color: var(--olive);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.visit-item a:hover {
  text-decoration-color: currentColor;
}

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

@media (min-width: 560px) {
  .visit-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

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

/* Fußzeile ---------------------------------------------------------------- */
.footer {
  padding-block: 48px calc(96px + env(safe-area-inset-bottom));
  background: var(--olive-deep);
  color: var(--on-olive-muted);
  font-size: 1rem;
}

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

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

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact a {
  color: var(--on-olive);
  font-weight: 600;
}

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

.footer-legal a {
  padding: 10px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  font-size: 0.875rem;
  color: rgba(246, 243, 232, 0.6);
}

.footer-bottom a {
  color: var(--on-olive);
}

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
    gap: 40px;
  }
}

/* Schnellzugriff am Smartphone -------------------------------------------- */
.quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgba(251, 250, 246, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(35, 39, 30, 0.08);
  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(--olive);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.quickbar a:first-child {
  background: var(--tomato);
  color: #fff;
}

.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(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.05;
  color: var(--olive);
}

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

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

.legal-note {
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px dashed rgba(180, 64, 44, 0.5);
  border-radius: var(--radius);
  background: rgba(180, 64, 44, 0.06);
  color: var(--tomato-dark);
  font-size: 1rem;
}

.placeholder {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--olive-soft);
  color: var(--olive);
  font-weight: 600;
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  padding: 10px 0;
  color: var(--olive);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  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;
  }
}
