:root{
  /* Farben (Dark-Default) */
  --bg: #0b0f14;
  --surface: #101620;
  --surface-2: #0e141e;
  --text: #e6f0ff;
  --muted: #9fb3c8;
  --accent-cyan: #00e5ff;
  --accent-violet: #a259ff;
  --primary: #4C0013;
  --focus: #00e5ff;

  /* Layout */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --enable-crt: 0;

  /* Typografie mit clamp() */
  --fs-base: clamp(15.5px, 14px + 0.35vw, 18px);
  --fs-h1: clamp(28px, 20px + 3.2vw, 42px);
  --fs-h2: clamp(22px, 18px + 1.8vw, 28px);
  --fs-h3: clamp(18px, 16px + 1.2vw, 22px);

  /* Scroll-Indikator */
  --scrollbar-h: 3px;

  /* Header height variable used für hero sizing */
  --header-h: 72px;
}

/* Light Theme (aktiv via html[data-theme="light"]) */
html[data-theme="light"]{
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --text: #0b0f14;
  --muted: #48566a;
  --accent-cyan: #00a6c6;
  --accent-violet: #7a4bd1;
  --focus: #0066cc;
  --shadow: 0 10px 30px rgba(5, 17, 35, .10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size: var(--fs-base);
  color:var(--text);
  background: var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
@media (prefers-reduced-motion: reduce){ *{animation:none!important; transition:none!important} }

h1,h2,h3{
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin:0 0 8px 0
}
h1{font-size: var(--fs-h1); line-height:1.15}
h2{font-size: var(--fs-h2); line-height:1.2}
h3{font-size: var(--fs-h3); line-height:1.25}

.container{max-width:1160px; margin:0 auto; padding:0 20px}
.section{padding:64px 0}
.section__title{letter-spacing:.3px}
.section__text{ color:var(--muted); max-width:70ch; font-size: 0.93rem; line-height: 1.6; }

/* Skip link */
.skip-link{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto; padding:10px 14px; background:var(--surface); color:var(--text);
  outline:2px dashed var(--focus); border-radius:8px; z-index:1000;
}

/* Scroll-Indikator (oben, fixed) */
.scroll-indicator{
  position:fixed; inset:0 0 auto 0; height:var(--scrollbar-h); z-index:100;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  pointer-events:none;
}
.scroll-indicator__bar{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  transform-origin: left center;
  transition: width .05s linear;
}

/* Header / Navbar */
.site-header{position:sticky; top:0; z-index:90; backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header__inner{display:flex; align-items:center; justify-content:space-between; min-height:72px; gap:16px; position:relative}

/* NAV TOGGLE (Burger) */
.nav-toggle{
  appearance:none; border:0; background:transparent; padding:6px; display:inline-grid; place-items:center; cursor:pointer;
  width:34px; height:34px; border-radius:8px; transition:background .12s ease;
  z-index:60;
  align-self:center; /* sorgt für vertikale Zentrierung im Header */
}
.nav-toggle:hover{background:rgba(255,255,255,.02)}
.nav-toggle .bar{
  display:block; width:16px; height:2px; background:var(--text); border-radius:2px; margin:2px 0;
  transition: transform .18s ease, opacity .18s ease;
}

/* Primary nav: off-canvas from left */
.primary-nav{
  position:absolute; left:8px; top:calc(100% + 8px); width:260px; max-width:86vw;
  padding:8px; background:var(--surface); border:1px solid rgba(255,255,255,.06); border-radius:12px;
  box-shadow:0 8px 30px rgba(0,0,0,.36); transform:none; transition:opacity .18s ease, transform .18s ease;
  z-index:10050; overflow:auto;
}
.primary-nav[aria-hidden="true"]{ display:none; opacity:0; pointer-events:none }
.primary-nav[aria-hidden="false"], .primary-nav.open{ display:block; opacity:1; pointer-events:auto; }
.primary-nav::before{
  content:""; position:absolute; left:18px; top:-8px; width:12px; height:12px; transform:rotate(45deg);
  background:var(--surface); border-left:1px solid rgba(255,255,255,.06); border-top:1px solid rgba(255,255,255,.06);
  border-radius:2px;
}

/* Verbesserte Darstellung für das Dropdown-Menü (Primary Nav) */
.primary-nav__list{
  list-style: none;
  margin: 0;
  padding: 6px 4px;
  display: block;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
}

/* Entferne Standard-Liste/Bullets und optische Anpassungen pro Eintrag */
.primary-nav__list li{
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Link‑Styling: keine Unterstreichung, neutrale Farbe, angenehmer Hit‑Area */
.primary-nav__list .nav-link{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit; /* keine "Link‑Farbe" */
  padding: 10px 12px;
  border-radius: 8px;
  transition: background .14s ease, color .12s ease, transform .08s ease;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

/* dezenter Hover / Active / Focus — kontrastreich genug, aber unaufdringlich */
.primary-nav__list .nav-link:hover,
.primary-nav__list .nav-link:focus{
  background: color-mix(in srgb, var(--surface) 88%, rgba(255,255,255,.02));
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
  box-shadow: none;
}

/* optische Trennung zwischen Einträgen (leichte Linie) */
.primary-nav__list li + li .nav-link{
  border-top: 1px solid rgba(255,255,255,0.02);
  padding-top: 12px;
}

/* Fokus sichtbar für Keyboard‑Nutzer */
.primary-nav__list .nav-link:focus{
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 12%, transparent);
  border-radius: 8px;
}

/* Optional: kleine Icon‑Größen wenn später Icons vor den Links verwendet werden */
.primary-nav__list .nav-link svg,
.primary-nav__list .nav-link img.icon{
  width:18px; height:auto; flex-shrink:0; opacity:.95;
}

/* Mobil: etwas größere Hit‑Areas */
@media (max-width:480px){
  .primary-nav__list .nav-link{ padding:12px 14px; font-size:16px; }
}

/* shrink controls on small screens */
@media (max-width:760px){
  :root{ --brand-max-w: 150px; --brand-max-h:44px; }
  .brand__logo-img{ max-height:var(--brand-max-h); }
  .nav-toggle{ width:34px; height:34px; }
  .theme-toggle{ width:36px; height:22px; }
}

/* remove sticky CTA as requested earlier */
.sticky-cta{ display:none !important; }

/* Deaktiviere Scroll‑Reveal: Inhalte sofort zeigen */
[data-animate]{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Responsive adjustments: Nav actions, Lang buttons & Theme toggle */
.primary-nav__list{flex-wrap:wrap}
.nav-actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap}

/* Make language buttons and theme toggle compact on small screens */
.lang-switch__btn{min-width:56px; padding:10px 12px}
.theme-toggle{width:64px; height:32px}

@media (max-width:720px){
  .site-header__inner{gap:8px; padding:8px}
  .primary-nav__list{gap:8px}
  .nav-link{padding:8px 10px; font-size: .95rem}
  .lang-switch__btn{min-width:44px; padding:8px 10px; font-size:.9rem}
  .theme-toggle{width:52px; height:30px; padding:0 6px}
  .theme-toggle__knob{width:20px; height:20px; top:3px; left:3px}
  .brand__logo-img{height:44px}
}

/* Privacy Modal (responsive full-screen overlay on small, centered panel on larger) */
.privacy-modal{
  position:fixed; inset:0; z-index:10010; display:grid; place-items:center;
  background:rgba(0,0,0,0.6); padding:20px;
}
.privacy-modal[hidden]{display:none}
.privacy-modal__inner{
  background:var(--surface); color:var(--text); border-radius:12px; max-width:900px; width:100%;
  max-height:85vh; overflow:auto; padding:20px; box-shadow:var(--shadow); border:1px solid rgba(255,255,255,.06);
}
.privacy-modal__close{
  position:absolute; right:18px; top:18px; background:transparent; border:0; color:var(--muted); font-size:26px; cursor:pointer;
}
.privacy-modal__content p{color:var(--muted); line-height:1.5}
@media (max-width:480px){
  .privacy-modal__inner{padding:14px; border-radius:10px}
  .privacy-modal__close{right:12px; top:12px; font-size:22px}
}

/* Hero video: responsive, behält Verhältnis, füllt Breite, bleibt unter Header */
.hero-section{ position:relative; width:100%; }
.hero-video{
  position: relative;
  width: 100%;
  height: clamp(240px, 35vh, 720px);               /* responsive Höhe */
  max-height: calc(100vh - var(--header-h));                  /* passt unter sticky header (72px) */
  overflow:hidden;
  background:#000;
  z-index: 1; /* Unter den Overlays */
}

/* Video selbst: skaliert sauber, object-fit: cover sorgt für "Hero"-Look */
.hero-video__player{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover; /* Sorgt für proportionalen "Hero"-Look */
  object-position:center center; /* Zentriert das Video */
  border:0;
  background:transparent;
  pointer-events: none; /* verhindert, dass Hover native Controls öffnet */
}

/* Anpassungen für Fullscreen (Browser specific) */
.hero-video__player:fullscreen,
.hero-video__player:-webkit-full-screen{
  object-fit:contain;
}

/* Hero‑Text (falls verwendet) liegt sichtbar unter dem Video — kein Überlappen mehr */
.hero-content{
  position:relative;
  z-index:10;
  margin:0;               /* entfernt negatives margin, damit Inhalt nicht über das Video ragt */
  padding: 24px 0 48px;   /* Abstand oben/unten, passt sich an */
  color:var(--text);
  pointer-events:auto;    /* Interaktionen erlauben */
  background: transparent;
}

/* Überschrift im Hero etwas kompakter */
.hero-title{
  margin:0 0 8px 0;
  font-size: clamp(24px, 4vw, 40px);
  line-height:1.08;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Nach-oben Button (sichtbar, oben rechts unten rechts) */
.to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:44px;
  height:44px;
  display:inline-grid;
  place-items:center;
  border-radius:10px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.04);
  color:var(--text);
  z-index:12000;
  cursor:pointer;
  transition:opacity .18s ease, transform .12s ease;
  opacity:0.75;
}
.to-top:hover{ opacity:1; transform:translateY(-2px) }

/* Desktop / Large: ganze verfügbare Viewporthöhe (abzüglich Header) und video per contain zeigen */
@media (min-width: 900px){
  .hero-video{
    height: calc(100vh - var(--header-h));
    max-height: calc(100vh - var(--header-h));
  }
  .hero-video__player{
    object-fit: contain;   /* zeigt ganzen Videorahmen (kein Beschneiden) */
    object-position: center center;
    height:100%;
    width:100%;
    background: #000;
  }

  /* hero-content sitzt direkt unter dem Video, genügend Abstand */
  .hero-content{
    padding-top: 20px;
  }
}

/* Mobile: behalten cover für "hero look" */
@media (max-width:899px){
  .hero-video__player{ object-fit: cover; object-position:center center; }
}

/* Brand / Logo: begrenzen damit Header nicht überlappt */
.brand{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:50;
  pointer-events:none;
  display:inline-block;
}
.brand__logo-img{
  display:block;
  width:auto;
  max-width:160px;      /* größer als vorher (war 120px) */
  max-height:56px;      /* etwas höher für bessere Sichtbarkeit in der Navbar */
  height:auto;
  object-fit:contain;
  transform:scaleX(1.03);
}

/* Große Bildschirme: etwas großzügiger */
@media (min-width:1400px){
  .brand__logo-img{ max-width:220px; max-height:72px; }
}

/* Mobile: noch gut sichtbar, aber nicht dominant */
@media (max-width:720px){
  .brand__logo-img{ max-width:140px; max-height:50px; transform:scaleX(1.02); }
}


/* Versuche, native Steuerungselemente browserübergreifend zu verbergen */
@supports (-webkit-appearance: none) {
  .hero-video__player::-webkit-media-controls { display: none !important; }
  .hero-video__player::-webkit-media-controls-panel { display: none !important; }
  .hero-video__player::-webkit-media-controls-overlay-play-button { display: none !important; }
}
/* Firefox (teilweise Unterstützung) */
.hero-video__player::-moz-media-controls { display: none !important; }

/* Keep header black background and correct stacking */
.site-header{
  position:sticky;
  top:0;
  z-index:12050;
  background:#000;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.site-header__inner{
  position:relative;
  overflow:visible;
  z-index:12050;
}

/* Primary nav anchored to header (dropdown directly below) */
.primary-nav{
  position:absolute;
  right:20px;
  top:calc(100% + 8px);
  min-width:220px;
  background:var(--surface);
  color:var(--text);
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,0.22);
  overflow:hidden;
  z-index:12060;
  transition:transform .12s ease, opacity .12s ease;
  transform-origin:top right;
}
.primary-nav[aria-hidden="true"]{ display:none; opacity:0; pointer-events:none; }
.primary-nav[aria-hidden="false"]{ display:block; opacity:1; pointer-events:auto; }

/* Kontakt‑Formular: konsistente, saubere Darstellung */
.contact-form{
  display:block;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), var(--surface));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 10px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  margin-top: 18px;
}
.contact-inline{ padding:64px 0; }
.contact-inline .contact-form{ max-width:1120px; }

