/* Selbst gehostete Schriften (SIL Open Font License) statt Google Fonts CDN —
   vermeidet die Übertragung der Besucher-IP an Google bei jedem Seitenaufruf. */
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Farbtöne direkt aus dem Second-Chance-Logo entnommen. */
  --brand: #a75d58;
  --brand-light: #e7b6b2;
  --brand-dark: #864a46;
  --logo-gray: #3d3e40; /* Anthrazit aus dem Logo */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #2f2f2f;
  --text-muted: #767676;
  --border: #e4cfce;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --radius: 4px; /* Karten, Bilder, Panels */
  --radius-control: 8px; /* Buttons und Formularfelder */
  --card-title-size: 1.7rem; /* Ueberschrift in allen Karten/Feldern */
  --card-pad: 30px 22px;
  /* Seitenraster: Header, Inhalt und Footer teilen sich dieselbe Innenkante. */
  --page-max: 1180px;
  --gutter: 20px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  --ok: #6f8f5c;
  --ok-bg: #eaf1e4;
  --warn: #b5862f;
  --warn-bg: #f7edd9;
  --danger: #b5462f;
  --danger-bg: #f7e0d9;
  --muted-badge: #8a8a8a;
  --muted-badge-bg: #eeeeee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 350;
  font-variant-numeric: lining-nums;
}

h1, h2, h3, .page-title, .brand-header {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand);
}

