/* ═══════════════════════════════════════════
   REDESIGN 2026 — Projekt-Raster (Startseite) & Projekt-Detailseite
   Eigene Präfixe (pr- / pd-), damit nichts mit style.css kollidiert.
   ═══════════════════════════════════════════ */

/* ─── Projekt-Raster (Startseite, #projekte) ─── */
.pr-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 16px;
}
.pr-card { grid-column: span 3; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--text); }
.pr-card--feature { grid-column: span 7; grid-row: span 2; }
.pr-card--wide { grid-column: span 5; }
.pr-card.is-hidden { display: none; }
.pr-img { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--surface); aspect-ratio: 4 / 3; }
.pr-card--wide .pr-img { aspect-ratio: 2 / 1; }
.pr-card--feature .pr-img { aspect-ratio: auto; flex: 1; min-height: 360px; }
.pr-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.pr-card:hover .pr-img img { transform: scale(1.035); }
.pr-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.pr-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pr-meta > span:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-meta small { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-dark); }
.pr-meta strong {
  font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s cubic-bezier(.22, 1, .36, 1);
}
.pr-card:hover .pr-meta strong { background-size: 100% 1px; }
.pr-arrow { font-size: 18px; opacity: .45; transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .3s, color .3s; }
.pr-card:hover .pr-arrow { opacity: 1; color: var(--accent); transform: rotate(45deg); }
.pr-more { display: flex; justify-content: center; margin-top: 56px; }
.pr-more-btn {
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 32px; border: 1px solid var(--text); border-radius: 999px; background: none; color: var(--text); cursor: pointer;
  transition: background-color .3s, color .3s;
}
.pr-more-btn:hover { background: var(--text); color: var(--bg); }

