/* ============================================================
   Solution Society – Stylesheet
   Dark Mode · Glow-Akzente · Responsive
   ============================================================ */

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

:root {
  --bg:            #0c0c0c;
  --bg-surface:    #161616;
  --bg-surface-2:  #1e1e1e;
  --bg-deep:       #0a0a0a;
  --bg-soft:       #161616;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --text-muted:    #4a4a4a;
  --accent:        #7EE8C8;
  --accent-glow:   rgba(126, 232, 200, 0.35);
  --accent-dim:    rgba(126, 232, 200, 0.12);
  --text:          #efefef;
  --text-secondary:#888;
  --border:        rgba(255, 255, 255, 0.07);
  --radius:        14px;
  --ease:          0.3s ease;
  --max-w:         1180px;
  --nav-h:         68px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--text); }

/* ===== TYPOGRAFIE ===== */
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }

/* Hero-Headline: größer und kompakter */
.hero-text h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }

.accent { color: var(--accent); }

/* ===== LAYOUT-HELFER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 9rem 0;
}

.section-dark {
  background: var(--bg-surface);
}

.section-header {
  margin-bottom: 4.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 600px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), border-color var(--ease);
}

.navbar.scrolled {
  background: rgba(12, 12, 12, 0.97);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
  width: auto;
  vertical-align: middle;
  display: block;
}

/* Text-Logo (Fallback falls Bild fehlt) */
.nav-logo-text {
  display: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.nav-link:hover { color: var(--text); }

.nav-link.nav-cta {
  color: var(--accent);
  border: 1px solid rgba(126, 232, 200, 0.5);
  padding: 0.55rem 1.35rem;
  border-radius: 100px;
  transition: all var(--ease);
}

.nav-link.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0E0F;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO – CSS-VARIABLEN ===== */
/* Alle Intensitäten hier justierbar */
:root {
  --glow-color:           #7EE8C8;
  --glow-color-rgb:       126, 232, 200;
  --glow-intensity:       0;        /* 0–1, via JS gesetzt */
  --glow-size:            0px;      /* px, via JS gesetzt  */
  --cursor-light-size:    600px;    /* Durchmesser Taschenlampe */
  --cursor-light-opacity: 0.25;     /* Intensität Taschenlampe  */
  --lit-bg-lift:          0;
}

/* ===== HERO – BASIS ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: #0a0a0a;
  /* Subtile Aufhellung wenn Licht an (via ::after) */
}

/* Hintergrund-Lift im Lit-State */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--glow-color-rgb), 0);
  transition: background 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.hero.lit::before {
  background: rgba(var(--glow-color-rgb), 0.03);
}

/* ===== HERO ORBS (dezenter Hintergrund) ===== */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  animation: orb-float 15s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,192,64,0.1) 0%, transparent 70%);
  top: -180px;
  right: -60px;
  animation-duration: 14s;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(200,130,20,0.07) 0%, transparent 70%);
  bottom: -80px;
  left: 5%;
  animation-duration: 18s;
  animation-direction: reverse;
  animation-delay: -7s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  35%       { transform: translate(28px, -50px); }
  68%       { transform: translate(-20px, 28px); }
}

/* ===== HERO – ZWEI-SPALTEN-LAYOUT ===== */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 58fr 42fr;
  align-items: center;           /* beide Spalten vertikal mittig */
  min-height: calc(100vh - var(--nav-h));
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 4% 0 8%;           /* links 8%, rechts 4% */
}

/* ===== HERO – LINKE SPALTE (Text) ===== */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 3rem 5rem 0;
  position: relative;
  z-index: 10;   /* Text liegt über dem Glühbirnen-Bild */
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.85;
}

/* ===== HERO – RECHTE SPALTE (Glühbirne) ===== */
.hero-bulb-wrap {
  position: relative;
  z-index: 1;          /* Hinter dem Text */
  align-self: stretch;
  overflow: visible;
  cursor: pointer;
  outline: none;
}

