/*
Theme Name: Partypapst Futuristic
Theme URI: https://www.partypapst.de
Author: Partypapst
Description: Futuristisches WordPress-Theme für Partypapst – Partyfotos aus dem Sauerland seit 1998.
Version: 3.5.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: partypapst
*/

/* ============================================================
   DISPLAY-SCHRIFT: Cinzel Decorative (via Google Fonts)
   Adventure (optional lokal) – wird per PHP geprüft und
   nur dann aktiviert wenn die Datei existiert.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --pp-bg:            #05060f;
  --pp-bg-card:       #0d0f1e;
  --pp-bg-glass:      rgba(10,11,24,0.92);
  --pp-border:        rgba(138,43,226,0.28);
  --pp-border-glow:   rgba(138,43,226,0.70);
  --pp-accent:        #8a2be2;
  --pp-accent-hot:    #e040fb;
  --pp-accent-cyan:   #00e5ff;
  --pp-text:          #e8e8f0;
  --pp-text-on-dark:  #f0f0ff;
  --pp-muted-on-dark: #a0a0c0;
  --pp-cyan-on-dark:  #00e5ff;
  --pp-hot-on-dark:   #f060ff;
  --pp-white:         #ffffff;

  /* Cinzel Decorative: immer verfügbar via Google Fonts */
  --font-adventure: 'Cinzel Decorative', cursive;
  --font-display:   'Rajdhani', sans-serif;
  --font-body:      'Exo 2', 'Inter', sans-serif;
  --font-mono:      'Share Tech Mono', monospace;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 7rem;

  --ease-expo: cubic-bezier(0.16,1,0.3,1);
  --focus-ring: 0 0 0 3px #05060f, 0 0 0 5px #00e5ff;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--pp-bg);
  color: var(--pp-text-on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :root { --pp-bg: Canvas; --pp-text-on-dark: CanvasText; --pp-border: ButtonBorder; }
}

/* ============================================================
   BARRIEREFREIHEIT
   ============================================================ */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 99999;
  padding: 0.875rem 1.75rem;
  background: var(--pp-accent-cyan); color: #000;
  font-weight: 700; font-size: 1rem;
  border-radius: 0 0 8px 8px; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.03em;
  line-height: 1.2; color: var(--pp-text-on-dark);
}
h1 { font-size: clamp(1.875rem,4.5vw,3.25rem); }
h2 { font-size: clamp(1.5rem,3vw,2.25rem); }
h3 { font-size: clamp(1.2rem,2.2vw,1.6rem); }

.brand-name {
  font-family: var(--font-adventure);
  /* Text-Stroke: -webkit- Präfix für Chrome/Safari/Opera nötig */
  -webkit-text-stroke: 0.5px rgba(0,229,255,0.6);
  /* paint-order: nur Firefox+Safari – Chrome ignoriert es, daher kein Problem */
  paint-order: stroke fill;
}

p { margin-bottom: 1.25rem; max-width: 72ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--pp-cyan-on-dark); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--pp-hot-on-dark); }
strong { color: var(--pp-hot-on-dark); font-weight: 700; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1rem,4vw,2.5rem);
}

.section { padding-block: var(--sp-lg); }

body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(138,43,226,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,43,226,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 80%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 200;
  background: var(--pp-bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--pp-border);
  min-height: 88px;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm); padding-block: 0.75rem;
  min-height: 88px;
}

.site-logo a {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; border-radius: 6px;
}
.site-logo img {
  height: 72px; width: auto; display: block;
  filter: drop-shadow(0 0 18px rgba(138,43,226,0.65)) drop-shadow(0 0 8px rgba(0,229,255,0.35));
  transition: filter 0.3s, transform 0.3s var(--ease-expo);
}
.site-logo a:hover img, .site-logo a:focus-visible img {
  filter: drop-shadow(0 0 28px rgba(224,64,251,0.9)) drop-shadow(0 0 14px rgba(0,229,255,0.6));
  transform: scale(1.04);
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: visible; }
.site-logo__name {
  font-family: var(--font-adventure);
  font-size: clamp(1.1rem,1.8vw,1.8rem); font-weight: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-block; /* inline-block ist Pflicht für background-clip:text */
  background: linear-gradient(135deg,#fff 0%,var(--pp-accent-cyan) 50%,var(--pp-accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 1px rgba(0,229,255,0.8));
  padding-bottom: 0.05em; /* verhindert Abschneiden */
}
.site-logo__tagline {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--pp-muted-on-dark);
}

