/* ========================================
   Catering Hamburg – Globales Stylesheet
   ======================================== */

/* --- Schriften (selbst gehostet) --- */
@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/EB_Garamond/static/EBGaramond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/EB_Garamond/static/EBGaramond-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/EB_Garamond/static/EBGaramond-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../assets/fonts/EB_Garamond/static/EBGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter_woff2/Inter_24pt-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter_woff2/Inter_24pt-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter_woff2/Inter_24pt-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter_woff2/Inter_24pt-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Design-Tokens als Custom Properties --- */
:root {
  /* Farben */
  --primary: #171818;
  --on-primary: #ffffff;
  --primary-container: #2b2c2c;
  --on-primary-container: #949393;

  --secondary: #5e5e5b;
  --on-secondary: #ffffff;
  --secondary-container: #e1dfdb;

  --accent: #5A1B05;
  --accent-container: #7a2e10;
  --on-accent: #ffffff;

  --background: #fbf9f9;
  --on-background: #1b1c1c;

  --surface: #fbf9f9;
  --surface-dim: #dbdad9;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f5f3f3;
  --surface-container: #efeded;
  --surface-container-high: #e9e8e7;
  --surface-container-highest: #e3e2e2;
  --on-surface: #1b1c1c;
  --on-surface-variant: #444748;

  --outline: #747878;
  --outline-variant: #c4c7c7;
  --border-subtle: #e3e2e2;

  --error: #ba1a1a;
  --on-error: #ffffff;

  /* Typografie */
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Abstände */
  --unit: 8px;
  --element-gap: 24px;
  --gutter: 32px;
  --margin-mobile: 20px;
  --margin-desktop: 40px;
  --container-max: 1280px;
  --section-gap-sm: 60px;
  --section-gap-md: 80px;
  --section-gap: 120px;
  --section-gap-lg: 160px;

  /* Navigation */
  --nav-height: 100px;
  --banner-height: 40px;
}

/* --- Reset & Basis --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-background);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Typografie-Klassen --- */
.display-lg {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.headline-md {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.headline-sm {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.headline-xs {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.body-lg {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.body-md {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.body-sm {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.label-caps {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.label-caps-sm {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.section {
  padding-block: var(--section-gap);
}

.section-md {
  padding-block: var(--section-gap-md);
}

.section-lg {
  padding-block: var(--section-gap-lg);
}

/* --- Demo-Hinweis --- */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  padding-inline: 16px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(251, 249, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.nav__logo img {
  height: 70px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color 0.3s ease;
  padding-bottom: 2px;
}

.nav__link:hover,
.nav__link--active {
  color: var(--primary);
}

.nav__link--active {
  border-bottom: 1px solid var(--primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
}

/* Mobiles Menü – Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
/* Desktop: Text-Card liegt über dem Bild (Overlay). Mobile-Override siehe unten. */
.hero {
  position: relative;
  min-height: 100vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface-container-lowest);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero .hero__bg img {
  transform: scaleX(-1);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(251,249,249,0.2), var(--background));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--nav-height) + var(--section-gap-md));
}

.hero__card {
  max-width: 640px;
  padding: 48px;
}

.hero--centered {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--surface-container-lowest);
}

.hero--centered .hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.hero--centered .hero__gradient {
  background: linear-gradient(to top, var(--background), rgba(251,249,249,0.5), transparent);
  z-index: 1;
}

.hero--centered .hero__content {
  position: relative;
  z-index: 2;
  height: auto;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hero__card {
    padding: 24px;
    max-width: 100%;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 32px;
  height: 48px;
  border: none;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

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

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--text {
  background: transparent;
  color: var(--primary);
  padding: 0;
  height: auto;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}

.btn--text:hover {
  opacity: 0.7;
}

/* Icon-Pfeil in Buttons */
.btn__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Cards --- */
.card {
  background: var(--surface-container);
  border: 1px solid var(--border-subtle);
  padding: var(--gutter);
}

.card--white {
  background: var(--surface-container-lowest);
}

.card--elevated {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* --- Platzhalter-Bilder --- */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--outline);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Dekoratives Muster für Platzhalter */
.placeholder-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.03) 40%, rgba(0,0,0,0.03) 60%, transparent 60%);
  pointer-events: none;
}

/* KI-Kennzeichnung */
.ki-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--outline);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* --- Figures: Bild füllt verfügbaren Platz, Caption bleibt auf gleicher Höhe --- */
figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}

figure > .img-frame,
figure > .img-overlay {
  flex: 1 1 auto;
  min-height: 0;
}

figure > .ki-label {
  flex-shrink: 0;
}

/* --- Bild-Container --- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-container-high);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Private Events: Galerie-Bilder auf gleicher Höhe, damit Captions ausgerichtet sind */
.pe-gallery-frame {
  height: 420px;
}

/* Dekorativer Offset-Block hinter Bildern */
.img-shadow-block {
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 66%;
  aspect-ratio: 1;
  background: var(--surface-container-high);
  z-index: -1;
}

/* Bild mit Gradient-Overlay (für Text auf Bildern) */
.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.img-overlay__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 1;
  color: var(--on-primary);
}

/* --- Prozess-Schritte (Kreise) --- */
.step-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
}

.step-badge--outline {
  background: transparent;
  border: 1px solid var(--outline-variant);
  color: var(--primary);
}

/* --- Formulare --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}

.form-input {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  background: transparent;
  font-size: 16px;
  color: var(--on-surface);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-input::placeholder {
  color: var(--outline);
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  font-size: 16px;
  color: var(--on-surface);
  resize: none;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-textarea:focus {
  border-color: var(--accent);
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23747878' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}


/* --- Cookie-Einstellungen: Modal --- */
.cookie-modal[hidden] {
  display: none;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 24, 0.6);
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface-container-lowest);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
  padding: 40px;
}

