/* ============================================================
   HAUS ZORN – MASTER STYLESHEET
   Alle Anpassungen über CSS-Variablen im :root Block
   ============================================================ */

/* ============================================================
   1. CSS VARIABLEN – HIER ALLES ANPASSEN
   ============================================================ */
:root {

  /* --- FARBEN --- */
  --color-bg:           #0a0a0a;       /* Seitenhintergrund */
  --color-bg-secondary: #111111;       /* Header, Footer, Karten */
  --color-bg-tertiary:  #1a1a1a;       /* Hover-Flächen, Inputs */

  --color-surface:      #161616;       /* Nav-Hintergrund */
  --color-surface-alt:  #1e1e1e;       /* Karten, Panels */

  --color-red:          #992222;       /* Primärakzent – gedämpftes Weinrot */
  --color-red-dark:     #661414;       /* Weinrot gedimmt */
  --color-red-glow:     #99222233;     /* Glow */

  --color-white:        #f0f0f0;       /* Haupttext */
  --color-gray-light:   #b0b0b0;       /* Sekundärtext */
  --color-gray-mid:     #666666;       /* Dezente Elemente */
  --color-gray-dark:    #2a2a2a;       /* Trennlinien, Borders */

  --color-text:         #f0f0f0;       /* Fließtext */
  --color-text-muted:   #888888;       /* Hinweistexte */
  --color-text-nav:     #cccccc;       /* Nav-Links */

  --color-border:       #2a2a2a;       /* Standard-Border */
  --color-border-accent:#992222;       /* Aktive/Hover-Border */

  /* --- TYPOGRAFIE --- */
  --font-display:       'Cinzel', serif;           /* Überschriften, Logo */
  --font-body:          'Crimson Text', serif;     /* Fließtext */
  --font-ui:            'Rajdhani', sans-serif;    /* Navigation, Labels, UI */
  --font-mono:          'Courier New', monospace;  /* Code, technisches */

  --font-size-xs:       0.75rem;
  --font-size-sm:       0.875rem;
  --font-size-base:     1rem;
  --font-size-md:       1.125rem;
  --font-size-lg:       1.375rem;
  --font-size-xl:       1.75rem;
  --font-size-2xl:      2.25rem;
  --font-size-3xl:      3rem;
  --font-size-hero:     4.5rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold:   700;

  --line-height-tight:  1.2;
  --line-height-normal: 1.6;
  --line-height-loose:  1.8;

  --letter-spacing-wide:   0.05em;
  --letter-spacing-wider:  0.1em;
  --letter-spacing-widest: 0.2em;

  /* --- LAYOUT --- */
  --layout-max-width:   1400px;
  --layout-content-width: 960px;

  --nav-width:          0px;           /* Kein vertikales Menü mehr */
  --header-height:      80px;          /* Höhe oberer Header */
  --nav-height:         50px;          /* Höhe horizontale Nav-Leiste */
  --footer-height:      auto;

  /* --- MEGA-MENÜ --- */
  --mega-bg:            #111111;
  --mega-border:        var(--color-red-dark);
  --mega-padding:       var(--space-xl);
  --mega-shadow:        0 8px 40px rgba(0,0,0,0.8);
  --mega-col-min:       180px;
  --mega-transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- ABSTÄNDE --- */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* --- BORDER RADIUS --- */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* --- SCHATTEN --- */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.6);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.7);
  --shadow-red:  0 0 20px var(--color-red-glow);
  --shadow-glow: 0 0 40px rgba(204,0,0,0.15);

  /* --- ÜBERGÄNGE --- */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;

  /* --- TRENNLINIEN --- */
  --divider: 1px solid var(--color-border);
  --divider-accent: 1px solid var(--color-red-dark);

  /* --- NAV SPEZIFISCH --- */
  --nav-link-padding:     var(--space-sm) var(--space-lg);
  --nav-active-bg:        var(--color-bg-tertiary);
  --nav-active-color:     var(--color-red);
  --nav-hover-bg:         var(--color-bg-tertiary);
  --nav-indicator-width:  3px;

  /* --- HEADER SPEZIFISCH --- */
  --header-bg:            var(--color-bg-secondary);
  --header-border:        var(--divider);
  --logo-color:           var(--color-white);
  --logo-accent:          var(--color-red);

  /* --- FOOTER SPEZIFISCH --- */
  --footer-bg:            var(--color-bg-secondary);
  --footer-border:        var(--divider-accent);
  --footer-text:          var(--color-text-muted);

  /* --- CONTENT SPEZIFISCH --- */
  --content-padding:      var(--space-2xl);
  --card-bg:              var(--color-surface-alt);
  --card-border:          var(--color-border);
  --card-padding:         var(--space-xl);
  --card-radius:          var(--radius-md);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-white); }

