/* ==========================================================================
   TeamIT – Basis-Styles
   ========================================================================== */

:root {
  --accent: #00AFEE;        /* Logo-Hellblau */
  --accent-ink: #0077A6;    /* Akzent für Text auf Weiß (Kontrast AA) */
  --accent-soft: #E6F7FD;
  --navy: #0A1626;
  --navy-2: #122238;
  --ink: #0E1621;
  --muted: #5A6573;
  --line: #E2E7ED;
  --surface: #F4F7FA;
  --white: #fff;

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

svg use { pointer-events: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Icons (Linien-Stil) */
.tile-icon svg, .care-icon svg, .mega-icon svg, .contact-icon svg, .mobile-services svg,
.btn svg, .checklist svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #031620; }
.btn-primary:hover { background: #33C1F3; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
  height: var(--header-h); padding: 0 var(--gutter);
}
.site-header.is-scrolled, .site-header.mega-open {
  color: var(--ink);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(14,22,33,.08);
}
.brand { display: flex; flex: none; }
.brand-logo { width: 104px; height: auto; fill: currentColor; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; color: inherit; text-decoration: none;
  background: none; border: 0; cursor: pointer;
  transition: background-color .2s;
}
.nav-link:hover { background: rgba(127,127,127,.14); }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.mega-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Mega-Menü */
.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  color: var(--ink);
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(10,22,38,.25);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 32px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-grid a {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background-color .2s;
}
.mega-grid a:hover { background: var(--surface); }
.mega-grid strong { display: block; font-size: 16px; font-weight: 600; }
.mega-grid small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.mega-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink);
}
.mega-icon svg { width: 24px; height: 24px; }

.header-cta { flex: none; }

/* Menü-Button (Handy) */
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  border: 0; border-radius: 999px; background: rgba(127,127,127,.16); color: inherit; cursor: pointer;
  position: relative; z-index: 120;
}
.menu-toggle span {
  position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; }
.menu-open .menu-toggle span:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: #fff; color: var(--ink);
  padding: calc(var(--header-h) + 8px) var(--gutter) 32px;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none; }
.mobile-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.mobile-services a {
  display: flex; align-items: center; gap: 14px; min-height: 56px;
  font-size: 19px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-services svg { width: 24px; height: 24px; color: var(--accent-ink); flex: none; }
.mobile-main { margin-top: 24px; }
.mobile-main a { display: block; padding: 8px 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.mobile-contact { display: grid; gap: 12px; margin-top: 32px; }
.menu-open .site-header { color: var(--ink); background: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(0,175,238,.28), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(47,85,151,.35), transparent 60%),
    var(--navy);
}
/* dezentes Raster, sichtbar solange kein Foto da ist */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  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;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform-origin: 60% 50%;
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,22,38,.92) 0%, rgba(10,22,38,.55) 45%, rgba(10,22,38,.25) 100%),
    linear-gradient(to right, rgba(10,22,38,.6), transparent 70%);
}
@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}

.hero-content { padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 20px; }
.eyebrow-accent { color: var(--accent-ink); }
.section-dark .eyebrow-accent, .section-contact .eyebrow-accent { color: var(--accent); }
.hero h1 { font-size: clamp(42px, 8vw, 96px); max-width: 12ch; letter-spacing: -.035em; line-height: 1.02; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; max-width: 38ch; margin-top: 24px; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-facts { padding-bottom: 32px; }
.hero-facts ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-facts li { padding: 20px 20px 0 0; }
.hero-facts strong { display: block; font-size: 20px; font-weight: 700; }
.hero-facts span { display: block; font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.4; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-tint { background: var(--surface); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2, .split-text h2, .contact-text h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.03em; }
.section-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 20px; max-width: 56ch; }
.section-dark .section-lead, .section-contact .section-lead { color: rgba(255,255,255,.72); }

/* ---------- Bento-Grid ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(240px, auto);
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 16px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(10,22,38,.35); }
.tile h3 { font-size: 22px; letter-spacing: -.015em; }
.tile p { color: var(--muted); margin-top: 10px; font-size: 16px; line-height: 1.5; max-width: 44ch; }
.tile-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto;
  border-radius: 14px; background: #fff; color: var(--accent-ink);
}
.tile-icon svg { width: 26px; height: 26px; }
.tile h3 { margin-top: 32px; }

.tile-xl { grid-column: span 2; grid-row: span 2; min-height: 520px; }
.tile-wide { grid-column: span 2; }
.tile-wide3 { grid-column: span 3; }

.tile-dark { background: var(--navy-2); color: #fff; }
.tile-dark p { color: rgba(255,255,255,.72); }
.tile-dark .tile-icon { background: rgba(0,175,238,.14); color: var(--accent); }
.tile-accent { background: var(--accent); color: #031620; }
.tile-accent p { color: rgba(3,22,32,.78); }
.tile-accent .tile-icon { background: rgba(255,255,255,.5); color: #031620; }

.tile-image { color: #fff; background: linear-gradient(135deg, var(--navy-2), #1E3A5F); }
.tile-image .tile-body { display: flex; flex-direction: column; height: 100%; }
.tile-image p { color: rgba(255,255,255,.8); }
.tile-image .tile-icon { background: rgba(255,255,255,.14); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile-media { position: absolute; inset: 0; z-index: -1; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,38,.92) 10%, rgba(10,22,38,.2) 70%); }
.tile-image:hover .tile-media img { transform: scale(1.04); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }

/* ---------- Split (Hardware) ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split-media {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,175,238,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy));
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-dark { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 24px; }
.checklist { margin-top: 32px; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checklist svg { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 999px; background: var(--accent); color: #031620; stroke-width: 2.4; margin-top: 1px; }

/* ---------- Betreuung ---------- */
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.care {
  padding: 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: background-color .3s, border-color .3s;
}
.care:hover { background: rgba(255,255,255,.07); border-color: rgba(0,175,238,.5); }
.care-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(0,175,238,.14); color: var(--accent); }
.care-icon svg { width: 26px; height: 26px; }
.care h3 { font-size: 20px; margin-top: 28px; }
.care p { color: rgba(255,255,255,.7); margin-top: 10px; font-size: 16px; line-height: 1.55; }

