/* =========================================================
   WEEZE FOTOTOUR – MASTER CSS PREMIUM
   Dunkelgrünes, modernes Design für alle Weezer Seiten
   ========================================================= */

:root {
  --bg: #08120d;
  --bg-center: #12251a;

  --text: #f3f0e9;
  --muted: #c8d2cb;
  --caption: #bad8c5;
  --page-number: #9cad9f;

  --glass: rgba(14, 34, 23, 0.70);
  --glass-strong: rgba(17, 40, 28, 0.84);

  --line: rgba(186, 216, 197, 0.18);
  --line-strong: rgba(186, 216, 197, 0.42);

  --accent: #9fd3ae;
  --accent-light: #def3e5;
  --accent-dark: #2f6244;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.50);
  --shadow-hover: 0 28px 78px rgba(0, 0, 0, 0.66);

  --radius: 20px;
  --content-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  background:
    radial-gradient(circle at 50% 18%, var(--bg-center) 0%, var(--bg) 58%, #050b08 100%);
}

/* Hintergrundgrafik mit Pflanzen, Kirche, Flugzeug usw.
   Durch opacity bleiben die Linien bewusst dezent. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    url("Weeze-Hintergrund-Homepage.webp")
    center top / cover no-repeat;

  opacity: 2.50;
}

/* Zusätzliche dunkle Schicht für bessere Lesbarkeit */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(4, 12, 7, 0.16),
      rgba(4, 12, 7, 0.34)
    );
}


/* ---------- Kopfbereich ---------- */

.hero {
  text-align: center;
  padding: 34px 18px 24px;
}

.title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}


.title-row h1 {
    margin: 0;

    font-size: clamp(3rem, 6vw, 3.5rem);
    
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0.02em;
    color: var(--text);

    text-shadow:
        0 5px 24px rgba(0, 0, 0, 0.62),
        0 0 30px rgba(159, 211, 174, 0.14);
}


.wappen {
  display: block;
  width: auto;
  height: 58px;
  filter:
    drop-shadow(0 7px 15px rgba(0, 0, 0, 0.46))
    saturate(0.92);
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: 0.025em;
}

.seitennummer {
  margin-top: 8px;
  color: var(--page-number);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

/* ---------- Navigation ---------- */

.pager {
  width: min(calc(100% - 28px), var(--content-width));
  margin: 10px auto 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.navbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;

  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.035em;

  border: 1px solid var(--line-strong);
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(159, 211, 174, 0.22),
      rgba(47, 98, 68, 0.28)
    );

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(9px) saturate(115%);
  -webkit-backdrop-filter: blur(9px) saturate(115%);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.navbtn:hover {
  color: #ffffff;
  transform: translateY(-4px) scale(1.03);

  border-color: rgba(222, 243, 229, 0.72);

  background:
    linear-gradient(
      135deg,
      rgba(159, 211, 174, 0.42),
      rgba(47, 98, 68, 0.48)
    );

  box-shadow:
    0 0 24px rgba(112, 203, 139, 0.18),
    0 18px 48px rgba(0, 0, 0, 0.58);
}

.navbtn:focus-visible {
  outline: 3px solid rgba(222, 243, 229, 0.75);
  outline-offset: 4px;
}

.navbtn .arrow {
  transition: transform 0.25s ease;
}

.navbtn.next:hover .arrow {
  transform: translateX(6px);
}

.navbtn.prev:hover .arrow {
  transform: translateX(-6px);
}

/* ---------- Galerie ---------- */

.gallery {
  width: min(calc(100% - 28px), var(--content-width));
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.gallery-item {
  margin: 0;
  padding: 16px;
  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(20, 45, 31, 0.76),
      rgba(8, 24, 15, 0.66)
    );

  border: 1px solid var(--line);
  border-radius: var(--radius);

  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);

  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);

  border-color: var(--line-strong);

  background:
    linear-gradient(
      145deg,
      rgba(25, 53, 37, 0.86),
      rgba(10, 29, 18, 0.78)
    );

  box-shadow:
    var(--shadow-hover),
    0 0 30px rgba(112, 203, 139, 0.08);
}

.gallery-item img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;

  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.05);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.004);

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(159, 211, 174, 0.05);
}



.gallery-item figcaption {
  margin-top: 14px;
  color: var(--caption);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
  padding: 0 8px;
}




/* ---------- Making-of ---------- */

.makingof {
  width: min(calc(100% - 28px), var(--content-width));
  margin: 10px auto 0;
  padding: 18px 16px;
  text-align: center;
  color: var(--caption);
}