img { max-width: 100%; display: block; }

ul, ol { list-style: none; }

/* ============================================================
   3. SEITEN-LAYOUT (Grid)
   ============================================================ */
.page-wrapper {
  display: grid;
  grid-template-areas:
    "header"
    "nav"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: var(--header-height) var(--nav-height) 1fr auto;
  min-height: 100vh;
  width: 100%;
}

/* Zentrierter Inhaltsbereich innerhalb der vollen Breite */
.site-nav .nav-list,
.site-main {
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Header und Nav selbst bleiben volle Breite */
.site-header {
  max-width: 100%;
  border-left: none;
  border-right: none;
}

.site-nav {
  width: 100%;
}

.site-nav .nav-list {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
  grid-area: header;
  background: var(--header-bg);
  border-bottom: var(--header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  color: var(--logo-color);
  text-transform: uppercase;
  line-height: 1;
}

.site-logo span {
  color: var(--logo-accent);
}

.site-tagline {
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.header-logo-img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 0 8px rgba(200,74,0,0.4));
  transition: opacity var(--transition-normal), filter var(--transition-normal);
}

.header-logo-img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(200,74,0,0.7));
}

.header-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

/* ============================================================
   5. NAVIGATION (horizontal + Mega-Menü)
   ============================================================ */
.site-nav {
  grid-area: nav;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  box-shadow: var(--shadow-md);
}

.nav-list {
  display: flex;
  align-items: stretch;
  height: var(--nav-height);
  padding: 0 var(--space-xl);
  margin: 0;
  list-style: none;
}

.nav-item {
  position: static;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0 var(--space-lg);
  height: 100%;
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-text-nav);
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-normal);
  cursor: pointer;
  user-select: none;
}

.nav-link:hover,
.nav-item.open > .nav-link {
  color: var(--color-white);
  border-bottom-color: var(--color-red);
  background: var(--color-bg-tertiary);
}

.nav-link.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

/* Pfeil-Indikator für Elemente mit Untermenü */
.nav-link .nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}

.nav-item.open > .nav-link .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* ============================================================
   MEGA-MENÜ PANEL
   ============================================================ */
.mega-menu {
  position: fixed;
  top: calc(var(--header-height) + var(--nav-height));
  left: 0;
  right: 0;
  background: var(--mega-bg);
  border-top: 2px solid var(--mega-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--mega-shadow);
  padding: var(--mega-padding) var(--space-2xl);
  z-index: 80;

  /* Animiert */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--mega-transition), transform var(--mega-transition);
}

.mega-menu.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--mega-col-min), 1fr));
  gap: var(--space-xl);
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.mega-col-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.mega-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mega-col-list a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-muted);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mega-col-list a:hover {
  color: var(--color-white);
  background: var(--color-bg-tertiary);
  padding-left: var(--space-md);
}

/* Overlay zum Schließen */
.mega-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
}

.mega-overlay.visible {
  display: block;
}

/* ============================================================
   6. MAIN CONTENT
   ============================================================ */
.site-main {
  grid-area: main;
  padding: var(--content-padding);
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  background: var(--color-bg);
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-md);
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-red);
}

.page-subtitle {
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   7. KARTEN / PANELS
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  border-color: var(--color-red-dark);
  box-shadow: var(--shadow-red);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  grid-area: footer;
  background: var(--footer-bg);
  border-top: var(--footer-border);
  width: 100%;
}

.footer-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 0 4px rgba(200,74,0,0.3));
}

.footer-text {
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--footer-text);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--color-red); }

/* ============================================================
   9. TYPOGRAFIE UTILITIES
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-white);
  text-transform: uppercase;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: var(--line-height-loose);
}

.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-red); }
.text-white  { color: var(--color-white); }
.text-upper  { text-transform: uppercase; letter-spacing: var(--letter-spacing-wider); }
.font-ui     { font-family: var(--font-ui); }
.font-display{ font-family: var(--font-display); }

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn-ghost:hover {
  color: var(--color-white);
  background: var(--color-bg-tertiary);
}

/* ============================================================
   11. TRENNLINIEN & DEKORATIVE ELEMENTE
   ============================================================ */
.divider {
  border: none;
  border-top: var(--divider);
  margin: var(--space-xl) 0;
}

.divider-accent {
  border-top: var(--divider-accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-sm);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--color-red-glow);
  color: var(--color-red);
  border: 1px solid var(--color-red-dark);
}

/* ============================================================
   12. SCROLLBAR (global)
   ============================================================ */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-gray-dark); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-red-dark); }

/* ============================================================
   13. HERO BANNER
   ============================================================ */
