:root {
  color-scheme: light;
  --ink: #0b2528;
  --muted: #3b5956;
  --night: #ffffff;
  --ember: #ff9800;
  --cyan: #009688;
  --blue: #0288d1;
  --line: rgba(0, 150, 136, 0.05);
  --panel: rgba(240, 247, 246, 0.9);
  
  /* Section specific overrides */
  --bg-content-band: linear-gradient(135deg, #f0f7f6 0%, #e2f2ef 100%);
  --border-content-band: rgba(0, 168, 150, 0.12);
  
  --bg-card: #ffffff;
  --bg-card-hover: linear-gradient(180deg, #f7fdfc 0%, #f0faf9 100%);
  --shadow-card: inset 0 0 24px rgba(0, 168, 150, 0.03), 0 10px 30px rgba(0, 168, 150, 0.06);
  --border-grid: rgba(0, 168, 150, 0.15);
  
  --bg-career: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
  --bg-career-card: #ffffff;
  --border-career-card: rgba(0, 168, 150, 0.15);
  --shadow-career-card: 0 10px 40px rgba(0, 168, 150, 0.04);
  --bg-input: #fcfdfe;
  --border-input: rgba(0, 168, 150, 0.2);
  
  --text-kicker: #009688;
  --text-h2: #0b2528;
  --text-h3: #0b2528;
  --text-p: #2f4f4c;
  
  font-family: "Avenir Next Condensed", "Bahnschrift", "DIN Condensed", "Arial Narrow", sans-serif;
  background: var(--night);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #eef8f6;
    --muted: #a7bbb8;
    --night: #061112;
    --ember: #ffb84d;
    --cyan: #38f2dd;
    --blue: #5ab7ff;
    --line: rgba(56, 242, 221, 0.05);
    --panel: rgba(7, 23, 25, 0.82);
    
    /* Section specific overrides for Dark Mode */
    --bg-content-band: linear-gradient(135deg, #071819 0%, #0b2528 56%, #102f32 100%);
    --border-content-band: rgba(56, 242, 221, 0.22);
    
    --bg-card: #071516;
    --bg-card-hover: linear-gradient(180deg, rgba(56, 242, 221, 0.08), rgba(56, 242, 221, 0.015)), #071516;
    --shadow-card: none;
    --border-grid: rgba(56, 242, 221, 0.28);
    
    --bg-career: linear-gradient(180deg, #061112 0%, #071819 100%);
    --bg-career-card: #071516;
    --border-career-card: rgba(56, 242, 221, 0.22);
    --shadow-career-card: none;
    --bg-input: rgba(7, 35, 38, 0.8);
    --border-input: rgba(56, 242, 221, 0.3);
    
    --text-kicker: var(--cyan);
    --text-h2: var(--ink);
    --text-h3: var(--ink);
    --text-p: var(--muted);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--night);
  background-size: 28px 28px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(4, 14, 15, 0.8), rgba(4, 14, 15, 0));
  mix-blend-mode: normal;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(244, 239, 231, 0.82);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav a {
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--cyan);
}

.hero-room {
  height: 560vh;
  position: relative;
}

.sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #031011;
}

.sequence-canvas,
.motion-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sequence-canvas {
  filter: brightness(1.22) contrast(1.04) saturate(1.08);
}

.motion-poster {
  opacity: 0;
  filter: brightness(1.22) contrast(1.04) saturate(1.08);
}

.motion-poster.is-visible {
  opacity: 1;
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.7) 0%, rgba(5, 5, 4, 0.36) 35%, rgba(5, 5, 4, 0.02) 76%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.46) 0%, rgba(5, 5, 4, 0) 44%);
  pointer-events: none;
}

.tech-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(56, 242, 221, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 242, 221, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 74% 38%, rgba(56, 242, 221, 0.12), transparent 28%);
  background-size: 72px 72px, 72px 72px, auto;
  mask-image: linear-gradient(90deg, black 0%, rgba(0, 0, 0, 0.4) 42%, transparent 78%);
  opacity: 0.46;
  pointer-events: none;
}