code, kbd, samp, pre {
  font-family: var(--font-body);
  font-size: 0.95em;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

button, .btn {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px max(var(--gutter), calc((100% - var(--page-max)) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-header {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark-star { width: 40px; height: 40px; flex-shrink: 0; }
.brand-mark-star .facet-dark { fill: var(--brand); }
.brand-mark-star .facet-light { fill: var(--brand-light); }
.brand-mark-divider { width: 1px; height: 34px; background: var(--text); flex-shrink: 0; }
.brand-mark-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--brand); white-space: nowrap; }
.brand-mark-tagline { font-family: var(--font-heading); font-style: italic; font-weight: 500; font-size: 0.9rem; color: var(--text); }

.login-card .brand-mark-star { width: 54px; height: 54px; }
.login-card .brand-mark-divider { height: 46px; }
.login-card .brand-mark-name { font-size: 1.5rem; }
.login-card .brand-mark-tagline { font-size: 0.85rem; }

.brand-mark--hero { gap: 18px; }
.brand-mark--hero .brand-mark-star { width: 92px; height: 92px; }
.brand-mark--hero .brand-mark-divider { width: 2px; height: 78px; }
.brand-mark--hero .brand-mark-name { font-size: 2.4rem; }
.brand-mark--hero .brand-mark-tagline { font-size: 1.05rem; }

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

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-link:hover { background: var(--bg); text-decoration: none; }
.nav-link.active { background: var(--brand); color: #fff; }
.nav-link-cta { background: var(--brand); color: #fff; }
.nav-link-cta:hover { background: var(--brand-dark); }

/* ---------- Hamburger-Menue (mobil) ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--brand);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--bg); border-color: var(--brand); }
.nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { top: 10px; }
.topbar[data-nav-open] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.topbar[data-nav-open] .nav-toggle-bars span { opacity: 0; }
.topbar[data-nav-open] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }

  .topbar-actions {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 20;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .topbar[data-nav-open] .topbar-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .topbar-actions .nav-link,
  .topbar-actions .link-btn {
    display: flex;
    align-items: center;
    width: 100%;
  }
  .topbar-actions .nav-form { width: 100%; }
}

/* Adminbereich-Nav klar erkennbar: hellgraue Umrandung um jede Unterseite,
   aktive Seite in Dunkelgrau statt im Beige-/Markenton der Kunden-Nav. */
.admin-nav-actions .nav-link { border: 1px solid #d8d8d8; }
.admin-nav-actions .nav-link:hover { background: var(--bg); border-color: #b8b8b8; }
.admin-nav-actions .nav-link.active { background: var(--text); color: #fff; border-color: var(--text); }

.push-banner[hidden] { display: none; }
.push-banner {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn);
  border-radius: var(--radius);
}
.push-banner span { flex: 1; min-width: 220px; color: var(--text); font-size: 0.92rem; }
.push-banner .btn-cta { padding: 8px 18px; font-size: 0.9rem; }
.push-banner .link-btn { color: var(--text-muted); }

.nav-form { display: inline; }
.link-btn {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  margin: 0;
  background: none;
  border: none;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: var(--radius-control);
}
.link-btn:hover { background: var(--bg); }

/* ---------- Layout ---------- */

.main { max-width: calc(780px + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 60px; }
.main-wide { max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 60px; }

.page-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 18px; }

/* ---------- Forms ---------- */

form label { display: block; font-weight: 500; margin: 14px 0 6px; font-size: 0.92rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  accent-color: var(--brand);
}

textarea { resize: vertical; min-height: 90px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(181, 98, 47, 0.15);
}

button[type="submit"]:not(.btn):not(.link-btn), .btn-primary {
  margin-top: 18px;
  width: 100%;
  padding: 12px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-control);
  font-weight: 500;
  font-size: 1rem;
}
button[type="submit"]:not(.btn):not(.link-btn):hover, .btn-primary:hover { background: var(--brand-dark); }

.hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; }

.flash { padding: 10px 14px; border-radius: var(--radius); font-weight: 500; margin: 10px 0; }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-success { background: var(--ok-bg); color: var(--ok); }

/* ---------- Login / Register ---------- */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.login-card .brand-header { justify-content: center; font-size: 1.6rem; }
.subtitle { text-align: center; color: var(--text-muted); margin: 4px 0 0; }
.switch-link { text-align: center; margin-top: 16px; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Catalog ---------- */

.catalog-header { text-align: center; margin-bottom: 26px; }
.catalog-title { font-size: 1.9rem; font-weight: 800; margin: 0 0 6px; color: var(--brand); }
.catalog-header p { color: var(--text-muted); margin: 0 auto; max-width: 620px; }

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.category-pill {
  padding: 8px 16px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}
.category-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.category-pill:hover { text-decoration: none; border-color: var(--brand); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.product-card:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(58, 46, 38, 0.14); }

.product-card-photo {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card-photo .no-photo { color: var(--text-muted); font-size: 0.8rem; }

.product-card-body { padding: 10px 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card-title { font-weight: 500; font-size: 0.95rem; color: var(--logo-gray); }
.product-card-price { font-weight: 300; color: var(--brand-dark); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  width: fit-content;
}
.status-verfuegbar { background: var(--ok-bg); color: var(--ok); }
.status-angefragt, .status-reserviert { background: var(--warn-bg); color: var(--warn); }
.status-abgeholt { background: var(--muted-badge-bg); color: var(--muted-badge); }

.empty-state { text-align: center; color: var(--text-muted); padding: 60px 20px; }

/* ---------- Product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-photo-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-photo-main img { width: 100%; height: 100%; object-fit: cover; }

.product-photo-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.product-photo-thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
}
.product-photo-thumbs img.active { border-color: var(--brand); }

.product-info h1 { margin: 0 0 8px; font-size: 1.9rem; color: var(--logo-gray); }
.product-price { font-size: 1.4rem; font-weight: 300; color: var(--brand-dark); margin: 6px 0 14px; }
.product-meta-list { list-style: none; padding: 0; margin: 14px 0; color: var(--text-muted); }
.product-meta-list li { padding: 4px 0; }
.product-description { white-space: pre-wrap; }

.back-link-row { margin-bottom: 16px; }

@media (min-width: 720px) {
  .product-detail { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* ---------- Reservation form / list ---------- */

.opening-hours-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0 20px;
  box-shadow: var(--shadow);
}
.opening-hours-box h3 { margin: 0 0 10px; font-size: var(--card-title-size); line-height: 1.1; }
.opening-hours-box table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.opening-hours-box td { padding: 3px 0; color: var(--text-muted); }
.opening-hours-box td:last-child { text-align: right; color: var(--text); font-weight: 500; }

.reservation-list { display: flex; flex-direction: column; gap: 12px; }
.reservation-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.reservation-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.reservation-item .no-photo {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.7rem; text-align: center;
}
.reservation-item-body { flex: 1; }
.reservation-item-title { font-weight: 500; }
.reservation-item-meta { color: var(--text-muted); font-size: 0.88rem; }
.reservation-item-note { color: var(--text); font-size: 0.88rem; margin-top: 4px; font-style: italic; }
.reservation-item.is-expired { opacity: .55; filter: grayscale(50%); }

/* ---------- Admin tables ---------- */

.table-wrapper { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

.admin-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.admin-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
}
.btn:hover { border-color: var(--brand); text-decoration: none; }
.btn-accept { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-accept:hover { background: #5c7a4b; }
.btn-decline { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-decline:hover { background: #9a3a24; }
.btn-secondary { background: var(--bg); }

.inline-form { display: inline-flex; margin: 0; gap: 8px; flex-wrap: wrap; }
.admin-note-input { min-height: 44px; width: 200px; padding: 6px 8px; font-size: 0.85rem; margin: 0; }

.inline-edit-form { display: inline-flex; margin: 0; gap: 6px; }
.inline-edit-form input { width: 150px; padding: 7px 10px; font-size: 0.85rem; }

.admin-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-header-row .page-title { margin: 0; }

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.stats-strip-item { color: var(--text); font-weight: 500; }
a.stats-strip-item:hover { text-decoration: underline; }
.stats-strip-item strong { color: var(--brand); font-weight: 600; margin-right: 3px; }
.stats-strip-sep { color: var(--border); }

.thumb-cell img { width: 42px; height: 42px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Admin product form ---------- */

.photo-upload-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.photo-upload-grid .photo-thumb { position: relative; width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-upload-grid .photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-grid .photo-thumb form { position: absolute; top: 2px; right: 2px; margin: 0; }
.photo-upload-grid .photo-thumb button {
  background: rgba(58, 46, 38, 0.75); color: #fff; border: none; border-radius: var(--radius-control);
  width: 22px; height: 22px; font-size: 12px; line-height: 1; padding: 0; margin: 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }

/* ---------- Home: Hero mit scroll-gescrubbtem Video ----------
   .hero gibt die Scroll-Distanz (per JS auf ~220-360vh gesetzt, sobald der
   GSAP-Pin aktiv ist). .hero-visual ist der gepinnte, sichtbare Ausschnitt.
   Ohne JS/bei reduzierter Bewegung bleibt .hero so hoch wie .hero-visual,
   ein ganz normaler Einzel-Hero ohne Video. Gleiches Muster wie bei
   cafe-moon-app/better-behave-app. */

.hero { position: relative; }

.hero-visual {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 32px var(--gutter);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(134, 74, 70, 0.4) 0%, rgba(134, 74, 70, 0.4) 100%),
    url('/images/hero-video-poster.jpg') center / cover no-repeat,
    var(--brand-dark);
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-video.is-active { opacity: 1; }

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(134, 74, 70, 0.4);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-video-scrim.is-active { opacity: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-meta {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
}
.hero-scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: hero-scrolldot 1.8s ease infinite;
}

@keyframes hero-scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video, .hero-video-scrim { opacity: 1; }
  .hero-scroll-cue span { animation: none; }
  .nav-toggle-bars span,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after,
  .topbar-actions { transition: none; }
}

@media (min-width: 860px) {
  .hero-title { font-size: 3.8rem; }
}

.home-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
  margin: 56px 0;
}
@media (min-width: 720px) { .home-steps { grid-template-columns: repeat(3, 1fr); } }

.home-step {
  background: #f8ece9;
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.home-step:hover, .home-step:focus-within, .home-step:active {
  background: var(--brand-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home-step-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.home-step-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brand);
}
.home-step h3 { margin: 0; font-size: var(--card-title-size); line-height: 1.1; }
.home-step p { margin: 0; color: var(--text-muted); max-width: 320px; }

.home-section { margin: 56px 0; }
.home-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.home-section-title { font-family: var(--font-heading); font-size: 2rem; margin: 0; }
.home-section-link { font-weight: 500; color: var(--brand-dark); white-space: nowrap; }
.home-section-link:hover { color: var(--brand); }

.home-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 56px 0;
}
@media (min-width: 720px) { .home-values { grid-template-columns: repeat(3, 1fr); } }

.home-value {
  background: #f8ece9;
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.home-value:hover, .home-value:focus-within, .home-value:active {
  background: var(--brand-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.home-value h3 { margin: 0 0 12px; font-size: var(--card-title-size); line-height: 1.1; }
.home-value p { margin: 0; color: var(--text-muted); }

.home-visit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin: 56px 0;
}
@media (min-width: 720px) { .home-visit { grid-template-columns: 1fr 1fr; align-items: center; } }

.home-visit-text h2 { font-family: var(--font-heading); font-size: var(--card-title-size); line-height: 1.1; margin: 0 0 10px; color: #fff; }
.home-visit-text p { margin: 0 0 6px; color: var(--text); }
.home-visit-today { font-weight: 500; color: var(--brand-dark); margin-bottom: 18px !important; }
.home-visit-text .btn-cta-outline { background: #fff; }

.home-visit-about {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}
.home-visit-about p { margin: 0 0 10px; }
.home-visit-signature { font-style: normal; font-weight: 500; color: var(--brand-dark); }
.home-visit-about .home-section-link { font-style: normal; font-size: 0.95rem; }

/* ---------- Über uns ---------- */

.about-photo-header {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.about-photo-header img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
@media (min-width: 720px) { .about-photo-header img { height: 380px; } }

.about-hero { text-align: center; margin-bottom: 28px; }
.about-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 10px auto 0; }

.about-section { margin-bottom: 26px; }
.about-section h3 { font-size: var(--card-title-size); line-height: 1.1; margin: 0 0 10px; color: var(--brand); }
.about-section p { margin: 0; }

.account-section {
  margin: 26px 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.account-section h3 { font-size: var(--card-title-size); line-height: 1.1; margin: 0 0 12px; color: var(--brand); }
.push-notify-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.push-notify-row .btn { flex-shrink: 0; }
.push-notify-row .hint { margin: 0; flex: 1; min-width: 200px; }

.about-owner {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 26px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
}
.about-owner p { margin: 0 0 10px; color: var(--text); }
.about-owner p:last-child { margin-bottom: 0; }

.about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-control);
  font-weight: 500;
  text-decoration: none;
  background: var(--brand-dark);
  color: #fff;
}
.btn-cta:hover { background: var(--brand); text-decoration: none; }
.btn-cta-outline { background: var(--surface); color: var(--brand-dark); border: 1px solid var(--border); }
.btn-cta-outline:hover { background: var(--bg); border-color: var(--brand); }

/* ---------- Rechtliches (Impressum / Datenschutz) ---------- */

.legal-page .legal-section { margin-bottom: 26px; }
.legal-page .legal-section h3 { font-size: var(--card-title-size); line-height: 1.1; margin: 0 0 10px; color: var(--brand); }
.legal-page .legal-section p { margin: 0 0 10px; color: var(--text-muted); line-height: 1.6; }
.legal-page .legal-section p:last-child { margin-bottom: 0; }
.legal-page .legal-section ul { margin: 0 0 10px; padding-left: 20px; color: var(--text-muted); line-height: 1.6; }
.legal-page .legal-section code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1px 6px;
  font-size: 0.9em;
}

/* ---------- Standort ---------- */

.standort-hero { text-align: center; margin-bottom: 8px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  line-height: 0;
}

.standort-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}
@media (min-width: 620px) { .standort-info { grid-template-columns: 1fr 1fr; } }

.standort-info-block {
  background: var(--surface);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.standort-info-block h3 { margin: 0 0 10px; font-size: var(--card-title-size); line-height: 1.1; }
.standort-info-block p { margin: 0 0 10px; color: var(--text-muted); }

.opening-hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.opening-hours-table td { padding: 4px 0; color: var(--text-muted); }
.opening-hours-table td:last-child { text-align: right; color: var(--text); font-weight: 500; }
.opening-hours-table tr.is-today td { color: var(--brand-dark); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding: 26px max(var(--gutter), calc((100% - var(--page-max)) / 2)) 34px;
}
.site-footer-inner {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer-brand strong { color: var(--text); font-size: 1rem; }
.site-footer-tagline { color: var(--text-muted); }
.site-footer p { margin: 4px 0 0; }
.site-footer-contact, .site-footer-links { display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--brand-dark); }

/* ---------- Datums-/Uhrzeitauswahl (flatpickr, eigenes Farbschema statt Standard-Blau) ---------- */

.flatpickr-calendar {
  font-family: var(--font-body);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.flatpickr-calendar.arrowTop:before { border-bottom-color: var(--border); }
.flatpickr-calendar.arrowTop:after { border-bottom-color: var(--surface); }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: var(--text);
  fill: var(--text);
}
.flatpickr-current-month .flatpickr-monthDropdown-months option { background: var(--surface); }
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--text-muted);
  fill: var(--text-muted);
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--brand);
  fill: var(--brand);
}
span.flatpickr-weekday { color: var(--text-muted); font-weight: 500; }
.flatpickr-day {
  color: var(--text);
  border-radius: var(--radius);
}
.flatpickr-day.today { border-color: var(--brand-light); }
.flatpickr-day.today:hover, .flatpickr-day.today:focus {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--text);
}
.flatpickr-day:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--text);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--text-muted);
  opacity: 0.4;
}
.flatpickr-calendar.hasTime .flatpickr-time { border-top-color: var(--border); }
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: var(--text);
  font-family: var(--font-body);
}
.flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:focus, .flatpickr-time input:focus {
  background: var(--brand-light);
}
.numInputWrapper span.arrowUp:after { border-bottom-color: var(--text-muted); }
.numInputWrapper span.arrowDown:after { border-top-color: var(--text-muted); }
.numInputWrapper:hover { background: transparent; }

/* ---------- Button-Interaktion ----------
   Alle Buttons reagieren bei Hover/Fokus mit Farbwechsel, Schatten und
   leichter Vergroesserung, beim Klick/Tippen mit einer staerkeren.
   Vollbreite Elemente (Menue-Links, Submit-Buttons) wachsen weniger, damit
   sie nicht ueber die Seitenkanten (--gutter) hinausragen. */
:root { --btn-grow: 1.05; --btn-press: 1.08; }

.btn, .btn-cta, .btn-primary, button[type="submit"], .link-btn,
.nav-link, .category-pill, .nav-toggle {
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease;
}

.btn-cta-block { display: block; text-align: center; margin-top: 14px; }

.topbar-actions .nav-link, .topbar-actions .link-btn, .btn-cta-block,
button[type="submit"]:not(.btn):not(.link-btn) {
  --btn-grow: 1.02;
  --btn-press: 1.03;
}

.nav-link:not(.active):not(.nav-link-cta):hover,
.category-pill:not(.active):hover { background: #f8ece9; }

@media (hover: hover) {
  .btn:not(:disabled):hover, .btn-cta:hover, .btn-primary:not(:disabled):hover,
  button[type="submit"]:not(:disabled):hover, .link-btn:hover, .nav-link:hover,
  .category-pill:hover, .nav-toggle:hover {
    transform: scale(var(--btn-grow));
  }
  .btn-cta:hover, .btn-primary:not(:disabled):hover, .nav-link-cta:hover,
  button[type="submit"]:not(.link-btn):not(:disabled):hover, .btn-accept:hover, .btn-decline:hover {
    box-shadow: 0 6px 16px rgba(134, 74, 70, 0.28);
  }
}

.btn:not(:disabled):focus-visible, .btn-cta:focus-visible, .btn-primary:not(:disabled):focus-visible,
button[type="submit"]:not(:disabled):focus-visible, .link-btn:focus-visible, .nav-link:focus-visible,
.category-pill:focus-visible {
  transform: scale(var(--btn-grow));
}

.btn:not(:disabled):active, .btn-cta:active, .btn-primary:not(:disabled):active,
button[type="submit"]:not(:disabled):active, .link-btn:active, .nav-link:active,
.category-pill:active, .nav-toggle:active {
  transform: scale(var(--btn-press));
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn-cta, .btn-primary, button[type="submit"], .link-btn,
  .nav-link, .category-pill, .nav-toggle { transition: none; transform: none !important; }
}
