/* ===========================
   Forgeclad – Global Styles
   =========================== */

:root {
  --bg-dark: #050608;
  --bg-section: #0c0f13;
  --accent: #ff6a2a;
  --accent-soft: #ffb38a;
  --text-main: #f5f5f5;
  --text-muted: #a0a4ad;
  --border-soft: #262a33;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a1d28 0, #050608 60%);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 64px; /* mehr Luft links/rechts */
}

/* ===========================
   Header & Navigation
   =========================== */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.25));
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 32px;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

nav a {
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--text-main);
  border-bottom-color: var(--accent);
}

/* ===========================
   Buttons
   =========================== */

.btn-primary {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, var(--accent), #ff3b1a, #b81f0f);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255,106,42,0.35);
  transition: 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-outline {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(10,12,16,0.8);
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.12s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 32px;
  padding: 32px 32px 40px;
  position: relative;
  z-index: 1;

  /* Fenster-Optik */
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
  margin-bottom: 32px;
}

.hero > div {
  padding-right: clamp(16px, 4vw, 32px);
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  background-image: url('/images/forgeclad-logo.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.05;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255,106,42,0.7);
}

/* ===========================
   Sections
   =========================== */

section:not(.hero) {
  padding: 48px 32px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  margin-bottom: 32px;
  backdrop-filter: blur(2px);
  position: relative;
  z-index: 2;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 28px;
}

/* ===========================
   Referenzen
   =========================== */

.ref-container {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}

.ref-card {
  background: var(--bg-section);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.ref-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 24px rgba(255,106,42,0.25);
  border-color: var(--accent);
}

.ref-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.ref-card h3 {
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ===========================
   Footer
   =========================== */

footer {
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 32px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===========================
   Lightbox (Fix: unsichtbar)
   =========================== */

.lightbox-overlay {
  display: none; /* WICHTIG: Overlay standardmäßig versteckt */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 8, 0.95);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 0 32px;
  box-sizing: border-box;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s ease;
}

.lightbox-close {
  top: 32px;
  left: 32px;
}

.lightbox-prev {
  top: 50%;
  left: 32px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 880px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    order: 3;
    flex-wrap: wrap;
  }
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .logo-img {
    height: 56px;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.35));
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
  }
}