@media (max-width: 1000px) {
  .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-card, .pr-card--wide { grid-column: span 1; }
  .pr-card--feature { grid-column: 1 / -1; grid-row: auto; }
  .pr-card--feature .pr-img { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
  .pr-card--wide .pr-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .pr-grid { grid-template-columns: 1fr; gap: 32px; }
  .pr-card, .pr-card--wide, .pr-card--feature { grid-column: auto; }
  .pr-card--feature .pr-img, .pr-card--wide .pr-img, .pr-img { aspect-ratio: 4 / 3; }
  /* feste Zeilenumbrüche aus Desktop-Texten auf dem Handy ignorieren */
  .section-subtitle br { display: none; }
}

/* ─── Projekt-Detailseite ─── */
.page-projekt { background: var(--bg); }
.pd { --pd-canvas: #0D0D0F; --pd-paper: #F4F3F0; --pd-b1: #4472C4; --pd-b2: #5B8DEF; --pd-mute: #8A8A90; --pd-ease: cubic-bezier(.22, 1, .36, 1); --pd-gutter: max(40px, calc((100% - 1100px) / 2)); }

.pd-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--pd-canvas); color: var(--pd-paper);
  padding: 124px var(--pd-gutter) clamp(56px, 6vw, 80px);
}
.pd-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 120px 120px; background-position: -1px -1px;
}
.pd-crumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-mute); }
.pd-crumbs a { color: var(--pd-paper); text-decoration: none; }
.pd-crumbs a:hover { color: var(--pd-b2); }
.pd-title { margin: 0 0 0 -.04em; font-size: clamp(44px, 7.4vw, 104px); font-weight: 500; letter-spacing: -.05em; line-height: .98; color: var(--pd-paper); }
.pd-sub { margin: 20px 0 0; max-width: 820px; font-size: clamp(17px, 1.7vw, 22px); font-weight: 400; line-height: 1.5; color: rgba(244, 243, 240, .65); }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pd-meta > div { display: flex; flex-direction: column; gap: 6px; }
.pd-meta small { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--pd-mute); }
.pd-meta > div > span { font-size: 16px; font-weight: 500; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chips em { font-style: normal; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.pd-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; background: var(--pd-b2); color: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--pd-ease), background-color .25s, box-shadow .25s;
}
.pd-btn:hover { transform: translateY(-2px); background: #6d9bf5; box-shadow: 0 10px 30px -10px rgba(91, 141, 239, .7); }

.pd-preview { position: relative; margin: clamp(56px, 7vw, 88px) 0 0; }
.pd-preview figcaption span:first-child { overflow: hidden; text-overflow: ellipsis; }
.pd-preview figcaption { display: flex; justify-content: space-between; gap: 16px; white-space: nowrap; padding-bottom: 8px; font-family: 'Space Mono', monospace; font-size: 10px; color: var(--pd-b2); }
.pd-frame-wrap { position: relative; }
.pd-frame-wrap img { display: block; width: 100%; max-height: 78vh; object-fit: cover; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

.pd-about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px 80px; padding: clamp(80px, 10vw, 140px) var(--pd-gutter) clamp(48px, 6vw, 88px); }
.pd-about-label { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--text-dim); }
.pd-about-label p { margin: 0; }
.pd-eyebrow { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-b1) !important; }
.pd-about-text { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.pd-about-text p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-dim); }
.pd-about-text p.is-lead { font-size: clamp(21px, 2.1vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; color: var(--text); }

.pd-gallery { display: flex; flex-direction: column; gap: 16px; padding: 0 var(--pd-gutter) clamp(80px, 10vw, 140px); }
.pd-sec { display: grid; gap: 16px; }
.pd-sec--2h, .pd-sec--4 { grid-template-columns: 1fr 1fr; align-items: start; }
.pd-item { border-radius: 14px; overflow: hidden; background: var(--surface); }
.pd-item img, .pd-item video { display: block; width: 100%; height: auto; }

.pd-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: clamp(56px, 7vw, 96px) var(--pd-gutter); background: var(--bg-dark); color: var(--pd-paper); }
.pd-nav-card {
  display: flex; align-items: center; gap: 24px; padding: 16px 28px 16px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none;
  transition: background-color .3s, border-color .3s, transform .3s var(--pd-ease);
}
.pd-nav-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(91, 141, 239, .5); transform: translateY(-3px); }
.pd-nav-card img { width: 132px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.pd-nav-card span { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-nav-card small { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--pd-b2); }
.pd-nav-card strong { font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.pd-nav-card--next { justify-content: flex-end; padding: 16px 16px 16px 28px; text-align: right; }
.pd-nav-all {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 28px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: inherit; text-decoration: none;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .2s;
}
.pd-nav-all span { font-size: 18px; }
.pd-nav-all:hover { border-color: var(--pd-b2); }

/* Einblenden (redesign.js) */
.pd-js .pd-in { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--pd-ease), transform 1s var(--pd-ease); }
.pd-js .pd-in.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .pd { --pd-gutter: 24px; }
  .pd-hero { padding-top: 110px; }
  .pd-btn { margin-left: 0; }
  .pd-about { grid-template-columns: 1fr; }
  .pd-nav { grid-template-columns: 1fr; }
  .pd-nav > span:empty { display: none; }
  .pd-nav-all { flex-direction: row; justify-self: center; }
  .pd-nav-card--next { flex-direction: row-reverse; justify-content: flex-end; text-align: left; padding: 16px 28px 16px 16px; }
}
@media (max-width: 600px) {
  .pd-sec--2h, .pd-sec--4 { grid-template-columns: 1fr; }
  .pd-nav-card img { width: 92px; }
  .pd-nav-card strong { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-js .pd-in { opacity: 1; transform: none; transition: none; }
  .pr-img img, .pr-arrow, .pd-nav-card, .pd-btn { transition: none; }
}

/* ═══════════════════════════════════════════
   NAVIGATION (Redesign 2026) — includes/partials/site-nav.php
   ═══════════════════════════════════════════ */
#nav.vn {
  --vn-ease: cubic-bezier(.22, 1, .36, 1);
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 max(40px, calc((100% - 1100px) / 2));
  background: rgba(13, 13, 15, .88);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #F4F3F0;
  opacity: 0; transform: translateY(-20px);   /* wird nach dem Intro eingeblendet (script.js) */
}
#nav.vn .nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
#nav.vn .nav-logo svg { width: 32px; height: 32px; display: block; }
#nav.vn .nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
#nav.vn .nav-logo-sub { font-size: 8px; letter-spacing: 2px; text-transform: lowercase; color: #8A8A90; margin-bottom: 3px; }
#nav.vn .nav-logo-name { font-size: 14px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase; color: #F4F3F0; }

