/********************************************************
  GLOBAL FIXES
********************************************************/

/* Fix für fixed Header */
body {
  padding-top: 64px;
}

/* Alle Sektionen einheitlich – entfernt weiße Streifen */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Erste Section (Hero) braucht keinen Abstand */


/* Scroll-Offset für Anker */
#gallery,
#about,
#contact {
  scroll-margin-top: 80px;
}


/********************************************************
  HEADER / NAV
********************************************************/

#mainNav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-container {
  padding: 8px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.navbar-brand img {
  height: 42px;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  transform: translateX(-40px);
}

.nav-menu a {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  color: #111;
  text-decoration: none;
}

.nav-menu a:hover {
  opacity: 0.7;
}

.nav-spacer {
  width: 42px;
}


/********************************************************
  GALLERY TABS
********************************************************/

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0 0 40px;   /* ❗ wichtig: KEIN margin-top */
}

.gallery-tabs a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  padding: 6px 12px;
  color: #555;
  text-decoration: none;
}

.gallery-tabs a.active {
  color: #000;
  border-bottom: 2px solid #000;
}


/********************************************************
  GALLERY / MASONRY
********************************************************/

.gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 70px;
}

.gallery-grid {
  margin: 0 auto;
}

.gallery-sizer,
.gallery-grid a {
  width: 25%;
}

.gallery-grid a {
  padding: 8px;
  box-sizing: border-box;
}

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

/* Responsive */
@media (max-width: 1100px) {
  .gallery-sizer,
  .gallery-grid a {
    width: 33.333%;
  }
}

@media (max-width: 700px) {
  .gallery-sizer,
  .gallery-grid a {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .gallery-sizer,
  .gallery-grid a {
    width: 100%;
  }
}


/********************************************************
  LOAD MORE BUTTON
********************************************************/

.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0 0;
}

#load-more {
  padding: 12px 32px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
}

#load-more:hover {
  opacity: 0.8;
}


/********************************************************
  ABOUT – EDITORIAL STYLE
********************************************************/

.about-editorial {
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  float: left;
  width: 260px;
  margin: 0 30px 20px 0;
}

.about-image img {
  width: 100%;
  border-radius: 6px;
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.about-editorial::after {
  content: "";
  display: block;
  clear: both;
}

/* Mobile */
@media (max-width: 768px) {
  .about-image {
    float: none;
    width: 100%;
    margin: 0 0 20px;
    text-align: center;
  }
}

/* =========================================
   FIX: Weißer Streifen unter Fixed Header
   ========================================= */

/* Grundregel: keine zusätzlichen Top-Abstände */
.section,
.section.wb,
#gallery,
#about,
#contact {
  margin-top: 0 !important;
  padding-top: 40px; /* einheitlicher, kontrollierter Abstand */
}

/* Galerie-Tabs näher an den Header */
.gallery-tabs {
  margin-top: 10px !important;
}

/* Contact-Sektion: KEIN extra Abstand oben */
#contact {
  padding-top: 40px !important;
}

/* Footer sauber trennen */
.footer,
#footer {
  margin-top: 0;
}

/* Sicherheitsnetz gegen Template-Reste */
.section:first-of-type {
  padding-top: 0 !important;
}

/* ===== GLOBAL SECTION FIX ===== */

/* Entfernt alten Template-Abstand */
.section,
.wb {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Einheitlicher Start aller Sektionen */
#gallery,
#about,
#contact {
  scroll-margin-top: 64px;
}

/* Container nicht nach oben schieben */
.section .container {
  padding-top: 0 !important;
}

/* Sicherheit: keine versteckten Margins */
.row {
  margin-top: 0;
}

/* ===== CONTACT SECTION FIX ===== */

#contact {
  min-height: calc(100vh - 64px); /* Header-Höhe abziehen */
  display: flex;
  align-items: center;
}

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

  .nav-container {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 12px 20px;
  }

  .navbar-brand {
    justify-self: center;
  }

  .nav-menu {
    transform: none;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .nav-menu a {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }
}

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

  .gallery-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 24px;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-tabs a {
    white-space: nowrap;
    font-size: 0.85rem;
  }
}

/* ===== MOBILE GALERIE FIX ===== */
@media (max-width: 600px) {

  .gallery-grid a {
    width: 100%;
    padding: 12px 0; /* vertikaler Abstand */
  }

  .gallery-grid img {
    display: block;
  }

}