.main-nav { position: relative; }
.nav-list { display: -webkit-flex; display: flex; gap: 0.25rem; list-style: none; -webkit-align-items: center; align-items: center; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 1rem; font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pp-text-on-dark);
  text-decoration: none; border: 1px solid transparent;
  border-radius: 5px; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-page-ancestor > a {
  color: var(--pp-cyan-on-dark); border-color: var(--pp-border-glow);
  background: rgba(138,43,226,0.12);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 2px solid var(--pp-border-glow);
  border-radius: 5px; padding: 10px; cursor: pointer;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--pp-accent-cyan); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-social { display: flex; gap: 0.6rem; align-items: center; }
.header-social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--pp-border);
  border-radius: 50%; color: var(--pp-muted-on-dark);
  text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.header-social a:hover {
  border-color: var(--pp-accent-hot); color: var(--pp-hot-on-dark);
  box-shadow: 0 0 18px rgba(224,64,251,0.5);
}
.header-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   HERO  –  Layout-Grundregel
   Wichtig: .hero ist nur Hintergrund + Padding.
   Das Grid liegt in .hero-inner (= .container), damit
   max-width greift und nichts über 1320px hinausgeht.
   ============================================================ */
.hero {
  position: relative; z-index: 1;
  min-height: auto;
  overflow: hidden;
  padding-block: var(--sp-lg); /* gleich oben & unten, kompakter */
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;  /* Text | Logo-Ring */
  gap: var(--sp-lg);
  align-items: center;
  position: relative; z-index: 2;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%,rgba(138,43,226,0.2) 0%,transparent 70%),
    radial-gradient(ellipse 50% 40% at 5% 80%,rgba(0,229,255,0.08) 0%,transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: ''; position: absolute;
  top: 0; left: -10%; right: -10%; height: 1px;
  background: linear-gradient(90deg,transparent,var(--pp-accent-cyan),var(--pp-accent-hot),var(--pp-accent),transparent);
  opacity: 0.4; -webkit-animation: scan-line 10s linear infinite; animation: scan-line 10s linear infinite;
}
@-webkit-keyframes scan-line { 0% { top:0; opacity:0.4; } 100% { top:100%; opacity:0; } }
@keyframes scan-line { 0% { top:0; opacity:0.4; } 100% { top:100%; opacity:0; } }

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--pp-cyan-on-dark); margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,6vw,4.5rem);
  line-height: 1.05; margin-bottom: 1.5rem;
}
.hero-title .brand-name {
  display: inline-block; /* WICHTIG: block bricht background-clip:text in Chrome/Safari */
  width: 100%;            /* volle Breite trotz inline-block */
  font-family: var(--font-adventure);
  font-size: clamp(2.8rem,7.5vw,5.5rem); line-height: 1; font-weight: normal;
  background: linear-gradient(135deg,var(--pp-white) 0%,var(--pp-accent-cyan) 45%,var(--pp-accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* Fallback für ältere Browser */
  filter: drop-shadow(0 0 2px rgba(0,229,255,0.7)); margin-top: 0.25rem;
}
.hero-text {
  font-size: 1.1rem; color: var(--pp-muted-on-dark);
  margin-bottom: 2.5rem; max-width: 58ch; line-height: 1.75;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 52px; padding: 0 2.25rem;
  background: linear-gradient(135deg,var(--pp-accent),var(--pp-accent-hot));
  color: var(--pp-white); font-family: var(--font-display);
  font-weight: 700; font-size: 0.875rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  border: none; border-radius: 5px; cursor: pointer;
  box-shadow: 0 0 24px rgba(138,43,226,0.55);
  transition: transform 0.2s var(--ease-expo), box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 48px rgba(138,43,226,0.75);
  color: var(--pp-white);
}
.hero-stats { display: -webkit-flex; display: flex; gap: var(--sp-md); margin-top: var(--sp-md); -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.hero-stat__number { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--pp-cyan-on-dark); line-height: 1; }
.hero-stat__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pp-muted-on-dark); margin-top: 0.2rem; }

