/* ===================================================================
   Eigenes Stylesheet
   Alle projektspezifischen Klassen sind mit "eu-" praefixiert und
   ueberschreiben/ergaenzen die Bootstrap-Basis. Hier individuelles
   Design (Farben, Abstaende, Typografie) ergaenzen.
   =================================================================== */

/* ---- Fonts ---- */
@font-face {
  font-family: "OCR A Extended";
  src: url("../fonts/OCRAEXT.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans/IBMPlexSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --eu-font-display: "OCR A Extended", "Courier New", Consolas, "Lucida Console", monospace;
  --eu-font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  /* Fallback, wird per JS (script.js) auf die reale Header-Hoehe im
     Ruhezustand gesetzt */
  --eu-header-height: 104px;

  /* ---- Theme-Variablen: Darkmode ist der Standardzustand ---- */
  --eu-page-bg: #353535;
  --eu-page-text: #fff;
  --eu-logo-color: #fff;
  --eu-nav-link-color: #fff;
  --eu-header-bg: rgba(0, 0, 0, 0.15);
  --eu-header-bg-scrolled: rgba(0, 0, 0, 0.45);
  --eu-header-border: rgba(255, 255, 255, 0.15);
  --eu-header-border-scrolled: rgba(255, 255, 255, 0.1);
  --eu-header-highlight: rgba(255, 255, 255, 0.12);
  --eu-toggler-border: rgba(255, 255, 255, 0.6);
  --eu-toggler-icon-filter: brightness(0) invert(1);
  --eu-divider-color: rgba(255, 255, 255, 0.15);
  --eu-placeholder-bg: rgba(255, 255, 255, 0.05);
  --eu-placeholder-border: rgba(255, 255, 255, 0.25);
  --eu-placeholder-text: rgba(255, 255, 255, 0.5);
  --eu-mobile-menu-bg: rgba(0, 0, 0, 0.55);
}

/* Lightmode: nur auf Einzelseiten per Toggle aktivierbar (siehe script.js) */
body.eu-theme-light {
  --eu-page-bg: #fff;
  --eu-page-text: #353535;
  --eu-logo-color: #353535;
  --eu-nav-link-color: #353535;
  --eu-header-bg: rgba(255, 255, 255, 0.5);
  --eu-header-bg-scrolled: rgba(255, 255, 255, 0.8);
  --eu-header-border: rgba(0, 0, 0, 0.08);
  --eu-header-border-scrolled: rgba(0, 0, 0, 0.06);
  --eu-header-highlight: rgba(255, 255, 255, 0.6);
  --eu-toggler-border: rgba(0, 0, 0, 0.3);
  --eu-toggler-icon-filter: none;
  --eu-divider-color: rgba(0, 0, 0, 0.1);
  --eu-placeholder-bg: rgba(0, 0, 0, 0.03);
  --eu-placeholder-border: rgba(0, 0, 0, 0.2);
  --eu-placeholder-text: rgba(0, 0, 0, 0.45);
  --eu-mobile-menu-bg: rgba(255, 255, 255, 0.85);
}

/* ---- Grundeinstellungen ---- */
.eu-body {
  font-family: var(--eu-font-body);
  color: var(--eu-page-text);
  background-color: var(--eu-page-bg);
  padding-top: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Headlines und Hauptmenue nutzen die technische Display-Font */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--eu-font-display);
}

/* Auf Einzelseiten ist der Header nicht transparent-ueber-Hero gedacht,
   daher darf Content nicht darunter verschwinden. Die Startseite bleibt
   ausgenommen, da der Hero absichtlich bis unter den Header reicht. */
body:not(.eu-page-home) .eu-main {
  padding-top: var(--eu-header-height);
}

/* ---- Page-Title-Container: H1 am Seitenanfang der Einzelseiten ---- */
.eu-page-title {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--eu-divider-color);
  transition: border-color 0.3s ease;
}

.eu-page-title-heading {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

/* ---- Content-Section: fuellt die volle Bildschirmhoehe, Bild links (~70%)
   / Text rechts (~30%) mit dezenter vertikaler Trennlinie dazwischen ---- */
.eu-content-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 0;
  display: flex;
  align-items: center;
}

.eu-content-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 2.5rem;
}

.eu-content-media {
  flex: 0 0 70%;
  max-width: 70%;
}

.eu-content-divider {
  flex: 0 0 1px;
  align-self: stretch;
  background-color: var(--eu-divider-color);
  transition: background-color 0.3s ease;
}

