/* ══════════════════════════════════════════════════════
   eixfeld.de – Gemeinsames Stylesheet
   Fonts lokal eingebunden (kein Google-Request, kein Cookie-Banner nötig)
   ══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Variablen ── */
:root {
  --navy:       #1a2e3b;
  --slate:      #2e4a5a;
  --steel:      #4a7a8a;
  --mist:       #d6e8ee;
  --sand:       #f0e8d8;
  --warm-white: #faf8f4;
  --ink:        #1e2d35;
  --brass:      #b08a4e;
  --text:       #2c3e45;
  --light-text: #6a8490;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--warm-white);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

/* ── HEADER ── */
header {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}
header::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brass), var(--steel), var(--brass));
  opacity: 0.8;
}
header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 28px,
    rgba(255,255,255,0.018) 28px, rgba(255,255,255,0.018) 29px
  );
  pointer-events: none;
}
.site-title { font-family: 'Playfair Display', Georgia, serif; }
.site-title h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.site-title h1 span.ix { color: var(--brass); font-style: italic; }
.site-title .tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-top: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-align: right;
  font-style: italic;
  max-width: 200px;
  line-height: 1.5;
}

/* ── NAV ── */
nav {
  background: var(--slate);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  list-style: none;
}
nav ul li a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 1rem 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
}
nav ul li a:hover,
nav ul li a.active {
  color: white;
  background: rgba(255,255,255,0.07);
  border-bottom-color: var(--brass);
}

/* ── SEITENINHALT (allgemein) ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}
.page-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate);
  margin: 2rem 0 0.6rem;
}
.page-content p {
  margin-bottom: 1.1rem;
  font-weight: 300;
  font-size: 1.02rem;
}
.page-content a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content a:hover { color: var(--brass); }

/* ── SEITEN-HERO (gemeinsam für alle Unterseiten) ── */
.page-hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: var(--navy);
  margin-bottom: 0;
}
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.45);
}
/* Platzhalter wenn noch kein Bild */
.page-hero .hero-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  color: rgba(255,255,255,0.3);
}
.page-hero .hero-ph .ph-icon  { font-size: 2.5rem; opacity: 0.3; }
.page-hero .hero-ph .ph-file  { font-family: monospace; font-size: 0.8rem; }
/* Titel-Overlay */
.page-hero .hero-title {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
  z-index: 2;
}
.page-hero .hero-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.page-hero .hero-title .hero-sub {
  font-size: 0.88rem;
  color: var(--brass);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
/* Goldene Trennlinie unter dem Hero */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brass), var(--steel), var(--brass));
}
/* Sanfter Gradient unten für bessere Lesbarkeit des Titels */
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15,25,32,0.7), transparent);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 640px) {
  .page-hero { height: 260px; }
  .page-hero .hero-title h1 { font-size: 1.8rem; }
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--brass); }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav ul { flex-wrap: wrap; }
  nav ul li a { padding: 0.75rem 1rem; font-size: 0.82rem; }
  .header-note { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-content { animation: fadeUp 0.7s ease both; }

/* ── LIGHTBOX ── */
.lb-trigger {
  cursor: zoom-in;
  display: block;
  overflow: hidden;
}
.lb-trigger img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.lb-trigger:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

/* Overlay */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 32, 0.93);
  z-index: 1000;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
#lightbox.open {
  display: flex;
  animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Wichtig: height/width hier explizit überschreiben,
   damit .lb-trigger img-Regeln nicht durchschlagen */
#lightbox img {
  width: auto !important;
  height: auto !important;
  max-width: 90vw !important;
  max-height: 88vh !important;
  object-fit: contain !important;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  animation: lbZoomIn 0.28s cubic-bezier(.22,.68,0,1.2);
  display: block;
}
@keyframes lbZoomIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#lightbox .lb-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
  max-width: 600px;
  pointer-events: none;
}
#lightbox .lb-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  background: none; border: none;
  font-family: serif;
}
#lightbox .lb-close:hover { color: var(--brass); }
