/* File: styles.css */

/* Farbvariablen & Global */
:root {
  --clr-primary: #607D8B;
  --clr-secondary: #FAF9F6;
  --clr-accent: #455A64;
  --clr-text: #333333;
  --clr-light: #FFFFFF;
  --radius: 0.5rem;
  --spacing: 1.2rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fokus-Indikatoren für Tastaturnavigation */
:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Skip-Link (nur sichtbar bei Tastaturfokus) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.6rem 1.2rem;
  background: var(--clr-primary);
  color: var(--clr-light);
  font-weight: 600;
  z-index: 99999;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--clr-secondary);
  color: var(--clr-text);
  scroll-behavior: smooth;
  line-height: 1.6;
  /* Platz für fixierten Header */
  padding-top: 120px;
}
a {
  color: var(--clr-primary);
  text-decoration: none;

  /* WICHTIG: Umbruch für lange URLs auf Mobile */
  overflow-wrap: break-word;
  word-break: break-word;
}
a:hover {
  color: var(--clr-accent);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing) 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  min-height: 100px;
  overflow: visible;
  background: rgba(250,249,246,0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  width: 8rem;
  height: auto;
}
.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  cursor: pointer;
  visibility: visible;
}

/* Burger Button – Basis (Desktop ausgeblendet) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--clr-primary);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing);
}
.site-nav a {
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.site-nav a:hover {
  background: var(--clr-accent);
  color: var(--clr-light);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('images/IMG_1728-2.jpg') center center/cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--spacing) calc(var(--spacing)*6);
}
.hero-title {
  font-size: 2.5rem;
  color: var(--clr-light);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 1.3rem;
  color: var(--clr-light);
  opacity: 0.95;
}

/* Sections */
.section {
  padding: calc(var(--spacing)*6) 0;
  background: var(--clr-light);
  scroll-margin-top: 120px;
}
.section:nth-of-type(even) {
  background: var(--clr-secondary);
}
.section h2 {
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: var(--spacing);
  text-align: center;
}
.section p {
  font-size: 1rem;
  /* Zeilenabstand wieder wie vorher */
  line-height: 1.6;
  margin-bottom: var(--spacing);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Rechtstexte: Zwischenüberschriften */
.section h3 {
  margin-top: calc(var(--spacing) * 2);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--clr-primary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Rechtstexte: Nummerierte Listen */
.section ol {
  max-width: 800px;
  margin: 0 auto var(--spacing);
  padding-left: 1.5rem;
}

/* Rechtstexte: Listeneinträge */
.section li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}


/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
 
/* Querformat-Bild: 2 Spalten breit */
.gallery-item.wide { grid-column: span 2; }
/* Hochformat-Bild: 2 Zeilen hoch */
.gallery-item.tall { grid-row: span 2; }
/* Großes Highlight-Bild: 2×2 */
.gallery-item.big  { grid-column: span 2; grid-row: span 2; }
 
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: var(--clr-secondary);
  /* Einblend-Animation beim Laden */
  opacity: 0;
  transform: translateY(16px);
  animation: galleryFadeUp 0.5s ease forwards;
}
 
/* Gestaffeltes Einblenden */
.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.10s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.20s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.30s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.40s; }
.gallery-item:nth-child(9) { animation-delay: 0.45s; }
 
@keyframes galleryFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
 
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
 
/* Hover: Zoom + Overlay */
.gallery-item:hover img {
  transform: scale(1.06);
}
 
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(69, 90, 100, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
 
.gallery-item:hover::after {
  background: rgba(69, 90, 100, 0.25);
}
 
/* Lupe-Icon beim Hover */
.gallery-item .zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
 
.gallery-item:hover .zoom-icon {
  opacity: 1;
}
 
.zoom-icon svg {
  width: 42px;
  height: 42px;
  stroke: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
 
/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
  pointer-events: none;
  visibility: hidden;
}
 
.lightbox.active {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  pointer-events: all;
  visibility: visible;
}
 
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.36, 0.64, 1),
              opacity 0.3s ease;
}
 
.lightbox.active .lightbox-inner {
  transform: scale(1);
  opacity: 1;
}
 
.lightbox-inner img {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}
 
/* Schließen-Button */
.lb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.lb-close:hover { background: rgba(255,255,255,0.28); }
 
