/*
Theme Name: Lützel2
Author: TseTse
Version: 1.0
Requires at least: 5.0
*/

/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BASE ================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
}

.content {
  width: 100%;
  color: white;
  text-align: center;

  animation: fadeIn 2s ease forwards;
  opacity: 0;

  position: relative;
  z-index: 2;
}

/* ================= BACKGROUND ================= */

#bg-video {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.72),
      rgba(0,0,0,0.45),
      rgba(0,0,0,0.92)
    );
}

/* ================= NAVIGATION ================= */

nav {
  position: fixed;

  top: 40px;
  right: 50px;

  z-index: 100;
}

body.admin-bar nav {
  top: 70px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav li {
  margin-left: 30px;
}

nav a {
  color: rgba(255,255,255,0.6);

  text-decoration: none;

  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;

  transition: all 0.35s ease;
}

nav a:hover {
  color: rgba(255,255,255,1);
}

nav a.active {
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.9);
}

/* ================= TYPO ================= */

h1 {
  font-size: 4.5rem;
  letter-spacing: 4px;
  font-weight: 600;
}

#home h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

body.single-media h1 {
  display: none;
}

p {
  font-size: 1.4rem;
  opacity: 0.7;
  margin-top: 10px;
}

p:hover {
  letter-spacing: 8px;
  transition: 0.5s;
}

/* ================= SECTIONS ================= */

.section {

  width: 100%;

  min-height: 100vh;

  position: relative;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  opacity: 0;
  transform: translateY(40px);

  transition: all 1s ease;

  overflow: hidden;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= HOME ================= */

#home {
  background: transparent;
}

/* ================= ABOUT ================= */

#about {
  background: rgba(0,0,0,0.60);
}

.about-divider {
  width: 100%;
  height: 1px;

  background: rgba(255,255,255,0.08);

  margin: 120px 0 80px;
}

.about-divider.small {
  margin: 70px 0 50px;
}

.about-note {
  max-width: 760px;
}

.about-note-content blockquote {
  margin-top: 40px;

  line-height: 1.9;
}

.about-link {
  color: rgba(255,255,255,0.72);

  text-decoration: none;

  border-bottom: 1px solid rgba(255,255,255,0.18);

  transition: 0.3s ease;
}

.about-link:hover {
  color: white;

  border-color: rgba(255,255,255,0.45);
}

/* ================= MEDIA ================= */

#media {
  background: rgba(0,0,0,0.82);

  min-height: auto;

  padding-bottom: 120px;
}

/* ================= LEGAL ================= */

#legal {
  background: rgba(0,0,0,0.92);

  min-height: auto;

  padding-top: 160px;
  padding-bottom: 160px;
}

/* =========================================================
   🎨 SALON GRID
   ========================================================= */

.media {
  width: 100%;
  padding: 120px 60px;
}

/* ================= GRID ================= */

.media-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: 22px;

  width: 100%;
  padding-top: 40px;

  align-items: start;
}

/* ================= ITEM ================= */

.media-item {

  position: relative;

  overflow: hidden;

  border-radius: 8px;

  background: rgba(255,255,255,0.03);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35);

  transition:
    transform 0.4s ease,
    filter 0.4s ease;

  isolation: isolate;
}

/* ================= LINKS ================= */

.media-link {
  display: block;

  text-decoration: none;
  color: inherit;
}

/* ================= MEDIA ================= */