.cookie-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: var(--surface-container-lowest);
  cursor: pointer;
}

.cookie-modal__close:hover {
  background: var(--surface-container-high);
}

.cookie-category {
  border: 1px solid var(--border-subtle);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.cookie-category--locked {
  border-color: var(--accent);
}

.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.cookie-category__desc {
  font-size: 14px;
  color: var(--on-surface-variant);
}

.cookie-category__detail {
  font-size: 13px;
  color: var(--on-surface-variant);
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
  padding-top: 16px;
}

.cookie-badge {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
}

/* Toggle-Switch (rund, wie bei Schaltern üblich – bewusste Ausnahme vom eckigen Grundraster) */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--outline-variant);
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.cookie-toggle__track::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--on-primary);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle__track::before {
  transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cookie-modal__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .cookie-modal__panel {
    padding: 28px 20px;
  }

  .cookie-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal__actions .btn {
    width: 100%;
  }
}

/* --- Kundenbewertungen: Slider (3 Karten sichtbar, automatisches Weiterrücken) --- */
.testimonial-slider {
  position: relative;
  padding-inline: 64px;
}

.testimonial-track {
  display: flex;
  gap: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 calc((100% - 2 * 48px) / 3);
  scroll-snap-align: start;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-container-lowest);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.testimonial-arrow:hover {
  background: var(--surface-container-high);
}

.testimonial-arrow--prev {
  left: 0;
}

.testimonial-arrow--next {
  right: 0;
}

@media (max-width: 900px) {
  .testimonial-slide {
    flex: 0 0 calc((100% - 32px) / 2);
  }

  .testimonial-track {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .testimonial-slider {
    padding-inline: 0;
  }

  .testimonial-slide {
    flex: 0 0 100%;
  }

  .testimonial-arrow {
    display: none;
  }
}

/* --- FAQ (native <details>/<summary>, kein JS nötig) --- */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary h3 {
  margin: 0;
}

.faq-item__answer {
  padding-bottom: 24px;
  padding-right: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--surface-container-low);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--section-gap-md);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  gap: 32px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer__copy {
  font-size: 14px;
  color: var(--on-surface-variant);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 14px;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--primary);
}

/* --- Icon (SVG inline) --- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

/* --- Seitenlayout-Grids --- */
.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid-bento > .span-8 { grid-column: span 8; }
.grid-bento > .span-4 { grid-column: span 4; }

.grid-cake {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grid-cake > .cake-main {
  grid-column: span 2;
  grid-row: span 2;
}

/* Asymmetrische 12er-Grids für Seitenlayouts */
.layout-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

.layout-hero > .col-left { grid-column: 1 / span 5; }
.layout-hero > .col-right { grid-column: 7 / span 6; }

.layout-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

.layout-content > .col-offset-left { grid-column: 2 / span 5; }
.layout-content > .col-offset-right { grid-column: 8 / span 5; }
.layout-content > .col-left-4 { grid-column: 1 / span 4; }
.layout-content > .col-right-8 { grid-column: 5 / span 8; }
.layout-content > .col-right-4 { grid-column: 8 / span 4; }

.layout-form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.layout-form > .col-text { grid-column: 1 / span 5; }
.layout-form > .col-form { grid-column: 7 / span 6; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* --- Hilfklassen --- */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--on-surface-variant); }
.text-white { color: var(--on-primary); }

.bg-surface-low { background: var(--surface-container-low); }
.bg-surface { background: var(--surface); }
.bg-surface-high { background: var(--surface-container-high); }

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

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-0 { margin-top: 0; }
.pt-nav { padding-top: calc(var(--nav-height) + var(--banner-height)); }

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

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-gap: 60px;
    --section-gap-md: 48px;
    --section-gap-lg: 80px;
  }

  .display-lg {
    font-size: 36px;
    line-height: 1.15;
  }

  /* Hero: auf Mobile Bild und Text-Card gestapelt statt überlagert */
  .hero {
    position: static;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .hero__bg {
    position: relative;
    inset: auto;
    flex: 1;
  }

  .hero__content {
    min-height: auto;
    height: auto;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: var(--section-gap-md);
  }

  .headline-lg {
    font-size: 32px;
    line-height: 1.2;
  }

  .headline-md {
    font-size: 24px;
  }

  .grid-12,
  .grid-cols-3,
  .grid-cols-2,
  .grid-bento,
  .grid-cake,
  .layout-hero,
  .layout-content,
  .layout-form,
  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-bento > .span-8,
  .grid-bento > .span-4,
  .grid-cake > .cake-main,
  .layout-hero > .col-left,
  .layout-hero > .col-right,
  .layout-content > .col-offset-left,
  .layout-content > .col-offset-right,
  .layout-content > .col-left-4,
  .layout-content > .col-right-8,
  .layout-content > .col-right-4,
  .layout-form > .col-text,
  .layout-form > .col-form {
    grid-column: 1 / -1;
  }

  .grid-cake > .cake-main {
    grid-row: auto;
  }

  /* Bento-Items: schmale quadratische Bilder auf Mobile nebeneinander */
  .grid-bento {
    gap: 16px;
  }

  /* Navigation mobil */
  .nav__links {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) + var(--banner-height));
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(251, 249, 249, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  /* Footer mobil */
  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .display-lg {
    font-size: 28px;
  }

  .headline-lg {
    font-size: 26px;
  }
}
