/* =========================================================
   hicup – v18.0 (Final Release) | 2025
   ======================================================= */

/* ---------------------------------------------------------
   1. Grundlegende Einrichtung & Variablen
   --------------------------------------------------------- */
:root {
  --bg: #F9F6F2;
  --card: #fff;
  --text: #1F2937;
  --muted: #64748B;
  --accent: #C08E5F; 
  --accent-warm: #D87D4A;
  --border: #E5E7EB;
  --whatsapp: #25D366;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 4px 8px rgba(0,0,0,.06);
  --shadow-md: 0 10px 20px rgba(0,0,0,.08);
  --font-primary: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}

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

html { 
  font-size: 100%; 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { 
  color: var(--accent); 
  text-decoration: none; 
}

a:hover { 
  text-decoration: underline; 
}

h1, h2, h3, h4, h5, h6 {
  text-transform: lowercase;
  font-weight: 700;
  line-height: 1.2;
}

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

.skip-link { 
  position: absolute; 
  left: -9999px; 
  top: auto; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

.skip-link:focus { 
  left: 1rem; 
  top: 1rem; 
  width: auto; 
  height: auto; 
  background: #fff; 
  padding: .5rem .75rem; 
  border-radius: var(--radius-sm); 
  z-index: 1002; 
}


/* ---------------------------------------------------------
   2. Layout & Container
   --------------------------------------------------------- */
.container { 
  width: min(1100px, calc(100% - 2.5rem)); 
  margin-inline: auto; 
}

section { 
  padding: 3.5rem 0; 
}

.section-intro { 
  color: var(--muted); 
  max-width: 60ch; 
  margin: .25rem auto 2.5rem auto; 
  text-align: center; 
}


/* ---------------------------------------------------------
   3. Header & Navigation (Mobile-First-Ansatz)
   --------------------------------------------------------- */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  padding: 1rem 1.25rem; 
  background: var(--bg); 
  border-bottom: 1px solid var(--border); 
}

.site-header .inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1.25rem; 
}

.logo-text { 
  font-size: 1.6rem; 
  font-weight: 800; 
  color: var(--text); 
  text-decoration: none; 
  letter-spacing: .02em; 
}

/* --- Mobile: Hamburger-Button --- */
.nav-toggle { 
  background: none; 
  border: 0; 
  padding: .5rem; 
  cursor: pointer; 
  z-index: 101; /* Stellt sicher, dass der Button über dem offenen Menü bleibt */
}

.nav-toggle .hamburger { 
  display: block; 
  width: 28px; 
  height: 2px; 
  background: var(--text); 
  position: relative; 
  transition: .3s; 
}

.nav-toggle .hamburger::before, 
.nav-toggle .hamburger::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  width: 28px; 
  height: 2px; 
  background: var(--text); 
  transition: .3s; 
}

.nav-toggle .hamburger::before { top: -9px; }
.nav-toggle .hamburger::after { top: 9px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-9px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::before, 
.nav-toggle[aria-expanded="true"] .hamburger::after { background: var(--text); }

/* --- Mobile: Vollbild-Navigation --- */
.main-navigation { 
  position: fixed; 
  inset: 0; 
  z-index: 100; 
  visibility: hidden; 
  pointer-events: none;
  background: var(--card);
  opacity: 0;
  transition: opacity .3s, visibility .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-panel {
  position: static;
  height: 100%; 
  width: 100%;
  background: none;
  border-left: 0;
  box-shadow: none;
  transform: none;
  transition: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 4rem 1.25rem;
  text-align: center;
}

.nav-close { 
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-size: 2rem; 
  line-height: 1; 
  cursor: pointer; 
  background: none;
  border: 0;
  color: var(--text);
}

.nav-list { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 1rem;
  align-items: center;
}

.nav-list li {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .3s, transform .3s;
}

.nav-list a { 
  color: var(--text); 
  text-decoration: none; 
  font-weight: 300; 
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: .04em; 
  text-transform: lowercase; 
}

.nav-list a.active-link { 
  color: var(--accent); 
  font-weight: 700; 
}

.external-link::after { 
  content: "↗"; 
  font-size: .8em; 
  margin-left: .35em; 
}

#shop-link {
  padding: .75rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  transition: .2s;
}

#shop-link:hover {
  background: var(--accent);
  color: #fff;
}

.main-navigation.open { 
  visibility: visible; 
  pointer-events: auto;
  opacity: 1;
}