.hero-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 48px rgba(153, 34, 34, 0.3);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.1) contrast(1.05);
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(8, 6, 4, 0.6) 100%
  );
  pointer-events: none;
}

/* ============================================================
   16. LOGIN MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-red);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 16px 64px rgba(0,0,0,0.8), var(--shadow-red);
  animation: fadeIn .25s ease;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.modal-close:hover { color: var(--color-white); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px var(--color-red-glow); }
  50%       { box-shadow: 0 0 25px var(--color-red-glow); }
}

.animate-fade-in  { animation: fadeIn 0.4s ease forwards; }
.animate-glow     { animation: glowPulse 2s ease-in-out infinite; }

/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-areas:
      "header"
      "nav"
      "main"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: var(--header-height) auto 1fr auto;
  }

  .site-nav {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: var(--divider);
    padding: var(--space-md) 0;
    display: flex;
    overflow-x: auto;
  }

  .nav-section { margin-bottom: 0; }
  .nav-section-title { display: none; }
  .nav-list { display: flex; }
  .nav-link { border-left: none; border-bottom: var(--nav-indicator-width) solid transparent; white-space: nowrap; }
  .nav-link:hover  { border-left-color: transparent; border-bottom-color: var(--color-red-dark); }
  .nav-link.active { border-left-color: transparent; border-bottom-color: var(--color-red); }

  .site-main { padding: var(--space-xl) var(--space-lg); }

  :root { --nav-width: 100%; }
}

@media (max-width: 600px) {
  :root {
    --font-size-hero: 2.5rem;
    --font-size-3xl:  2rem;
    --font-size-2xl:  1.5rem;
    --content-padding: var(--space-lg);
  }

  .site-header { padding: 0 var(--space-lg); }
  .site-footer { flex-direction: column; text-align: center; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-secondary);
  border-top: 2px solid var(--color-red);
  padding: var(--space-lg) var(--space-xl);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.6);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 700px;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--color-red);
}

.cookie-actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* ============================================================
   TRENNLINIEN / SECTION DIVIDER
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.section-divider span {
  font-family: var(--font-display);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-gray-mid);
  white-space: nowrap;
}

/* ============================================================
   GALERIE / LIGHTBOX
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.gallery-item:hover {
  border-color: var(--color-red);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition-normal);
}

.gallery-item:hover img {
  filter: brightness(1.15);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  font-size: 2rem;
  color: var(--color-white);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.visible {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-caption {
  margin-top: var(--space-md);
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-size: 1.5rem;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.lightbox-nav:hover { background: var(--color-red); border-color: var(--color-red); }
.lightbox-prev { left: var(--space-xl); }
.lightbox-next { right: var(--space-xl); }

/* ============================================================
   FEATURED NEWS
   ============================================================ */
.news-featured {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: var(--color-surface-alt);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.news-featured:hover {
  border-color: var(--color-red);
  box-shadow: var(--shadow-red);
}

.news-featured-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  filter: saturate(0.8);
}

.news-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,6,4,0.95) 30%, transparent 100%);
}

.news-featured-content {
  position: relative;
  padding: var(--space-2xl);
  width: 100%;
}

.news-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.news-featured-badge .featured-label {
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.news-featured-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.news-featured-text {
  color: var(--color-gray-light);
  font-size: var(--font-size-md);
  max-width: 700px;
  line-height: var(--line-height-normal);
}

.news-featured-meta {
  margin-top: var(--space-md);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================================
   HARKONNEN HINTERGRUND
   ============================================================ */
body {
  background-image: url('/assets/harkonnen_bg.svg');
  background-repeat: repeat;
  background-size: 320px 320px;
  background-position: center;
}

/* ============================================================
   REKRUTIERUNGS-BADGE
   ============================================================ */
.rekrutierung-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.rekrutierung-badge.offen {
  background: rgba(40, 120, 40, 0.15);
  border: 1px solid #2d7a2d;
  color: #66cc66;
  box-shadow: 0 0 16px rgba(40,120,40,0.2);
}

.rekrutierung-badge.geschlossen {
  background: rgba(120, 20, 20, 0.15);
  border: 1px solid var(--color-red-dark);
  color: #cc6666;
  box-shadow: 0 0 16px rgba(120,20,20,0.2);
}

.rekrutierung-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

.rekrutierung-badge.offen .badge-dot    { background: #66cc66; }
.rekrutierung-badge.geschlossen .badge-dot { background: #cc6666; animation: none; }

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #66cc66; }
  50%       { opacity: .5; box-shadow: 0 0 8px #66cc66; }
}

/* ============================================================
   HERO PARTIKEL
   ============================================================ */
.hero-banner {
  position: relative;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,74,0,0.8), transparent);
  animation: particleFloat linear infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0%   { transform: translateY(100%) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* Scroll-Animationen */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