.signal-hud {
  position: absolute;
  z-index: 6;
  right: clamp(20px, 5vw, 70px);
  bottom: 78px;
  display: grid;
  grid-template-columns: repeat(2, 86px);
  gap: 8px;
  color: var(--cyan);
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.signal-hud span {
  border: 1px solid rgba(56, 242, 221, 0.42);
  background: rgba(4, 18, 20, 0.62);
  padding: 9px 10px;
  box-shadow: inset 0 0 18px rgba(56, 242, 221, 0.07);
}

.signal-hud span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  left: clamp(20px, 6vw, 88px);
  top: 50%;
  width: min(620px, calc(100vw - 40px));
  transform: translateY(-45%);
  padding-left: 18px;
  border-left: 1px solid rgba(56, 242, 221, 0.48);
  color: #eef8f6;
}

.hero-copy h1 {
  color: #ffffff;
}

.hero-copy .eyebrow {
  color: #38f2dd;
}

.hero-copy .lede {
  color: #a7bbb8;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 11ch;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.86;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(6, 17, 18, 0.82);
}

.lede,
.content-band p,
.module-grid p {
  color: var(--muted);
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.55;
}

.lede {
  max-width: 540px;
  margin-bottom: 30px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(56, 242, 221, 0.58);
  background: linear-gradient(90deg, rgba(56, 242, 221, 0.16), rgba(90, 183, 255, 0.08));
  color: #ffffff;
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
  box-shadow: 0 0 24px rgba(56, 242, 221, 0.12), inset 0 0 18px rgba(56, 242, 221, 0.06);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-cta:hover {
  background: var(--cyan);
  color: var(--night);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 242, 221, 0.35);
}

.primary-cta::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 14px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.progress-rail {
  position: absolute;
  z-index: 8;
  left: clamp(20px, 6vw, 88px);
  right: clamp(20px, 6vw, 88px);
  bottom: 34px;
  height: 1px;
  background: rgba(56, 242, 221, 0.18);
}

.progress-rail span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--ember));
  box-shadow: 0 0 16px rgba(56, 242, 221, 0.8);
}

.content-band {
  padding: clamp(86px, 12vw, 170px) clamp(20px, 6vw, 88px);
  background:
    linear-gradient(var(--border-content-band) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-content-band) 1px, transparent 1px),
    var(--bg-content-band);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--text-p);
  border-top: 1px solid var(--border-content-band);
  border-bottom: 1px solid var(--border-content-band);
}

.content-band h2 {
  max-width: 980px;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text-h2);
}

.content-band p {
  max-width: 760px;
  color: var(--text-p);
}

.content-band .section-kicker {
  color: var(--text-kicker);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-grid);
  padding: 1px 0;
}

.module-grid article {
  min-height: 360px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--bg-card);
  color: var(--text-h2);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.module-grid article:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  z-index: 2;
}

.module-grid article::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 72px;
  height: 72px;
  border-right: 1px solid var(--border-career-card);
  border-bottom: 1px solid var(--border-career-card);
  opacity: 0.75;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.module-grid article:hover::after {
  border-right-color: var(--cyan);
  border-bottom-color: var(--cyan);
  transform: translate(4px, 4px);
}

.module-grid span {
  color: var(--text-kicker);
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.module-grid h3 {
  margin: 90px 0 18px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-h3);
}

.conversion {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 88px);
  background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
  color: #ffffff;
  border-top: 1px solid rgba(0, 168, 150, 0.2);
}

.conversion h2 {
  max-width: 980px;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.92;
  text-transform: uppercase;
  color: #ffffff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.conversion .section-kicker {
  color: #ffb74d;
}