.media-item img,
.media-item video {

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

/* Hover */

.media-item:hover img,
.media-item:hover video {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* ================= TITLE ================= */

.media-title {

  position: absolute;

  left: 12px;
  bottom: 10px;

  font-size: 0.72rem;
  letter-spacing: 1px;

  color: rgba(255,255,255,0.72);

  z-index: 5;

  text-shadow:
    0 2px 10px rgba(0,0,0,0.8);
}

/* ================= SALON VARIATION ================= */

.media-item:nth-child(3n) {
  grid-row: span 2;
}

.media-item:nth-child(5n) {
  grid-column: span 2;
}

.media-item:nth-child(2n) {
  transform: rotate(-1deg);
}

.media-item:nth-child(3n) {
  transform: rotate(1deg);
}

.media-item:nth-child(4n) {
  transform: translateY(8px);
}

.media-item:nth-child(6n) {
  transform: translateY(-8px);
}

.media-item:nth-child(3n) img {
  min-height: 420px;
}

.media-item:nth-child(4n) img {
  min-height: 320px;
}

.media-item:nth-child(5n) img {
  min-height: 260px;
}

/* ================= PLACEHOLDER ================= */

.media-placeholder {

  width: 100%;
  min-height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.05);

  color: rgba(255,255,255,0.5);

  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ================= MEDIA DETAIL ================= */

.media-single {

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 60px auto;

  max-width: 900px;
  width: 90%;

  padding: 20px;

  background: rgba(0,0,0,0.9);

  border-radius: 12px;
}

.media-single video,
.media-single img {

  width: 100%;
  max-width: 900px;

  height: auto;

  border-radius: 8px;
}

/* =====================================================
   🖥️ OVERLAY
   ===================================================== */

.media-overlay {

  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.96);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;
}

.media-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.media-overlay-content {
  max-width: 92%;
  max-height: 88%;

  background: rgba(0,0,0,0.92);

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 10px;

  overflow: hidden;
}

/* Bilder + Video */

.media-overlay-content img,
.media-overlay-content video {
  max-width: 100%;
  max-height: 82vh;

  object-fit: contain;

  background: black;

  animation: fadeInOverlay 0.4s ease;
}

/* PDF */

.pdf-wrapper {

  width: 92vw;
  max-width: 1400px;

  height: 84vh;

  display: flex;
  flex-direction: column;
}

.pdf-wrapper iframe,
.pdf-wrapper embed {

  width: 100%;
  height: 100%;

  border: none;

  background: white;
}

.pdf-link {
  text-align: center;
  margin-top: 12px;
}

.pdf-link a {

  color: white;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.3);

  padding: 8px 14px;

  border-radius: 6px;

  font-size: 0.8rem;
  opacity: 0.85;
}

/* Controls */

.media-overlay-close {

  position: absolute;

  top: 24px;
  right: 34px;

  font-size: 2.4rem;

  color: white;

  cursor: pointer;

  z-index: 10000;
}

.media-overlay-nav {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  font-size: 2.2rem;

  color: white;

  cursor: pointer;

  z-index: 10000;
}

.media-overlay-nav.prev {
  left: 28px;
}

.media-overlay-nav.next {
  right: 28px;
}

.media-overlay-caption {

  position: absolute;

  bottom: 34px;

  width: 100%;

  text-align: center;

  color: white;

  font-size: 0.9rem;
  letter-spacing: 1px;

  opacity: 0.85;
}

/* =========================================================
   ABOUT / GRIMM ENTRY
   ========================================================= */

.about-section {
  background: rgba(0,0,0,0.62);
}

.about-inner {

  width: 90%;
  max-width: 900px;

  margin: 0 auto;

  text-align: left;

  color: rgba(255,255,255,0.88);

  line-height: 1.8;
}

.about-header {
  margin-bottom: 80px;
}

.about-kicker {

  display: inline-block;

  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;

  opacity: 0.45;

  margin-bottom: 20px;
}

.about-header h2 {

  font-size: 4rem;
  font-weight: 600;

  margin-bottom: 10px;
}

.about-sub {

  font-size: 1rem;
  opacity: 0.5;

  letter-spacing: 1px;
}

.about-entry {

  display: grid;

  grid-template-columns: 60px 1fr;

  gap: 30px;

  margin-bottom: 70px;
}

.about-number {

  font-size: 0.8rem;

  opacity: 0.3;

  padding-top: 8px;
}

.about-text p {

  margin-bottom: 24px;

  font-size: 1.05rem;

  line-height: 1.9;

  letter-spacing: normal !important;
}

.about-text p:hover {
  letter-spacing: normal !important;
}

.about-text em {
  opacity: 0.75;
  font-style: italic;
}

.about-text blockquote {

  margin: 35px 0;

  padding-left: 24px;

  border-left: 1px solid rgba(255,255,255,0.2);

  font-style: italic;

  opacity: 0.85;
}

.about-source {

  margin-top: 100px;

  font-size: 0.8rem;

  opacity: 0.35;

  letter-spacing: 1px;
}

/* =========================================================
   ⚖️ LEGAL
   ========================================================= */