/* Pfeil-Buttons */
.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-prev:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) translateX(2px); }
 
/* Bildnummer */
.lb-counter {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}
 
/* ── Responsive Galerie ─────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
}
 
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 8px;
  }
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
}
 

.insta-call {
  text-align: center;
  margin-top: var(--spacing);
  font-size: 1rem;
}
.insta-call a {
  color: var(--clr-primary);
  font-weight: 600;
}

/* Highlights-Liste als Grid mit Icons */
.highlights-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: var(--spacing);
  margin-top: var(--spacing);
}

.highlights-list li {
  position: relative;
  /* Platz für Icon links schaffen */
  padding: var(--spacing) var(--spacing);
  padding-left: calc(var(--spacing) * 3);
  background: var(--clr-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlights-list li::before {
  content: "➜";
  position: absolute;
  top: var(--spacing);
  left: var(--spacing);
  font-size: 1.5rem;
  color: var(--clr-primary);
}

.highlights-list li strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--clr-primary);
  font-size: 1.1rem;
}

.highlights-list li p {
  margin: 0;
  color: var(--clr-text);
  line-height: 1.5;
}


/* ————————————————————————————————
   Contact Section mit Logo-Hintergrund
   ———————————————————————————————— */
#contact {
  background: var(--clr-primary) url('images/of_livid_life/livid_life_logo_transparent_assets/logo_transparent_original.png') no-repeat center top;
  background-size: 240px 240px;
  padding: 8rem 0 4rem;
  color: var(--clr-light);
  text-align: center;
}
#contact h2 {
  margin-top: 140px;
  color: var(--clr-light);
}
#contact .btn {
  background: var(--clr-light);
  color: var(--clr-primary);
}
#contact .btn:hover {
  background: var(--clr-accent);
  color: var(--clr-light);
}

/* Contact Buttons */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing);
  flex-wrap: wrap;
}
.btn {
  background: var(--clr-primary);
  color: var(--clr-light);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}
.btn:hover {
  background: var(--clr-accent);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: var(--spacing) 0;
  background: var(--clr-primary);
  color: var(--clr-light);
}

/* Footer Links sichtbar machen */
.site-footer a {
  color: var(--clr-light);
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--clr-accent);
}

/* ————————————————————————————————
   404 Not Found Page Styles
   ———————————————————————————————— */