.eu-content-text {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Text/Formatierung ist 1:1 vom Werkschild uebernommen (siehe .eu-hero-label-*),
   nur der erzwungene Zeilenumbruch (dort fuer die freistehende Karte gedacht)
   wird hier aufgehoben, damit der Fliesstext in der schmaleren Spalte umbricht */
.eu-content-text .eu-hero-label-title,
.eu-content-text .eu-hero-label-meta,
.eu-content-text .eu-hero-label-details {
  white-space: normal;
}

.eu-content-media-placeholder {
  min-height: calc(100dvh - 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--eu-placeholder-bg);
  border: 1px dashed var(--eu-placeholder-border);
  color: var(--eu-placeholder-text);
  font-family: var(--eu-font-body);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 991.98px) {
  .eu-content-row {
    flex-direction: column;
    gap: 2rem;
  }

  .eu-content-media,
  .eu-content-text {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .eu-content-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
  }

  .eu-content-media-placeholder {
    min-height: 320px;
  }

  .eu-content-text {
    justify-content: flex-start;
  }
}

/* ---- Header: Glass-Navbar, liegt fixiert ueber dem Hero-Bild ---- */
.eu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

/* Das Slide-in-Intro gibt es nur auf der Startseite (mit dem Hero-Bild).
   Auf Einzelseiten bleibt der Header von Anfang an sichtbar. */
.eu-page-home .eu-header {
  transform: translateY(-100%);
  animation: eu-header-slide-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 2.8s both;
}

/* Startet direkt am Ende der Hero-Bild-Aufblendanimation (2.8s) */
@keyframes eu-header-slide-in {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.eu-navbar {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background-color: var(--eu-header-bg) !important;
  backdrop-filter: blur(2px) saturate(120%);
  -webkit-backdrop-filter: blur(2px) saturate(120%);
  border-bottom: 1px solid var(--eu-header-border);
  box-shadow: inset 0 1px 0 var(--eu-header-highlight);
  transition:
    padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.5s ease,
    backdrop-filter 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}

/* Weisser Glanz-Verlauf als zusaetzliche "Glas"-Schicht (Lichtreflex oben-links,
   laeuft nach unten-rechts aus) - liegt hinter dem Inhalt der Navbar */
.eu-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  transition: opacity 0.5s ease;
}

.eu-header--scrolled .eu-navbar::before {
  opacity: 0.6;
}

.eu-navbar > .container {
  position: relative;
  z-index: 1;
}

/* Kompakter Zustand sobald gescrollt wird - nur Groesse/Deckkraft aendern sich,
   Farben (weisses Logo/Schrift) bleiben bewusst gleich */
.eu-header--scrolled .eu-navbar {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  background-color: var(--eu-header-bg-scrolled) !important;
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  border-bottom-color: var(--eu-header-border-scrolled);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* Logo: Verkleinerung ueber eine Scale-Transform (GPU-beschleunigt, bleibt
   dadurch scharf) mit leichtem "Overshoot" fuer ein spuerbar animiertes Gefuehl. */
.eu-logo {
  display: inline-block;
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eu-header--scrolled .eu-logo {
  transform: scale(0.78);
}

/* Logo ist inline-SVG mit fill="currentColor", damit die Farbe exakt (auch
   fuer den Lightmode auf Einzelseiten) ueber --eu-logo-color gesetzt werden
   kann - unabhaengig und robuster als eine CSS-Maske auf eine externe Datei */
.eu-logo-img {
  display: block;
  height: 38px;
  width: auto;
  color: var(--eu-logo-color);
  transition: color 0.3s ease;
}

.eu-nav-link {
  font-family: var(--eu-font-display);
  font-weight: 400;
  margin-left: 1rem;
  margin-right: 1rem;
  color: var(--eu-nav-link-color);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.eu-nav-link:hover,
.eu-nav-link.active {
  color: #f8a1b2 !important;
}

/* Dezenter, grossflaechiger Glow auf der Startseite (Menue liegt hier direkt
   ueber dem Hero-Foto und darf sich mehr Raum nehmen) */
.eu-page-home .eu-nav-link:hover {
  text-shadow:
    0 0 14px rgba(248, 161, 178, 0.7),
    0 0 32px rgba(248, 161, 178, 0.45),
    0 0 60px rgba(248, 161, 178, 0.3);
}

/* Im Lightmode (nur Einzelseiten) gibt es weder den Kontrast-Schatten noch
   einen Glow - der Text steht direkt auf hellem Grund */
body.eu-theme-light .eu-nav-link,
body.eu-theme-light .eu-nav-link:hover,
body.eu-theme-light .eu-nav-link.active {
  text-shadow: none;
}

/* Toggler (Hamburger) folgt der Theme-Farbe */
.eu-navbar-toggler {
  border-color: var(--eu-toggler-border);
  transition: border-color 0.3s ease;
}

.eu-navbar-toggler .navbar-toggler-icon {
  filter: var(--eu-toggler-icon-filter);
  transition: filter 0.3s ease;
}

/* Lightmode-Toggle (nur auf Einzelseiten vorhanden, siehe art.html).
   Sitzt bewusst ausserhalb der Navbar/des Containers, fix am rechten
   Rand des Headers, damit er beim Umschalten nie das Menue verschiebt. */
.eu-theme-toggle {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--eu-nav-link-color);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Auf Mobile sitzt links davon der Hamburger-Toggler im Container - Abstand
   vergroessern, damit sich beide Buttons nicht ueberlappen */
@media (max-width: 991.98px) {
  .eu-theme-toggle {
    right: 4.5rem;
  }
}

.eu-theme-toggle-icon--light {
  display: none;
}

body.eu-theme-light .eu-theme-toggle-icon--dark {
  display: none;
}

body.eu-theme-light .eu-theme-toggle-icon--light {
  display: inline;
}

/* Aufgeklapptes Mobile-Menu bekommt ein dichteres Glass in der Theme-Farbe,
   damit die Nav-Links unabhaengig vom Scroll-Zustand lesbar bleiben */
@media (max-width: 991.98px) {
  .eu-navbar-collapse.show,
  .eu-navbar-collapse.collapsing {
    background-color: var(--eu-mobile-menu-bg);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    border-radius: 0 0 1rem 1rem;
    margin: 0.5rem -0.75rem -0.5rem;
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  }
}

/* ---- Hero (100% Breite / Hoehe, Bild als Hauptelement) ---- */
.eu-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* korrekte Fensterhoehe auf Mobile trotz Browser-UI */
  min-height: 480px;
  overflow: hidden;
  background-color: #000;
}

/* Dunkler Verlauf oben (Kontrast fuer Logo/Nav) und unten (Uebergang
   zum naechsten Bereich) - staged look statt hartem Bildschnitt */
.eu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* Radiale Maske: dunkelt das Bild zu den Raendern hin ab (Vignette).
   Wird beim Hover auf "Art" ausgeblendet, siehe .eu-hero--reveal weiter unten. */
.eu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: opacity 0.6s ease;
}

.eu-hero--reveal::before {
  opacity: 0;
}

.eu-hero picture {
  position: absolute;
  inset: 0;
  display: block;
}

.eu-hero-img {
  display: block;
  position: absolute;
  top: -5%;
  left: 0;
  width: 100%;
  height: 110%; /* kleine Reserve fuer den Parallax-Versatz ohne sichtbare Kanten */
  object-fit: cover;
  object-position: center;
  opacity: 1;
  will-change: transform;
  animation: eu-hero-fade-in 2.8s ease-in-out both;
}

@keyframes eu-hero-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Splash-Logo, zentriert ueber dem Hero-Bild */
.eu-hero-splash {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(60vw, 560px);
  height: auto;
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* Bei Hover auf "Art" treten Vignette und Splash-Logo zurueck, das Foto
   zeigt sich ungefiltert. Die Animation wird nach dem Laden per JS entfernt
   (siehe script.js), damit dieser Transition-Override greifen kann. */
.eu-hero--reveal .eu-hero-splash {
  opacity: 0;
}

/* Werkschild (Museumslabel), unten rechts im Bild - erscheint nur beim
   Hover auf "Art" */
.eu-hero-label {
  position: absolute;
  right: 4rem;
  bottom: 4rem;
  z-index: 3;
  width: max-content;
  min-width: 35rem;
  max-width: calc(100% - 4rem);
  padding: 2rem 2.5rem;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px) saturate(120%);
  -webkit-backdrop-filter: blur(2px) saturate(120%);
  border-radius: 0.75rem;
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.eu-hero--reveal .eu-hero-label {
  opacity: 1;
  transform: translateY(0);
}

.eu-hero-label-title {
  margin: 0 0 0.3rem;
  font-family: var(--eu-font-display);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.eu-hero-label-meta {
  margin: 0;
  font-family: var(--eu-font-body);
  font-size: 0.95rem;
  font-weight: 400;
  white-space: nowrap;
}

.eu-hero-label-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  margin: 1rem 0;
}

.eu-hero-label-details {
  margin: 0;
  font-family: var(--eu-font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .eu-hero-label {
    right: 1.5rem;
    bottom: 1.5rem;
    width: auto;
    min-width: 0;
    max-width: calc(100% - 3rem);
    padding: 1.1rem 1.3rem;
  }

  .eu-hero-label-title,
  .eu-hero-label-meta,
  .eu-hero-label-details {
    white-space: normal;
  }

  .eu-hero-label-title {
    font-size: 1.4rem;
  }

  .eu-hero-label-meta {
    font-size: 0.85rem;
  }

  .eu-hero-label-details {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eu-hero-img,
  .eu-hero-splash {
    animation: none;
  }

  .eu-header {
    animation: none;
    transform: none;
  }
}

/* ---- Footer ---- */
/* Auf der Startseite liegt der Fokus komplett auf dem Hero, Footer ist hier ausgeblendet */
.eu-page-home .eu-footer {
  display: none;
}

.eu-footer {
  background-color: #212529;
  color: #adb5bd;
  padding: 3rem 0 1.5rem;
}

.eu-footer-logo {
  height: 35px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.eu-footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.eu-footer-link {
  color: #adb5bd;
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s ease;
}

.eu-footer-link:hover {
  color: #f8a1b2;
}

.eu-social-links .eu-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.eu-social-links .eu-social-link:hover {
  background-color: #f8a1b2;
}

.eu-footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.eu-footer-copyright {
  font-size: 0.875rem;
}

/* ---- Responsive Anpassungen ---- */
@media (max-width: 991.98px) {
  .eu-nav-link {
    margin: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
