/* ============================================================
   SimLution — Editorial-Premium, dunkles Navy (Aug 2026)
   Struktur/Bewegungssprache aus der Handwerk-Vorlage (Lenis,
   GSAP ScrollTrigger Reveals, Glassmorphism-Nav), Sektionen
   wechseln zwischen dunklem Navy und hellen Passagen.
   Alle Assets lokal (DSGVO-konform).
   ============================================================ */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --ink: #142847;
  --paper: #dde1ea;
  --paper-2: #e8eaf0;

  /* schaltet pro Sektion um (siehe section.alt) */
  --text: #eef1fa;
  --text-dim: #8b96b3;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --accent-strong: #93b4ff;

  --accent: #5f8dff;
  --accent-ink: #4470e0;
  --accent-soft: rgba(95, 141, 255, 0.16);
  --success: #34c58f;
  --danger: #e2694f;
  --maxw: 1180px;
  --shadow-sm: 0 2px 14px -6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 20px 46px -20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 22px 50px -18px rgba(95, 141, 255, 0.45);
}

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

html { scroll-behavior: auto; } /* Lenis übernimmt */

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lenis, html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.display { font-family: "Outfit", sans-serif; font-weight: 500; letter-spacing: -0.02em; }

/* -------------------- Preloader -------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
}
.preloader-mark {
  width: clamp(160px, 24vw, 260px);
  aspect-ratio: 302 / 234;
  background-color: var(--text);
  -webkit-mask-image: url("../assets/logo-icon-mask.png");
  -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/logo-icon-mask.png");
  mask-size: contain; mask-position: center; mask-repeat: no-repeat;
}
.preloader-count {
  position: absolute; bottom: clamp(50px, 9vh, 80px); left: 50%; transform: translateX(-50%);
  font-family: "Outfit"; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--text-dim);
}
.preloader-curtain {
  position: fixed; inset: 0; z-index: 199; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
}
body.preloading { overflow: hidden; height: 100vh; }

/* -------------------- Header -------------------- */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 0;
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  padding: 12px 0;
  background: rgba(20, 40, 71, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; border-radius: 8px; }
nav.site { display: flex; align-items: center; gap: 34px; }
nav.site a:not(.btn) {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; transition: color 0.2s ease;
}
nav.site a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { nav.site a:not(.btn) { display: none; } }

/* -------------------- Nav-Dropdown (Leistungen) -------------------- */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 250px; padding: 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease 0.3s, transform 0.18s ease 0.3s, visibility 0s linear 0.48s;
}
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-dropdown-menu a {
  display: block; padding: 11px 14px; border-radius: 8px;
  font-size: 0.82rem; text-transform: none; letter-spacing: normal; font-weight: 600;
  color: var(--text) !important; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--surface-hover); color: var(--accent-strong) !important; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--accent-ink); transform: translateY(-2px); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--accent); }
.alt .btn.ghost { background: var(--paper-2); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.alt .btn.ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 10px 20px; font-size: 0.86rem; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: clamp(120px, 20vh, 190px) 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 50% at 82% 6%, rgba(95, 141, 255, 0.22), transparent 62%),
    radial-gradient(46% 42% at 8% 90%, rgba(95, 141, 255, 0.1), transparent 60%);
}
.hero-badge-mark {
  position: absolute; z-index: -1; right: clamp(0px, 4vw, 60px);
  top: clamp(150px, 22vh, 230px);
  width: clamp(210px, 22vw, 300px); height: clamp(210px, 22vw, 300px);
  pointer-events: none; user-select: none;
  color: var(--accent-strong); opacity: 0.16;
}
.hero-badge-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46%; height: 46%;
  background-color: currentColor;
  -webkit-mask-image: url("../assets/logo-icon-mask.png");
  -webkit-mask-size: contain; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/logo-icon-mask.png");
  mask-size: contain; mask-position: center; mask-repeat: no-repeat;
}
.hero-badge-ring {
  width: 100%; height: 100%;
  animation: hero-badge-spin 26s linear infinite;
}
.hero-badge-ring text {
  font-family: "Outfit"; font-weight: 700; font-size: 9.5px;
  letter-spacing: normal; text-transform: uppercase;
  fill: currentColor;
}
@keyframes hero-badge-spin { to { transform: rotate(360deg); } }
@media (max-width: 1024px) { .hero-badge-mark { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-badge-ring { animation: none; } }
.hero-inner { max-width: 46rem; margin: 0 auto 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 0.8rem; font-weight: 700; margin-bottom: 26px;
  border: 1px solid rgba(95, 141, 255, 0.28);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(95,141,255,0.22); animation: badge-pulse 2s ease-in-out infinite; }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(95,141,255,0.22); }
  50% { box-shadow: 0 0 0 8px rgba(95,141,255,0.05); }
}
@media (prefers-reduced-motion: reduce) { .badge .dot { animation: none; } }
.hero h1 {
  font-family: "Outfit"; font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 26px; color: var(--text);
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-strong) 0%, #b9cbff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 34rem; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------- Sections -------------------- */
section { padding: clamp(80px, 13vh, 160px) 0; }
section.alt {
  --text: #101a2e;
  --text-dim: #4f5872;
  --surface: #e8eaf0;
  --surface-hover: #e8eaf0;
  --line: #cdd2de;
  --accent-strong: var(--accent-ink);
  background: var(--paper); color: var(--text);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.kicker { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 16px; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-family: "Outfit"; font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--text); }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* -------------------- Grids & Cards -------------------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover { transform: translateY(-4px); background: var(--surface-hover); box-shadow: var(--shadow-md); border-color: rgba(95,141,255,0.35); }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 25% 20%, rgba(255,255,255,0.14), transparent 60%), var(--accent-soft);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), 0 6px 14px -8px rgba(0,0,0,0.35);
  color: var(--accent-strong); margin-bottom: 18px;
}
.alt .card .icon { border-color: rgba(16,25,43,0.06); box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 6px 14px -10px rgba(16,25,43,0.25); }
.card .icon svg { width: 23px; height: 23px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12)); }
.card h3 { font-family: "Outfit"; font-weight: 500; margin-bottom: 8px; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--text); }
.card p { color: var(--text-dim); font-size: 0.96rem; }

