:root {
  --blue: #2260d2;
  --blue-light: #6592e6;
  --blue-bg: #eef3fd;
  --ink: #1d2330;
  --muted: #5a6475;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 14px;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6em;
}

/* Kopfzeile */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand img { height: 40px; width: auto; }
.nav nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav nav ul a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav nav ul a:hover { color: var(--blue); }
.btn {
  display: inline-block; padding: .75em 1.4em; border-radius: 999px;
  background: var(--blue); color: #fff !important; text-decoration: none; font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: #1a4ead; }
.btn-ghost { background: transparent; color: var(--blue) !important; border: 2px solid var(--blue); }
.btn-ghost:hover { background: var(--blue-bg); }
.nav-right { display: flex; align-items: center; gap: 20px; }
/* Sprachauswahl */
.lang { position: relative; }
.flag {
  width: 20px; height: 14px; flex: none; border-radius: 2px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: .9rem; line-height: 1; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--blue-light); background: var(--blue-bg); }
.lang-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 160px;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px -16px rgba(16, 24, 48, .4);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--blue-bg); outline: none; }
.lang-menu a[aria-current="true"] { font-weight: 600; }
.lang-menu a[aria-current="true"]::after {
  content: ""; margin-left: auto; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232260d2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-fallback { font-size: .9rem; }
@media (max-width: 860px) {
  .nav nav ul li:not(:last-child) { display: none; }
  .brand span { display: none; }
  .nav-right { gap: 12px; }
}
@media (max-width: 420px) {
  .lang-btn .lang-label { display: none; }
}

/* Einstieg */
.hero {
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.85)),
    url("../images/background5.jpg") center / cover no-repeat;
  padding: clamp(64px, 12vw, 130px) 0 clamp(56px, 10vw, 110px);
}
.hero .lead { margin-bottom: 1.8em; color: #3d4656; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .9rem;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pills .pill { margin-bottom: 0; }
.hero .eyebrow { display: block; }
.pill b { background: var(--blue); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; }
.pill:hover { border-color: var(--blue-light); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

section { padding: clamp(56px, 9vw, 96px) 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* Karten */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); margin: 0; }
.card .tags { margin-top: 14px; font-size: .82rem; color: var(--blue); font-weight: 500; }
.icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--blue-bg);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }
.note {
  margin-top: 28px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--blue-bg); border-left: 4px solid var(--blue);
}
.note p { margin: 0; }

/* KI & Automatisierung */
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card-feature { background: linear-gradient(135deg, #1d4fb0, var(--blue-light)); border-color: transparent; color: #fff; }
.card-feature:hover { transform: translateY(-2px); }
.card-feature h3 { color: #fff; }
.card-feature p { color: rgba(255,255,255,.9); }
.card-feature .icon { background: rgba(255,255,255,.18); color: #fff; }
.card-feature .tags { color: #fff; font-weight: 600; }
section.dark { background: #141a2b; color: #e6eaf2; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .lead { color: #b7c0d1; }
section.dark .eyebrow { color: #8fb2f5; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); }
.loop li { position: relative; background: #1f2740; border: 1px solid #2e3858; border-radius: var(--radius); padding: 22px 20px; }
.loop li:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  color: #8fb2f5; font-size: 1.1rem; z-index: 1;
}
.loop h3 { font-size: 1.05rem; margin-top: 10px; }
.loop p { color: #b7c0d1; font-size: .93rem; margin: 0; }
.loop-no {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-light); color: #fff; font-weight: 700;
}
.loop-back { text-align: center; color: #8fb2f5; font-weight: 600; margin: 18px 0 48px; }
@media (max-width: 980px) {
  .loop { grid-template-columns: 1fr; }
  .loop li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); }
}
.ki-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ki-box { background: #1f2740; border: 1px solid #2e3858; border-radius: var(--radius); padding: 28px; }
.ki-box p { color: #b7c0d1; }
section.dark .checks span { color: #b7c0d1; }
.ki-proof { margin: 0; padding: 16px 18px; border-radius: 10px; background: rgba(101,146,230,.14); border-left: 3px solid var(--blue-light); }
.ki-proof strong { color: #fff; }

/* Ablauf */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.step p { color: var(--muted); margin: 0; }

/* Vorteile */
.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 18px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks strong { display: block; }
.checks span { color: var(--muted); }

/* Privatkunden */
.grid.duo { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card .list { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card .list li { margin-bottom: .4em; }
.shot { margin: 40px 0 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(16, 24, 48, .45);
}
.shot figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); text-align: center; }

/* Identity Provider */
.idp-video video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #141a2b; box-shadow: 0 20px 50px -20px rgba(16, 24, 48, .45); }
.idp-more { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: start; margin-top: 48px; }
@media (max-width: 860px) { .idp-more { grid-template-columns: 1fr; gap: 28px; } }
.chat { background: #141a2b; color: #e6eaf2; }
.chat .eyebrow { color: #8fb2f5; }
.chat-q {
  margin-left: auto; max-width: 90%; padding: 12px 16px; border-radius: 14px 14px 4px 14px;
  background: var(--blue); color: #fff !important; font-weight: 500;
}
.chat-a { max-width: 95%; padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: #1f2740; border: 1px solid #2e3858; }
.chat code { background: rgba(143,178,245,.16); color: #cfe0ff; padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.chat .chat-note { margin: 0; font-size: .88rem; color: #8a96ad; }
.chips { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--ink); }

/* Kontakt */
.contact {
  background: linear-gradient(135deg, #1d4fb0, var(--blue-light));
  color: #fff; border-radius: 20px; padding: clamp(32px, 6vw, 56px);
  display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: center;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,.9); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list a {
  display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;
  font-size: 1.1rem; font-weight: 600; word-break: break-all;
}
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 22px; height: 22px; flex: none; }

/* Fusszeile / Rechtliches */
footer { background: #1d2330; color: #c5ccd8; padding: 56px 0 28px; font-size: .92rem; }
footer h3 { color: #fff; font-size: 1rem; }
footer a { color: #9dbcf5; }
.legal { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid #343c4c; color: #8a93a3; }
