/**
 * tablecaptain – main.css
 *
 * Basis-Styles, Layout, Typografie, Header, Footer, Hero und
 * allgemeine Seitenstrukturen. Setzt variables.css voraus.
 *
 * Inhaltsübersicht:
 * 1. Reset & Base
 * 2. Typografie
 * 3. Layout & Container
 * 4. Scroll-Verhalten
 * 5. Header & Navigation
 * 6. Hero-Section
 * 7. USP-Sektion
 * 8. How-It-Works-Sektion
 * 9. For-Restaurants-Sektion
 * 10. Footer
 * 11. Seiten-Wrapper (Impressum, Datenschutz, AGB)
 * 12. Scroll-Reveal-Animationen
 * 13. Responsive Breakpoints
 *
 * @version 1.0.0
 */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-padding-top kompensiert den Sticky-Header beim Anchor-Sprung */
  scroll-padding-top: var(--header-height);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
}

/* Fokus-Stile: Sichtbarer Fokus-Ring für Tastatur-Navigation (WCAG 2.1 AA) */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Verstecktes, aber für Screenreader zugängliches Element */
.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;
}


/* ==========================================================================
   2. TYPOGRAFIE
   ========================================================================== */

h1 { font-size: var(--text-4xl); font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); letter-spacing: var(--letter-spacing-tight); }
h2 { font-size: var(--text-3xl); font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); }
h3 { font-size: var(--text-xl);  font-weight: var(--font-weight-semi); line-height: var(--line-height-snug); }
h4 { font-size: var(--text-md);  font-weight: var(--font-weight-semi); line-height: var(--line-height-snug); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Eyebrow: kleine Label-Zeile über Überschriften */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  max-width: 560px;
}


/* ==========================================================================
   3. LAYOUT & CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Haupt-Content: vertikaler Abstand unter dem Sticky-Header */
.main-content {
  min-height: calc(100vh - var(--header-height) - 340px);
}

/* Abschnitte ohne Hero bekommen oben Abstand wegen Sticky-Header */
.page-section {
  padding-block: var(--space-20);
}

.page-section--sm {
  padding-block: var(--space-12);
}

/* Seiten-Header: Bereich über dem Haupt-Inhalt einer Unterseite */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

.page-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}


/* ==========================================================================
   4. SCROLL-VERHALTEN
   ========================================================================== */

html {
  scroll-behavior: smooth;
}


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  /* z-index entspricht --z-header = 30 – über allem außer Modals/Toasts */
  z-index: var(--z-header);
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition:
    background var(--duration-normal) var(--ease-in-out),
    box-shadow var(--duration-normal) var(--ease-in-out),
    backdrop-filter var(--duration-normal) var(--ease-in-out);
}

/* Glassmorphism-Effekt beim Scrollen – wird per JS via Klasse gesetzt */
.site-header.is-scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  letter-spacing: var(--letter-spacing-tight);
}

.nav-brand__icon {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 16px;
  flex-shrink: 0;
}

/* Desktop-Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted) !important;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text) !important;
  background: var(--color-bg);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--color-primary) !important;
  background: var(--color-primary-light);
}

/* Hamburger-Button – nur mobil sichtbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-toggle:hover {
  background: var(--color-bg);
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-spring), opacity var(--duration-fast) var(--ease-out);
  transform-origin: center;
}

/* Hamburger → X-Transformation */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-Menü – slide-down */
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  /* z-index direkt unter Header (30), über Seiteninhalt */
  z-index: calc(var(--z-header) - 1);
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-normal) var(--ease-out);
}

.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile .nav-link {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

.nav-mobile .btn {
  margin-top: var(--space-2);
  justify-content: center;
}


/* ==========================================================================
   6. HERO-SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-text);
}

/* Hintergrundbild mit Overlay */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  /* Subtile Zoom-Animation beim Laden – 20s Dauer, harmlos bei reduced-motion */
  animation: hero-zoom 20s ease-out forwards;
}

/* Gradient-Overlay: dunkel unten für Text-Lesbarkeit, leichter oben */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.6) 50%,
    rgba(15, 23, 42, 0.8) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24);
  width: 100%;
}

.hero__inner {
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #FDBA74;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semi);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-5);
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--line-height-relaxed);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Scroll-Indikator unten */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll-icon {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero__scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  animation: scroll-dot 2s ease-in-out infinite;
}

/* Zoom-Animation für Hero-Hintergrund */
@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

/* Bounce für Scroll-Indikator */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Scroll-Dot bewegt sich nach unten */
@keyframes scroll-dot {
  0%   { opacity: 1;   transform: translateY(0); }
  80%  { opacity: 0;   transform: translateY(10px); }
  100% { opacity: 0;   transform: translateY(10px); }
}

/* Respektiert prefers-reduced-motion – Animationen deaktivieren */
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .hero__scroll { animation: none; }
  .hero__scroll-dot { animation: none; }
}


