/* Gemeinsame Grundlage der Beispiel-Webseiten (Demos) unter /beispiele/…
   Jede Demo setzt oben im <style> ihre eigenen Farben, Schriften und Formen über diese Variablen. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
:root {
  --bg: #fff; --fg: #111; --muted: #666; --line: rgb(0 0 0 / .1); --surface: #f5f5f5;
  --accent: #111; --accent-ink: #fff;
  --font-display: Georgia, serif; --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600; --display-case: none; --display-tracking: -0.02em; --display-leading: 1.05;
  --radius: 14px; --btn-radius: 999px; --wrap: 1200px; --gutter: clamp(20px, 5vw, 48px);
  --header-bg: rgb(255 255 255 / .9); --header-fg: var(--fg);
  --ease: cubic-bezier(.22, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.6 var(--font-body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-tracking); line-height: var(--display-leading); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hinweisleiste: macht klar, dass es ein Entwurf mit erfundenen Inhalten ist */
.demo-bar { position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 9px var(--gutter); background: #07080C; color: #E9EAF0; font: 500 .8125rem/1.4 system-ui, sans-serif; text-align: center; }
.demo-bar strong { font-weight: 700; background: linear-gradient(90deg, #7C5CFF, #FF4FA3 55%, #FFB547); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-bar a { color: #fff; text-underline-offset: 3px; white-space: nowrap; }
.demo-back { position: fixed; z-index: 70; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: rgb(7 8 12 / .82); color: #fff; font: 600 .875rem/1 system-ui, sans-serif; text-decoration: none; border: 1px solid rgb(255 255 255 / .22); box-shadow: 0 10px 30px rgb(0 0 0 / .3); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .3s, visibility .3s, translate .3s var(--ease); }
.demo-back.is-on { opacity: 1; visibility: visible; translate: 0 0; }
.demo-back::before { content: "←"; }

/* Kopf */
.d-header { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.d-header.is-solid { background: var(--header-bg); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.d-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); color: var(--header-fg); }
.d-logo { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-tracking); font-size: 1.35rem; text-decoration: none; line-height: 1; }
.d-nav { display: none; gap: 28px; font-size: .9375rem; }
.d-nav a { text-decoration: none; opacity: .85; }
.d-nav a:hover { opacity: 1; }
.d-burger { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: var(--btn-radius); background: none; cursor: pointer; }
.d-burger span, .d-burger span::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.d-burger span::before { content: ""; position: absolute; top: 6px; }
.d-menu { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; background: var(--header-bg); }
.d-menu a { display: flex; align-items: center; min-height: 48px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.d-header .d-btn { display: none; }
/* Über einem Vollbild-Foto ist der Kopf erst hell, beim Scrollen bekommt er die Seitenfarben */
.has-hero-full .d-header:not(.is-solid) .d-header__in { color: #fff; }
.has-hero-full .d-header:not(.is-solid) .d-btn { background: #fff; color: #111; border-color: #fff; }
@media (min-width: 900px) {
  .d-nav, .d-header .d-btn { display: inline-flex; }
  .d-burger, .d-menu { display: none !important; }
}

/* Knöpfe */
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--btn-radius); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.d-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(0 0 0 / .18); }
.d-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.d-btn--small { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }

/* Gerüst */
.d-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.d-section { padding-block: clamp(64px, 10vw, 128px); }
.d-section--alt { background: var(--surface); }
.d-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.d-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.d-head p { color: var(--muted); font-size: 1.125rem; }
.d-kicker { font-size: .875rem; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.d-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 720px) { .d-grid--2 { grid-template-columns: repeat(2, 1fr); } .d-grid--3 { grid-template-columns: repeat(3, 1fr); } .d-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .d-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.d-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.d-card h3 { font-size: 1.375rem; }
.d-card p { color: var(--muted); }
.d-media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.d-media img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.d-hero { position: relative; }
.d-hero--full { min-height: min(92svh, 900px); display: grid; align-items: end; color: #fff; margin-top: -76px; }
.d-hero--full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero--full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .4), transparent 26%, rgb(0 0 0 / .3) 52%, rgb(0 0 0 / .78)); }
.d-hero--full .d-hero__content { text-shadow: 0 1px 18px rgb(0 0 0 / .35); }
.d-hero--full .d-btn { text-shadow: none; }
.d-hero__content { position: relative; z-index: 1; display: grid; gap: 22px; padding-block: 140px clamp(48px, 8vw, 96px); }
.d-hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6rem); max-width: 14ch; }
.d-hero__lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); max-width: 46ch; }
.d-hero--full .d-hero__lead { opacity: .92; }
.d-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.d-hero--split .d-hero__grid { display: grid; gap: 36px; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
@media (min-width: 900px) { .d-hero--split .d-hero__grid { grid-template-columns: 1.05fr 1fr; } }

/* Preisliste mit Punkten zwischen Name und Preis */
.d-prices { list-style: none; margin: 0; padding: 0; display: grid; }
.d-prices li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.d-prices li::after { content: none; }
.d-prices .dots { border-bottom: 1px dotted var(--muted); opacity: .5; transform: translateY(-4px); }
.d-prices small { display: block; color: var(--muted); font-size: .875rem; }
.d-prices b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Reiter (z. B. Speisekarte) */
.d-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.d-tab { min-height: 44px; padding: 8px 20px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; }
.d-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Auswahl-Chips */
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.d-chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--btn-radius); border: 1px solid var(--line); cursor: pointer; font-size: .9375rem; background: var(--bg); transition: background-color .2s, border-color .2s, color .2s; }
.d-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.d-chip:has(input:checked) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.d-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.d-chip small { opacity: .7; margin-left: 6px; }