/* ---------- Branchen & Partner ---------- */
.trust { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(40px, 6vw, 80px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partners li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
}
.partners img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.partners li:last-child img { height: 30px; margin-top: 5px; margin-bottom: 5px; }
.partners span { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- Kontakt ---------- */
.section-contact {
  color: #fff;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(0,175,238,.25), transparent 60%),
    var(--navy);
}
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  border-radius: var(--radius); text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  transition: background-color .25s, border-color .25s;
}
a.contact-card:hover { background: rgba(255,255,255,.09); border-color: var(--accent); }
.contact-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #031620; }
.contact-icon svg { width: 24px; height: 24px; }
.contact-card small { display: block; font-size: 13px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-card strong { display: block; font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.35; }

.contact-cta { margin-top: 32px; }

/* ---------- Unterseiten ---------- */
.site-header.is-solid {
  color: var(--ink);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 rgba(14,22,33,.08);
}
.nav-link[aria-current="page"] { color: var(--accent); }
.is-scrolled .nav-link[aria-current="page"], .mega-open .nav-link[aria-current="page"] { color: var(--accent-ink); }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(120px, 14vw, 176px);
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(0,175,238,.28), transparent 60%),
    var(--navy);
}
.page-hero .hero-media img { object-position: 70% 40%; }
/* Bild gespiegelt anzeigen, damit das Motiv rechts und der Text links frei steht */
.hero-flip { width: 100%; height: 100%; transform: scaleX(-1); }
.page-hero .hero-flip img { object-position: 35% 40%; }
.page-hero h1 { font-size: clamp(40px, 6.5vw, 80px); letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; text-wrap: balance; }
.page-hero .lead { max-width: 44ch; }

/* ---------- Kontaktformular ---------- */
.section-form {
  padding-top: 0;
  background:
    radial-gradient(800px 400px at 0% 100%, rgba(0,175,238,.08), transparent 60%),
    var(--surface);
}
.form-layout {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: start;
  margin-top: clamp(-96px, -8vw, -64px);
}
.form-wrap {
  padding: clamp(24px, 4vw, 48px);
  background: #fff; border-radius: 24px;
  box-shadow: 0 1px 2px rgba(10,22,38,.06), 0 32px 64px -32px rgba(10,22,38,.28);
}