#nav.vn .nav-links {
  display: flex; gap: 2px; margin: 0; padding: 4px; list-style: none;
  border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
#nav.vn .nav-link {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(244, 243, 240, .62); text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
#nav.vn .nav-link:hover { color: #F4F3F0; }
#nav.vn .nav-link.is-active { background: rgba(255, 255, 255, .1); color: #F4F3F0; }
#nav.vn .vn-menu-cta { display: none; }

.vn-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; justify-self: end; }
/* Rechte Kapsel: gleiche Form wie die Menüpunkte, blauer Button in Mono-Schrift */
.vn-pill {
  display: inline-flex; align-items: center; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none; white-space: nowrap;
  transition: border-color .25s;
}
.vn-pill:hover { border-color: rgba(91, 141, 239, .45); }
.vn-pill-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px;
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(244, 243, 240, .62);
}
.vn-pill-status i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; animation: vnPulse 2.4s infinite; }
.vn-pill-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: #5B8DEF; color: #fff;
  font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .25s, box-shadow .25s;
}
.vn-pill:hover .vn-pill-cta { background: #6d9bf5; box-shadow: 0 6px 20px -8px rgba(91, 141, 239, .8); }

#nav.vn .nav-burger { display: none; position: relative; width: 44px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); cursor: pointer; }
#nav.vn .nav-burger span { position: absolute; left: 14px; height: 1.5px; background: #F4F3F0; transition: transform .3s var(--vn-ease), width .3s var(--vn-ease); }
#nav.vn .nav-burger span:first-child { top: 14px; width: 16px; }
#nav.vn .nav-burger span:last-child { top: 21px; width: 10px; }
#nav.vn:has(.nav-links.open) .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); width: 16px; }
#nav.vn:has(.nav-links.open) .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); width: 16px; }

@media (max-width: 1100px) {
  #nav.vn { grid-template-columns: 1fr auto; }
  #nav.vn .nav-burger { display: block; }
  #nav.vn .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; height: calc(100vh - 72px);
    flex-direction: column; gap: 0; padding: 32px 24px; border: 0; border-radius: 0; background: #0D0D0F; overflow-y: auto;
  }
  #nav.vn .nav-links.open { display: flex; }
  #nav.vn .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  #nav.vn .nav-link { padding: 14px 0; border-radius: 0; background: none; font-family: 'DM Sans', sans-serif; font-size: clamp(30px, 8vw, 44px); font-weight: 500; letter-spacing: -.03em; text-transform: none; color: #F4F3F0; }
  #nav.vn .nav-link.is-active { background: none; color: #5B8DEF; }
  #nav.vn .vn-menu-cta { display: block; border-bottom: 0 !important; margin-top: 24px; }
  #nav.vn .vn-menu-cta .nav-link { font-size: 18px; color: #5B8DEF; }
}
@media (max-width: 640px) {
  #nav.vn { height: 64px; padding: 0 20px; }
  #nav.vn .nav-links { top: 64px; height: calc(100vh - 64px); }
  .vn-pill { display: none; }
}

/* ═══════════════════════════════════════════
   LEISTUNGEN & ÜBER MICH — Icon-Animation schneller
   Vorher: 6 s endlos hin und her, Strichlänge pauschal 200.
   Jetzt: echte Pfadlänge (pathLength="1"), einmal zügig zeichnen, beim Hover kurz neu.
   ═══════════════════════════════════════════ */