.card.service { display: flex; flex-direction: column; }
.card.service ul { list-style: none; margin-top: 16px; }
.card.service li { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; color: var(--text-dim); font-size: 0.92rem; }
.card.service li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* -------------------- Angebots-Karten (Catcher-Seite) -------------------- */
a.card.offer { display: flex; flex-direction: column; text-decoration: none; }
.card.offer .more { margin-top: auto; padding-top: 18px; font-size: 0.86rem; font-weight: 700; color: var(--accent-strong); }
.card.offer.soon { opacity: 0.55; cursor: default; }
.card.offer.soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); background: var(--surface); }
.card.offer.soon .soon-badge {
  display: inline-block; margin-top: auto; padding-top: 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-dim);
}


/* -------------------- Ablauf (Index-Liste) -------------------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); position: relative;
}
.index-row .idx { font-family: "Outfit"; color: var(--accent-strong); font-size: 0.9rem; }
.index-row .name { font-family: "Outfit"; font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -0.01em; color: var(--text); transition: transform 0.4s cubic-bezier(.2,.8,.2,1), color 0.4s ease; }
.index-row .desc { color: var(--text-dim); font-size: 0.92rem; max-width: 34ch; text-align: right; }
.index-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); transition: width 0.5s cubic-bezier(.2,.8,.2,1); }
.index-row:hover .name { transform: translateX(14px); color: var(--accent-strong); }
.index-row:hover::after { width: 100%; }
@media (max-width: 700px) { .index-row { grid-template-columns: 36px 1fr; } .index-row .desc { display: none; } }

/* -------------------- Warum SimLution -------------------- */
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .v-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 25% 20%, rgba(255,255,255,0.14), transparent 60%), var(--accent-soft);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), 0 6px 14px -8px rgba(0,0,0,0.35);
  color: var(--accent-strong);
}
.value-item .v-icon svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12)); }
.value-item h3 { font-family: "Outfit"; font-weight: 500; margin: 2px 0 6px; font-size: 1.05rem; color: var(--text); }
.value-item p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

/* -------------------- Über -------------------- */
.about-card { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(36px, 6vw, 56px); box-shadow: var(--shadow-sm); text-align: center; }
.about-card p { color: var(--text-dim); font-size: 1.08rem; }

/* -------------------- CTA -------------------- */
/* Standing rule (Simon, 14.10.2026): #kontakt/.cta-band bleibt IMMER dunkel (keine .alt-Klasse),
   unabhängig von der sonstigen Hell/Dunkel-Abwechslung der Sektionen. Lieber mehrere dunkle
   Sektionen in Folge am Seitenende als die Kontakt-Karte auf hellem Grund. */
.cta-band { text-align: center; border-top: 1px solid var(--line); }
.cta-panel {
  max-width: 840px; margin: 0 auto;
  background: linear-gradient(135deg, #101d36 0%, #16264a 55%, var(--accent-ink) 130%);
  border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(56px, 8vw, 90px) 32px; color: #fff; box-shadow: var(--shadow-md);
}
.cta-panel h2 { font-family: "Outfit"; font-weight: 500; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-panel p { color: rgba(255,255,255,0.78); max-width: 32rem; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-panel .btn { background: #e8eaf0; color: var(--accent-ink); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.6); }
.cta-panel .btn:hover { background: #d8dce6; }

.contact-form { max-width: 460px; margin: 0 auto; text-align: left; }
.contact-form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: "Outfit", sans-serif; font-size: 1rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 12px 14px; color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent-strong); background: rgba(255,255,255,0.12);
}
.contact-form textarea { resize: vertical; margin-bottom: 16px; }
.contact-form .btn { width: 100%; justify-content: center; }
.contact-form-note { margin: 12px 0 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.55); max-width: none; }
@media (max-width: 480px) { .contact-form-row { flex-direction: column; } }

/* -------------------- Footer -------------------- */
footer.site { padding: 40px 0; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site .logo img { height: 36px; }
footer.site .meta { color: var(--text-dim); font-size: 0.9rem; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer.site a.legal { text-decoration: none; color: var(--text-dim); }
footer.site a.legal:hover { color: var(--accent-strong); }
footer.site .ai-note { color: var(--text-dim); font-size: 0.72rem; opacity: 0.6; width: 100%; }
footer.site .ai-note a { text-decoration: underline; text-underline-offset: 2px; }

/* -------------------- Rechtsseiten -------------------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: calc(clamp(80px, 13vh, 160px) + 20px) 0 clamp(80px, 13vh, 160px); }
.legal-page h1 { font-family: "Outfit"; font-weight: 500; font-size: 2rem; margin-bottom: 28px; letter-spacing: -0.02em; color: var(--text); }
.legal-page h2 { font-family: "Outfit"; font-weight: 500; text-align: left; font-size: 1.15rem; margin-top: 28px; margin-bottom: 10px; color: var(--text); }
.legal-page p, .legal-page li { color: var(--text-dim); margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