.contact-form { display: grid; gap: 36px; }
.contact-form[hidden] { display: none; }
.form-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-group legend { padding: 0; line-height: 1.25; font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.form-hint { font-size: 14px; color: var(--muted); }
.form-group > .form-hint { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group .form-row { margin-top: 16px; }
.form-group legend + .field { margin-top: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 15px; font-weight: 600; }
.req { color: var(--accent-ink); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #CBD3DC; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 240px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #9AA6B2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(0,175,238,.2); }
.field [aria-invalid="true"] { border-color: #C62828; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198,40,40,.15); }
.field-error { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; color: #B71C1C; margin-top: 6px; }
.field-error[hidden] { display: none; }
.form-group > .field-error { margin-top: 10px; }

/* Auswahl E-Mail / Telefon */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-box {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px;
  font-weight: 600; border: 1.5px solid #CBD3DC; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.choice:hover .choice-box { border-color: #9AA6B2; }
.choice input:checked + .choice-box { border-color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.choice input:checked + .choice-box svg { color: var(--accent-ink); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Zeitfenster */
.timeslots { margin-top: 20px; padding: 20px; border-radius: var(--radius-sm); background: var(--surface); }
.timeslots[hidden] { display: none; }
.timeslots-label { font-size: 15px; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  font-size: 15px; font-weight: 600; border-radius: 999px; background: #fff; border: 1.5px solid #CBD3DC;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip-check:hover span { border-color: #9AA6B2; }
.chip-check input:checked + span { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Einwilligung */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-ink); cursor: pointer; }
.check a { color: var(--accent-ink); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }

.form-status { display: block; padding: 16px 18px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.5; background: #FDECEA; color: #8E1B1B; border: 1px solid #F5C2BE; }
.form-status[hidden] { display: none; }
.form-status a { color: inherit; font-weight: 600; }

.form-success { padding: clamp(28px, 5vw, 48px); border-radius: var(--radius); background: var(--surface); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--accent); color: #031620; }
.success-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 24px; }
.form-success p { color: var(--muted); margin-top: 10px; font-size: 17px; }

.contact-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Formularseite: schwebende Karte „So geht es weiter“ */
.process-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 32px);
  color: #fff; border-radius: 24px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(0,175,238,.25), transparent 60%),
    var(--navy);
  box-shadow: 0 32px 64px -32px rgba(10,22,38,.45);
}
.process-aside h2 { font-size: 22px; letter-spacing: -.015em; }
.process-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; position: relative; }
.process-steps li { display: flex; gap: 16px; align-items: flex-start; position: relative; }
/* Verbindungslinie zwischen den Schritten */
.process-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: -18px; width: 2px;
  background: rgba(0,175,238,.3);
}
.step-num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent); color: #031620; font-weight: 700; font-size: 16px;
}
.process-steps strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.process-steps li > span:last-child { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.5; }
.process-note {
  display: flex; gap: 12px; align-items: center; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.72);
}
.process-note .contact-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(0,175,238,.16); color: var(--accent); }
.process-note .contact-icon svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .process-aside { position: static; }
}

/* ---------- Kontaktseite ---------- */
.info-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(-96px, -8vw, -64px);
}
.info-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(24px, 3vw, 36px); border-radius: 24px;
  background: #fff; text-decoration: none;
  box-shadow: 0 1px 2px rgba(10,22,38,.06), 0 32px 64px -36px rgba(10,22,38,.3);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.info-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(10,22,38,.06), 0 36px 64px -30px rgba(10,22,38,.4); }
.info-card .contact-icon { margin-bottom: 18px; }
.info-card small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-value { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.info-sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 4px; }
.info-sub a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.info-card-accent {
  color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(0,175,238,.3), transparent 60%),
    var(--navy);
}
.info-card-accent small, .info-card-accent .info-sub { color: rgba(255,255,255,.7); }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 16px; padding: clamp(28px, 4vw, 44px); border-radius: 24px;
  background: #fff; border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin-top: 8px; max-width: 52ch; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
  .cta-band .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr 1fr; }
  .choice-box { padding: 12px 14px; font-size: 15px; }
}

/* ---------- Leistungsseiten ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--accent); font-weight: 600; }
.page-hero-service { padding-bottom: clamp(64px, 9vw, 120px); }

.split-text-first { grid-template-columns: 6fr 5fr; }

.spec-card {
  padding: clamp(24px, 3vw, 36px); border-radius: 24px; color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(0,175,238,.25), transparent 60%),
    var(--navy);
  box-shadow: 0 32px 64px -32px rgba(10,22,38,.45);
}
.spec-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.spec-list { margin: 16px 0 0; }
.spec-list > div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.spec-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt { font-size: 18px; font-weight: 700; }
.spec-list dd { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.5; }
.spec-list dd a { color: var(--accent); }

.tags-lg li { font-size: 14px; padding: 7px 16px; }
/* Tags auf hellem Hintergrund */
.tags-light li { background: var(--surface); border-color: var(--line); color: var(--ink); font-size: 14px; padding: 7px 16px; }
.tags-light li:last-child { background: transparent; color: var(--muted); }
.software-label { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.diagram { margin: 0; padding: clamp(16px, 2.5vw, 28px); border-radius: 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); }
.diagram svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.diagram .diagram-tall { display: none; max-width: 400px; margin: 0 auto; }
@media (max-width: 560px) {
  .diagram .diagram-wide { display: none; }
  .diagram .diagram-tall { display: block; }
}
.diagram figcaption { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.5; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(10,22,38,.3); }
.feature .tile-icon { margin-bottom: 0; }
.feature h3 { font-size: 19px; margin-top: 24px; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 16px; line-height: 1.5; }
.feature a { color: var(--accent-ink); font-weight: 600; }