.main-navigation.open .nav-list li {
  opacity: 1;
  transform: translateY(0);
}
.main-navigation.open .nav-list li:nth-child(1) { transition-delay: .1s; }
.main-navigation.open .nav-list li:nth-child(2) { transition-delay: .15s; }
.main-navigation.open .nav-list li:nth-child(3) { transition-delay: .2s; }
.main-navigation.open .nav-list li:nth-child(4) { transition-delay: .25s; }
.main-navigation.open .nav-list li:nth-child(5) { transition-delay: .3s; }


/* --- Desktop: Horizontale Navigation --- */
@media (min-width: 768px) {
  .nav-toggle { 
    display: none; 
  }

  .main-navigation { 
    position: static; 
    visibility: visible; 
    pointer-events: auto; 
    background: none;
    opacity: 1;
    display: block;
    width: auto;
    height: auto;
  }

  .main-navigation::before { 
    display: none; 
  }

  .nav-panel { 
    position: static; 
    height: auto; 
    width: auto; 
    transform: none; 
    transition: none; 
    padding: 0; 
    background: none; 
    border: 0; 
    box-shadow: none;
    flex-direction: row;
    justify-content: flex-end;
  }

  .nav-close { 
    display: none; 
  }

  .nav-list { 
    flex-direction: row; 
    gap: 2rem; 
    align-items: center;
  }
  
  .nav-list li { 
    opacity: 1; 
    transform: none; 
  }
  
  .nav-list li:last-child {
    margin-left: .5rem; /* Leichter Abstand für den Shop-Link auf dem Desktop */
  }

  .nav-list a { 
    font-size: 1rem; 
  }
  
  .nav-list a:hover { 
    color: var(--accent); 
  }

  #shop-link { 
    margin-top: 0; 
    padding: 0; 
    border: 0; 
    border-radius: 0; 
    font-size: 1rem; 
    text-transform: none; 
    color: var(--text); 
  }

  #shop-link:hover { 
    background: none; 
    color: var(--accent); 
  }
}


/* ---------------------------------------------------------
   4. Hero-Bereich (Startseite)
   --------------------------------------------------------- */
.hero { 
  padding: 2rem 0; 
}

.hero .container { 
  display: grid; 
  gap: 2rem; 
  align-items: center; 
  grid-template-columns: 1fr; 
}

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

.hero-copy h1 { 
  font-size: clamp(2.2rem, 6vw, 3.5rem); 
  margin: .5rem 0; 
}

.hero-copy p { 
  color: var(--muted); 
  max-width: 46ch; 
  margin: 1rem auto 0 auto; 
}

.hero-cta { 
  display: flex; 
  gap: .75rem; 
  flex-wrap: wrap; 
  margin-top: 1.5rem; 
  justify-content: center; 
}

.hero-media { 
  order: -1; 
  position: relative; 
  max-width: 380px; 
  margin: 0 auto; 
}

.hero-media picture { 
  display: block; 
  aspect-ratio: 3/4; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-md); 
}

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

@media (min-width: 992px) {
  .hero { padding: 4rem 0; }
  .hero .container { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero-copy { text-align: left; }
  .hero-media { order: initial; max-width: none; }
  .hero-copy p { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
}


/* ---------------------------------------------------------
   5. Allgemeine Seiten- & Sektionsstile
   --------------------------------------------------------- */
.value-proposition-section { 
  border-top: 1px solid var(--border); 
}

.value-props-grid, .service-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem; 
}

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

.prop-icon { 
  font-size: 2rem; 
  color: var(--muted); 
}

.services-section h2 { 
  text-align: center; 
}

.service-card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow-sm); 
  transition: transform .2s, box-shadow .2s; 
  text-align: center; 
}

.service-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md); 
}

.card-sub-link { 
  font-size: .9rem; 
}

.made-in-germany-section, .cta-section { 
  text-align: center; 
}

.made-in-germany-section h2, .cta-section h2 { 
  font-size: 1rem; 
  text-transform: uppercase; 
  letter-spacing: .2em; 
  color: var(--muted); 
}

.color-bars { 
  display: flex; 
  justify-content: center; 
  gap: .5rem; 
  margin-top: .75rem; 
}

.color-bars span { 
  width: 50px; 
  height: 4px; 
  border-radius: 2px; 
}

