/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --deep:  #0d294a;
  --tech:  #008ecf;
  --green: #a4bf0f;
  --dark:  #060f1a;
  --mid:   #0a1e34;
  --navy:  #080f1c;
  --glass: rgba(6, 14, 24, 0.65);
  --font:  'Exo 2', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── WAVE CANVAS ── */
#wave-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* All sections sit above the canvas */
main > section,
.site-footer { position: relative; z-index: 1; }

body {
  background: var(--dark);
  font-family: var(--font);
  color: white;
  overflow-x: hidden;
}

/* Grain overlay — depth and material quality */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── SECTION SEPARATORS (shared) ── */
/* Gradient lines — fade from edges, peak at center */
.leistungen::before,
.versprechen::before,
.so-arbeiten-wir::before,
.kontakt::before,
.site-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 142, 207, 0.12) 15%,
    rgba(0, 142, 207, 0.42) 50%,
    rgba(0, 142, 207, 0.12) 85%,
    transparent 100%
  );
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 15, 26, 0.97);
  border-bottom: 1px solid rgba(0, 142, 207, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: white; }

.nav-cta { color: var(--green) !important; font-weight: 700 !important; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-option {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px 5px;
  border-radius: 3px;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.lang-option:hover {
  opacity: 0.85;
}

.lang-option.lang-active {
  opacity: 1;
}

.lang-flag {
  vertical-align: middle;
  border-radius: 1px;
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 17px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 1050px) and (min-width: 901px) {
  .nav-links { gap: 16px; }
  .lang-switcher { margin-left: 8px; padding-left: 8px; }
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-inner { padding: 14px 20px; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 15, 26, 0.98);
    border-bottom: 1px solid rgba(0, 142, 207, 0.15);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 13px;
  }
  .nav-links a:hover { background: rgba(0, 142, 207, 0.08); }

  .nav-links .lang-switcher {
    justify-content: center;
    padding: 12px 24px;
    border-top: 1px solid rgba(0, 142, 207, 0.08);
    border-left: none;
    margin-left: 0;
    padding-left: 24px;
    margin-top: 4px;
  }

  .nav-links .lang-option {
    padding: 6px 10px;
  }
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  padding-top: 64px;
}

/* Blends hero into first section smoothly */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, rgba(6, 14, 24, 0.6));
  pointer-events: none;
  z-index: 4;
}

/* ── TERMINAL ── */
.terminal {
  width: 300px;
  background: rgba(4, 12, 22, 0.94);
  border: 1px solid rgba(0, 142, 207, 0.18);
  border-radius: 6px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.t-bar {
  background: rgba(6, 20, 36, 0.96);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 142, 207, 0.1);
}
.tdot { width: 10px; height: 10px; border-radius: 50%; }
.tdot--r { background: #c0392b; }
.tdot--y { background: #e67e22; }
.tdot--g { background: var(--green); }
.t-bar span { margin-left: auto; font-size: 10px; color: var(--tech); opacity: 0.4; letter-spacing: 0.08em; }
.t-body { padding: 18px 20px 22px; font-size: 13px; font-family: 'Courier New', monospace; }
.tl { display: block; line-height: 2; }
.tp  { color: var(--tech); }
.tc  { color: white; }
.to  { color: rgba(255, 255, 255, 0.3); }
.tok { color: var(--green); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 13px;
  background: var(--tech);
  vertical-align: middle;
  animation: t-blink 1.1s step-end infinite;
}
@keyframes t-blink { 50% { opacity: 0; } }


.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  height: clamp(64px, 10vw, 96px);
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px rgba(0, 142, 207, 0.25));
}

.hero-mark-divider {
  width: 1px;
  height: clamp(32px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(0, 142, 207, 0.5), transparent);
  margin-bottom: 20px;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(0, 142, 207, 0.7);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-headline {
  font-size: clamp(56px, 10vw, 100px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--tech);
  text-shadow: 0 0 80px rgba(0, 142, 207, 0.28);
  margin-bottom: 8px;
}
.hero-headline .dot { color: var(--green); }

.hero-tagline {
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 300;
  color: white;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 32px;
}



/* ── SHARED SECTION LAYOUT ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(0, 142, 207, 0.6);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

/* ── LEISTUNGEN ── */
.leistungen {
  background: var(--glass);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Service Card */
.service-card {
  background: rgba(0, 142, 207, 0.05);
  border: 1px solid rgba(0, 142, 207, 0.14);
  border-radius: 5px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tech), rgba(0, 142, 207, 0.35));
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.service-card__icon { font-size: 20px; flex-shrink: 0; }

.service-card__name {
  font-size: 14px;
  font-weight: 800;
  color: white;
  flex: 1;
  letter-spacing: -0.01em;
}

/* Arrow — visible on mobile only */
.service-card__arrow {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.25s;
  display: none;
}

.service-card__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}
.service-card__desc strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* Mobile accordion */
@media (max-width: 767px) {
  .section-inner { padding: 60px 20px; }
  .services-grid { grid-template-columns: 1fr; gap: 10px; }

  .service-card { cursor: pointer; padding: 16px; }
  .service-card__arrow { display: block; }

  .service-card__desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s;
  }
  .service-card.open .service-card__desc {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
  }
  .service-card.open .service-card__arrow {
    transform: rotate(90deg);
    color: var(--tech);
  }
}

