/* ============================================================
   Casa Aurelia · Startseite, Reservierung, Rechtstexte
   ============================================================ */

:root {
  --ink: #17130f;          /* Sepia, Grundton */
  --ink-2: #221c16;
  --ink-3: #2e261e;
  --paper: #ece5d8;        /* Kalkputz */
  --paper-2: #e3dac9;
  --paper-3: #f5f0e7;
  --tomato: #cf4a2c;
  --tomato-deep: #a8391f;
  --olive: #5e6438;
  --open: #8fb36a;          /* Punkt „geöffnet“ in der Kopfzeile */

  --text: #17130f;
  --text-muted: #5c5247;
  --text-faint: #6f6457;   /* 4.6:1 auf Kalkputz (vorher #8e8376, 3:1) */
  --line: rgba(23, 19, 15, 0.16);
  --line-strong: rgba(23, 19, 15, 0.42);

  --on-ink: #efe7d9;
  --on-ink-muted: rgba(239, 231, 217, 0.62);
  --on-ink-line: rgba(239, 231, 217, 0.16);

  --font-display: 'Gloock', 'Times New Roman', serif;
  --font-body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --arch: 999px 999px 0 0;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }
::selection { background: var(--tomato); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary { background: var(--tomato); color: #fff; border: 1.5px solid var(--tomato); }
.btn-primary:hover { background: var(--tomato-deep); border-color: var(--tomato-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-primary .arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-line { border: 1.5px solid currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.on-paper .btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-full { width: 100%; }
.btn-outline {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: inherit;
}

/* ---------- Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
#site-header.scrolled { border-bottom-color: var(--on-ink-line); }
.header-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.logo small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--on-ink-muted);
  letter-spacing: 0.02em;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--on-ink-muted);
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--on-ink); }
.main-nav .nav-cta { display: none; }
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--on-ink-muted);
  white-space: nowrap;
}
.header-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--on-ink-muted);
}
.header-status.is-open::before { background: var(--open); box-shadow: 0 0 0 3px rgba(143, 179, 106, 0.18); }
.header-inner > .btn-primary { min-height: 42px; padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--on-ink);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) 0;
}
.hero-text { position: relative; z-index: 2; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero-kicker {
  font-size: 0.9rem;
  color: var(--on-ink-muted);
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.hero-kicker b { color: var(--on-ink); font-weight: 600; }
.wordmark {
  font-size: clamp(4.6rem, 12.5vw, 11.25rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  margin-left: -0.05em;
}
.wordmark span { display: block; }
.wordmark span:last-child { color: var(--tomato); padding-left: 0.4em; }
.hero-lede {
  max-width: 34rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--on-ink-muted);
}
.hero-lede strong { color: var(--on-ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-plate {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}
.hero-plate figure {
  width: 100%;
  aspect-ratio: 4 / 5.4;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--ink-3);
}
.hero-plate img { width: 100%; height: 100%; object-fit: cover; }
.plate-note {
  position: absolute;
  left: -1.5rem;
  bottom: 2.25rem;
  max-width: 15rem;
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.4;
  transform: rotate(-2deg);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.plate-note b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 0.15rem; }

.hero-rail {
  border-top: 1px solid var(--on-ink-line);
}
.hero-rail ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-rail li {
  padding: 1.1rem 1.25rem 1.2rem 0;
  font-size: 0.92rem;
  color: var(--on-ink);
}
.hero-rail li + li { padding-left: 1.25rem; border-left: 1px solid var(--on-ink-line); }
.hero-rail span { display: block; font-size: 0.75rem; color: var(--on-ink-muted); margin-bottom: 0.15rem; }
.hero-rail a { text-decoration: none; }
.hero-rail a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Ladeanimation Hero */
@media (prefers-reduced-motion: no-preference) {
  .hero .rise { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) forwards; }
  .hero .rise:nth-child(2) { animation-delay: 0.08s; }
  .wordmark span:first-child { animation-delay: 0.1s; }
  .wordmark span:last-child { animation-delay: 0.22s; }
  .hero-lede.rise { animation-delay: 0.36s; }
  .hero-actions.rise { animation-delay: 0.46s; }
  .hero-plate figure { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); animation: unveil 1.2s var(--ease) 0.15s forwards; }
  .hero-plate img { transform: scale(1.12); animation: settle 1.8s var(--ease) 0.15s forwards; }
  .plate-note { opacity: 0; animation: drop 0.7s var(--ease) 0.95s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes drop { from { opacity: 0; transform: rotate(-2deg) translateY(-12px); } to { opacity: 1; transform: rotate(-2deg); } }

/* ---------- Section-Köpfe ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); scroll-margin-top: 60px; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.92; }
.section-head p { max-width: 30rem; color: var(--text-muted); }

/* ---------- Die Karte ---------- */
.menu-section { background: var(--paper); position: relative; }
.menu-card {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line-strong);
  outline-offset: -9px;
  padding: clamp(1.75rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 30px 60px -40px rgba(23, 19, 15, 0.45);
}
.menu-stamp {
  position: absolute;
  top: -1.4rem;
  right: clamp(1rem, 4vw, 3rem);
  width: 6.5rem; height: 6.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--tomato);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.05;
  transform: rotate(9deg);
}
.menu-stamp small { display: block; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.04em; opacity: 0.85; margin-top: 0.2rem; }
.menu-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 6vw, 5.5rem);
}
.course-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-strong);
  align-items: flex-end;
}
.course-head h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.course-head .de { font-size: 0.82rem; color: var(--text-muted); margin-left: auto; }
.menu-cols > div > .course + .course { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.course-thumb {
  flex: 0 0 auto;
  width: 3.4rem; height: 4.2rem;
  border-radius: var(--arch);
  overflow: hidden;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish { padding-block: 0.8rem; }
.dish + .dish { border-top: 1px dashed var(--line); }
.dish-line { display: flex; align-items: baseline; gap: 0.6rem; }
.dish-name { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; }
.dish-line::after { content: ''; order: 2; flex: 1; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-0.3rem); min-width: 1rem; }
.dish-price { order: 3; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.98rem; white-space: nowrap; }
.dish p { margin-top: 0.2rem; font-size: 0.93rem; color: var(--text-muted); max-width: 34ch; }
.dish .tag { display: inline-block; margin-left: 0.4rem; font-size: 0.72rem; font-weight: 600; color: var(--olive); vertical-align: 0.15em; }
.menu-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.tasting { display: flex; align-items: baseline; gap: 0.75rem 1.25rem; flex-wrap: wrap; }
.tasting h4 { font-size: 1.6rem; }
.tasting span { color: var(--text-muted); font-size: 0.95rem; }
.tasting b { color: var(--text); font-weight: 600; }
.menu-note { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- Das Haus ---------- */
.house { background: var(--ink); color: var(--on-ink); }
.house-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.house-photos { position: relative; padding-bottom: 18%; }
.house-photos .ph-main { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; }
.house-photos .ph-small {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 8px solid var(--ink);
}
.house-photos img { width: 100%; height: 100%; object-fit: cover; }
.house-text h2 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 0.96; margin-bottom: 1.75rem; }
.house-text h2 em { font-style: normal; color: var(--tomato); }
.house-text p { color: var(--on-ink-muted); max-width: 36rem; }
.house-text p + p { margin-top: 1rem; }
.house-text p strong { color: var(--on-ink); font-weight: 500; }
.house-facts { margin-top: 2.25rem; border-top: 1px solid var(--on-ink-line); }
.house-facts div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--on-ink-line);
  font-size: 0.95rem;
}
.house-facts dt { color: var(--on-ink-muted); }
.house-facts dd { color: var(--on-ink); }
.signature { margin-top: 2rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--on-ink); }
.signature small { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--on-ink-muted); }

