/* ============================================================
   Feldstück — Restaurant Leipzig
   Clean, Apple-inspiriert · mobil-first · zero-dependency
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f2;      /* leicht grün-neutrales Grau */
  --text: #1c1f1a;        /* Near-Black mit Grünstich */
  --text-2: #5f665c;      /* gedämpftes Oliv-Grau */
  --line: #dfe1db;
  --accent: #4a5d3a;      /* Wald-/Olivgrün */
  --accent-ink: #37472b;  /* dunkler */
  --accent-soft: #eef0e8; /* helle Akzentfläche */
  --dark: #1b2117;        /* Footer / dunkle Flächen */

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --nav-h: 58px;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip; /* verhindert seitliches Verrutschen durch die Einflieg-Animation */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.muted {
  color: var(--text-2);
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-menu a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  opacity: 1 !important;
  padding: 0.5em 1.1em;
  border-radius: 980px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-ink);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================== TYPOGRAFIE ==================== */
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.002em;
  font-weight: 600;
  text-wrap: balance;
  margin: 0 0 20px;
}

.lede {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 20px;
  max-width: 46ch;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border: 0;
  border-radius: 980px;
  padding: 0.78em 1.5em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-ghost {
  color: var(--accent);
  background: transparent;
  padding-inline: 0.3em;
}

.btn-ghost span {
  transition: transform 0.25s ease;
}

.btn-ghost:hover span {
  transform: translateX(4px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.55em 1.1em;
  font-size: 0.9rem;
}

/* ==================== HERO ==================== */
.hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 5vw, 64px);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0.002em;
  font-weight: 600;
  text-wrap: balance;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: 1.24rem;
  color: var(--text-2);
  max-width: 44ch;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-panel {
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 60px) 24px 0;
  height: clamp(240px, 42vw, 460px);
  border-radius: 24px;
  background: linear-gradient(150deg, #e9ece2 0%, #dbe0cf 55%, #cdd4bd 100%);
  display: grid;
  place-items: center;
}

@media (min-width: 1128px) {
  .hero-panel {
    margin-inline: auto;
  }
}

.panel-mark {
  width: 28%;
  max-width: 110px;
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

/* ==================== HIGHLIGHT-STRIP ==================== */
.strip {
  border-block: 1px solid var(--line);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: clamp(28px, 4vw, 40px);
}

.strip-item {
  text-align: center;
}

.strip-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.strip-item p {
  margin: 0;
  font-size: 1.02rem;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: clamp(68px, 10vw, 120px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Verhindert horizontales „Wackeln" auf dem Handy: die Einflieg-Animation
   wird innerhalb des Abschnitts abgeschnitten, statt die Seite zu verbreitern.
   overflow-x: hidden unterstützt JEDER Browser (auch älteres iOS-Safari). */
.hero,
.strip,
.section,
.footer {
  overflow-x: hidden;
}

.section-head {
  max-width: 48ch;
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Foto-Platzhalter (später echte Bilder einsetzen) */
.media-panel {
  border-radius: var(--radius);
  background: linear-gradient(150deg, #e9ece2 0%, #dce1d0 100%);
  min-height: 340px;
  display: grid;
  place-items: center;
}

.section-alt .media-panel {
  background: linear-gradient(150deg, #ffffff 0%, #e6eadd 100%);
}

/* Fotos füllen ihre Fläche formatfüllend aus */
.hero-panel,
.media-panel {
  position: relative;
  overflow: hidden;
}

.panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== SPEISEKARTE ==================== */
.menu-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.menu-feature h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 6px 0 8px;
}

.menu-feature p {
  margin: 0;
  color: var(--text-2);
  max-width: 46ch;
}

.menu-feature-price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0 !important;
  color: var(--text) !important;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
}

.menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 80px);
}

.menu-group:first-child {
  grid-row: span 2;
}

.menu-cat {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.menu-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.menu-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
}

.menu-desc {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

.veg {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 1px 8px;
  margin-left: 4px;
  vertical-align: middle;
}

.menu-note {
  margin: clamp(32px, 4vw, 44px) 0 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ==================== GALERIE ==================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  min-height: 200px;
  aspect-ratio: 3 / 4;
}

/* ==================== RESERVIERUNG / FORMULAR ==================== */
.reservierung-grid {
  align-items: start;
}

.contact-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  max-width: 380px;
}

.contact-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-facts li span {
  color: var(--text-2);
}

.contact-facts li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 20px 50px rgba(28, 31, 26, 0.05);
}

.section-alt .form-card {
  background: var(--bg);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  min-width: 0; /* erlaubt Schrumpfen in Grid-Spalten -> kein Überlappen */
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.optional {
  font-weight: 400;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 93, 58, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 14px;
}

.field-row .field {
  margin-bottom: 18px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-hint {
  font-size: 0.84rem;
  color: var(--text-2);
  margin: 14px 0 0;
  text-align: center;
}

.form-hint a {
  color: var(--accent);
}

.field-note {
  font-size: 0.82rem;
  color: var(--text-2);
  margin: -4px 0 18px;
}

.form-success {
  text-align: center;
  padding: clamp(32px, 5vw, 48px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.6rem;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.form-success p {
  color: var(--text-2);
  margin: 0;
}

/* ==================== ANFAHRT ==================== */
.info-block {
  margin-bottom: 32px;
}

.info-block h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.info-block p {
  margin: 0 0 8px;
  color: var(--text-2);
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 360px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}

.hours li span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* Karte-Consent */
.map-consent {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.map-consent-inner {
  text-align: center;
  padding: 32px;
  max-width: 340px;
}

.map-consent-inner p {
  color: var(--text-2);
  font-size: 0.94rem;
  margin: 16px 0 20px;
}

.map-consent iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  color: #e7eae1;
  padding: clamp(52px, 7vw, 80px) 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.muted-light {
  color: rgba(231, 234, 225, 0.6);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(231, 234, 225, 0.55);
  font-weight: 600;
  margin: 0 0 14px;
}

.footer-col p {
  margin: 0;
  line-height: 1.8;
}

.footer-col a {
  color: #e7eae1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.86rem;
  color: rgba(231, 234, 225, 0.55);
}

.footer-bottom a {
  color: rgba(231, 234, 225, 0.55);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ==================== COOKIE-BANNER ==================== */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--dark);
  color: #e7eae1;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cookie p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie a {
  color: #fff;
}

.cookie .btn {
  flex-shrink: 0;
}

/* Wichtig: sorgt dafür, dass das [hidden]-Attribut den Banner wirklich
   ausblendet (sonst gewinnt display:flex und der Button wirkt „kaputt"). */
.cookie[hidden] {
  display: none;
}

/* ============================================================
   RECHTSSEITEN (Impressum / Datenschutz)
   ============================================================ */
.legal {
  max-width: 760px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-2);
  line-height: 1.7;
}

.legal p {
  margin: 0 0 14px;
}

.legal-list {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-list li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--accent);
}

.legal code {
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.legal-note {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 8px 0 32px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js [data-reveal="left"] {
  transform: translateX(-30px);
}
.js [data-reveal="right"] {
  transform: translateX(30px);
}
.js [data-reveal="up"] {
  transform: translateY(38px);
}

.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

.js .load {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .menu-cols {
    grid-template-columns: 1fr;
  }
  .menu-group:first-child {
    grid-row: auto;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  /* Über-uns-Bild unter den Text */
  #ueber .media-panel {
    order: 2;
  }
}

/* Mobile-Navigation */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-cta {
    margin-top: 14px;
    border-bottom: 0 !important;
    text-align: center;
  }
  /* Einfache Navigation auf Unterseiten (Impressum/Datenschutz/Danke):
     bleibt sichtbar, klappt NICHT ein (kein Menü-Button vorhanden). */
  .nav-menu.nav-simple {
    position: static;
    flex-direction: row;
    gap: 18px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: none;
    border: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-menu.nav-simple a {
    padding: 0;
    border-bottom: 0;
    font-size: 0.9rem;
  }
  .nav-menu.nav-simple .nav-cta {
    margin-top: 0;
    padding: 0.5em 1.1em;
  }
}

@media (max-width: 620px) {
  .strip-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .menu-feature {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .field-row .field-small {
    grid-column: auto;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cookie {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   REDUZIERTE BEWEGUNG
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal],
  .js .load {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