/* Logo-Ring rechts im Hero */
.hero-visual {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  position: relative; z-index: 2;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
/* ============================================================
   LOGO-RING
   Strategie: Ein einziges HTML-Element (.hero-logo-ring).
   Firefox:           mask: (ohne -webkit-) → Ring korrekt
   Chrome/Safari/Op:  @supports (-webkit-mask:) → -webkit-mask: nutzen
   ============================================================ */
.hero-logo-ring {
  /* Feste Größe: verhindert unkontrolliertes Wachsen bei responsivem Layout */
  width: 280px;
  height: 280px;
  min-width: 280px;
  min-height: 280px;
  max-width: 280px;
  max-height: 280px;
  border-radius: 50%;
  border: 1px solid var(--pp-border-glow);
  background: radial-gradient(circle, rgba(138,43,226,0.12) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ring-pulse 5s ease-in-out infinite;
  position: relative;
  flex-shrink: 0;
}

/* Rotierender Farbring via conic-gradient */
.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0%,   rgba(0,229,255,0.35)  20%,
    transparent 40%,  rgba(224,64,251,0.35) 60%,
    transparent 80%,  rgba(138,43,226,0.35) 100%);
  animation: ring-spin 9s linear infinite;
  /* Beide Präfixe: Firefox (mask), Chrome/Safari/Opera (-webkit-mask) */
  -webkit-mask: radial-gradient(farthest-side,
    transparent calc(100% - 3px),
    black        calc(100% - 3px));
  mask: radial-gradient(farthest-side,
    transparent calc(100% - 3px),
    black        calc(100% - 3px));
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@-webkit-keyframes ring-spin {
  from { -webkit-transform: rotate(0deg); }
  to   { -webkit-transform: rotate(360deg); }
}
@keyframes ring-pulse {
  0%,100% {
    box-shadow: 0 0 40px rgba(138,43,226,0.25),
                inset 0 0 30px rgba(138,43,226,0.08);
  }
  50% {
    box-shadow: 0 0 64px rgba(224,64,251,0.4),
                inset 0 0 40px rgba(0,229,255,0.12);
  }
}
@-webkit-keyframes ring-pulse {
  0%,100% {
    box-shadow: 0 0 40px rgba(138,43,226,0.25),
                inset 0 0 30px rgba(138,43,226,0.08);
  }
  50% {
    box-shadow: 0 0 64px rgba(224,64,251,0.4),
                inset 0 0 40px rgba(0,229,255,0.12);
  }
}

.hero-logo-img {
  /* Feste Größe: proportionale Darstellung unabhängig vom Container */
  width: 220px;
  height: 220px;
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 22px rgba(138,43,226,0.65))
          drop-shadow(0 0 10px rgba(0,229,255,0.4));
}

/* ============================================================
   GLOW DIVIDER
   ============================================================ */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--pp-accent-hot),var(--pp-accent-cyan),var(--pp-accent),transparent);
  opacity: 0.45;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { position: relative; z-index: 1; border-top: 1px solid var(--pp-border); }
.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-lg); align-items: center; }
.about-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem; border: 1px solid var(--pp-border-glow);
  border-radius: 100px; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--pp-cyan-on-dark);
  background: rgba(138,43,226,0.08); margin-bottom: 1.5rem;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--pp-muted-on-dark); }
.about-visual-card {
  background: var(--pp-bg-card); border: 1px solid var(--pp-border);
  border-radius: 10px; padding: var(--sp-md);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem;
  box-shadow: 0 0 40px rgba(138,43,226,0.2);
}
.about-logo-img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(138,43,226,0.55)); }
.since-badge {
  font-family: var(--font-adventure); font-size: clamp(2.5rem,6vw,4rem); font-weight: normal;
  display: inline-block;
  background: linear-gradient(180deg,var(--pp-white) 0%,var(--pp-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1; filter: drop-shadow(0 0 1px rgba(138,43,226,0.7));
}
.since-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--pp-muted-on-dark); text-align: center; }

/* ============================================================
   JAHRGÄNGE
   ============================================================ */
.years-section { position: relative; z-index: 1; border-top: 1px solid var(--pp-border); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-sm); margin-bottom: var(--sp-md); flex-wrap: wrap; }
.section-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--pp-accent-cyan); margin-bottom: 0.4rem; }

.years-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1.25rem; }

.year-card {
  display: block; position: relative;
  background: var(--pp-bg-card); border: 1px solid var(--pp-border);
  border-radius: 8px; overflow: hidden; text-decoration: none;
  color: inherit; aspect-ratio: 4/5;
  -webkit-transition: border-color 0.3s, -webkit-transform 0.3s var(--ease-expo), box-shadow 0.3s;
  transition: border-color 0.3s, transform 0.3s var(--ease-expo), box-shadow 0.3s;
}
.year-card:hover { border-color: var(--pp-accent-hot); transform: translateY(-6px) scale(1.02); box-shadow: 0 24px 64px rgba(224,64,251,0.25); }
.year-card:focus-visible { outline: none; box-shadow: var(--focus-ring), 0 24px 64px rgba(224,64,251,0.2); transform: translateY(-4px); }

