/*
 * Shared base of the industry demo websites (public/beispiele/<branche>/).
 * Each demo sets its mood through the custom properties below in its own style.css.
 * Rule of the house: hairlines and whitespace instead of boxes and cards.
 */

@font-face { font-family: "Inter"; font-weight: 300; font-display: swap; src: url("fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-display: swap; src: url("fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-display: swap; src: url("fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 300; font-display: swap; src: url("fonts/fraunces-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2"); }

:root {
  --bg: #f7f5f0;
  --bg-2: #efebe3;
  --ink: #1b1a17;
  --muted: #6b665d;
  --line: rgba(27, 26, 23, 0.14);
  --accent: #0f5c63;
  --accent-ink: #ffffff;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.01em;
  --radius: 999px;
  --wide: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Demo bar: what this is and the three views ---------- */

.demo-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.1rem 1.5rem;
  padding: 0.45rem var(--gutter);
  background: #141414; color: #e9e6df;
  font: 400 0.75rem/1.4 "Inter", system-ui, sans-serif; letter-spacing: 0.02em;
}
.demo-bar__note { opacity: 0.7; }
.demo-bar__note strong { font-weight: 500; color: #fff; }
.demo-bar__views { display: flex; gap: 1.25rem; }
.demo-bar__views button {
  border: 0; background: none; padding: 0.35rem 0; cursor: pointer; color: #bdb8ae;
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.demo-bar__views button:hover { color: #fff; }
.demo-bar__views button[aria-pressed="true"] { color: #fff; border-bottom-color: #fff; }

[data-view] { display: none; }
[data-view].is-active { display: block; animation: view-in 0.6s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Layout and type ---------- */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 44rem; }
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.eyebrow {
  display: block; margin: 0 0 1.25rem;
  font: 500 0.72rem/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.display, h1, h2, h3 { font-family: var(--serif); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); margin: 0; }
h1, .display { font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; }
em, .italic { font-style: italic; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } .split--even { grid-template-columns: 1fr 1fr; } }

/* ---------- Header of the demo business ---------- */

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem var(--gutter); max-width: var(--wide); margin: 0 auto; }
.site-head__name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.site-head nav { display: none; gap: 2rem; font-size: 0.9rem; }
.site-head nav a { text-decoration: none; opacity: 0.8; }
.site-head nav a:hover { opacity: 1; }
@media (min-width: 820px) { .site-head nav { display: flex; } }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0 1.8rem; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, opacity 0.3s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.link {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem;
  border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 0.35em; text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.link:hover { text-decoration-color: currentColor; }
.link::after { content: "→"; transition: transform 0.3s var(--ease); }
.link:hover::after { transform: translateX(3px); }
.link--plain::after { content: none; }

/* ---------- Lists between hairlines (menus, prices, orders) ---------- */

.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines > li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.lines__main { min-width: 0; }
.lines__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.lines__text { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.lines__end { flex: none; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Forms: underline fields, choices as text ---------- */

.form { display: grid; gap: 1.6rem; }
.form__row { display: grid; gap: 1.6rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field > span, .label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 0.6rem 0; font-size: 1.05rem; border-radius: 0; outline: none; transition: border-color 0.25s;
}
.field select option { color: #1b1a17; }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field input:user-invalid { border-bottom-color: #b3261e; }

.choices { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0.35rem 0 0; padding: 0; border: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span, .choice button {
  display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 2.75rem; justify-content: center;
  padding: 0.2rem 0; border: 0; background: none; cursor: pointer; color: var(--muted);
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; text-align: left;
}
.choice small { font-size: 0.75rem; opacity: 0.8; }
.choice span:hover, .choice button:hover { color: var(--ink); }
.choice input:checked + span, .choice button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice button:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

.check { display: flex; gap: 0.8rem; align-items: flex-start; cursor: pointer; }
.check input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; flex: none; }

/* Steps of a booking flow */
.steps { counter-reset: step; display: grid; gap: 3rem; }
.step { counter-increment: step; display: grid; gap: 1rem; }
.step__title { display: flex; gap: 1rem; align-items: baseline; font-family: var(--serif); font-size: 1.45rem; }
.step__title::before { content: "0" counter(step); font: 500 0.75rem/1 var(--sans); letter-spacing: 0.15em; color: var(--accent); }

/* Confirmation after a form */
.done { display: none; padding: 2.5rem 0 0; border-top: 1px solid var(--accent); }
.done.is-visible { display: block; animation: view-in 0.7s var(--ease); }
.done__mark { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.15; }

/* ---------- Customer area and administration ---------- */

.panel-head { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; border-bottom: 1px solid var(--line); }
.panel-head p { margin: 0.8rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 2rem 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.stat__value { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.admin-grid { display: grid; gap: 3.5rem; padding: 3rem 0 6rem; }
@media (min-width: 960px) { .admin-grid { grid-template-columns: 7fr 4fr; gap: 5rem; } }
.admin-grid h3 { margin-bottom: 1.2rem; }
.tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; white-space: nowrap; }
.tag--muted { color: var(--muted); }
.tag--new::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); margin-right: 0.45rem; vertical-align: 0.05rem; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.row-actions { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin-top: 0.35rem; }
.row-actions .link { min-height: 2rem; font-size: 0.85rem; }
.stamps { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0; }
.stamps i { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 1px solid var(--line); }
.stamps i.is-on { background: var(--accent); border-color: var(--accent); }
.empty { padding: 1.4rem 0; color: var(--muted); border-bottom: 1px solid var(--line); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.6rem 1.8rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 0.3rem; top: 0.55rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1px solid var(--muted); background: var(--bg); }
.timeline li::after { content: ""; position: absolute; left: 0.56rem; top: 1.25rem; bottom: 0.1rem; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.is-now { color: var(--ink); font-weight: 500; }
.timeline li.is-now::before { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.switch { display: inline-flex; align-items: center; gap: 0.75rem; cursor: pointer; min-height: 2.75rem; }
.switch input { appearance: none; width: 2.4rem; height: 1.35rem; border-radius: 1rem; background: var(--line); position: relative; cursor: pointer; transition: background 0.25s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 0.175rem; left: 0.2rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(1rem); }

.bar { height: 2px; background: var(--line); margin-top: 0.6rem; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width 0.8s var(--ease); }

/* ---------- Toast and footer ---------- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  max-width: calc(100% - 2rem); padding: 0.85rem 1.4rem; border-radius: var(--radius);
  background: #141414; color: #f2efe9; font-size: 0.9rem; transition: opacity 0.35s, transform 0.35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.site-foot { padding: 3.5rem 0 4rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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