/* ── SO ARBEITEN WIR ── */
.so-arbeiten-wir {
  background: var(--glass);
}

.saw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.saw-phases {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.saw-phase {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.saw-num {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 2px;
}

.saw-phase-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.saw-phase-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}

.saw-terminal {
  display: flex;
  align-items: flex-start;
}

.saw-terminal .terminal {
  width: 100%;
}

@media (max-width: 767px) {
  .saw-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── VERSPRECHEN ── */
.versprechen {
  background: var(--glass);
}

.versprechen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.versprechen-card {
  background: rgba(6, 14, 24, 0.72);
  border: 1px solid rgba(0, 142, 207, 0.12);
  border-radius: 5px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s;
}
.versprechen-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tech), rgba(0, 142, 207, 0.3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.versprechen-card:hover::before { transform: scaleX(1); }
.versprechen-card:hover {
  background: rgba(0, 142, 207, 0.05);
  border-color: rgba(0, 142, 207, 0.22);
}

.vc-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.vc-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .versprechen-grid { grid-template-columns: 1fr; gap: 10px; }
  .versprechen-card::before { display: none; }
}

/* ── KONTAKT ── */
.kontakt {
  background: var(--glass);
}

.kontakt-content {
  text-align: center;
}

.kontakt-em {
  color: var(--tech);
  font-style: normal;
}

.kontakt-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
}


.kontakt-meta {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.kmeta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.kmeta-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

.kmeta-val {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}
.kmeta-val a { color: var(--tech); transition: color 0.2s; }
.kmeta-val a:hover { color: white; }

/* ── FOOTER ── */
.site-footer {
  background: rgba(4, 8, 16, 0.96);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner span { font-size: 11px; color: rgba(255, 255, 255, 0.18); }
.footer-inner a    { font-size: 11px; color: rgba(0, 142, 207, 0.45); transition: color 0.2s; }
.footer-inner a:hover { color: var(--tech); }

.footer-back-home {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s !important;
}
.footer-back-home:hover { color: white !important; }

@media (max-width: 767px) {
  .kontakt-meta { gap: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: rgba(6, 14, 24, 0.92);
  border: 1px solid rgba(0, 142, 207, 0.28);
  border-radius: 50%;
  color: rgba(0, 142, 207, 0.8);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--tech);
  border-color: var(--tech);
  color: white;
}

/* ── OPEN FORM BUTTON ── */
.open-form-btn {
  display: inline-block;
  background: var(--green);
  color: #060f1a;
  font-size: 11px;
  font-weight: 800;
  padding: 13px 32px;
  border-radius: 3px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.15s;
  margin: 28px 0 36px;
}
.open-form-btn:hover {
  background: #b8d40f;
  transform: translateY(-1px);
}

/* ── CONTACT MODAL ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #0a1826;
  border: 1px solid rgba(0, 142, 207, 0.22);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.22s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  font-family: var(--font);
}
.modal-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.modal-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.modal-title em {
  color: var(--tech);
  font-style: normal;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(6, 14, 24, 0.8);
  border: 1px solid rgba(0, 142, 207, 0.18);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 13px;
  color: white;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 142, 207, 0.5);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background: var(--green);
  color: #060f1a;
  border: none;
  border-radius: 4px;
  padding: 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: #b8d40f; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-success {
  display: none;
  padding: 20px;
  background: rgba(164, 191, 15, 0.1);
  border: 1px solid rgba(164, 191, 15, 0.3);
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--green);
  text-align: center;
  line-height: 1.6;
}
.form-error-global {
  font-size: 12px;
  color: #e05;
  margin-bottom: 12px;
  min-height: 0;
}
.form-field-error {
  display: block;
  font-size: 11px;
  color: #e05;
  margin-top: 4px;
  min-height: 0;
}

@media (max-width: 767px) {
  .modal { padding: 28px 20px; }
}

/* ── IMPRESSUM ── */
.impressum-main { padding-top: 100px; min-height: 80vh; }

.impressum-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.impressum-headline {
  font-size: 40px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--tech);
  padding-bottom: 16px;
}

.impressum-section {
  margin-bottom: 48px;
}

.impressum-section h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--tech);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.impressum-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin: 20px 0 8px;
}

.impressum-section p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 12px;
}

.impressum-section a {
  color: var(--tech);
  transition: color 0.2s;
}
.impressum-section a:hover { color: white; }

@media (max-width: 767px) {
  .impressum-inner { padding: 48px 20px 60px; }
}