.notfound {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing) 0;
  background: var(--clr-secondary);
}
.notfound-logo {
  width: 120px;
  margin-bottom: var(--spacing);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.notfound-logo:hover {
  opacity: 1;
}
.notfound h1 {
  font-size: 3rem;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}
.notfound p {
  font-size: 1.1rem;
  color: var(--clr-text);
  margin-bottom: var(--spacing);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.notfound .btn {
  background: var(--clr-primary);
  color: var(--clr-light);
  padding: 0.8rem 1.5rem;
}
.notfound .btn:hover {
  background: var(--clr-accent);
}
/* =========================================================
   FAQ Section – GLOBAL (DESKTOP + MOBILE)
========================================================= */

.faq-section input[type="search"] {
  width: 100%;
  padding: 0.8rem 1rem;
  margin: var(--spacing) 0 calc(var(--spacing) * 2);
  border: 1px solid var(--clr-primary);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing);
}

.faq-item {
  background: var(--clr-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  padding: calc(var(--spacing) * 1.2);
  font-weight: 600;
  color: var(--clr-primary);
  cursor: pointer;
  position: relative;
  background: var(--clr-secondary);
  transition: background 0.25s ease;
  pointer-events: auto;
  z-index: 1;
}

.faq-question:hover {
  background: rgba(96, 125, 139, 0.08);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: var(--spacing);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--clr-accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 calc(var(--spacing) * 1.2) calc(var(--spacing) * 1.2);
  color: var(--clr-text);
  line-height: 1.6;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: var(--clr-light);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-note {
  margin-top: calc(var(--spacing) * 3);
  font-size: 0.95rem;
  text-align: center;
}

/* =========================================================
   FAQ Section – VISUAL REFINEMENTS (NUR FAQ-SEITE)
   Ergänzt bestehende FAQ-Styles, ersetzt nichts
========================================================= */

/* ---------- Kapitel-Wrapper (Themenblöcke) ---------- */
.faq-section .faq-block {
  margin: 2rem 0;
  padding: 1.6rem 2rem 1.8rem;
  background: #f7f7f7;
  border-radius: 16px;
}


/* ---------- Kapitel-Überschrift ---------- */
.faq-section .faq-block-header h3 {
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  text-align: center;
  letter-spacing: 0.015em;
  color: var(--clr-primary);
}


/* ---------- Einordnungstext unter Kapitel ---------- */
.faq-section .faq-block-intro {
  max-width: 60ch;
  margin: 0 auto 1.2rem;
  color: #666;
  line-height: 1.55;
  text-align: center;
}


/* ---------- Suchfeld subtil hervorheben ---------- */
.faq-section input[type="search"] {
  border-width: 1.5px;
}

.faq-section input[type="search"]:focus {
  border-color: #8fa1ad;
  outline: none;
}

/* ---------- Geöffnete Antworten besser lesbar ---------- */
.faq-section .faq-item.open .faq-answer {
  padding: 1rem 1.2rem 1.4rem;
  color: #444;
  line-height: 1.6;
}

/* Optional: geöffneter FAQ-Block etwas ruhiger */
.faq-section .faq-item.open {
  background: #ffffff;
}

/* ---------- Wichtigster Abschnitt (z. B. Sozialisierung) ---------- */
.faq-section .faq-block-highlight {
  background: #f2f4f6;
}

/* ---------- Ruhiger Abschluss vor Footer ---------- */
.faq-section .faq-note {
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  color: #666;
}


/* =========================================================
   FAQ Section – MOBILE FEINJUSTIERUNG
========================================================= */

@media (max-width: 768px) {

  /* Kapitel kompakter auf Mobile */
  .faq-section .faq-block {
  padding: 1.3rem 1.2rem 1.5rem;
  margin: 1.8rem 0;
}


  /* Kapitelüberschrift etwas kleiner */
  .faq-section .faq-block-header h3 {
    font-size: 1.25rem;
  }

  /* Introtexte schmaler und luftiger */
  .faq-section .faq-block-intro {
    margin-bottom: 1.4rem;
  }

  /* FAQ-Fragen etwas kompakter */
  .faq-section .faq-question {
    padding: 1rem 1.1rem;
  }

  /* Antworten auf Mobile besser lesbar */
  .faq-section .faq-answer {
    font-size: 0.95rem;
  }
}

/* MOBILE */
@media (max-width:768px) {

  /* Header: sticky, kompakt */
  .site-header {
    position: sticky;
    top: 0;
  }

  body {
    padding-top: 0;
  }

  /* Offset für Anchor-Sprünge bei sticky Header */
  .section {
    scroll-margin-top: 120px;
    padding: calc(var(--spacing)*4) 0;
  }

  /* Header-Inhalt: Logo links, Burger rechts */
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-size: 1.4rem;
    transition: opacity 0.2s ease;
  }

  /* Burger sichtbar */
  .nav-toggle {
    display: block;
  }

  /* Navigation standardmäßig verborgen */
  .site-nav {
    display: none;
    width: 100%;
    padding-top: 1rem;
  }

  /* Navigation sichtbar bei Klick */
  .site-nav.open {
    display: block;
  }

  /* Mobile Navigation */
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
    padding: 0.5rem 0;
  }

  .site-nav li {
    white-space: nowrap;
  }

  .site-nav a {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    display: inline-flex;
    align-items: center;
  }

  /* Hero – gezoomt & fokussiert */
  .hero {
    min-height: 65vh;
    background-size: 160%;
    background-position: center 30%;
    padding: 2rem 0;
    justify-content: center;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
  
    /* Logo-Text nur ausblenden, wenn Burger-Menü geöffnet ist */
  .site-header.menu-open .logo {
    visibility: hidden;
    pointer-events: none;
  }

}




/* FAQ – NUR TYPOGRAFIE + SAUBERE ICON-TRENNUNG */
.faq-question {
  font-size: 1rem;
  display: grid;
  grid-template-columns: 1fr 2rem;
  align-items: center;
  column-gap: 1rem;
}

.faq-question::after {
  position: static;
  grid-column: 2;
  justify-self: end;
  font-size: 1.3rem;
}

.faq-answer {
  font-size: 0.95rem;
}


}