/* ===== MOBILE GALERIE TABS – ZWEIZEILIG ===== */
@media (max-width: 768px) {

  .gallery-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px; /* vertikal | horizontal */
    margin: 20px auto 30px;
    padding: 0 20px;
  }

  .gallery-tabs a {
    font-size: 0.8rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

}

/* ===== ABOUT ME – MOBILE FIX ===== */
@media (max-width: 768px) {

  .about-image {
    width: 180px;          /* deutlich kleiner */
    margin: 0 auto 16px;   /* zentriert, weniger Abstand */
    float: none;
  }

  .about-image img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 6px;
  }

  .about-text h2 {
    text-align: center;    /* Name unter Bild sauber */
  }

}

/* ===== CONTACT MOBILE – TEXT VERKLEINERN ===== */
@media (max-width: 768px) {

  #contact h2 {
    font-size: 1.2rem !important;
    letter-spacing: 0.05em;
  }

  #contact h3,
  #contact h4 {
    font-size: 1.05rem !important;
  }

  #contact p {
    font-size: 0.95rem !important;
    line-height: 1.4;
  }

}

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

  #contact .phone h5 {
    font-size: 20px !important;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }

  #contact .mail h2 {
    font-size: 18px !important;
    line-height: 1.4;
    word-break: break-word;
  }

}

/* ===============================
   MOBILE: Galerie full width
   =============================== */
@media (max-width: 600px) {

  /* Wrapper darf keine Ränder haben */
  .gallery-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  /* Masonry Items ohne Innenabstand */
  .gallery-grid a {
    padding: 4px; /* kleiner Abstand, nicht 0 */
  }

  /* Bilder wirklich edge-to-edge */
  .gallery-grid img {
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  .gallery-sizer,
  .gallery-grid a {
    width: 100%;
  }

  .gallery-grid a {
    padding-left: 0;
    padding-right: 0;
  }

  .gallery-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== ULTRA SMALL DEVICES FIX ===== */
@media (max-width: 360px) {

  .gallery-sizer,
  .gallery-grid a {
    width: 100% !important;
  }

  .gallery-grid a {
    padding: 6px 0 !important;
  }

  .gallery-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* ==============================
   Dark Mode Anpassungen – FINAL
   ============================== */
@media (prefers-color-scheme: dark) {

  /* ==================
     Grundlayout
     ================== */
  body {
    background-color: #121212;
    color: #e6e6e6;
  }

  /* ==================
     Navigation
     ================== */
  #mainNav {
    background-color: #1a1a1a;
    box-shadow: 0 1px 6px rgba(0,0,0,0.6);
  }

  .nav-menu a {
    color: #e6e6e6;
  }

  .nav-menu a:hover {
    opacity: 0.85;
  }

  /* Logo */
  .navbar-brand img {
    filter: invert(1) brightness(1.1);
  }

  /* ===============================
   GALLERY TABS – IMMER HELL
   =============================== */

.gallery-tabs {
  background: #fff;
}

.gallery-tabs a {
  color: #666;
  background: transparent;
  border-bottom: 2px solid transparent;
  padding: 6px 12px;
}

.gallery-tabs a:hover {
  color: #000;
}

.gallery-tabs a.active {
  color: #000;
  border-bottom: 2px solid #000;
}
  /* ==================
     Content Sektionen
     ================== */
  .section {
    background-color: #121212;
  }

  /* ==================
     Footer
     ================== */
  .footer-distributed,
  .copyrights {
    background-color: #1a1a1a;
    color: #bdbdbd;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .footer-links a {
    color: #e6e6e6;
  }

  /* ==================
     Contact
     ================== */
  #contact {
    background-color: #121212;
  }

  .hero-split-slider {
    background: #121212;
  }
}



/* =========================
   HERO SPLIT SLIDER – FINAL
========================= */

.hero-split-slider {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f5f5f5;
}

/* Slider */
.hero-slider {
  position: relative;
  height: clamp(320px, 60vh, 720px);
  margin: 0 clamp(1.5rem, 6vw, 6rem);
  border-radius: 12px;
  overflow: hidden;
}

/* Slides */
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slider .slide.active {
  opacity: 1;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}

.hero-dots .dot.active {
  background: #fff;
}

/* Text */
.hero-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-text-inner {
  max-width: 720px;
  text-align: center;
}

.hero-text h1 {
  color: #111;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 0.75rem;
}

.hero-text span {
  font-weight: 300;
  opacity: 0.85;
}

.hero-subline {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.gallery-grid {
  visibility: hidden;
}

.gallery-grid a {
  opacity: 1;
  transition: opacity .25s ease;
}

.gallery-grid a.is-loading {
  opacity: 0;
}