.legal-inner {

  width: 90%;
  max-width: 900px;

  margin: 0 auto;

  text-align: left;
}

.legal-header {

  margin-bottom: 100px;
}

.legal-kicker {

  display: inline-block;

  margin-bottom: 20px;

  font-size: 0.75rem;

  letter-spacing: 3px;
  text-transform: uppercase;

  opacity: 0.4;
}

.legal-header h2 {

  font-size: 4rem;
  font-weight: 600;

  margin-bottom: 14px;
}

.legal-sub {

  opacity: 0.45;

  font-size: 1rem;

  letter-spacing: 1px;
}

.legal-block {

  margin-bottom: 100px;
}

.legal-block h3 {

  font-size: 1.4rem;
  font-weight: 600;

  margin-bottom: 28px;

  letter-spacing: 1px;
}

.legal-block p {

  margin-bottom: 22px;

  font-size: 1rem;

  line-height: 1.9;

  letter-spacing: normal !important;

  opacity: 0.8;
}

.legal-block p:hover {
  letter-spacing: normal !important;
}

.legal-block a {

  color: rgba(255,255,255,0.9);

  text-decoration: none;

  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.legal-block strong {
  font-weight: 600;
}

/* ================= FOOTER ================= */

.site-footer {

  width: 100%;

  padding-top: 80px;

  border-top: 1px solid rgba(255,255,255,0.08);

  text-align: center;
}

.footer-line {

  margin-bottom: 12px;

  font-size: 0.8rem;

  letter-spacing: 1px;

  opacity: 0.35;
}

.footer-links {

  display: flex;
  justify-content: center;
  gap: 30px;

  flex-wrap: wrap;
}

.footer-links a {

  color: rgba(255,255,255,0.55);

  text-decoration: none;

  font-size: 0.78rem;
  letter-spacing: 1px;

  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* ================= ANIMATION ================= */

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInOverlay {

  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ================= TABLET ================= */

@media (max-width: 1000px) {

  .media {
    padding: 100px 30px;
  }

  .media-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}

/* ================= MOBILE ================= */

@media (max-width: 700px) {

  body {
    overflow-x: hidden;
  }

  nav {
    top: 20px;
    right: 20px;
  }

  nav li {
    margin-left: 18px;
  }

  nav a {
    font-size: 0.72rem;
    letter-spacing: 1px;
  }

  h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  p {
    font-size: 1rem;
  }

  /* Sections */

  .section {

    min-height: auto !important;

    height: auto !important;

    display: block !important;

    padding-top: 120px;
    padding-bottom: 120px;

    overflow: visible !important;

    transform: none !important;
    opacity: 1 !important;
  }

  #home {

    min-height: 100vh !important;

    display: flex !important;

    justify-content: center;
    align-items: center;
  }

  /* Media */

  .media {
    width: 100%;
    padding: 80px 16px;
  }

  .media-grid {

    display: grid !important;

    grid-template-columns: 1fr !important;

    gap: 18px;

    width: 100%;
  }

  .media-item,
  .media-item:nth-child(n) {

    grid-column: span 1 !important;
    grid-row: span 1 !important;

    transform: none !important;

    width: 100%;
  }

  .media-item img {

    width: 100%;

    height: auto !important;
    min-height: unset !important;

    display: block;
  }

  .media-item,
  .media-item img {

    opacity: 1 !important;
    visibility: visible !important;
  }

  .media-overlay-content {
    width: 96%;
  }

  .pdf-wrapper {
    width: 96vw;
    height: 78vh;
  }

  /* About */

  .about-header h2 {
    font-size: 2.5rem;
  }

  .about-entry {

    grid-template-columns: 1fr;

    gap: 10px;
  }

  .about-number {
    opacity: 0.2;
  }

  .about-text p {

    font-size: 0.95rem;

    line-height: 1.7;
  }

  /* Legal */

  .legal-header h2 {
    font-size: 2.5rem;
  }

  .legal-block {
    margin-bottom: 70px;
  }

  .legal-block h3 {
    font-size: 1.1rem;
  }

  .legal-block p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .footer-links {
    gap: 18px;
  }

}

/* ================= DESKTOP LIMIT ================= */

@media (min-width: 1024px) {

  .media-single img {
    max-width: 800px;
  }

}