.hero-bulb-wrap:focus-visible {
  outline: 2px solid rgba(var(--glow-color-rgb), 0.4);
  outline-offset: 12px;
  border-radius: 50%;
}

/* picture absolut im Wrap positionieren */
.hero-bulb-wrap picture {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Basis beider Bilder: identische Position und Maske */
.hero-bulb-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  width: auto;
  height: 110%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* Aus-Bild: leicht abgedunkelt, liegt unter dem An-Bild */
.hero-bulb-off {
  z-index: 1;
  filter: brightness(0.88) saturate(0.75);
}

/* An-Bild: startet unsichtbar – JS steuert opacity via Proximity & Klick */
.hero-bulb-on {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.22s ease;
  will-change: opacity;
}

/* ===== LICHT AN: Einschalt-Animation auf dem An-Bild ===== */
.hero-bulb-on.lit--animating {
  animation: bulb-turn-on 0.65s ease forwards;
  transition: none;
}

/* Stabiler Lit-State: An-Bild voll sichtbar + Glow */
.hero-bulb-on.lit--steady {
  opacity: 1 !important;
  animation: none;
  transition: none;
  filter:
    drop-shadow(0 0 40px rgba(var(--glow-color-rgb), 0.55))
    drop-shadow(0 0 90px rgba(var(--glow-color-rgb), 0.22));
}

@keyframes bulb-turn-on {
  /* Opacity-Flackern: Flash → aus → an → aus → stabil */
  0%   { opacity: 1;    filter: brightness(2.2) saturate(1.8); }
  12%  { opacity: 0.04; filter: none; }
  26%  { opacity: 0.92; filter: brightness(1.7) saturate(1.4); }
  44%  { opacity: 0.06; filter: none; }
  62%  { opacity: 0.87; filter: brightness(1.4) saturate(1.2); }
  80%  { opacity: 0.95; }
  100% { opacity: 1;    filter: drop-shadow(0 0 40px rgba(var(--glow-color-rgb), 0.55)); }
}

/* ===== LICHT-STRAHLEN (beim Einschalten) ===== */
.bulb-rays {
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,   rgba(var(--glow-color-rgb), 0.055) 4deg,   transparent  8deg,
    transparent 55deg,  rgba(var(--glow-color-rgb), 0.040) 59deg,  transparent  63deg,
    transparent 112deg, rgba(var(--glow-color-rgb), 0.050) 116deg, transparent 120deg,
    transparent 165deg, rgba(var(--glow-color-rgb), 0.035) 169deg, transparent 173deg,
    transparent 220deg, rgba(var(--glow-color-rgb), 0.050) 224deg, transparent 228deg,
    transparent 278deg, rgba(var(--glow-color-rgb), 0.040) 282deg, transparent 286deg,
    transparent 330deg, rgba(var(--glow-color-rgb), 0.045) 334deg, transparent 338deg
  );
  transition: opacity 0.5s ease 0.3s;
}

.hero.lit .bulb-rays {
  opacity: 1;
  animation: rays-spin 14s linear infinite;
}

@keyframes rays-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== CURSOR-TASCHENLAMPE ===== */
.hero-cursor-light {
  position: absolute;
  width:  var(--cursor-light-size);
  height: var(--cursor-light-size);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(var(--glow-color-rgb), var(--cursor-light-opacity)) 0%,
    rgba(var(--glow-color-rgb), calc(var(--cursor-light-opacity) * 0.45)) 38%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: left, top;
  left: -9999px;
  top:  -9999px;
  z-index: 5;   /* Über Bild (1), unter Text (10) */
}

/* ===== MOBILE: Breathing via An-Bild-Opacity ===== */
.hero--touch .hero-bulb-on {
  animation: bulb-breathe 3.2s ease-in-out infinite;
}