.year-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55) brightness(0.65); transition: transform 0.5s var(--ease-expo), filter 0.3s; }
.year-card:hover .year-card__img { transform: scale(1.08); filter: saturate(1) brightness(0.78); }
.year-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(5,6,15,0.96) 0%,rgba(5,6,15,0.22) 55%,transparent 100%); }
.year-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1rem; }
.year-card__year { font-family: var(--font-adventure); font-size: 2.4rem; font-weight: normal; line-height: 1; color: var(--pp-white); text-shadow: 0 0 24px rgba(138,43,226,0.85); filter: drop-shadow(0 0 1px rgba(0,229,255,0.5)); margin-bottom: 0.25rem; }
.year-card__count { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--pp-cyan-on-dark); }
.year-card__arrow { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; background: rgba(138,43,226,0.3); border: 1px solid var(--pp-border-glow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--pp-cyan-on-dark); opacity: 0; transition: opacity 0.2s; }
.year-card:hover .year-card__arrow { opacity: 1; }
.year-card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(138,43,226,0.15) 0%,rgba(0,229,255,0.06) 100%); }

/* Karte mit NGG-Zufallsbild als Hintergrund */
.year-card--has-bg {
  /* Das Bild kommt per inline style, wir stellen nur den Überblend-Effekt ein */
  background-size: cover !important;
  background-position: center center !important;
  transition: background-size 0.5s ease, border-color 0.3s, transform 0.3s var(--ease-expo), box-shadow 0.3s;
}
.year-card--has-bg:hover {
  background-size: 110% !important;
}
/* Overlay auf Karten mit Bild etwas stärker für bessere Lesbarkeit */
.year-card--has-bg .year-card__overlay {
  background: linear-gradient(
    to top,
    rgba(5,6,15,0.97) 0%,
    rgba(5,6,15,0.45) 50%,
    rgba(5,6,15,0.15) 100%
  );
}

/* ============================================================
   IMAGELY / NGG
   ============================================================ */