.makingof h2 {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: normal;
}

.makingof p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 36px 14px 80px;
}

.footer-box {
  padding: 11px 17px;
  color: #bcc7c0;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;

  border: 1px solid rgba(186, 216, 197, 0.16);
  border-radius: 12px;

  background: rgba(12, 30, 19, 0.58);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}




/* ----------- Tablet ----------- */

@media (max-width: 900px) {

  .title-row h1 {
    font-size: clamp(2.8rem, 8vw, 4rem);
  }

  .wappen {
    height: 52px;
  }

  body::before {
    opacity: 0.28;
    background-position: center top;
  }

  .gallery-item figcaption {
    display: block;
    width: 100%;
    max-width: 770px;
    margin: 14px auto 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

}



/* ---------- Smartphone ---------- */

@media (max-width: 640px) {
  .hero {
    padding: 30px 12px 21px;
  }

  .title-row {
    gap: 10px;
  }

  .wappen {
    height: 44px;
  }

  .subtitle {
    line-height: 1.45;
  }

  .gallery {
    width: min(calc(100% - 18px), var(--content-width));
    gap: 17px;
  }

  .gallery-item {
    padding: 10px;
    border-radius: 15px;
  }

  .gallery-item figcaption {
    font-size: 1rem;
    line-height: 1.55;
  }

  .pager {
    width: min(calc(100% - 18px), var(--content-width));
    gap: 10px;
  }

  .navbtn {
    padding: 12px 18px;
    font-size: 1rem;
  }

  .footer {
    padding-bottom: 56px;
  }

  body::before {
    position: absolute;
    opacity: 0.22;
    background-size: auto 100vh;
    background-repeat: repeat-y;
  }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}



/* ===== NACHTSEITE ===== */

body.nachtseite {
    background-color: #020811 !important;
    background-image: url("Weeze-Hintergrund-Homepage-Nacht.webp") !important;
    background-repeat: repeat-y !important;
    background-position: center top !important;
    background-size: 100% auto !important;
    background-attachment: scroll !important;
}

/* Falls der Master den Hintergrund über ::before legt */
body.nachtseite::before {
    background-image: url("Weeze-Hintergrund-Homepage-Nacht.webp") !important;
}

/* Falls ein Overlay den alten Hintergrund zeigt */
body.nachtseite::after {
    background-image: none !important;
}



/* ===== NACHTSEITE - Blaue Akzente ===== */

body.nachtseite .gallery-item {
    background: linear-gradient(
        145deg,
        rgba(18, 32, 58, 0.72),
        rgba(8, 18, 35, 0.72)
    ) !important;

    border: 1px solid rgba(95, 160, 255, 0.35) !important;

    box-shadow:
        0 20px 60px rgba(0,0,0,.50),
        0 0 18px rgba(70,140,255,.18) !important;
}

body.nachtseite .navbtn {

    background: linear-gradient(
        135deg,
        rgba(70,130,255,.20),
        rgba(25,60,120,.28)
    ) !important;

    border-color: rgba(120,180,255,.45) !important;
}

body.nachtseite .navbtn:hover {

    background: linear-gradient(
        135deg,
        rgba(95,160,255,.35),
        rgba(35,75,150,.45)
    ) !important;

    border-color: rgba(170,210,255,.75) !important;

    box-shadow:
        0 0 24px rgba(90,160,255,.28),
        0 18px 48px rgba(0,0,0,.58) !important;
}

/* ===== NACHTSEITE - Footer ===== */

body.nachtseite .footer-box {

    color: #d6e8ff;

    border: 1px solid rgba(120,180,255,.35);

    background: rgba(10,22,42,.55);

    box-shadow:
        0 12px 32px rgba(0,0,0,.28),
        0 0 18px rgba(70,140,255,.12);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   TOUCH-/TABLET-FIX
   Verhindert den Rendering-Fehler mit Farb-Emojis auf
   Touch-Geräten, unabhängig von der CSS-Bildschirmbreite.
   Desktop/Maus-Geräte bleiben unverändert.
   ========================================================= */
@media (hover: none) and (pointer: coarse) {

  html {
    background: #000 !important;
  }

  body {
    position: static !important;
    isolation: auto !important;
    overflow-x: visible !important;

    background-color: #000 !important;
    background-image: url("Weeze-Hintergrund-Homepage.webp") !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }

  body::before,
  body::after {
    display: none !important;
    content: none !important;
  }
}