.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.highlight {
  display: flex; gap: clamp(20px, 3vw, 36px); align-items: flex-start;
  padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: #fff;
  border-left: 6px solid var(--accent);
  box-shadow: 0 1px 2px rgba(10,22,38,.06), 0 32px 64px -36px rgba(10,22,38,.3);
}
.highlight-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: #031620; }
.highlight-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.highlight .eyebrow { margin-bottom: 10px; }
.highlight h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.025em; }
.highlight p:last-child { color: var(--muted); margin-top: 14px; font-size: clamp(16px, 1.5vw, 18px); max-width: 62ch; }

.cta-dark { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-dark h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; }
.cta-dark .hero-actions { margin-top: 0; }

@media (max-width: 900px) {
  .split-text-first { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .highlight { flex-direction: column; border-left: 0; border-top: 6px solid var(--accent); }
}

/* Ablauf in Schritten (dunkler Abschnitt) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.flow-step {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -17px; width: 18px; height: 2px;
  background: rgba(0,175,238,.5);
}
.flow-num { position: absolute; top: 20px; right: 24px; font-size: 40px; font-weight: 700; line-height: 1; color: rgba(255,255,255,.08); }
.flow-step h3 { font-size: 20px; margin-top: 28px; }
.flow-step p { color: rgba(255,255,255,.7); margin-top: 10px; font-size: 16px; line-height: 1.55; }
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step::after { display: none; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Partner-Hervorhebung (z. B. Dallmeier) */
.partner-feature { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.partner-badge { width: 100%; max-width: 360px; padding: 28px 32px; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -24px rgba(0,0,0,.5); }
.partner-badge img { width: 100%; height: auto; }
.partner-caption { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.highlight a { color: var(--accent-ink); font-weight: 600; }
.product-card { margin: 0; width: 100%; max-width: 420px; padding: 24px 28px 22px; border-radius: 20px; background: #fff; box-shadow: 0 24px 48px -24px rgba(0,0,0,.55); }
.product-photo { width: 100%; height: auto; }
.product-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-logo { width: 120px; height: auto; }
.product-card figcaption span { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Kachel komplett klickbar (Startseite) */
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 15px; font-weight: 600; text-decoration: none; color: inherit; }
.tile-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile:hover .tile-link svg { transform: translateX(4px); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.page-hero-compact { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(40px, 5vw, 64px); }
.page-hero-compact h1 { font-size: clamp(36px, 5vw, 60px); }
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.section-legal { padding-top: clamp(40px, 6vw, 72px); }
.legal { max-width: calc(760px + 2 * var(--gutter)); }
.legal h2 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.01em; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal p, .legal li { color: #2B3542; font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.legal ul li + li { margin-top: 4px; }
.legal a { color: var(--accent-ink); }
.legal strong { color: var(--ink); }
.draft-note { padding: 14px 18px; border-radius: var(--radius-sm); background: #FFF6D6; border: 1px solid #F0D98A; color: #5C4700 !important; }
mark.todo { background: #FFE58A; color: #3D2F00; padding: 1px 6px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-toc { margin: 32px 0 8px; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--surface); }
.legal-toc p { font-size: 13px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.legal-toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 15px !important; break-inside: avoid; }
.legal-date { margin-top: 40px !important; font-size: 14px !important; color: var(--muted) !important; }
.footer-nav a[aria-current="page"] { color: #fff; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: #060E19; color: rgba(255,255,255,.7); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 56px; padding-bottom: 32px; flex-wrap: wrap; }
.footer-brand .brand-logo { color: #fff; width: 112px; margin-bottom: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { display: inline-block; padding: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-xl { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .tile-wide, .tile-wide3 { grid-column: span 2; }
  .tile-wide3 { min-height: 340px; }
  .split, .trust, .contact { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .brand-logo { width: 92px; }
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .hero-facts ul { grid-template-columns: repeat(2, 1fr); }
  .hero-facts li { padding-top: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-media img { object-position: 65% 50%; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile-xl, .tile-wide, .tile-wide3 { grid-column: auto; min-height: 0; }
  .tile-xl { min-height: 440px; }
  .tile-wide3 { min-height: 320px; }
  .tile { padding: 24px; }
  .care-grid { grid-template-columns: 1fr; }
  .partners li { padding: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

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