.service-icon .draw, .value-icon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.service-card.drawn .service-icon .draw, .value-item.drawn .value-icon .draw {
  animation: vbDraw 1s cubic-bezier(.65, 0, .35, 1) forwards;
}
.service-card:hover .service-icon .draw, .value-item:hover .value-icon .draw,
.service-card.service-card-active .service-icon .draw {
  animation: vbDrawAgain .8s cubic-bezier(.65, 0, .35, 1) forwards;
}
.service-icon .draw:nth-child(2), .value-icon .draw:nth-child(2) { animation-delay: .1s; }
.service-icon .draw:nth-child(3), .value-icon .draw:nth-child(3) { animation-delay: .2s; }
.service-icon .draw:nth-child(4), .value-icon .draw:nth-child(4) { animation-delay: .3s; }
.service-icon .draw:nth-child(n+5), .value-icon .draw:nth-child(n+5) { animation-delay: .4s; }
@keyframes vbDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vbDrawAgain { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .service-icon .draw, .value-icon .draw { stroke-dashoffset: 0; animation: none !important; }
}

/* ═══════════════════════════════════════════
   PROJEKT-ABLAUF (#ablauf)
   ═══════════════════════════════════════════ */
.ab-steps {
  max-width: 1100px; margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px;
}
.ab-step { position: relative; padding-top: 36px; }
/* Hilfslinie + Knoten wie auf der Hero-Canvas */
.ab-step::before {
  content: ''; position: absolute; top: 6px; left: 0; right: -32px; height: 1px;
  background: repeating-linear-gradient(to right, rgba(91, 141, 239, .5) 0 6px, transparent 6px 12px);
}
.ab-step:nth-child(3n)::before, .ab-step:last-child::before { right: 0; }
.ab-node { position: absolute; top: 0; left: 0; width: 13px; height: 13px; background: #fff; border: 1.5px solid var(--accent); }
.ab-num { display: block; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .1em; color: var(--accent-dark); margin-bottom: 14px; }
.ab-title { margin: 0 0 10px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.ab-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.ab-step:first-child .ab-node { background: var(--accent); }
.ab-step:first-child .ab-title { color: var(--accent-dark); }
.ab-cta { max-width: 1100px; margin: 64px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding-top: 32px; border-top: 1px solid var(--border); }
.ab-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .25s, box-shadow .25s;
}
.ab-btn:hover { transform: translateY(-2px); background: #6d9bf5; box-shadow: 0 10px 30px -10px rgba(91, 141, 239, .7); }
.ab-status { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .04em; color: var(--text-dim); }
.ab-status i { width: 7px; height: 7px; border-radius: 50%; background: #1FA971; }
@media (max-width: 900px) {
  .ab-steps { grid-template-columns: 1fr; gap: 0; }
  .ab-step { padding: 0 0 36px 36px; }
  .ab-step::before { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(to bottom, rgba(91, 141, 239, .5) 0 6px, transparent 6px 12px); }
  .ab-step:last-child::before { display: none; }
  .ab-node { top: 2px; }
}

/* ═══════════════════════════════════════════
   KONTAKT (#kontakt) — blauer Verlauf statt Fast-Schwarz, Formular als helle Karte
   ═══════════════════════════════════════════ */
#kontakt { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #4472C4 0%, #5B8DEF 100%); color: #fff; }
#kontakt::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 120px 120px; background-position: -1px -1px;
}
#kontakt .section-num { color: rgba(255, 255, 255, .6); }
#kontakt .section-title { color: #fff; }
#kontakt .section-subtitle { color: rgba(255, 255, 255, .85); }
#kontakt .contact-info p { color: rgba(255, 255, 255, .88); }
#kontakt .contact-detail-label { color: rgba(255, 255, 255, .6); }
#kontakt .contact-detail-value { color: #fff; }
#kontakt .contact-detail-value a { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
#kontakt .contact-detail-value a:hover { opacity: 1; text-decoration-thickness: 2px; }

#kontakt .contact-form {
  margin-top: -86px; gap: 18px; padding: 32px; border-radius: 24px;
  background: #fff; color: #0B0B0C;
  box-shadow: 0 30px 60px rgba(13, 26, 77, .25);
}
#kontakt .form-group label { color: rgba(11, 11, 12, .5); }
#kontakt .form-group input, #kontakt .form-group textarea {
  padding: 14px 16px; border: 1px solid #E4E2DC; border-radius: 12px;
  background: #F4F3F0; color: #0B0B0C; font-weight: 400; font-size: 15px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
#kontakt .form-group input:focus, #kontakt .form-group textarea:focus { border-color: #5B8DEF; box-shadow: 0 0 0 4px rgba(91, 141, 239, .18); }
#kontakt .form-group input::placeholder, #kontakt .form-group textarea::placeholder { color: #8A8A90; }
#kontakt .form-submit {
  align-self: stretch; margin-top: 6px; padding: 18px 24px; border-radius: 999px;
  background: #0B0B0C; color: #fff;
}
#kontakt .form-submit:hover { background: #4472C4; color: #fff; }
#kontakt .contact-status { margin-top: 0; }
#kontakt .contact-status--success { color: #1FA971; }
#kontakt .contact-status--error { color: #D64545; }
@media (max-width: 900px) {
  #kontakt .contact-form { margin-top: 0; padding: 22px; }
}

