/* ==========================================================================
   Küchenwelt Lauchhammer — Stylesheet
   ========================================================================== */

/* ---------- Fonts (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #D23E2E;
  --color-primary-dark: #A82F22;
  --color-neutral-100: #eeeeee;
  --color-neutral-200: #dddddd;
  --color-neutral-300: #cfd3d6;
  --color-text: #232323;
  --color-text-muted: #5b5f62;
  --color-white: #ffffff;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --container-width: 1280px;
  --header-height: 76px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--space-sm); color: var(--color-text-muted); }
button { font-family: inherit; }

section, header, footer {
  scroll-margin-top: var(--header-height);
}

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

.section {
  padding-block: var(--space-2xl);
}
.section--muted { background: var(--color-neutral-100); }
.section-header {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-header p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-xs);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }
.btn-secondary {
  background: var(--color-white);
  border-color: var(--color-neutral-200);
  color: var(--color-text);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-neutral-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}
.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-menu a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn):focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s 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); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu .btn { margin-top: var(--space-sm); }
  .nav-actions .btn-secondary.desktop-only { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(30, 20, 18, 0.72), rgba(210, 62, 46, 0.55)),
    url('/assets/images/hero-kueche.jpg') center/cover no-repeat;
}
.hero-content { max-width: 640px; }
.hero .eyebrow { color: #ffd9d3; }
.hero h1 { color: var(--color-white); }
.hero-lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ---------- Fade-in Animation (progressive enhancement, never a gate) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeInUp 0.6s ease-out both; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; }
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.fact-card {
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
}
.fact-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
}
.fact-card span { font-size: 0.85rem; color: var(--color-text-muted); }
.about-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ---------- Leistungen ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-neutral-100);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.service-icon svg { width: 28px; height: 28px; }

/* ---------- Galerie & Referenzen (shared) ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.filter-btn {
  background: var(--color-white);
  border: 2px solid var(--color-neutral-200);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--color-primary); }
.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.masonry-grid {
  column-count: 1;
  column-gap: var(--space-sm);
}
@media (min-width: 640px) { .masonry-grid { column-count: 2; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 3; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.masonry-item.is-hidden {
  display: none;
}
.masonry-item button.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}
.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
@media (hover: hover) {
  .masonry-item button.gallery-trigger:hover img { transform: scale(1.05); }
  .masonry-item button.gallery-trigger:hover .masonry-overlay { opacity: 1; }
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 60%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: left;
  font-weight: 600;
}
.masonry-item button.gallery-trigger:focus-visible .masonry-overlay { opacity: 1; }

/* Referenzen placeholder cards */
.reference-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-neutral-100);
  border: 2px dashed var(--color-neutral-300);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-md);
}
.reference-placeholder svg { width: 36px; height: 36px; color: var(--color-primary); }
.reference-card figcaption {
  padding: var(--space-xs) 0.2rem 0.2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 12, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox.is-open { display: flex; }
.lightbox-figure {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  text-align: center;
}
.lightbox-figure img {
  max-height: 75vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}
.lightbox-figure figcaption {
  color: #fff;
  margin-top: var(--space-sm);
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: var(--space-md); right: var(--space-md); }
.lightbox-prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

/* ---------- Bewertungen ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.review-stars { color: var(--color-primary); letter-spacing: 2px; margin-bottom: 0.5rem; }
.review-author { font-weight: 600; color: var(--color-text); margin-top: var(--space-sm); }
.review-location { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Partner ---------- */
.partner-slider {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.partner-track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .partner-track {
    animation: partner-scroll 28s linear infinite;
  }
  .partner-slider:hover .partner-track,
  .partner-slider:focus-within .partner-track {
    animation-play-state: paused;
  }
}
@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 0 var(--space-md);
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.partner-logo:hover, .partner-logo:focus-visible { filter: grayscale(0); opacity: 1; }
.partner-logo img { max-height: 46px; }

/* ---------- Preise ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}
.pricing-card.is-featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}
.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin: var(--space-sm) 0;
}
.pricing-card ul { margin: var(--space-sm) 0; text-align: left; }
.pricing-card li { padding: 0.35rem 0; display: flex; gap: 0.5rem; align-items: flex-start; }
.pricing-card li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-primary); margin-top: 0.15rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-sm);
  padding: 0.2rem var(--space-sm);
  background: var(--color-white);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: var(--space-sm) 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--space-sm); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-form {
  display: grid;
  gap: var(--space-sm);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; }
.form-group input,
.form-group textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  font-weight: 500;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e4f5e9; color: #1f7a3d; }
.form-status.is-error { background: #fbe6e4; color: var(--color-primary-dark); }

.contact-info { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-info-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; margin-top: 0.2rem; }
.opening-hours { width: 100%; border-collapse: collapse; }
.opening-hours td { padding: 0.3rem 0; border-bottom: 1px solid var(--color-neutral-200); font-size: 0.92rem; }
.opening-hours td:last-child { text-align: right; color: var(--color-text-muted); }

.map-placeholder {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 320px;
  background: var(--color-neutral-100) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
#map-live {
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.map-consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: rgba(238, 238, 238, 0.85);
  text-align: center;
  padding: var(--space-md);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1c1a19;
  color: #cfd3d6;
  padding-block: var(--space-xl) var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: var(--space-sm); }
.footer-grid a { transition: color 0.2s ease; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-sm); }
.footer-links li { margin-bottom: 0.5rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: var(--space-sm); }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ---------- Subpage generic ---------- */
.page-hero {
  background: var(--color-neutral-100);
  padding-block: var(--space-xl) var(--space-lg);
}
.legal-content h2 { margin-top: var(--space-lg); }
.legal-content p, .legal-content li { color: var(--color-text); }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--space-sm); }

.planner-frame-wrap {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.planner-frame-wrap iframe { width: 100%; min-height: 720px; border: none; display: block; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