@keyframes bulb-breathe {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.68; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-cursor-light,
  .bulb-rays    { display: none; }
  .orb          { animation: none; }
  .hero-bulb-on { animation: none !important; transition: none; }
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 100vh;
    padding: 2rem 1.5rem 0;
    gap: 0;
  }

  .hero-text {
    order: 1;
    padding: 3rem 0 2rem;
    align-self: auto;
  }

  .hero-bulb-wrap {
    order: 2;
    align-self: auto;
    height: 55vw;
    max-height: 340px;
    min-height: 220px;
    overflow: hidden;
  }

  .hero-bulb-img {
    height: 140%;
    transform: translate(-50%, -50%);
  }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0A0E0F;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn-primary:hover {
  color: #0A0E0F;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--glow-color-rgb), 0.45);
}

/* ===== ÜBER UNS ===== */
.text-block p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.text-block p:last-child {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 232, 200, 0.3);
  box-shadow: 0 0 40px rgba(126, 232, 200, 0.08), 0 8px 30px rgba(0,0,0,0.4);
}

.service-icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== SECTION-HINTERGRÜNDE ===== */
.bg-deep { background: var(--bg-deep); }
.bg-soft { background: var(--bg-soft); }

/* Subtiler Trenner oben in jeder Abschnitts-Section */
.section-divider {
  width: 200px;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 auto 4rem;
}

