/* =========================================================
   LIGETI SOLUTIONS – Stylesheet
   Volle Breite · Mobile-first · Desktop / Tablet / Mobile
   ========================================================= */

:root {
  --navy-950: #050d1c;
  --navy-900: #0a1730;
  --navy-800: #102447;
  --navy-700: #183566;
  --blue-500: #2f7bff;
  --blue-400: #5b98ff;
  --blue-300: #7ab8ff;
  --violet-500: #7c5cff;
  --violet-400: #9d86ff;
  --ink: #0f1b2d;
  --muted: #5b6b82;
  --line: #e3e9f2;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --grad: linear-gradient(135deg, #2f7bff 0%, #7c5cff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(10, 23, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 23, 48, .35);
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1480px;
  --header-h: 88px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #050d1c; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1vw + 11px, 18px);
  line-height: 1.65;
  color: var(--ink);
  /* Dunkler Seitenhintergrund: Safari (iOS) übernimmt ihn für die Leiste unten */
  background: #050d1c;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { display: block; background: var(--surface); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--blue-500); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout: volle Breite, nur Innenabstand ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--navy-900); color: #dbe6f7; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .contact .eyebrow { color: var(--blue-300); }
.section--dark .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before, .contact .eyebrow::before { background: var(--blue-300); }

.h-xl { font-size: clamp(2.3rem, 5.2vw, 4.6rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.h-md { font-size: clamp(1.3rem, 1.6vw, 1.55rem); }
.lead { font-size: clamp(1.05rem, 1.2vw + .5rem, 1.3rem); color: var(--muted); max-width: 62ch; }
.section--dark .lead, .hero .lead, .page-hero .lead { color: #b6c6de; }
.text-grad { color: var(--blue-300); }

.section-head { display: grid; gap: 8px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue-500);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  font: 600 1rem/1 var(--font);
  border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: #fff; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  box-shadow: 0 10px 24px -10px rgba(47, 123, 255, .7);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(47, 123, 255, .8); }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.btn--light { background: #fff; color: var(--navy-900); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  /* Deckende Hintergrundfarbe: Safari (iOS) übernimmt sie für die Statusleiste oben */
  background-color: #050d1c;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-solid, .site-header.is-open {
  background-color: #081328;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; letter-spacing: .04em; flex-shrink: 0; }
.logo img { height: 60px; width: auto; }
.logo span { font-size: 1rem; }
.logo .logo-fallback { display: none; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav .nav-toggle {
  display: flex; align-items: center; gap: 6px;
  color: #e6eefb; font-weight: 500; font-size: .98rem;
  padding: 10px 14px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s;
}
.nav > ul > li > a:hover, .nav .nav-toggle:hover, .nav li.is-active > a, .nav li.is-active > .nav-toggle { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .chev { width: 14px; height: 14px; transition: transform .25s; }

.dropdown {
  list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 10px); left: 50%;
  min-width: 290px; transform: translate(-50%, 8px);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.dropdown a { color: var(--ink); padding: 11px 14px; font-size: .95rem; border-radius: 10px; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--surface-2); color: var(--blue-500); }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .chev, .has-dropdown.is-open .chev { transform: rotate(180deg); }

.header-cta { flex-shrink: 0; }
.nav .mobile-cta { display: none; }
.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); cursor: pointer; position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .2s, top .3s;
}
.burger::before { top: 15px; } .burger span { top: 22px; } .burger::after { top: 29px; }
.is-open .burger::before { top: 22px; transform: rotate(45deg); }
.is-open .burger::after { top: 22px; transform: rotate(-45deg); }
.is-open .burger span { opacity: 0; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; background: var(--navy-950); overflow: hidden;
  padding-block: calc(var(--header-h) + 60px) 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 45% 60% at 60% 30%, rgba(47, 123, 255, .28), transparent 60%),
    radial-gradient(ellipse 40% 55% at 5% 95%, rgba(124, 92, 255, .22), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 35% 40%, #000 15%, transparent 65%);
  mask-image: radial-gradient(ellipse at 35% 40%, #000 15%, transparent 65%);
}
/* Empfangsfoto: rechts, schräg angeschnitten, beginnt unterhalb der Navigation */
.hero__visual, .hero__stripes {
  position: absolute; right: 0; z-index: 1;
  top: calc(var(--header-h) + 8px); bottom: 84px;
  /* weich ausblenden: oben, unten und am rechten Rand */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%), linear-gradient(270deg, transparent 0, #000 7vw);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%), linear-gradient(270deg, transparent 0, #000 7vw);
  mask-composite: intersect;
}
.hero__visual {
  width: 52vw;
  clip-path: polygon(10vw 0, 100% 0, 100% 100%, 0 100%);
  background: var(--grad);
  border-radius: 0;
}
.hero__photo {
  position: absolute; inset: 0;
  clip-path: polygon(calc(10vw + 5px) 0, 100% 0, 100% 100%, 5px 100%);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 92% 45%;
  transform: scale(1.05); transform-origin: right center; animation: heroZoom 16s ease-out forwards;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 28, .5) 0%, rgba(5, 13, 28, 0) 40%),
    linear-gradient(135deg, rgba(47, 123, 255, .1), rgba(124, 92, 255, .16));
}
/* Parallele Akzentstreifen links vom Foto */
.hero__stripes { width: 62vw; pointer-events: none; }
.hero__stripes i { position: absolute; inset: 0; display: block; }
.hero__stripes i:first-child {
  background: linear-gradient(180deg, rgba(47, 123, 255, .9), rgba(124, 92, 255, .9));
  clip-path: polygon(17.6vw 0, 18vw 0, 8vw 100%, 7.6vw 100%);
}
.hero__stripes i:last-child {
  background: linear-gradient(180deg, rgba(47, 123, 255, .22), rgba(124, 92, 255, .08));
  clip-path: polygon(14.6vw 0, 16.6vw 0, 6.6vw 100%, 4.6vw 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__content { max-width: min(640px, 40vw); }
.hero h1 { font-size: clamp(2.3rem, 3.9vw, 4rem); }
.hero h1 { margin-bottom: 24px; }
.hero h1 .hl { display: block; white-space: nowrap; }
.hero h1 .hl, .hero h1 .text-grad { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; }
.hero .lead { margin-bottom: 36px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; color: #a9bbd6; font-size: .92rem; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--blue-300); }
@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- Kennzahlen ---------- */
.stats { position: relative; z-index: 3; margin-top: -64px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: clamp(24px, 3vw, 40px); text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 500; font-size: .95rem; }

/* ---------- Service-Karten (Startseite) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.service-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__media {
  aspect-ratio: 16 / 10; overflow: hidden; position: relative; display: grid; place-items: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .22), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(18, 30, 120, .45), transparent 55%),
    linear-gradient(135deg, #2f6bff 0%, #4f5bff 50%, #7c5cff 100%);
}
.service-card:nth-child(2) .service-card__media { background-position: 0 0; filter: hue-rotate(6deg); }
.service-card:nth-child(3) .service-card__media { filter: hue-rotate(12deg); }
.service-card:nth-child(4) .service-card__media { filter: hue-rotate(18deg); }
.service-card__media::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 90%); mask-image: linear-gradient(135deg, transparent 20%, #000 90%);
}
.service-card__media::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 36px rgba(255, 255, 255, .05);
}
.service-card__art {
  position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -16px rgba(10, 10, 60, .6);
  transition: transform .4s ease, background .3s, color .3s;
}
.service-card__art svg { width: 46px; height: 46px; stroke-width: 1.6; }
.service-card:hover .service-card__art { transform: translateY(-4px) scale(1.06); background: #fff; color: var(--blue-500); }
.service-card__icon {
  position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 20px -8px rgba(47, 123, 255, .8);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card__body { padding: 26px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card__body p { color: var(--muted); font-size: .96rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-500); font-size: .95rem; }
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .more svg { transform: translateX(4px); }

/* ---------- Split (Über uns / Karriere) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media .frame {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}
.split__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%;
  border-radius: 24px; background: var(--grad); opacity: .16; z-index: -1;
}
.frame.img-missing { display: grid; place-items: center; }
.frame.img-missing img { display: none; }
.frame.img-missing::after { content: attr(data-fallback); color: #fff; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .06em; opacity: .9; }
.checklist { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--blue-500); margin-top: 2px; }
.section--dark .checklist svg { color: var(--blue-300); }
.note {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 28px;
}
.note svg { width: 26px; height: 26px; color: var(--blue-300); flex-shrink: 0; }
.note p { margin: 0; }
.note strong { color: #fff; }

/* ---------- Kontakt ---------- */
.contact { background: var(--navy-950); color: #cfdcf0; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 0% 0%, rgba(47, 123, 255, .28), transparent 60%), radial-gradient(ellipse 45% 55% at 100% 100%, rgba(124, 92, 255, .22), transparent 60%); }
.contact .wrap { position: relative; }
.contact h2 { color: #fff; }
.contact .split { align-items: start; grid-template-columns: 1fr 1.1fr; }
.contact-items { display: grid; gap: 16px; margin-top: 32px; }
.contact-item {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, border-color .2s;
}
a.contact-item:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .25); }
.contact-item .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: #8ea3c3; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.contact-item span { color: #fff; font-weight: 600; word-break: break-word; }

.form-card {
  background: linear-gradient(160deg, rgba(47, 123, 255, .16), rgba(16, 36, 71, .55));
  border: 1px solid rgba(122, 184, 255, .22); color: #dbe6f7;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 22px; padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-lg);
}
.form-card h3 { color: #fff; }
.form-card .form-sub { color: #9fb7d9; margin: 0; }
.form-card .field label { color: #cfe0f7; }
.form-card .field label .req { color: var(--blue-300); }
.form-card .field input, .form-card .field textarea {
  background: rgba(5, 13, 28, .45); border-color: rgba(122, 184, 255, .22); color: #fff;
}
.form-card .field input::placeholder, .form-card .field textarea::placeholder { color: #6f86a8; }
.form-card .field input:focus, .form-card .field textarea:focus {
  background: rgba(5, 13, 28, .6); border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(122, 184, 255, .18);
}
.form-card .consent { color: #a9bddb; }
.form-card .field .err { color: #ff8a8e; }
.form-card .form-status { color: #86efac; }
.form-card .form-status.is-error { color: #ff9ea1; }
.form-card .form-status a { color: #fff; text-decoration: underline; }
.turnstile-wrap { margin: 18px 0 6px; min-height: 65px; }
.form-card .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-card h3 { font-size: 1.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; }
.field label .req { color: var(--blue-500); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47, 123, 255, .15); }
.field.has-error input, .field.has-error textarea { border-color: #e5484d; }
.field .err { color: #e5484d; font-size: .82rem; min-height: 1em; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-500); flex-shrink: 0; }
.form-card .btn { width: 100%; margin-top: 8px; }
.form-status { margin-top: 14px; font-size: .92rem; color: #138a5b; font-weight: 600; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; }

/* ---------- Unterseiten ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--navy-950); overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 110px)) clamp(64px, 8vw, 120px);
}
.page-hero--sm { padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 50% 80% at 88% 0%, rgba(47, 123, 255, .35), transparent 60%),
    radial-gradient(ellipse 40% 70% at 100% 100%, rgba(124, 92, 255, .25), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 30%, #000 10%, transparent 60%); mask-image: radial-gradient(ellipse at 85% 30%, #000 10%, transparent 60%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .88rem; color: #8ea3c3; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }

.intro-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.intro-block h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.intro-block p { font-size: 1.1rem; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 42px); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.feature::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature:hover::after { transform: scaleX(1); }
.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(47, 123, 255, .1); color: var(--blue-500); }
.feature__icon svg { width: 28px; height: 28px; }
.feature__num { font-size: 2.6rem; font-weight: 800; color: var(--line); letter-spacing: -.04em; line-height: 1; }
.feature h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); }
.feature p { color: var(--muted); margin: 0; }

.cta-band { background: var(--grad); color: #fff; padding-block: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); color: #fff; }
.cta-band p { margin: 0; max-width: 64ch; color: rgba(255, 255, 255, .9); }

.other-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.other-link {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; font-weight: 600; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.other-link:hover { border-color: var(--blue-500); transform: translateY(-3px); box-shadow: var(--shadow); }
.other-link .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 123, 255, .1); color: var(--blue-500); flex-shrink: 0; }
.other-link .ico svg { width: 22px; height: 22px; }
.other-link .arrow { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: clamp(20px, 3vw, 44px); }
.member { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member__photo { aspect-ratio: 1; background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); position: relative; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s; }
.member:hover .member__photo img { transform: scale(1.04); }
.member__photo.img-missing img { display: none; }
.member__photo.img-missing::after { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 5rem; font-weight: 800; letter-spacing: .02em; }
.member__body { padding: 24px 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member__body h3 { font-size: 1.35rem; margin: 0 0 4px; }
.member__body p { margin: 0; color: var(--blue-500); font-weight: 600; font-size: .95rem; }
.member__li { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy-800); transition: background .2s, color .2s; }
.member__li:hover { background: #0a66c2; color: #fff; }
.member__li svg { width: 20px; height: 20px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.value { text-align: center; padding: 28px 20px; }
.value .feature__icon { margin: 0 auto 16px; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }


/* ---------- So arbeiten wir ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); position: relative; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 50%; left: 16%; right: 16%; height: 2px; margin-top: -1px; z-index: 0;
  background: linear-gradient(90deg, rgba(47, 123, 255, .1), var(--blue-500), var(--violet-500), rgba(124, 92, 255, .1));
}
.step {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); text-align: center; transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step__head { position: relative; width: 64px; height: 64px; margin: -4px auto 22px; }
.step__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 28px -12px rgba(79, 91, 255, .8); }
.step__icon svg { width: 30px; height: 30px; }
.step__num {
  position: absolute; top: -10px; right: -12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-size: .85rem; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }
.steps__cta { text-align: center; margin-top: clamp(32px, 4vw, 52px); }

/* ---------- Fernwartung (Support-Seite) ---------- */
.remote {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--navy-900); color: #cfdcf0; border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.remote::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(124, 92, 255, .3), transparent 60%), radial-gradient(ellipse 45% 60% at 0% 100%, rgba(47, 123, 255, .25), transparent 60%); }
.remote > * { position: relative; }
.remote h2 { color: #fff; }
.remote .eyebrow { color: var(--blue-300); }
.remote .eyebrow::before { background: var(--blue-300); }
.remote__text p { color: #b6c6de; margin-bottom: 28px; }
.remote .btn { white-space: normal; text-align: left; }
.remote__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.remote__steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.remote__steps li > span { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #fff; }
.remote__steps strong { color: #fff; display: block; margin-bottom: 2px; }
.remote__steps p { margin: 0; font-size: .95rem; color: #a9bbd6; }

.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3c4a60; }
.prose a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 3px; }
.prose .facts { border-collapse: collapse; width: 100%; margin: 8px 0 16px; }
.prose .facts th, .prose .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .facts th { width: 38%; font-weight: 600; color: var(--ink); }
.prose .stand { margin-top: 3em; color: var(--muted); font-size: .9rem; }
mark.ph { background: #fff3b0; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.consent a { color: var(--blue-300); text-decoration: underline; }

/* ---------- Hinweis KI-generierte Bilder ---------- */
.frame { position: relative; }
.ai-badge {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
  color: rgba(255, 255, 255, .92); background: rgba(5, 13, 28, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}
.ai-badge--hero { right: 8vw; bottom: calc(84px + 22%); z-index: 3; }
@media (max-width: 1024px) { .ai-badge--hero { display: none; } }

/* ---------- 404 ---------- */
.nf-hero { min-height: 70vh; display: flex; align-items: center; }
.nf-code {
  font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; margin: 0 0 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-links { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .nf-links { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb1cc; padding-top: clamp(56px, 7vw, 90px); padding-bottom: env(safe-area-inset-bottom, 0px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { margin: 0 0 12px; }
.footer-brand strong { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--blue-300); flex-shrink: 0; }
.footer-contact a { word-break: break-word; }
.footer-brand p { max-width: 34ch; }
.footer-brand a { color: #fff; font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s; }
.social a:hover { background: #0a66c2; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0;
  background: var(--blue-500); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 420px;
  background: var(--navy-900); color: #cfdcf0; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg);
  transform: translateY(20px); opacity: 0; visibility: hidden; transition: all .4s ease;
}
.cookie.show { transform: none; opacity: 1; visibility: visible; }
.cookie strong { color: #fff; display: block; margin-bottom: 6px; }
.cookie p { font-size: .9rem; margin-bottom: 14px; }
.cookie a { color: var(--blue-300); text-decoration: underline; }

/* ---------- Scroll-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */

/* Grosse Desktops: etwas mehr Luft */
@media (min-width: 1800px) {
  :root { --maxw: 1680px; }
}

/* Tablet quer / kleine Laptops */
@media (max-width: 1200px) {
  .feature-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .nav a, .nav .nav-toggle { padding: 10px 10px; }
}

/* Tablet hochkant & Mobile: Off-Canvas-Navigation */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .burger { display: block; }
  .header-cta { display: none; }
  .site-header.is-open { background: #081328; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #081328; padding: 20px var(--gutter) 40px;
    overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
    height: calc(100dvh - var(--header-h));
  }
  .is-open .nav { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav a, .nav .nav-toggle { padding: 16px 6px; font-size: 1.1rem; width: 100%; justify-content: space-between; border-radius: 0; }
  .nav > ul > li > a:hover, .nav .nav-toggle:hover, .nav li.is-active > a, .nav li.is-active > .nav-toggle { background: none; color: var(--blue-300); }
  .dropdown {
    position: static; transform: none; min-width: 0; background: transparent; box-shadow: none; padding: 0 0 10px 12px;
    opacity: 1; visibility: visible; display: none;
  }
  .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { transform: none; }
  .has-dropdown.is-open > .dropdown { display: block; transform: none; }
  .has-dropdown:hover .chev { transform: none; }
  .has-dropdown.is-open .chev { transform: rotate(180deg); }
  .dropdown a { color: #b6c6de; font-size: 1rem; padding: 12px 6px; }
  .dropdown a:hover, .dropdown a[aria-current="page"] { background: none; color: #fff; }
  .nav .mobile-cta { display: flex; flex-direction: column; margin-top: 28px; }
  .nav .mobile-cta .btn { width: 100%; justify-content: center; padding: 14px 22px; border-radius: 999px; font-size: 1rem; color: #fff; }
  .nav .mobile-cta .btn { background: var(--blue-500); border: 2px solid transparent; }
  .nav .mobile-cta .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); box-shadow: none; }

  .split, .contact .split, .intro-block, .remote { grid-template-columns: 1fr; }
  .hero__visual { width: 100%; top: 0; bottom: 0; clip-path: none; opacity: .13; -webkit-mask-image: none; mask-image: none; }
  .hero__stripes { display: none; }
  .hero__content { max-width: 720px; }
  .hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
  .hero__photo { clip-path: none; }
  .hero__photo::after { background: linear-gradient(90deg, rgba(5, 13, 28, .9), rgba(5, 13, 28, .5)); }
  .hero__content { max-width: 720px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps::before { top: 40px; bottom: 40px; left: 50%; right: auto; width: 2px; height: auto; margin-top: 0; background: linear-gradient(180deg, var(--blue-500), var(--violet-500)); }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 680px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .other-services { grid-template-columns: 1fr; }
  body.nav-open { overflow: hidden; }
}
/* Tablet hochkant */
@media (max-width: 820px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; gap: 0; }
}

/* Mobile */
@media (max-width: 640px) {
  .hero h1 { font-size: min(8.6vw, 2.6rem); }
  .h-xl { font-size: clamp(1.9rem, 8.6vw, 2.6rem); overflow-wrap: anywhere; hyphens: auto; }
  .logo img { height: 46px; }
  .hero { min-height: 92svh; padding-bottom: 100px; }
  .hero .btn-row .btn { width: 100%; }
  .stats { margin-top: -44px; }
  .services-grid, .feature-grid, .feature-grid--3, .form-grid { grid-template-columns: 1fr; }
  .prose .facts th { width: auto; display: block; padding-bottom: 0; border: 0; }
  .prose .facts td { display: block; padding-top: 4px; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; }
  .cta-band .btn { width: 100%; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .to-top { right: 14px; bottom: 14px; }
  .feature__num { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