.bar-black { background: #000; }
.bar-red { background: #D00; }
.bar-gold { background: #FFCE00; }


/* ---------------------------------------------------------
   6. Gallerie & Projekte
   --------------------------------------------------------- */
.gallery-section { 
  padding-top: 0; 
}

.filter-bar { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .5rem; 
  justify-content: center; 
  margin-bottom: 3rem; 
}

.filter-btn { 
  background: transparent; 
  border: 1px solid var(--border); 
  padding: .75rem 1.1rem; 
  border-radius: 999px; 
  color: var(--muted); 
  cursor: pointer; 
  font-family: var(--font-primary); 
  font-size: 0.9rem; 
  transition: all 0.2s ease-in-out; 
}

.filter-btn:hover { 
  color: var(--text); 
  border-color: var(--text); 
}

.filter-btn.active, .filter-btn:focus-visible { 
  background: var(--accent); 
  border-color: var(--accent); 
  color: #fff; 
  font-weight: 700; 
}

.gallery-grid { 
  column-count: 2; 
  column-gap: 1rem; 
}

@media(min-width: 768px) { .gallery-grid { column-count: 3; } }
@media(min-width: 1024px) { .gallery-grid { column-count: 4; } }

.gallery-item { 
  display: inline-block; 
  width: 100%; 
  margin: 0 0 1rem 0; 
  border-radius: var(--radius-sm); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  transition: transform .3s, box-shadow .3s; 
}

.gallery-item:hover, .gallery-item:focus-visible { 
  box-shadow: var(--shadow-md); 
  transform: scale(1.02); 
}

.gallery-item img { 
  width: 100%; 
  height: auto; 
  display: block; 
}


/* ---------------------------------------------------------
   7. Lightbox
   --------------------------------------------------------- */
.lightbox { 
  position: fixed; 
  inset: 0; 
  background: rgba(249,246,242,.92); 
  backdrop-filter: blur(6px); 
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 1001; 
}

.lightbox.visible { display: flex; }

.lightbox-content { 
  position: relative; 
  max-width: 90vw; 
  max-height: 90vh; 
}

.lightbox-content img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  border-radius: var(--radius-sm); 
}

.lightbox-close, .lightbox-next, .lightbox-prev { 
  position: absolute; 
  background: none; 
  border: 0; 
  font-size: 2rem; 
  color: var(--text); 
  cursor: pointer; 
  padding: 1rem; 
}

.lightbox-close { top: 0; right: 0; }
.lightbox-next { top: 50%; right: -3rem; transform: translateY(-50%); }
.lightbox-prev { top: 50%; left: -3rem; transform: translateY(-50%); }


/* ---------------------------------------------------------
   8. Kontakt, Öffnungszeiten & unterseiten-spezifische Layouts
   --------------------------------------------------------- */
.page-hero { 
  text-align: center; 
}

.page-hero p { 
  color: var(--muted); 
  max-width: 60ch; 
  margin: 1rem auto 0; 
}

.content-section { 
  padding-top: 0; 
}

.contact-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.5rem; 
}

.contact-card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow-sm); 
}

.opening-hours-section .contact-card {
  text-align: center;
}

.contact-card h3 { margin-top: 0; }
.contact-card p, .contact-card address { color: var(--muted); font-style: normal; }

.contact-actions, .opening-hours-section .contact-actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .75rem; 
  margin-top: 1rem; 
  justify-content: center; 
}

.hours dt { 
  font-weight: 700; 
  color: var(--accent); 
  font-size: 1.1rem; 
  margin-top: .5rem; 
  letter-spacing: 0.05em; 
  text-transform: uppercase; 
}

.hours dd { 
  margin: 0 0 .5rem 0; 
  color: var(--text); 
  font-size: 1.2rem; 
  font-weight: 300; 
  line-height: 1.4; 
}

.phone-info { 
  margin-top: 1rem; 
  color: var(--muted); 
}

.phone-info a { 
  color: var(--text); 
  font-weight: 700; 
}

.map-thumb { 
  display: block; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  margin-top: 1rem; 
}

.map-thumb img { 
  display: block; 
  width: 100%; 
  height: auto; 
}

.faq details { 
  border-bottom: 1px solid var(--border); 
  padding: 1rem 0; 
  margin: 0; 
}

.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: .5rem 0 0 0; color: var(--muted); }
.stack { display: grid; gap: 1.5rem; }

@media(min-width: 992px) {
  .contact-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
    align-items: start; 
  }
}

/* Layout für "Schneiderei" & "Laden" */
.atmospheric-image { 
  margin-bottom: 3.5rem; 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-md); 
}

.atmospheric-image img { 
  display: block; 
  width: 100%; 
  height: auto; 
}

.feature-layout { 
  display: flex; 
  flex-direction: column; 
  gap: 3.5rem; 
}

.feature-row { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 2rem; 
}

.feature-media { 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
}

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

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

.feature-content h3 { 
  font-size: 1.5rem; 
}

.feature-content p { 
  max-width: 45ch; 
  margin-inline: auto; 
  color: var(--muted); 
}

.card-duo { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.5rem; 
}