/* Termin-/Anfrage-Baustein */
.d-booking { display: grid; gap: 22px; padding: clamp(22px, 4vw, 40px); border-radius: calc(var(--radius) + 6px); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .35); }
.d-booking legend, .d-booking .d-label { font-weight: 600; margin-bottom: 10px; padding: 0; }
.d-booking fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.d-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.d-days .d-chip { flex-direction: column; justify-content: center; min-height: 64px; border-radius: 12px; line-height: 1.2; }
.d-days .d-chip b { font-size: 1.125rem; }
.d-field { display: grid; gap: 6px; }
.d-field input, .d-field select, .d-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.d-summary { padding: 14px 16px; border-radius: 12px; background: var(--surface); font-size: .9375rem; color: var(--muted); }
.d-demo-note { padding: 14px 16px; border-radius: 12px; border-left: 3px solid var(--accent); background: var(--surface); font-size: .9375rem; }

/* Galerie mit Filter */
.d-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.d-gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .d-gallery { grid-template-columns: repeat(3, 1fr); } }
.d-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.d-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform .6s var(--ease); }
.d-gallery figure:hover img { transform: scale(1.04); }
.d-gallery [hidden] { display: none; }

/* Schritte, Öffnungszeiten, Fußzeile */
.d-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .d-steps { grid-template-columns: repeat(3, 1fr); } }
.d-steps li { counter-increment: s; display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--accent); }
.d-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 1.75rem; color: var(--accent); }
.d-hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.d-hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.d-hours td:last-child { text-align: right; }
.d-cta { display: grid; gap: 20px; justify-items: start; padding: clamp(36px, 6vw, 72px); border-radius: calc(var(--radius) + 8px); background: var(--accent); color: var(--accent-ink); }
.d-cta h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: 18ch; }
.d-cta .d-btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.d-footer { padding-block: 48px 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.d-footer__in { display: grid; gap: 24px; }
@media (min-width: 820px) { .d-footer__in { grid-template-columns: 1.4fr 1fr 1fr; } }
.d-footer strong { color: var(--fg); }

/* Sanftes Einblenden beim Scrollen (nur ohne „Bewegung reduzieren“) */
@media (prefers-reduced-motion: no-preference) {
  .js .d-reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
  .js .d-reveal.is-in { opacity: 1; translate: 0 0; }
}