.contact-form .form__row{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:12px;
}
.contact-form label{
  font-weight:600;
  font-size:0.95rem;
  color:var(--muted);
}
.input{
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.06);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color:var(--text);
  font-size:1rem;
  outline:none;
  transition: box-shadow .12s ease, border-color .12s ease, transform .06s;
}
.input:focus{
  border-color: color-mix(in srgb, var(--focus) 85%, transparent);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 0 4px color-mix(in srgb, var(--focus) 12%, transparent);
  transform: translateY(-1px);
}

/* Honeypot (versteckt) */
.hp{ position:absolute !important; left:-9999px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden; }

/* Form actions */
.form__actions{ display:flex; gap:10px; align-items:center; justify-content:flex-end; margin-top:6px; }
.form__status{ margin-top:10px; color:var(--muted); font-size:0.95rem; }

/* Errors */
.form__error{ color:#ffb4b4; font-size:0.9rem; min-height:1.1em; }

/* Contact modal */
.contact-modal{
  position:fixed; inset:0; display:grid; place-items:center; background:rgba(0,0,0,0.5); z-index:12020;
}
.contact-modal[hidden]{ display:none; }
.contact-modal__inner{
  width:100%; max-width:680px; background:var(--surface); color:var(--text);
  border-radius:12px; padding:20px; box-shadow:var(--shadow); border:1px solid rgba(255,255,255,0.04);
  position:relative;
}
.contact-modal__close{ position:absolute; right:14px; top:12px; background:transparent; border:0; font-size:22px; cursor:pointer; color:var(--muted); }
.contact-modal__title{ margin:0 0 8px 0; font-size:1.25rem; text-align:left; color:var(--text); }

/* ═══════ FOOTER ═══════ */
.site-footer{
  position:relative;
  width:100%;
  background: #060a0e;
  color:rgba(255,255,255,0.65);
  border-top:1px solid rgba(255,255,255,0.04);
  padding:56px 0 0;
  font-size:0.9rem;
  overflow:hidden;
}

/* Subtiler Farbschein oben */
.footer-glow{
  position:absolute;
  top:-80px; left:50%;
  transform:translateX(-50%);
  width:600px; height:160px;
  background:radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events:none;
  z-index:0;
}

.site-footer__inner{
  position:relative;
  z-index:1;
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* Grid: 4 Spalten */
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap:32px;
  align-items:start;
  padding-bottom:40px;
}

/* Logo-Spalte */
.footer-brand{ display:flex; flex-direction:column; gap:16px; }
.footer-brand img{ max-width:150px; height:auto; display:block; opacity:0.9; }
.footer-desc{
  color:rgba(255,255,255,0.5);
  line-height:1.55;
  max-width:300px;
  font-size:0.85rem;
}

/* Social Icons */
.social{ display:flex; gap:8px; }
.social-link{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px;
  border-radius:10px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.55);
  text-decoration:none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.social-link:hover{
  transform:translateY(-3px);
  background:rgba(0,229,255,0.08);
  border-color:rgba(0,229,255,0.2);
  color:var(--accent-cyan);
}

/* Spaltentitel */
.footer-title{
  color:rgba(255,255,255,0.9);
  margin:0 0 14px;
  font-size:0.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1.2px;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* Link-Listen */
.footer-list{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:10px;
}
.footer-list a{
  color:rgba(255,255,255,0.55);
  text-decoration:none;
  font-size:0.88rem;
  transition:color .15s ease, padding-left .15s ease;
  display:inline-block;
}
.footer-list a:hover{
  color:#fff;
  padding-left:6px;
}

/* Kontakt-Links mit Icon */
.footer-contact{ font-style:normal; display:flex; flex-direction:column; gap:12px; }
.footer-contact__link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,0.55);
  text-decoration:none;
  font-size:0.88rem;
  transition:color .15s ease;
}
.footer-contact__link svg{ flex-shrink:0; opacity:0.5; transition:opacity .15s ease; }
.footer-contact__link:hover{ color:var(--accent-cyan); }
.footer-contact__link:hover svg{ opacity:1; }