@media(min-width: 768px) {
  .feature-layout { gap: 5rem; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .feature-row .feature-media { order: 2; }
  .feature-row .feature-content { order: 1; text-align: left; }
  .feature-row.reverse .feature-media { order: 1; }
  .feature-row.reverse .feature-content { order: 2; }
  .feature-content p { margin-inline: 0; }
  .card-duo { grid-template-columns: 1fr 1fr; }
}


/* ---------------------------------------------------------
   9. Buttons
   --------------------------------------------------------- */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: .4rem; 
  padding: 1rem 1.4rem; 
  border-radius: var(--radius-sm); 
  border: 2px solid var(--accent); 
  text-decoration: none; 
  font-weight: 700; 
  letter-spacing: .06em; 
  text-transform: uppercase; 
  cursor: pointer; 
  background: transparent; 
  color: var(--accent); 
  transition: .2s; 
  min-height: 44px; 
}

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

.btn-primary:hover { 
  filter: brightness(.92); 
  transform: translateY(-2px); 
}

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

.page-hero .whatsapp-link {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
}


/* ---------------------------------------------------------
   10. Footer
   --------------------------------------------------------- */
.site-footer { 
  padding: 2.5rem 0; 
  text-align: center; 
  color: var(--muted); 
  border-top: 1px solid var(--border); 
}

.site-footer a { 
  text-decoration: none; 
  color: var(--muted); 
}

.site-footer a:hover { 
  color: var(--text); 
  text-decoration: underline; 
}

.footer-logo-element {
  margin-bottom: 1.5rem;
  text-align: center;
}

.footer-logo-element img {
  height: 30px;
  width: auto;
  opacity: 0.6;
}


/* ---------------------------------------------------------
   11. Cookie Consent Banner
   --------------------------------------------------------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  color: var(--text);
  padding: 1rem 1.5rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-consent p {
  margin: 0;
  flex-grow: 1;
  color: var(--muted);
}

.cookie-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-consent .btn {
  padding: 0.6rem 1rem;
  min-height: auto;
}

/* ===================================================================
   LIGHTBOX VERBESSERUNGEN (FIT-TO-SCREEN & ZOOM)
   =================================================================== */

/* Container für das Bild */
.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Wichtig für die Positionierung der Buttons */
  overflow: hidden;   /* Verhindert Scrollbalken in der 'fit' Ansicht */
  padding: 5vh 5vw;   /* Sorgt für Abstand zum Bildschirmrand */
  box-sizing: border-box;
}

/* Bild in der Lightbox (Standardansicht: eingepasst) */
#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
  cursor: zoom-in;
}

/* Zustand, wenn das Bild nicht vergrößert werden kann */
#lightbox-image.not-zoomable {
  cursor: default;
}

/* Container im Zoom-Modus */
.lightbox-content.zoomed {
  overflow: auto; /* Erlaubt das Scrollen/Verschieben des großen Bildes */
  align-items: flex-start; /* Bild oben ausrichten, wenn gescrollt wird */
}

/* Bild im Zoom-Modus (Originalgröße) */
.lightbox-content.zoomed #lightbox-image {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

/* Positionierung und Styling der Steuerungs-Buttons */
.lightbox-close,
.lightbox-zoom {
  position: absolute;
  top: 15px;
  background: rgba(30, 30, 30, 0.6);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-zoom:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  right: 15px;
  font-family: Arial, sans-serif;
}

.lightbox-zoom {
  right: 69px; /* Rechts neben dem Schließen-Button */
}

/* Icon für den Zoom-Button (SVG) */
.lightbox-zoom-icon {
  width: 24px;
  height: 24px;
  pointer-events: none; /* Sorgt dafür, dass Klicks auf das Icon den Button auslösen */
}

/* Wenn Zoom nicht möglich ist, wird der Button versteckt */
.lightbox-zoom.hidden {
  display: none;
}

/* ===================================================================
   KONTAKTSEITE: HERO BUTTONS ZENTRIEREN (DESKTOP)
   =================================================================== */

/* Wendet die Zentrierung nur auf Bildschirmen an, die breiter als 768px sind. */
@media (min-width: 768px) {
  .page-hero .hero-cta {
    display: flex;
    justify-content: center; /* Zentriert die Buttons horizontal */
    gap: 1rem;               /* Sorgt für einen schönen Abstand zwischen den Buttons */
  }
}

/* ===================================================================
   COOKIE BANNER ANPASSUNGEN
   =================================================================== */
.cookie-consent .cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0; /* Verhindert, dass die Buttons auf kleinen Bildschirmen schrumpfen */
}