/* ==========================================================================
   7. USP-SEKTION
   ========================================================================== */

.usp-section {
  padding-block: var(--space-24);
  background: var(--color-white);
}

.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.usp-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.usp-panel--primary {
  background: var(--color-primary-50);
  border-color: var(--color-primary-light);
}

.usp-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.usp-panel__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.usp-panel--primary .usp-panel__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.usp-panel:not(.usp-panel--primary) .usp-panel__icon {
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 22px;
}

.usp-panel__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.usp-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.usp-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

.usp-item__check {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 1px;
}

.usp-panel--primary .usp-item__check {
  background: var(--color-primary);
  color: var(--color-white);
}

.usp-panel:not(.usp-panel--primary) .usp-item__check {
  background: var(--color-accent);
  color: var(--color-white);
}

.usp-panel__cta {
  margin-top: var(--space-8);
}


/* ==========================================================================
   8. HOW-IT-WORKS-SEKTION
   ========================================================================== */

.how-section {
  padding-block: var(--space-24);
  background: var(--color-bg);
}

.how-section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.how-section__header .section-subtitle {
  margin-inline: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

/* Verbindungslinie zwischen Steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  /* 36px = halbe Höhe des Step-Numbers-Kreises */
  left: calc(33.33% - 24px);
  right: calc(33.33% - 24px);
  height: 2px;
  background: linear-gradient(to right, var(--color-primary-light), var(--color-primary-light));
  background-image: repeating-linear-gradient(
    to right,
    var(--color-border) 0,
    var(--color-border) 6px,
    transparent 6px,
    transparent 14px
  );
  z-index: 0;
}

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all var(--duration-normal) var(--ease-out);
}

.step-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-card__number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  position: relative;
}

.step-card__icon {
  font-size: 24px;
  margin-bottom: var(--space-3);
}

.step-card h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}


/* ==========================================================================
   9. FOR-RESTAURANTS-SEKTION
   ========================================================================== */

.restaurants-section {
  padding-block: var(--space-24);
  background: var(--color-white);
  overflow: hidden;
}

.restaurants-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.restaurants-section__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.restaurants-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out);
}

.restaurants-section__image:hover img {
  transform: scale(1.03);
}

/* Floating Stats-Card über dem Bild */
.floating-stat {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.floating-stat__icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.floating-stat__value {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
}

.floating-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.restaurants-section__text { max-width: 480px; }
.restaurants-section__text h2 { margin-bottom: var(--space-4); }
.restaurants-section__text p  { color: var(--color-text-muted); margin-bottom: var(--space-6); line-height: var(--line-height-relaxed); }


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-brand {
  color: var(--color-white) !important;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.45);
  max-width: 260px;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semi);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45) !important;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-white) !important;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.3) !important;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
}


/* ==========================================================================
   11. SEITEN-WRAPPER (Impressum, Datenschutz, AGB, Bestätigung)
   ========================================================================== */

.page-header {
  margin-bottom: var(--space-10);
}

.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted) !important;
  margin-bottom: var(--space-4);
  transition: color var(--duration-fast) var(--ease-out);
}

.page-header__back:hover {
  color: var(--color-primary) !important;
  text-decoration: none;
}

.page-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.page-header__subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
}

.legal-content h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semi);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.legal-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.legal-content h3 {
  font-size: var(--text-md);
  font-weight: var(--font-weight-semi);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-content p,
.legal-content li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

/* Bestätigungs-Box */
.confirmation-box {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-16) var(--space-10);
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.confirmation-box__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto var(--space-6);
}

.confirmation-box--success .confirmation-box__icon { background: var(--color-success-light); color: var(--color-success); }
.confirmation-box--error   .confirmation-box__icon { background: var(--color-error-light);   color: var(--color-error); }
.confirmation-box--info    .confirmation-box__icon { background: var(--color-info-light);    color: var(--color-info); }

.confirmation-box h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.confirmation-box p {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

.confirmation-box__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================================================
   12. SCROLL-REVEAL-ANIMATIONEN
   ========================================================================== */

/* Scroll-Reveal: Ausgangszustand nur aktiv wenn JS geladen ist (.js-loaded auf <html>).
   Ohne JS bleiben alle Elemente sichtbar – kein leerer Bildschirm. */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.js-loaded .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Gestaffelte Verzögerung für Grid-Kinder (.reveal-item) */
.js-loaded .reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

.js-loaded .reveal-stagger .reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-loaded .reveal,
  .js-loaded .reveal-stagger .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   13. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .usp-grid { grid-template-columns: 1fr; }
  .restaurants-section__inner { grid-template-columns: 1fr; }
  .restaurants-section__image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .hero__title { letter-spacing: -0.02em; }
  .page-section { padding-block: var(--space-12); }
  .usp-section,
  .how-section,
  .restaurants-section { padding-block: var(--space-16); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