/* ---------- Besuch ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.visit h2 { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.92; margin-bottom: 2.25rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--tomato-deep); font-weight: 600; }
.hours tr.today th::after { content: ' · heute'; font-weight: 400; }
.visit-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2.25rem; }
.visit-contact span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.visit-contact a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.visit-contact a:hover { text-decoration-color: var(--tomato); }
.res-panel {
  background: var(--tomato);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 220px 220px 0 0;
  padding-top: clamp(4.5rem, 9vw, 6.5rem);
  text-align: center;
}
.res-panel h3 { font-size: clamp(2.1rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.res-panel p { color: #fff; max-width: 24rem; margin-inline: auto; }
.res-panel .btn-primary { margin-top: 1.75rem; background: var(--ink); border-color: var(--ink); }
.res-panel .btn-primary:hover { background: #000; border-color: #000; }
.res-panel .small { margin-top: 1.25rem; font-size: 0.85rem; }
.res-panel .small a { color: #fff; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Footer ---------- */
#site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.92rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--on-ink-line); }
.footer-word { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.9; color: var(--on-ink); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; }
.footer-cols p { line-height: 1.7; }
.footer-cols a { text-decoration: none; color: var(--on-ink); }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.82rem; }
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--on-ink-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-ink); }

/* ---------- Scroll-Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESERVIERUNG
   ============================================================ */
