/* ===== ShiftLab Basis ===== */
:root {
  --navy: #081c3c;
  --navy-soft: #2c3e5e;
  --grey: #6b7587;
  --line: #d8dce3;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

[hidden] { display: none !important; }

/* ===== Seiden-Schimmer im Hintergrund =====
   Aktuell deaktiviert: für statisches Weiß. Zum Reaktivieren die
   folgende display-none-Regel entfernen. */
.bg-silk { display: none; }

.bg-silk {
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-silk::before,
.bg-silk::after {
  content: "";
  position: absolute;
  inset: 0;
  will-change: transform;
}

.bg-silk::before {
  background:
    radial-gradient(42% 55% at 22% 18%, rgba(8, 28, 60, 0.05), transparent 70%),
    radial-gradient(50% 65% at 78% 55%, rgba(96, 114, 150, 0.055), transparent 70%),
    linear-gradient(118deg, transparent 42%, rgba(8, 28, 60, 0.022) 50%, transparent 58%);
  animation: silkDriftA 46s ease-in-out infinite alternate;
}

.bg-silk::after {
  background:
    radial-gradient(48% 60% at 68% 12%, rgba(8, 28, 60, 0.035), transparent 70%),
    radial-gradient(55% 75% at 18% 82%, rgba(110, 126, 160, 0.05), transparent 70%),
    linear-gradient(64deg, transparent 44%, rgba(255, 255, 255, 0.55) 50%, transparent 56%);
  animation: silkDriftB 64s ease-in-out infinite alternate;
}

@keyframes silkDriftA {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1.02); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}

@keyframes silkDriftB {
  from { transform: translate3d(2%, 1.5%, 0) scale(1.05) rotate(0.5deg); }
  to   { transform: translate3d(-2.5%, -2%, 0) scale(1.01) rotate(-0.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-silk::before, .bg-silk::after { animation: none; }
}

a { color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.header-logo img { height: 26px; width: auto; }

.site-nav { display: flex; gap: 34px; align-items: center; }

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover { border-bottom-color: var(--navy); }

/* ===== Menü-Kugel + Fullscreen-Menü (Mobil/Tablet) ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(8, 28, 60, 0.1);
  backdrop-filter: blur(6px);
  z-index: 90;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 104px 30px 36px;
  overflow-y: auto;
  animation: fadeDown 0.25s ease;
}

.mobile-menu-logo {
  position: absolute;
  top: 30px;
  left: 30px;
  height: 24px;
  width: auto;
}

.mobile-menu-nav { display: flex; flex-direction: column; }

.mobile-menu-nav a {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-contact { margin-top: 48px; }

.mobile-menu-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.mobile-menu-contact a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

.mobile-menu-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--grey);
}

.mobile-menu-legal {
  margin-top: auto;
  display: flex;
  gap: 28px;
  padding-top: 48px;
}

.mobile-menu-legal button {
  font-size: 0.92rem;
  color: var(--navy-soft);
}

.mobile-menu-legal button:hover { text-decoration: underline; }

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 110px 24px 140px;
}

.hero-logo {
  width: min(560px, 82vw);
  height: auto;
}

.hero-sub {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero-sub span + span::before {
  content: "\00b7";
  margin: 0 14px;
}

/* ===== Frage-Feld ===== */
.ask {
  width: min(640px, 90vw);
  margin-top: 72px;
  text-align: left;
}

/* Variante im Kontakt-Bereich: linksbündig, näher am Titel */
.ask-left {
  margin-top: 48px;
  width: min(640px, 100%);
}

.ask-suggestions {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  animation: fadeDown 0.35s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.suggestion {
  text-align: left;
  padding: 13px 4px;
  font-size: 1rem;
  color: var(--navy-soft);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s, padding-left 0.2s;
}

.suggestion::before {
  content: "\2192\00a0\00a0";
  color: var(--grey);
}

.suggestion:hover {
  color: var(--navy);
  padding-left: 10px;
  font-weight: 500;
}

.ask-line {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
}

.ask-input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  background: transparent;
}

.ask-input::placeholder { color: #9aa3b2; }

.ask-go {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
  padding: 0 6px;
  transition: transform 0.2s;
}

.ask-go:hover { transform: translateX(4px); }

/* ===== Schrittweiser Kontakt-Flow ===== */
.ask-step {
  margin-top: 38px;
  animation: fadeDown 0.4s ease;
}

.step-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.step-line {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: border-color 0.2s;
}

.step-line:focus-within { border-bottom-color: var(--navy); }

.step-line input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 1.1rem;
  color: var(--navy);
  background: transparent;
  border-radius: 0;
}

.step-line input::placeholder { color: #9aa3b2; }

.step-next {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--navy);
  padding: 0 6px;
  transition: transform 0.2s;
}

.step-next:hover { transform: translateX(4px); }

.budget { border: none; }

.budget legend {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}

.budget-options { display: flex; flex-wrap: wrap; gap: 10px; }

.budget-options label { position: relative; }

.budget-options input { position: absolute; opacity: 0; }

.budget-options span {
  display: block;
  padding: 10px 18px;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  color: var(--navy-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.budget-options input:checked + span {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.budget-options input:focus-visible + span { outline: 2px solid var(--navy-soft); }

.btn-submit {
  margin-top: 38px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 15px 44px;
  transition: background 0.2s;
}

.btn-submit:hover { background: #122d57; }

.btn-submit[disabled] { opacity: 0.6; cursor: wait; }

.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--grey);
}

.inline-legal {
  text-decoration: underline;
  font-size: inherit;
  color: inherit;
}

.form-error { margin-top: 14px; font-size: 0.9rem; color: #b3261e; }

.ask-success {
  border-top: 2px solid var(--navy);
  padding-top: 28px;
  animation: fadeDown 0.4s ease;
}

.ask-success-head { font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }

/* ===== Intro ===== */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px 40px;
  border-top: 1px solid var(--line);
}

.intro-claim {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

/* ===== Leistungen ===== */
.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 70px;
}

.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 40px;
  border-top: 1px solid var(--line);
}

.service-major {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-block {
  padding: 54px 48px 60px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.service-block:hover { background: var(--bg-soft); }

.service-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 22px;
}

.service-block h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.service-block p { color: var(--navy-soft); max-width: 42ch; }

/* ===== Ansatz ===== */
.approach {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 40px;
  border-top: 1px solid var(--line);
}

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

.approach-step h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.approach-step p { color: var(--navy-soft); }

/* ===== Kontakt ===== */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 40px 160px;
  border-top: 1px solid var(--line);
}

.contact-claim {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.site-footer > img { height: 20px; width: auto; }

.footer-links { display: flex; gap: 26px; }

.footer-links button,
.footer-links a {
  font-size: 0.88rem;
  color: var(--navy-soft);
  text-decoration: none;
}

.footer-links button:hover,
.footer-links a:hover { text-decoration: underline; }

.footer-copy {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--grey);
}

/* ===== Legal-Dialoge ===== */
.legal-dialog {
  border: none;
  max-width: 680px;
  width: calc(100vw - 48px);
  max-height: 80vh;
  padding: 0;
  margin: auto;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 24px 80px rgba(8, 28, 60, 0.25);
}

.legal-dialog::backdrop { background: rgba(8, 28, 60, 0.45); }

.legal-inner { padding: 56px 60px; overflow-y: auto; max-height: 80vh; }

.legal-inner h2 { font-size: 1.7rem; font-weight: 600; margin-bottom: 24px; }

.legal-inner h3 { font-size: 1.05rem; font-weight: 600; margin: 26px 0 8px; }

.legal-inner p { color: var(--navy-soft); font-size: 0.95rem; margin-bottom: 12px; }

.legal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--grey);
}

.legal-close:hover { color: var(--navy); }

/* ===== Responsive (Mobil + Tablet hochkant) ===== */
@media (max-width: 900px) {
  /* Desktop-Header weg, stattdessen die Menü-Kugel */
  .site-header { display: none; }
  .menu-toggle { display: flex; }

  /* Erster Screen: nur Logo, drei Begriffe und das Formular, vertikal zentriert */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    padding: 32px 20px 64px;
  }

  .hero-logo { width: min(440px, 78vw); }

  .hero-sub {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
  }

  .hero-sub span + span::before { content: none; margin: 0; }

  .ask { margin-top: 60px; }

  .service-major { grid-template-columns: 1fr; }
  .service-block { padding: 40px 28px 46px; }

  .approach-grid { grid-template-columns: 1fr; gap: 40px; }

  .intro, .services, .approach, .contact { padding-left: 22px; padding-right: 22px; }
  .intro { padding-top: 90px; padding-bottom: 90px; }

  .legal-inner { padding: 44px 28px; }

  .footer-copy { margin-left: 0; }
}