/* ═══════════════════════════════════════════
   LEISTUNGEN — Stacked Cards (#leistungen)
   Karten kleben beim Scrollen oben (sticky) und legen sich übereinander;
   redesign.js setzt --p (0–1) für das Zurücktreten der darunterliegenden Karte.
   ═══════════════════════════════════════════ */
.ls-stack { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.ls-card {
  --p: 0;
  position: sticky; top: calc(104px + var(--i) * 14px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center;
  /* gleiche Höhe für alle Karten, damit keine unter der nächsten hervorschaut */
  height: min(600px, calc(100vh - 136px)); min-height: 540px; padding: 40px 44px; overflow: hidden;
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(68, 114, 196, .16), rgba(68, 114, 196, 0) 60%),
    #111114;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .45);
  color: #F4F3F0;
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p) * .06));
  filter: brightness(calc(1 - var(--p) * .45));
  will-change: transform;
}
.ls-body { display: flex; flex-direction: column; min-width: 0; }
.ls-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.ls-num { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .12em; color: #5B8DEF; }
.ls-icon { width: 34px; height: 34px; color: #5B8DEF; }
.ls-title { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.ls-lead { margin: 14px 0 0; font-size: 18px; line-height: 1.45; color: rgba(244, 243, 240, .92); }
.ls-text { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: rgba(244, 243, 240, .58); }
.ls-note {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: rgba(91, 141, 239, .09); border: 1px solid rgba(91, 141, 239, .28);
}
.ls-note strong { display: block; margin-bottom: 6px; font-family: 'Space Mono', monospace; font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #8FB0F5; }
.ls-note p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(244, 243, 240, .82); }
.ls-list { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ls-list small { display: block; margin-bottom: 12px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8A8A90; }
.ls-list ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ls-list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: rgba(244, 243, 240, .85); }
.ls-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; background: #fff; border: 1.5px solid #5B8DEF; }

.ls-media { min-width: 0; display: flex; flex-direction: column; }
.ls-example { display: block; text-decoration: none; color: inherit; }
.ls-example-label { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; font-family: 'Space Mono', monospace; font-size: 10px; color: #5B8DEF; white-space: nowrap; }
.ls-example-label span:last-child { overflow: hidden; text-overflow: ellipsis; color: rgba(244, 243, 240, .6); transition: color .25s; }
.ls-example:hover .ls-example-label span:last-child { color: #F4F3F0; }
.ls-example-img { position: relative; display: block; aspect-ratio: 4 / 3; }
.ls-example-img img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transition: filter .4s; }
.ls-example:hover .ls-example-img img { filter: brightness(1.08); }
.ls-bigicon {
  aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 6px;
  border: 1px dashed rgba(91, 141, 239, .35);
  background-color: rgba(255, 255, 255, .015);
  background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.ls-bigicon svg { width: 46%; height: auto; color: #5B8DEF; }

/* Icons zeichnen sich, sobald die Karte ins Bild kommt */
.ls-icon .draw, .ls-bigicon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ls-card.is-in .ls-icon .draw, .ls-card.is-in .ls-bigicon .draw { animation: vbDraw 1s cubic-bezier(.65, 0, .35, 1) forwards; }
.ls-card.is-in .ls-bigicon .draw { animation-duration: 1.6s; }
.ls-icon .draw:nth-child(2), .ls-bigicon .draw:nth-child(2) { animation-delay: .1s; }
.ls-icon .draw:nth-child(3), .ls-bigicon .draw:nth-child(3) { animation-delay: .2s; }
.ls-icon .draw:nth-child(n+4), .ls-bigicon .draw:nth-child(n+4) { animation-delay: .3s; }

@media (max-width: 900px) {
  .ls-card { position: relative; top: auto; grid-template-columns: 1fr; gap: 28px; height: auto; min-height: 0; overflow: visible; padding: 28px 22px; transform: none; filter: none; }
  /* Mobile: Beispielbild oben, Hinweis-Box (z. B. KI-Logo) ans Ende der Karte */
  .ls-media { display: contents; }
  .ls-example, .ls-bigicon { order: -1; }
  .ls-note { order: 1; margin-top: 0; }
  .ls-list ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-card { transform: none; filter: none; }
  .ls-icon .draw, .ls-bigicon .draw { stroke-dashoffset: 0; animation: none !important; }
}
/* Mit Hinweis-Box: Beispielbild flacher, damit beides in die Karte passt */
.ls-media:has(.ls-note) .ls-example-img, .ls-media:has(.ls-note) .ls-bigicon { aspect-ratio: 16 / 10; }

/* ═══════════════════════════════════════════
   PROJEKT-ABLAUF — Zeitstrahl (#ablauf)
   redesign.js setzt --tl (0–1) für die Füllung und .is-reached auf erreichte Schritte.
   ═══════════════════════════════════════════ */
.tl { --tl: 0; position: relative; max-width: 1100px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 110px; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(to bottom, rgba(68, 114, 196, .35) 0 6px, transparent 6px 12px); }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--tl) * 100%);
  background: linear-gradient(to bottom, #4472C4, #5B8DEF); box-shadow: 0 0 12px rgba(91, 141, 239, .5); }
.tl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 88px; }
.tl-step--left .tl-card { grid-column: 1; }
.tl-step--right .tl-card { grid-column: 2; }
.tl-step + .tl-step { margin-top: -64px; }   /* Karten greifen versetzt ineinander */

.tl-node {
  position: absolute; left: 50%; top: 26px; z-index: 2;
  width: 38px; height: 38px; margin-left: -19px;
  display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid rgba(68, 114, 196, .45);
  font-family: 'Space Mono', monospace; font-size: 10px; color: var(--text-muted);
  transition: background-color .45s, border-color .45s, color .45s, box-shadow .45s;
}
.tl-node::before, .tl-node::after { content: ''; position: absolute; top: 50%; width: 30px; height: 1px; background: rgba(68, 114, 196, .35); transition: background-color .45s; }
.tl-step--left .tl-node::before { right: 100%; }
.tl-step--left .tl-node::after, .tl-step--right .tl-node::before { display: none; }
.tl-step--right .tl-node::after { left: 100%; }
.tl-step.is-reached .tl-node { background: #5B8DEF; border-color: #5B8DEF; color: #fff; box-shadow: 0 0 0 6px rgba(91, 141, 239, .15); }
.tl-step.is-reached .tl-node::before, .tl-step.is-reached .tl-node::after { background: #5B8DEF; }

.tl-card {
  position: relative; padding: 26px 28px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  opacity: .55; transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .4s, border-color .4s;
}
.tl-step.is-reached .tl-card { opacity: 1; transform: none; box-shadow: 0 18px 40px -24px rgba(11, 11, 12, .25); }
.tl-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.tl-num { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.tl-meta { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--text-dim); }
.tl-title { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.tl-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-dim); }

/* Hervorgehobener Schritt (Briefing im Studio-Manager) */
.tl-step.is-highlight .tl-card { border-color: rgba(91, 141, 239, .6); background: linear-gradient(180deg, #fff, #F5F8FF); }
.tl-step.is-highlight .tl-meta { background: rgba(91, 141, 239, .12); color: var(--accent-dark); }
.tl-doc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(91, 141, 239, .35); }
.tl-doc span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(91, 141, 239, .3); font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .04em; color: var(--accent-dark); }
.tl-doc i { width: 10px; height: 10px; border-radius: 3px; background: #5B8DEF; position: relative; }
.tl-doc i::after { content: ''; position: absolute; left: 3px; top: 1px; width: 3px; height: 5px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.tl-end { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 56px; text-align: center; }

@media (max-width: 900px) {
  .tl-line { left: 19px; bottom: 120px; }
  .tl-step { grid-template-columns: 1fr; column-gap: 0; padding-left: 58px; }
  .tl-step + .tl-step { margin-top: 0; }
  .tl-step--left .tl-card, .tl-step--right .tl-card { grid-column: 1; }
  .tl-node { left: 19px; top: 22px; }
  .tl-step--left .tl-node::before { display: none; }
  .tl-step .tl-node::after { display: block; left: 100%; width: 20px; }
  .tl-card { padding: 22px; }
  .tl-end { align-items: flex-start; padding-left: 58px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-card { opacity: 1; transform: none; transition: none; }
  .tl-node, .tl-fill { transition: none; }
}

/* ═══════════════════════════════════════════
   LIGHTBOX — Projektbilder gross ansehen (redesign.js)
   ═══════════════════════════════════════════ */
.pd-preview img, .pd-item img { cursor: zoom-in; }
.pd-item img { transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .4s; }
.pd-item:hover img { transform: scale(1.015); filter: brightness(1.04); }
.pd-preview img:focus-visible, .pd-item img:focus-visible { outline: 2px solid #5B8DEF; outline-offset: 4px; }

.lb { position: fixed; inset: 0; z-index: 5000; touch-action: pinch-zoom; }
.lb[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; background: rgba(10, 10, 12, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.lb.is-open .lb-bg { opacity: 1; }
.lb-img {
  position: fixed; left: 0; top: 0; margin: 0; max-width: none; object-fit: contain; transform-origin: 0 0;
  border-radius: 6px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform, opacity;
}
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(22, 22, 25, .7); color: #F4F3F0;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 400 20px/1 'Space Mono', monospace; cursor: pointer;
  opacity: 0; transition: opacity .3s ease, background-color .2s, border-color .2s, transform .2s;
}
.lb.is-open .lb-btn, .lb.is-open .lb-count { opacity: 1; }
.lb-btn:hover { background: #4472C4; border-color: #4472C4; }
.lb-btn:active { transform: scale(.94); }
.lb-btn:focus-visible { outline: 2px solid #5B8DEF; outline-offset: 3px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-count {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  padding: 6px 12px; border-radius: 999px; background: rgba(22, 22, 25, .7); border: 1px solid rgba(255, 255, 255, .1);
  font: 400 11px/1 'Space Mono', monospace; letter-spacing: .14em; color: rgba(244, 243, 240, .8);
  opacity: 0; transition: opacity .3s ease;
}
.lb.is-single .lb-prev, .lb.is-single .lb-next, .lb.is-single .lb-count { display: none; }
@media (max-width: 700px) {
  .lb-close { top: 12px; right: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; margin-top: 0; width: 44px; height: 44px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-count { bottom: 26px; }
}