.res-hero { background: var(--ink); color: var(--on-ink); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.5rem); }
.res-hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); line-height: 0.9; letter-spacing: -0.03em; }
.res-hero h1 span { color: var(--tomato); }
.res-intro-sub { margin-top: 1.25rem; max-width: 34rem; color: var(--on-ink-muted); }
.availability-notice {
  margin-top: 1.5rem;
  max-width: 34rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--tomato);
  background: var(--ink-2);
  font-size: 0.9rem;
  color: var(--on-ink);
}

#step1-section { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.step1-card {
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.step1-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 1.75rem; }
.step1-header h2, .form-card h2, .table-view-header h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.step1-header p { flex-basis: 100%; color: var(--text-muted); font-size: 0.95rem; }
.step1-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.step1-field { display: flex; flex-direction: column; gap: 0.4rem; }
.step1-field label, .form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.step1-field label svg { color: var(--tomato); }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  font-size: 1rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 0; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5247' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(207, 74, 44, 0.18); }
[aria-invalid="true"] { border-color: var(--tomato-deep); }
input[readonly] { background: var(--paper-2); color: var(--text-muted); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
.step1-confirm { min-height: 50px; border-radius: 10px; }
.step1-hint { margin-top: 1rem; font-size: 0.88rem; color: var(--text-muted); min-height: 1.2rem; }
.step1-hint.is-ok { color: var(--olive); }
.step1-hint.is-ok::before { content: '✓ '; }
.step1-closed-msg {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--tomato);
  background: rgba(207, 74, 44, 0.08);
  font-size: 0.92rem;
  color: var(--tomato-deep);
}