.inverse {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.inverse:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #004d40;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

body[data-error="true"]::before {
  content: "Sequenz konnte nicht geladen werden. Prüfe manifest.json und Frame-Dateien.";
  position: fixed;
  z-index: 100;
  inset: 20px 20px auto;
  padding: 16px;
  background: #641d17;
  color: white;
}

@media (max-width: 820px) {
  .site-header {
    padding: 16px 18px;
  }

  nav {
    display: none;
  }

  .sticky-stage {
    min-height: 100svh;
  }

  .scrim {
    background:
      linear-gradient(180deg, rgba(5, 5, 4, 0.52) 0%, rgba(5, 5, 4, 0.16) 42%, rgba(5, 5, 4, 0.64) 100%),
      linear-gradient(90deg, rgba(5, 5, 4, 0.36), rgba(5, 5, 4, 0.04));
  }

  .hero-copy {
    top: auto;
    bottom: 86px;
    left: 20px;
    right: 20px;
    width: auto;
    transform: none;
    padding-left: 14px;
  }

  .signal-hud {
    right: 18px;
    bottom: 24px;
    grid-template-columns: repeat(4, 1fr);
    width: calc(100% - 36px);
    font-size: 10px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(32px, 12vw, 56px);
    line-height: 0.95;
  }

  h2,
  .content-band h2,
  .career-header h2,
  .conversion h2 {
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1.0;
  }

  .lede {
    font-size: 17px;
    max-width: 31ch;
  }

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

  .module-grid article {
    min-height: 260px;
  }

  .module-grid h3 {
    margin-top: 54px;
  }

  .conversion {
    display: block;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-room {
    height: auto;
  }

  .sticky-stage {
    position: relative;
  }
}

/* Career Section */
.career-section {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 88px);
  background:
    linear-gradient(var(--border-career-card) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-career-card) 1px, transparent 1px),
    var(--bg-career);
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--text-p);
  border-bottom: 1px solid var(--border-career-card);
}

.career-container {
  max-width: 1200px;
  margin: 0 auto;
}

.career-header {
  margin-bottom: 60px;
}

.career-header h2 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-h2);
}

.career-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.career-info h3 {
  font-size: 28px;
  margin: 0 0 16px;
  text-transform: uppercase;
  color: var(--text-h2);
}

.career-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-p);
  margin-bottom: 30px;
}

.career-list-group {
  margin-bottom: 25px;
}

.career-list-group h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-kicker);
  margin: 0 0 12px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-p);
}

.clean-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text-kicker);
  font-weight: bold;
}

.career-highlight-box {
  background: rgba(0, 150, 136, 0.06);
  border-left: 3px solid var(--cyan);
  padding: 18px 22px;
  margin: 30px 0;
}

.career-highlight-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-h2);
}

.career-direct-contact {
  font-size: 15px;
  color: var(--text-p);
}

.career-direct-contact a {
  color: var(--text-kicker);
  transition: opacity 0.2s ease;
}

.career-direct-contact a:hover {
  opacity: 0.85;
}

/* Career Form */
.career-form-card {
  background: var(--bg-career-card);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 12px;
  border: 1px solid var(--border-career-card);
  box-shadow: var(--shadow-career-card);
}

.career-form-card h3 {
  font-size: 22px;
  margin: 0 0 24px;
  text-transform: uppercase;
  color: var(--text-h2);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-p);
  margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 150, 136, 0.15);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.file-input-wrapper {
  position: relative;
}

.file-input {
  font-size: 13px;
  color: var(--text-p);
}

.submit-btn {
  width: 100%;
  min-height: 48px;
  background: var(--cyan);
  color: var(--night);
  border: none;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  background: #00796b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 150, 136, 0.25);
}

/* Site Footer */
.site-footer {
  background: #040e0f;
  color: #a7bbb8;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 88px) 30px;
  border-top: 1px solid rgba(56, 242, 221, 0.12);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 0 0 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: #7a9290;
  max-width: 380px;
  margin: 0;
}

.footer-nav h4,
.footer-legal h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 18px;
}

.footer-nav a,
.footer-legal a {
  display: block;
  font-size: 13px;
  color: #a7bbb8;
  margin-bottom: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(56, 242, 221, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #617876;
  margin: 0;
}

@media (max-width: 820px) {
  .career-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Language Switcher */
.lang-select {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.lang-select select {
  background: transparent;
  color: rgba(244, 239, 231, 0.82);
  border: 1px solid rgba(56, 242, 221, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-select select:hover {
  border-color: var(--cyan);
  color: #ffffff;
}

.lang-select select option {
  background: #061112;
  color: #ffffff;
}