/* Untere Zeile */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.06);
  padding:20px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.footer-copy{ color:rgba(255,255,255,0.4); font-size:0.82rem; }
.footer-legal{
  display:flex; gap:20px;
}
.footer-legal a{
  color:rgba(255,255,255,0.4);
  text-decoration:none;
  font-size:0.82rem;
  transition:color .15s ease;
}
.footer-legal a:hover{ color:rgba(255,255,255,0.8); }

/* ── Legal sections (Impressum / Datenschutz) ─────────── */
.legal{
  padding:100px 0 80px;
  background:var(--bg);
}
.legal__inner{ max-width:820px; margin:0 auto; }
.legal .section__title{ margin-bottom:8px; }
.legal__subtitle{
  font-family:'JetBrains Mono',monospace;
  font-size:0.85rem;
  color:var(--accent-cyan);
  letter-spacing:1px;
  text-transform:uppercase;
  margin-bottom:48px;
}
.legal-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px 48px;
  margin-bottom:48px;
}
.legal-block h3{
  font-family:'JetBrains Mono',monospace;
  font-size:0.75rem;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--accent-cyan);
  margin-bottom:8px;
}
.legal-block p,
.legal-block address{
  font-style:normal;
  color:rgba(255,255,255,0.7);
  font-size:0.95rem;
  line-height:1.7;
}
.legal-block a{
  color:var(--accent-cyan);
  text-decoration:none;
  transition:color .15s;
}
.legal-block a:hover{ color:#fff; }
.legal-section{ margin-bottom:40px; }
.legal-section h3{
  font-size:1.1rem;
  color:#fff;
  margin-bottom:16px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.legal-section h4{
  font-size:0.95rem;
  color:var(--accent-cyan);
  margin:24px 0 8px;
}
.legal-section p{
  color:rgba(255,255,255,0.65);
  font-size:0.92rem;
  line-height:1.75;
  margin-bottom:12px;
}
.legal-section ul{
  list-style:none;
  padding:0;
  margin:0 0 16px;
}
.legal-section ul li{
  position:relative;
  padding-left:20px;
  color:rgba(255,255,255,0.65);
  font-size:0.92rem;
  line-height:1.75;
}
.legal-section ul li::before{
  content:'';
  position:absolute;
  left:0; top:10px;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent-cyan);
  box-shadow:0 0 6px var(--accent-cyan);
}
.legal-section a{
  color:var(--accent-cyan);
  text-decoration:none;
  word-break:break-all;
}
.legal-section a:hover{ color:#fff; }
@media(max-width:600px){
  .legal-grid{ grid-template-columns:1fr; gap:24px; }
}

/* Legal page header */
.site-header--legal{ position:relative; }
.site-header--legal .site-header__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.legal-back-nav{ margin-left:auto; }
.btn--sm{ font-size:0.82rem; padding:6px 14px; }

/* Accessibility */
.visually-hidden{ position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* Responsive */
@media (max-width:880px){
  .footer-grid{ grid-template-columns: 1fr 1fr; gap:28px 20px; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:520px){
  .site-footer{ padding:40px 0 0; }
  .footer-grid{ grid-template-columns:1fr; gap:24px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:10px; }
}

/* Kontakt-Form: primary submit styling passend zum Seitenlayout */
.contact-form .btn--primary,
.newsletter-btn{
  background: linear-gradient(180deg, #6b0020 0%, #4C0013 100%);
  color: #fff;
  border: 1px solid rgba(107,0,32,0.4);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(76,0,19,0.35);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-weight:600;
}
.contact-form .btn--primary:hover,
.newsletter-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(76,0,19,0.45);
  background: linear-gradient(180deg, #7d0028 0%, #5a0018 100%);
}
.contact-form .btn--primary:active{ transform: translateY(-1px); }

/* removed reset button space adjustments: ensure single button aligns right on wide screens and stretches on mobile */
.form__actions{ display:flex; gap:10px; align-items:center; justify-content:flex-end; margin-top:6px; }
@media (max-width:720px){
  .form__actions{ flex-direction:column; align-items:stretch; }
  .contact-submit{ width:100%; }
}

/* Versteckte Elemente dürfen nicht interagieren oder Scroll blockieren */
[hidden] { display: none !important; visibility: hidden !important; pointer-events: none !important; }

/* Services Section */
.services-header{ display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.section__lead{ color:rgba(255,255,255,0.65); margin:0; max-width:820px; font-size:0.95rem; }
.blinking-cursor{ animation:blink-cursor 1s step-end infinite; color:var(--accent-cyan); }
@keyframes blink-cursor{ 0%,50%{opacity:1} 51%,100%{opacity:0} }

.services-grid--3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:28px;
  align-items:stretch;
  margin-top:20px;
}

/* ── Card Shell ── */
.service-card{
  --card-accent: var(--accent-cyan);
  position:relative;
  background: rgba(14,20,30,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  padding:28px 24px 24px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  gap:16px;
  overflow:hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
  z-index:0;
}
.service-card--cyan  { --card-accent: var(--accent-cyan); }
.service-card--violet{ --card-accent: var(--accent-violet); }
.service-card--mixed { --card-accent: #c084fc; }

/* Animated gradient border on hover */
.card-border-glow{
  position:absolute; inset:-1px;
  border-radius:19px;
  background: conic-gradient(from 0deg, var(--card-accent), transparent 40%, var(--accent-violet), transparent 80%, var(--card-accent));
  opacity:0;
  transition:opacity .4s ease;
  z-index:-2;
  filter:blur(0.5px);
}
.service-card:hover .card-border-glow{
  opacity:0.6;
  animation: border-spin 4s linear infinite;
}
@keyframes border-spin{ to{ transform:rotate(360deg); } }

/* Inner background to create the border gap */
.service-card::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:17px;
  background: rgba(14,20,30,0.97);
  z-index:-1;
}

/* Subtle noise texture */
.card-noise{
  position:absolute; inset:0;
  border-radius:18px;
  opacity:0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:128px 128px;
  pointer-events:none;
  z-index:0;
}

/* Hover lift + ambient glow */
.service-card:hover{
  transform: translateY(-10px);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.45),
    0 0 60px color-mix(in srgb, var(--card-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--card-accent) 20%, transparent);
}

/* ── Card Header ── */
.card-header{
  display:flex;
  align-items:center;
  gap:16px;
  position:relative;
  z-index:2;
}
.card-icon-wrap{
  width:50px; height:50px;
  border-radius:14px;
  display:inline-flex; align-items:center; justify-content:center;
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 14%, transparent);
  color: var(--card-accent);
  flex:0 0 50px;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.service-card:hover .card-icon-wrap{
  background: color-mix(in srgb, var(--card-accent) 16%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--card-accent) 18%, transparent);
  transform: scale(1.06);
}
.card-label{
  display:block;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:0.68rem;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color: var(--card-accent);
  opacity:0.7;
  margin-bottom:2px;
}
.service-title{
  margin:0;
  font-size:1.15rem;
  color:#fff;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:0.3px;
}

/* ── Card Body ── */
.service-text{
  margin:0;
  color:rgba(255,255,255,0.68);
  font-size:0.9rem;
  line-height:1.55;
  position:relative;
  z-index:2;
}

/* ── Feature List ── */
.service-features{
  list-style:none;
  padding:0;
  margin:2px 0 0;
  display:flex; flex-direction:column; gap:14px;
  position:relative; z-index:2;
}
.service-features li{ display:flex; flex-direction:column; gap:3px; }
.feature-header{
  display:flex;
  align-items:center;
  gap:10px;
}
.feature-dot{
  width:7px; height:7px;
  border-radius:50%;
  background: var(--card-accent);
  opacity:0.5;
  flex-shrink:0;
  box-shadow: 0 0 6px color-mix(in srgb, var(--card-accent) 30%, transparent);
  transition:opacity .2s ease, box-shadow .2s ease;
}
.service-card:hover .feature-dot{
  opacity:0.85;
  box-shadow: 0 0 10px color-mix(in srgb, var(--card-accent) 50%, transparent);
}
.feature-header strong{
  font-size:0.88rem;
  color:rgba(255,255,255,0.9);
  font-weight:600;
}
.service-features .feature-desc{
  display:block;
  margin-left:17px;
  color:rgba(255,255,255,0.52);
  font-size:0.82rem;
  line-height:1.4;
}

/* ── Mini Terminal ── */
.card-terminal{
  margin-top:auto;
  padding:10px 14px;
  background:rgba(0,0,0,0.5);
  border:1px solid rgba(255,255,255,0.05);
  border-radius:10px;
  font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:0.76rem;
  color:rgba(255,255,255,0.4);
  position:relative; z-index:2;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.terminal-dots{
  display:flex; gap:5px;
}
.terminal-dots span{
  width:8px; height:8px;
  border-radius:50%;
  background:rgba(255,255,255,0.12);
}
.terminal-dots span:first-child{ background:#ff5f57; opacity:0.7; }
.terminal-dots span:nth-child(2){ background:#febc2e; opacity:0.7; }
.terminal-dots span:last-child{ background:#28c840; opacity:0.7; }
.card-terminal code{ white-space:nowrap; }
.t-prompt{
  color:var(--card-accent);
  font-weight:700;
  margin-right:6px;
}

/* ── CTA Button ── */
.service-cta{
  display:block;
  text-align:center;
  padding:12px 20px;
  background: linear-gradient(135deg, #6b0020, #4C0013);
  color:#fff;
  text-decoration:none;
  border-radius:12px;
  font-weight:600;
  font-size:0.88rem;
  position:relative; z-index:2;
  transition: box-shadow .25s ease, transform .2s ease, background .2s ease;
  box-shadow: 0 6px 20px rgba(76,0,19,0.25);
}
.service-cta:hover{
  box-shadow: 0 10px 32px rgba(76,0,19,0.45), 0 0 20px color-mix(in srgb, var(--card-accent) 10%, transparent);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7d0028, #5a0018);
}

/* ── Note ── */
.services-note{ margin-top:40px; margin-bottom:16px; color:rgba(255,255,255,0.60); font-size:0.93rem; }
.services-note a{ color:var(--accent-cyan); text-decoration:none; transition: color .15s ease; }
.services-note a:hover{ color:#fff; text-decoration:underline; }

/* ── Responsive ── */
@media (max-width:1100px){
  .services-grid--3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:680px){
  .services-grid--3{ grid-template-columns: 1fr; gap:20px; }
  .card-icon-wrap{ width:44px; height:44px; flex:0 0 44px; }
  .service-card{ padding:22px 18px 20px; }
  .service-cta{ width:100%; }
}

/* About: Text links, Bild rechts */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:40px;
  align-items:start;
}

.about__lead{
  color:var(--text);
  font-size:1.05rem;
  line-height:1.55;
  max-width:60ch;
  margin-bottom:20px;
  font-weight:500;
}

.about__text{
  color:var(--muted);
  font-size:0.93rem;
  line-height:1.6;
  max-width:60ch;
  margin-bottom:12px;
}

.about__text:last-child{ margin-bottom:0; }

.about-media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  box-shadow:none;
  border:none;
}

/* Responsive */
@media (max-width: 960px){
  .about-grid{
    grid-template-columns: 1fr;
  }
  .about-media{
    order:-1;
  }
}

/* Wellen/Divider ausblenden */
.divider{
  display: none;
}

/* ── Portfolio / Projects ── */
.portfolio-header{ display:flex; flex-direction:column; gap:6px; margin-bottom:32px; }

.portfolio-grid{
  display:flex;
  flex-direction:column;
  gap:20px;
  max-width:960px;
  margin:0 auto;
}

/* Project Card: horizontal layout with image left, text right */
.project-card{
  display:grid;
  grid-template-columns:340px 1fr;
  background:rgba(255,255,255,0.025);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  overflow:hidden;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.project-card:hover{
  border-color:rgba(255,255,255,0.1);
  box-shadow:0 4px 24px rgba(0,0,0,0.3);
}

/* Image / Gallery side */
.project-card__preview{
  position:relative;
  background:#050608;
  overflow:hidden;
}
.project-card__gallery{
  position:relative;
  height:260px;
}
.project-card__track{
  display:flex;
  height:260px;
  transition:transform .35s cubic-bezier(.25,.8,.25,1);
  will-change:transform;
}
.project-card__track img{
  min-width:100%;
  width:100%;
  height:260px;
  object-fit:contain;
  object-position:center center;
  display:block;
  cursor:zoom-in;
  padding:10px;
  box-sizing:border-box;
  background:#050608;
}
.project-card__nav{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:8px 0;
  background:linear-gradient(transparent, rgba(0,0,0,0.7));
}
.project-card__btn{
  appearance:none;
  border:none;
  background:rgba(255,255,255,0.1);
  color:#fff;
  width:28px;
  height:28px;
  border-radius:6px;
  font-size:1rem;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .14s ease;
}
.project-card__btn:hover{
  background:rgba(255,255,255,0.2);
}
.project-card__counter{
  font-size:0.72rem;
  font-weight:600;
  color:rgba(255,255,255,0.5);
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-variant-numeric:tabular-nums;
  min-width:36px;
  text-align:center;
}

/* Text side */
.project-card__body{
  padding:24px 28px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.project-card__label{
  font-size:0.65rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  padding:3px 8px;
  border-radius:4px;
  width:fit-content;
}
.project-card__label--cyan{
  color:var(--accent-cyan);
  background:rgba(0,229,255,0.08);
}
.project-card__label--violet{
  color:var(--accent-violet);
  background:rgba(162,89,255,0.08);
}
.project-card__title{
  font-size:1.2rem;
  margin:0;
  color:#fff;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  letter-spacing:-0.02em;
}
.project-card__desc{
  color:rgba(255,255,255,0.55);
  font-size:0.85rem;
  line-height:1.55;
  margin:0;
}
.project-card__stack{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
  padding-top:6px;
}
.project-card__stack span{
  font-size:0.68rem;
  font-weight:600;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  padding:2px 8px;
  border-radius:4px;
  background:rgba(255,255,255,0.04);
  color:rgba(255,255,255,0.45);
  border:1px solid rgba(255,255,255,0.06);
}
.project-card__link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.78rem;
  font-weight:600;
  color:var(--accent-cyan);
  text-decoration:none;
  margin-top:4px;
  width:fit-content;
  transition:color .14s ease;
}
.project-card__link:hover{
  color:#fff;
}
.project-card__link svg{
  flex-shrink:0;
}

@media(max-width:720px){
  .project-card{
    grid-template-columns:1fr;
  }
  .project-card__gallery{
    min-height:200px;
    max-height:240px;
  }
  .project-card__body{
    padding:20px;
  }
}

/* Wide case card spans full width (legacy) */
.case-card--wide{
  grid-column: 1 / -1;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  z-index:10000;
  background:rgba(0,0,0,0.92);
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  transition: opacity .25s ease;
  cursor:zoom-out;
  touch-action:none;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:auto;
}
.lightbox[hidden]{ display:none; }
.lightbox.is-visible{ opacity:1; }
.lightbox__img{
  max-width:92vw;
  max-height:90vh;
  object-fit:contain;
  border-radius:6px;
  box-shadow:0 8px 60px rgba(0,0,0,0.6);
  user-select:none;
  -webkit-user-drag:none;
  touch-action:none;
  will-change:transform;
}
.lightbox--zoomed{
  cursor:grab;
}
.lightbox--zoomed .lightbox__img{
  cursor:grab;
}
.lightbox--dragging,
.lightbox--dragging .lightbox__img{
  cursor:grabbing !important;
}
.lightbox__close{
  position:absolute;
  top:16px;
  right:20px;
  appearance:none;
  border:none;
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:2rem;
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .15s ease, transform .1s ease;
  z-index:1;
}
.lightbox__close:hover{
  background:rgba(255,255,255,0.18);
  transform:scale(1.1);
}
.lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  appearance:none;
  border:none;
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:2.2rem;
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: background .15s ease, opacity .15s ease;
  z-index:1;
  opacity:0.7;
}
.lightbox__nav:hover{ background:rgba(255,255,255,0.18); opacity:1; }
.lightbox__nav--prev{ left:16px; }
.lightbox__nav--next{ right:16px; }
.lightbox--zoomed .lightbox__nav{ display:none; }

/* Footer of case card (legacy) */
.case-card__footer{ display:none; }

/* Responsive: stack cards */
@media (max-width:880px){
  .portfolio-grid{ grid-template-columns:1fr; }
}

/* Service-CTA Buttons */
.service-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:10px;
  font-weight:600;
  letter-spacing:.2px;
  color:#fff;
  background:linear-gradient(135deg, #6b0020, #4C0013);
  border:1px solid rgba(107,0,32,0.3);
  box-shadow:0 10px 24px rgba(76,0,19,0.25), 0 4px 12px rgba(76,0,19,0.15);
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.service-cta:hover{
  transform:translateY(-2px);
  background:linear-gradient(135deg, #7d0028, #5a0018);
  box-shadow:0 14px 28px rgba(76,0,19,0.35), 0 6px 14px rgba(76,0,19,0.2);
}

.service-cta:active{
  transform:translateY(0);
}

.service-cta:focus-visible{
  outline:2px solid #4C0013;
  outline-offset:2px;
}