.ngg-gallery-wrap,
.ngg-galleryoverview,
.ngg-gallery,
.ngg-container {
  background: transparent !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* .ngg-gallery-thumbnail-box: kein width/max-width override,
   damit Imagely die Breite selbst bestimmt */
.ngg-gallery-thumbnail-box {
  background: transparent !important;
  box-sizing: border-box !important;
}
[class*="ngg-"] table { max-width: 100% !important; width: 100% !important; table-layout: fixed !important; }

.ngg-gallery-thumbnail { border: 1px solid var(--pp-border) !important; border-radius: 6px !important; overflow: hidden !important; transition: border-color 0.25s, box-shadow 0.25s !important; background: var(--pp-bg-card) !important; }
.ngg-gallery-thumbnail:hover { border-color: var(--pp-accent-hot) !important; box-shadow: 0 0 28px rgba(224,64,251,0.38) !important; }
.ngg-gallery-thumbnail img { transition: transform 0.4s var(--ease-expo), filter 0.3s !important; filter: saturate(0.82) brightness(0.88) !important; }
.ngg-gallery-thumbnail:hover img { transform: scale(1.06) !important; filter: saturate(1.1) brightness(1) !important; }
.ngg-gallery-thumbnail-box .ngg-gallery-caption, .ngg-gallery-thumbnail .ngg-description { background: rgba(5,6,15,0.9) !important; color: var(--pp-text-on-dark) !important; font-size: 0.8rem !important; }
.ngg-gallery a { text-decoration: none !important; display: block !important; }
.ngg-gallery a:focus-visible { box-shadow: var(--focus-ring) !important; border-radius: 6px !important; outline: none !important; }
.ngg-navigation { margin-top: var(--sp-md) !important; display: flex !important; justify-content: center !important; gap: 0.5rem !important; flex-wrap: wrap !important; }
.ngg-navigation a, .ngg-navigation span { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; padding: 0 0.75rem !important; background: var(--pp-bg-card) !important; border: 1px solid var(--pp-border) !important; border-radius: 5px !important; font-family: var(--font-display) !important; font-size: 0.8rem !important; color: var(--pp-text-on-dark) !important; text-decoration: none !important; transition: border-color 0.2s, color 0.2s !important; }
.ngg-navigation a:hover, .ngg-navigation .current { border-color: var(--pp-accent-cyan) !important; color: var(--pp-cyan-on-dark) !important; }
.ngg-album-compact .ngg-album-container, .ngg-album .ngg-album-container { background: var(--pp-bg-card) !important; border: 1px solid var(--pp-border) !important; border-radius: 8px !important; overflow: hidden !important; transition: border-color 0.3s, transform 0.3s !important; }
.ngg-album-compact .ngg-album-container:hover, .ngg-album .ngg-album-container:hover { border-color: var(--pp-accent-hot) !important; transform: translateY(-5px) !important; }
.ngg-album .ngg-album-title, .ngg-album-compact .ngg-album-title { font-family: var(--font-adventure) !important; font-size: 1.4rem !important; color: var(--pp-white) !important; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-with-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-md); align-items: start; }
.sidebar { position: sticky; top: 100px; background: var(--pp-bg-card); border: 1px solid var(--pp-border); border-radius: 10px; padding: 1.5rem; }
.sidebar-title { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pp-cyan-on-dark); margin-bottom: 1rem; }
.year-list { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.year-list a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 0.75rem; border-radius: 5px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--pp-muted-on-dark); text-decoration: none; transition: background 0.15s, color 0.15s; }
.year-list a:hover, .year-list .current-year a { background: rgba(138,43,226,0.14); color: var(--pp-cyan-on-dark); }
.year-list .count { font-size: 0.68rem; color: var(--pp-muted-on-dark); background: rgba(255,255,255,0.06); padding: 0.15rem 0.5rem; border-radius: 100px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--pp-muted-on-dark); margin-bottom: 1.75rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--pp-muted-on-dark); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--pp-cyan-on-dark); }
.breadcrumb-sep { color: rgba(138,43,226,0.7); font-size: 0.6rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--pp-border); padding-block: var(--sp-lg) var(--sp-md); margin-top: var(--sp-lg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-lg); margin-bottom: var(--sp-md); }
.footer-brand img { height: 64px; width: auto; filter: drop-shadow(0 0 10px rgba(138,43,226,0.45)); margin-bottom: 0.75rem; }
.footer-brand-name { font-family: var(--font-adventure); font-size: 1.4rem; display: inline-block; background: linear-gradient(135deg,var(--pp-white) 0%,var(--pp-accent-cyan) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; color: var(--pp-muted-on-dark); max-width: 34ch; }
.footer-col-title { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pp-accent-cyan); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { font-size: 0.875rem; color: var(--pp-muted-on-dark); text-decoration: underline; text-underline-offset: 2px; min-height: 36px; display: flex; align-items: center; transition: color 0.2s; }
.footer-links a:hover { color: var(--pp-cyan-on-dark); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--pp-border); border-radius: 50%; color: var(--pp-muted-on-dark); text-decoration: none; transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.footer-social a:hover { border-color: var(--pp-accent-hot); color: var(--pp-hot-on-dark); box-shadow: 0 0 18px rgba(224,64,251,0.45); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); padding-top: var(--sp-md); border-top: 1px solid var(--pp-border); flex-wrap: wrap; }
.footer-copy { font-family: var(--font-mono); font-size: 0.75rem; color: var(--pp-muted-on-dark); }
.footer-legal { display: flex; gap: 1.25rem; list-style: none; }
.footer-legal a { font-size: 0.78rem; color: var(--pp-muted-on-dark); text-decoration: underline; text-underline-offset: 2px; min-height: 36px; display: inline-flex; align-items: center; }
.footer-legal a:hover { color: var(--pp-cyan-on-dark); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .sidebar, .hero-cta, .nav-toggle, .glow-divider, body::before { display: none !important; }
  body  { background: white; color: black; font-size: 12pt; }
  a     { color: black; text-decoration: underline; }
  .hero { min-height: auto; }
  .year-card { break-inside: avoid; }
}

/* ============================================================
   RESPONSIVE  –  ein Block, keine Duplikate
   ============================================================ */

/* 1200px: Ring etwas kleiner */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr 240px; gap: var(--sp-md); }
}

/* 1024px: Sidebar + About einspaltig */
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 768px: Hero einspaltig – Logo OBEN, dann Text */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  /* Logo-Ring erscheint über dem Text */
  .hero-visual {
    order: -1;
    justify-content: center;
  }
  .hero-logo-ring { width: 200px; height: 200px; }
  .hero-stats { justify-content: center; }

  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute; top: calc(100% + 4px); right: 0;
    min-width: 240px; flex-direction: column;
    background: var(--pp-bg-card); border: 1px solid var(--pp-border-glow);
    border-radius: 0 0 8px 8px; padding: 0.5rem; gap: 0.15rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
  .site-logo img { height: 60px; }
  .site-logo__name { font-size: 1.4rem; }
}

/* 480px: sehr kleine Bildschirme */
@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .years-grid { grid-template-columns: repeat(2,1fr); }
  .header-social { display: none; }
  .site-logo img { height: 50px; }
  .hero-logo-ring { width: 160px; height: 160px; }
}