/* ===== ÜBER MICH ===== */
.ueber-mich-inner {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 6vw;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.ueber-mich-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
          mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

.ueber-mich-label {
  display: block;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.ueber-mich-content h2 { margin-bottom: 1.5rem; }

.ueber-mich-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

/* Tags */
.ueber-mich-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  background: transparent;
  cursor: default;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.tag:hover {
  background: var(--accent);
  color: #0A0E0F;
  box-shadow: 0 0 12px var(--glow-color);
}

/* ===== KUNDEN (Logos) ===== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.logo-item {
  aspect-ratio: 3 / 2;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--ease), box-shadow var(--ease);
  filter: grayscale(1) brightness(0.7);
  overflow: hidden;
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-item:hover {
  filter: grayscale(0) brightness(1);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Platzhalter wenn kein Logo */
.logo-placeholder-text {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== AUSGEWÄHLTE ARBEITEN ===== */
/* ===== GEWERKE CROSSOVER ===== */
.gewerke-mono-label {
  display: block;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.gewerke-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.gewerke-kachel {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
}

.gewerke-kachel img,
.gewerke-kachel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gewerke-kachel:hover img,
.gewerke-kachel:hover video { transform: scale(1.03); }

/* Hover-Overlay: Gradient + Label */
.gewerke-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.75rem;
  pointer-events: none;
}

.gewerke-kachel:hover .gewerke-overlay { opacity: 1; }

.gewerke-overlay-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.gewerke-overlay-sub {
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Platzhalter wenn Datei fehlt */
.gewerke-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  z-index: 0;
}

.gewerke-kachel img,
.gewerke-kachel video { position: relative; z-index: 1; }

/* ===== KI-BILDWELTEN ===== */
.ki-statement {
  margin-bottom: 3rem;
}

.ki-label {
  display: block;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.ki-statement p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 680px;
}

/* ===== KI-GRID – cinematic 6-Bilder-Layout ===== */
.ki-grid-new {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Row 1: ki-01, volle Breite, filmisches Format */
.ki-full {
  width: 100%;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
}

/* Row 2: linke Spalte (ki-02, hoch) + rechte Spalte (2×2) */
.ki-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 500px;
}

/* ki-02: linke Spalte, volle Höhe */
.ki-tall {
  overflow: hidden;
  cursor: pointer;
}

/* Rechte Spalte: 2×2 Sub-Grid für ki-03 bis ki-06 */
.ki-right-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

/* Alle ki-items */
.ki-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.ki-item img,
.ki-full img,
.ki-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover: leichter Zoom */
.ki-item:hover img,
.ki-full:hover img,
.ki-tall:hover img { transform: scale(1.03); }

/* Mint-Overlay – subtil, kein Text */
.ki-item::after,
.ki-full::after,
.ki-tall::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(126, 232, 200, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ki-item:hover::after,
.ki-full:hover::after,
.ki-tall:hover::after { opacity: 1; }

/* Platzhalter wenn Bild fehlt */
.ki-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #1c1c1c 100%);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  opacity: 0.45;
  z-index: 0;
}

/* Bild über Platzhalter legen */
.ki-full img,
.ki-tall img,
.ki-item img { position: relative; z-index: 1; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border: none;
  user-select: none;
  transition: opacity 0.2s ease;
}

.lightbox-img.switching { opacity: 0; }

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.lb-close:hover { color: #fff; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  line-height: 1;
}
.lb-nav:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* ===== KONTAKT ===== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
  align-items: start;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(126, 232, 200, 0.45);
  box-shadow: 0 0 0 3px rgba(126, 232, 200, 0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.45;
}

.form-feedback {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
}

.form-feedback.success {
  background: rgba(240,192,64,0.1);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--accent);
  display: block;
}

.kontakt-info {
  padding-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.kontakt-detail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kontakt-detail strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.kontakt-detail span,
.kontakt-detail a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: block;
}

.kontakt-detail a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {}

.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 0.75rem;
  display: none;
}

.footer-logo-text {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-claim {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding-top: 0.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--ease);
}

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

.footer-bottom {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Hero-Button: nur so breit wie sein Text */
.hero-text .btn-primary {
  align-self: flex-start;
}

/* ===== HEADLINE WORT-ANIMATION (h2) ===== */
.hw {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}

.hw.visible {
  animation: hw-reveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hw-reveal {
  0%   { opacity: 0; transform: translateY(32px); filter: blur(6px); }
  50%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hw { opacity: 1; transform: none; filter: none; animation: none !important; }
}

/* ===== SCROLL-ANIMATIONEN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SUBSEITEN (Impressum / Datenschutz) ===== */
.subpage-content {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 8rem;
}

.subpage-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.subpage-content h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.subpage-content h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.subpage-content p,
.subpage-content li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 0.75rem;
}

.subpage-content ul,
.subpage-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.subpage-content a { color: var(--accent); }
.subpage-content a:hover { color: var(--text); }

.subpage-content address {
  font-style: normal;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ===== RESPONSIV ===== */
@media (max-width: 1024px) {
  .logo-grid     { grid-template-columns: repeat(3, 1fr); }
  .gewerke-grid { grid-template-columns: 1fr; }
  .gewerke-kachel { aspect-ratio: 16 / 9; }
  .ki-full       { height: 380px; }
  .ki-bottom-row { height: 380px; }
}

@media (max-width: 860px) {
  /* Über mich */
  .ueber-mich-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ueber-mich-img {
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    max-height: 60vw;
    object-fit: cover;
  }

  /* Kontakt */
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .kontakt-info { padding-top: 0; }

  /* Grids */
  .logo-grid     { grid-template-columns: repeat(2, 1fr); }
  .gewerke-grid { grid-template-columns: 1fr; }
  .gewerke-kachel { aspect-ratio: 16 / 9; }

  /* KI: alle Bilder gestapelt, 250px hoch */
  .ki-grid-new   { gap: 8px; }
  .ki-full       { height: 250px; }
  .ki-bottom-row {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 8px;
  }
  .ki-tall       { height: 250px; }
  .ki-right-col  {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .ki-item       { height: 250px; }

  /* Lightbox nav auf Mobile */
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { width: 100%; }

  .nav-link {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 0.88rem;
  }

  .nav-link.nav-cta {
    display: inline-block;
    margin: 0.5rem 2rem 0;
  }

  .section { padding: 6rem 0; }

  .hero-content h1 { font-size: 2.2rem; }

  .referenzen-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner { flex-direction: column; gap: 1.5rem; }
}