#reservation-main { padding-block: 2rem clamp(4rem, 8vw, 6rem); }
@media (prefers-reduced-motion: no-preference) {
  #reservation-main { animation: rise 0.5s var(--ease) both; }
}
.step2-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--ink);
  color: var(--on-ink);
}
.step2-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.95rem; color: var(--on-ink-muted); }
.step2-summary strong { color: var(--on-ink); font-weight: 600; }
.step2-bar .btn-outline { color: var(--on-ink); }
.reservation-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.form-card, .table-view { background: var(--paper-3); border: 1px solid var(--line-strong); padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-card h2 { margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.required { color: var(--tomato); }
.form-group--checkbox .checkbox-label { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.92rem; font-weight: 400; color: var(--text); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 20px; min-height: 0; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--tomato); }
.checkbox-label a { color: inherit; text-underline-offset: 3px; }
.field-error { font-size: 0.8rem; color: var(--tomato-deep); min-height: 1rem; }
.field-error:empty { min-height: 0; }
.field-note { font-size: 0.8rem; color: var(--text-muted); }
#form-error-global { margin-top: 0.75rem; }
.success-box { display: flex; gap: 0.9rem; padding: 1.25rem; background: #eef1e3; border-left: 3px solid var(--olive); }
.success-box svg { flex: 0 0 auto; margin-top: 2px; color: var(--olive); }
.success-box a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }
.success-box p + p { margin-top: 0.25rem; color: var(--text-muted); }

.table-view-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.legend-dot { border-radius: 50%; }
.room-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.room-tab { min-height: 44px; padding: 0.45rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--text-muted); transition: all 0.2s; }
.room-tab.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.table-loading { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--tomato); border-radius: 50%; animation: spin 0.7s linear infinite; }
svg.spinner { border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Grundriss (floorplan.js) ---------- */
#floor-plan-wrap { width: 100%; padding-top: 0.5rem; }
.floor-plan {
  --wall: var(--ink);
  --cotto: #e7c6a5;
  --sea: #9fc3c1;
  position: relative;
  width: 100%;
  container-type: inline-size;
  margin: 0.75rem 0 1.25rem;
  border: 7px solid var(--wall);
  border-radius: 4px;
  background: var(--paper-3);
  box-shadow: 0 24px 40px -30px rgba(23, 19, 15, 0.55);
}
.fp-floor {
  position: absolute;
  inset: 0;
  background-color: #f1e2d0;
  background-image:
    linear-gradient(rgba(168, 57, 31, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 57, 31, 0.10) 1px, transparent 1px);
  background-size: calc(100% / 15) calc(100% / 11);
}
.floor-plan.is-portrait .fp-floor { background-size: calc(100% / 11) calc(100% / 15); }
.fp-deco { position: absolute; pointer-events: none; z-index: 1; }
.fp-text { font-size: max(9px, calc(11 * var(--u))); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }

.fp-window {
  background: var(--sea);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(62 * var(--u)), #fff 0 calc(66 * var(--u)));
  border-radius: 2px;
  z-index: 3;
}
.fp-window.is-vertical { background-image: repeating-linear-gradient(180deg, transparent 0 calc(62 * var(--u)), #fff 0 calc(66 * var(--u))); }
.fp-label {
  transform: translate(-50%, -50%);
  font-size: max(9px, calc(11 * var(--u)));
  color: #3d6866;
  white-space: nowrap;
  font-weight: 600;
}
.fp-label.is-vertical { writing-mode: vertical-rl; }
.fp-door { background: #f1e2d0; z-index: 3; }
.fp-door::after {
  content: '';
  position: absolute;
  left: 0; bottom: 100%;
  width: 100%; aspect-ratio: 1;
  border-top: 1.5px dashed rgba(23, 19, 15, 0.35);
  border-right: 1.5px dashed rgba(23, 19, 15, 0.35);
  border-top-right-radius: 100%;
}
.fp-door .fp-text { position: absolute; left: 110%; bottom: 140%; color: var(--text-muted); }
.fp-door.is-vertical::after { left: 100%; bottom: auto; top: 0; width: auto; height: 100%; border-top-right-radius: 0; border-bottom-right-radius: 100%; border-top: 0; border-bottom: 1.5px dashed rgba(23, 19, 15, 0.35); }
.fp-door.is-vertical .fp-text { left: 140%; bottom: auto; top: 105%; }

.fp-bar {
  background: var(--ink-3);
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 0 0 calc(5 * var(--u)) #5a4632;
  display: grid;
  place-items: center;
}
.fp-bar .fp-text { color: var(--on-ink); font-family: var(--font-display); font-weight: 400; font-size: max(11px, calc(16 * var(--u))); }
.fp-bar i {
  position: absolute;
  left: calc(-20 * var(--u));
  width: calc(14 * var(--u)); height: calc(14 * var(--u));
  border-radius: 50%;
  background: var(--olive);
  box-shadow: inset 0 0 0 calc(3 * var(--u)) #7d8350;
}
.fp-bar i:nth-of-type(1) { top: 12%; } .fp-bar i:nth-of-type(2) { top: 34%; } .fp-bar i:nth-of-type(3) { top: 56%; } .fp-bar i:nth-of-type(4) { top: 78%; }
.fp-bar.is-vertical i { left: auto; top: calc(-20 * var(--u)) !important; }
.fp-bar.is-vertical i:nth-of-type(1) { left: 12%; } .fp-bar.is-vertical i:nth-of-type(2) { left: 34%; } .fp-bar.is-vertical i:nth-of-type(3) { left: 56%; } .fp-bar.is-vertical i:nth-of-type(4) { left: 78%; }

.fp-plant {
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #9aa36a 0 22%, transparent 23%),
    radial-gradient(circle at 70% 40%, #848c55 0 24%, transparent 25%),
    radial-gradient(circle at 45% 72%, #737a47 0 26%, transparent 27%),
    var(--olive);
  box-shadow: 0 0 0 calc(3 * var(--u)) #c98a5c;
}
.fp-sideboard, .fp-shelf {
  background: #8a6a4c;
  border-radius: 3px;
  display: grid;
  place-items: center;
}
.fp-shelf {
  background-color: #5a4632;
  background-image: repeating-linear-gradient(90deg, #7a2f2a 0 calc(9 * var(--u)), #5a4632 0 calc(13 * var(--u)));
}
.fp-shelf.is-vertical { background-image: repeating-linear-gradient(180deg, #7a2f2a 0 calc(9 * var(--u)), #5a4632 0 calc(13 * var(--u))); }
.fp-sideboard .fp-text, .fp-shelf .fp-text { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.fp-sideboard.is-vertical .fp-text, .fp-shelf.is-vertical .fp-text { writing-mode: vertical-rl; }
.floor-plan.is-portrait .fp-door .fp-text { display: none; }

/* Tische */
.floor-plan .table {
  position: absolute;
  transform: translate(-50%, -50%);
  display: block;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  user-select: none;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.floor-plan .table:focus-visible { outline: none; }
.floor-plan .table:focus-visible .table-top { box-shadow: 0 0 0 3px var(--paper-3), 0 0 0 5px var(--ink); }
.table-top {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #fffaf2;
  border: 1.5px solid var(--ink);
  border-radius: calc(6 * var(--u));
  box-shadow: 0 calc(3 * var(--u)) 0 rgba(23, 19, 15, 0.18);
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.table--round .table-top { border-radius: 50%; }
.table-top b { font-family: var(--font-display); font-weight: 400; font-size: max(12px, calc(19 * var(--u))); line-height: 1; }
.table-top small { font-size: max(8px, calc(9.5 * var(--u))); color: var(--text-muted); line-height: 1.2; }
.table--round2 .table-top small { display: none; }
.chair {
  position: absolute;
  z-index: 1;
  background: var(--olive);
  border-radius: calc(4 * var(--u)) calc(4 * var(--u)) calc(7 * var(--u)) calc(7 * var(--u));
  border-top: calc(4 * var(--u)) solid #3f4324;
  transition: background 0.2s, border-color 0.2s;
}
.floor-plan .table:hover:not(.reserved):not(.selected) .table-top { background: #fff; border-color: var(--tomato); transform: scale(1.05); }
.floor-plan .table.suggested .table-top { background: #f8d9cf; border: 2px dashed var(--tomato); }
.floor-plan .table.suggested .chair { background: #d98a6e; border-top-color: var(--tomato-deep); }
.floor-plan .table.selected .table-top { background: var(--tomato); border-color: var(--tomato-deep); color: #fff; transform: scale(1.06); box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(168, 57, 31, 0.45); }
.floor-plan .table.selected .table-top small { color: rgba(255, 255, 255, 0.85); }
.floor-plan .table.selected .chair { background: var(--tomato-deep); border-top-color: #6e2414; }
.floor-plan .table.reserved { cursor: not-allowed; pointer-events: none; }
.floor-plan .table.reserved .table-top {
  background: repeating-linear-gradient(135deg, #e3dac9 0 4px, #d6ccba 4px 8px);
  border-color: rgba(23, 19, 15, 0.25);
  color: var(--text-faint);
  box-shadow: none;
}
.floor-plan .table.reserved .table-top small { color: var(--text-faint); }
.floor-plan .table.reserved .chair { background: #c4b9a7; border-top-color: #ab9f8b; }

/* Legende passend zum Grundriss */
.legend-dot { width: 14px; height: 14px; }
.legend-dot--free { background: #fffaf2; border: 1.5px solid var(--ink); }
.legend-dot--suggested { background: #f8d9cf; border: 1.5px dashed var(--tomato); }
.legend-dot--selected { background: var(--tomato); }
.legend-dot--reserved { background: repeating-linear-gradient(135deg, #e3dac9 0 3px, #cfc4b1 3px 6px); border: 1px solid rgba(23, 19, 15, 0.25); opacity: 1; }
.table-hint { margin-top: 0.9rem; min-height: 1.2rem; font-size: 0.88rem; color: var(--text-muted); }
.table-hint.is-error { color: var(--tomato-deep); font-weight: 600; }

/* ============================================================
   RECHTSTEXTE
   ============================================================ */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.placeholder { background: #fff2a8; color: var(--text); padding: 0 0.25rem; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .header-status { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .house-grid, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .house-photos { max-width: 520px; }
  .reservation-layout { grid-template-columns: minmax(0, 1fr); }
  .reservation-layout > .table-view { order: -1; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav-toggle { display: block; }
  .header-inner { gap: 1rem; }
  .header-inner > .btn-primary { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    background: var(--ink);
    border-top: 1px solid var(--on-ink-line);
    padding: 2rem var(--gutter);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--on-ink-line); }
  .main-nav a { display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 2rem; color: var(--on-ink); }
  .main-nav .nav-cta { display: block; }
  .main-nav .nav-cta a { color: var(--tomato); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 2rem; }
  .hero-text { padding-bottom: 2.5rem; }
  .wordmark { font-size: clamp(4.2rem, 24vw, 7rem); }
  .hero-actions .btn-primary, .hero-actions .btn-line { flex: 1 1 auto; }
  .hero-plate { margin-inline: calc(var(--gutter) * -0.25); }
  .hero-plate figure { aspect-ratio: 4 / 4.4; }
  .plate-note { left: 0.75rem; bottom: 1rem; max-width: 13rem; }
  .hero-rail ul { grid-template-columns: minmax(0, 1fr); }
  .hero-rail li, .hero-rail li + li { padding: 0.9rem 0; border-left: 0; }
  .hero-rail li + li { border-top: 1px solid var(--on-ink-line); }

  .section-head { grid-template-columns: minmax(0, 1fr); }
  .menu-cols { grid-template-columns: minmax(0, 1fr); }
  .menu-stamp { width: 5.25rem; height: 5.25rem; font-size: 0.9rem; top: -1.6rem; right: 0.75rem; }
  .menu-card { outline-offset: -6px; }
  .dish-name { font-size: 1.15rem; }
  .house-photos .ph-small { right: 0; }
  .house-facts div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .visit-contact { grid-template-columns: minmax(0, 1fr); }
  .res-panel { border-radius: 160px 160px 0 0; }

  .step1-fields { grid-template-columns: minmax(0, 1fr); }
  .hero-rail a, .visit-contact a, .res-panel .small a, .footer-cols a, .footer-bottom a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
  .footer-cols p { line-height: 2.2; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Plattenwand-Entwurf: Hinweis in der Fußzeile, Telefonnummer ohne Link */
.nowrap { white-space: nowrap; }
.footer-bottom .demo-note { color: var(--on-ink-muted); max-width: 46ch; }
.footer-bottom .demo-note a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
