:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #26364a;
  --muted: #64758a;
  --line: #e4eaf1;
  --brand: #3b82c4;
  --brand-dark: #24588f;
  --accent: #3fb8b0;
  --night: #24588f;
  --radius: 22px;
  --shadow: 0 8px 28px rgba(36, 88, 143, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.logo span { white-space: nowrap; line-height: 1.25; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
nav.links { display: flex; gap: 4px; align-items: center; }
nav.links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
nav.links a:hover { color: var(--ink); background: color-mix(in srgb, var(--brand) 10%, transparent); }
nav.links a.cta { background: var(--brand); color: #fff; }
nav.links a.cta:hover { background: var(--brand-dark); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 480px at 90% 0%, #e4eefa 0%, transparent 65%), radial-gradient(700px 400px at 0% 100%, #e6f6f3 0%, transparent 60%), #fbfcfe;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgba(59,130,196,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,196,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 15%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #3b82c4, #3fb8b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(59,130,196,.25); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn.ghost:hover { border-color: var(--brand); }
.hero-art { aspect-ratio: 1; max-width: 380px; margin-inline: auto; width: 100%; }
.steps { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.steps span { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; color: var(--ink); }
.steps span b { color: var(--brand); margin-right: 6px; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section.alt { background: #eff5f9; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head .eyebrow { color: var(--brand); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
section.alt .card { background: #fff; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.icon svg { width: 24px; height: 24px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--muted); font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 0; top: .68em; width: 10px; height: 2px; background: var(--accent); }

/* Tech */
.tech .card { text-align: left; }
.tech .art { height: 110px; border-radius: 12px; background: linear-gradient(135deg, #edf4fb, #e6f6f3); display: grid; place-items: center; margin-bottom: 18px; }
.tech .art svg { width: 84px; height: 84px; }

/* Branchen */
.branche { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.branche:last-child { border-bottom: 1px solid var(--line); }
.branche h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.branche .tag { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.branche h4 { margin: 0 0 6px; font-size: 16px; }
.branche p { margin: 0 0 8px; color: var(--muted); }
.branche ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.branche li { margin: 5px 0; }

/* Referenzen */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--ink); border: 1px solid var(--line); }
.client-list { list-style: none; margin: 14px 0 0; padding: 0; }
.client-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 500; }
.client-list small { display: block; font-weight: 400; color: var(--muted); }
.client-list li::before { display: none; }
.client-list li { padding-left: 0; }

details.more { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.more summary { cursor: pointer; padding: 18px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.more summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
details.more[open] summary::after { content: "–"; }
details.more .inner { padding: 0 24px 24px; }

/* Downloads */
.dl { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); }
.dl:hover { border-color: var(--brand); }
.dl .pdf { flex: none; width: 52px; height: 64px; border-radius: 8px; background: #e5484d; color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: end center; padding-bottom: 8px; }
.dl small { color: var(--muted); display: block; }
.dl strong { display: block; line-height: 1.35; }

/* Kontakt */
.contact { background: linear-gradient(180deg, #eef5ff, #e6f6f3); }
.contact .card { background: #fff; }
.contact .big { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; text-decoration: none; display: block; margin: 6px 0; color: var(--ink); }
.contact .big:hover { color: var(--brand); }
.contact label { display: block; font-size: 14px; margin-top: 4px; color: var(--muted); }

footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); padding: 32px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; margin-left: 20px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--brand); }

/* Legal pages */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { font-size: 38px; letter-spacing: -0.02em; margin: 0 0 24px; }
.legal h2 { margin-top: 32px; font-size: 20px; }
.legal p { color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(28px, 8vw, 44px); overflow-wrap: anywhere; hyphens: auto; }
  .hero-art { max-width: 240px; order: -1; margin: 0; }
  .g3 { grid-template-columns: 1fr; }
  .g2, .cols { grid-template-columns: 1fr; }
  .branche { grid-template-columns: 1fr; gap: 14px; }
  .menu-btn { display: block; }
  nav.links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 14px; }
}

/* Overflow safety for narrow screens */
.grid > *, .cols > * { min-width: 0; }
.dl > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .g3, .g2, .cols { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
}

/* ===== Creative layer ===== */
.hero h1 { font-size: clamp(34px, 5vw, 60px); }
.blueprint {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px rgba(36, 88, 143, .14), 0 0 0 6px rgba(59,130,196,.05);
  overflow: hidden; position: relative; transform: rotate(1.2deg); transition: transform .4s;
  background-image: linear-gradient(rgba(59,130,196,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,196,.07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.blueprint:hover { transform: rotate(0); }
.bp-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); }
.bp-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d5deeb; }
.bp-bar em { margin-left: auto; font: 600 11px ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--muted); }
.blueprint svg { width: 100%; display: block; padding: 8px 12px 0; }
.bp-read { display: flex; gap: 18px; padding: 12px 16px; font: 13px ui-monospace, Menlo, monospace; color: var(--muted); background: rgba(255,255,255,.9); border-top: 1px solid var(--line); }
.bp-read b { color: var(--brand-dark); font-weight: 600; }
.bp-read em { margin-left: auto; font-style: normal; color: var(--accent); }
.scan { animation: scan 5s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateX(20px); } to { transform: translateX(500px); } }
.hero .wrap { grid-template-columns: 1fr 1.05fr; }

/* Facts band */
.facts { background: linear-gradient(120deg, #4d86b8, #5fb3ad); color: #fff; padding: 44px 0; position: relative; overflow: hidden; } color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.facts::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.facts .g4 > div { border-left: 1px solid rgba(255,255,255,.25); padding-left: 20px; }
.facts strong { display: block; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; }
.facts span:not([data-count]) { font-size: 14px; color: #eaf3ff; }

/* Process */
.process { background: var(--bg); }
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: s; }
.steps3::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); opacity: .35; }
.steps3 li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps3 i { font-style: normal; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font: 700 18px ui-monospace, Menlo, monospace; margin-bottom: 16px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.steps3 h3 { margin: 0 0 8px; font-size: 22px; }
.steps3 p { margin: 0; color: var(--muted); }

/* Card hover polish */
.card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.grid > .card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(36, 88, 143, .14); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.icon { background: linear-gradient(135deg, #e8f0fa, #e2f4f1); }
.reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* Tabs */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; max-width: 100%; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; border: 0; background: none; color: var(--muted); padding: 10px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(59,130,196,.3); }
.panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
.panel-art { background: linear-gradient(135deg, #edf4fb, #e6f6f3); border-radius: 18px; padding: 24px; display: grid; place-items: center; min-height: 220px; }
.panel-art svg { width: 100%; max-width: 320px; }
.panel h3 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.panel .tag { color: var(--accent); font-weight: 600; font-size: 14px; margin: 4px 0 14px; }
.panel p { color: var(--muted); margin: 0 0 12px; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--ink); }
.panel li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--accent); }
.rotor { transform-origin: 130px 60px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .blueprint { transform: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .steps3 { grid-template-columns: minmax(0, 1fr); }
  .steps3::before { display: none; }
  .panel { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .scan, .rotor { animation: none; } }

/* Softer, friendlier touches */
.btn { padding: 14px 26px; }
.btn.primary { box-shadow: 0 8px 20px rgba(59,130,196,.22); }
.hero h1, .sec-head h2 { font-weight: 700; }
.blueprint { box-shadow: 0 24px 50px rgba(36,88,143,.12), 0 0 0 6px rgba(59,130,196,.05); }
.facts span:not([data-count]) { color: #f1f8ff; }
.steps3 li, .panel { border-radius: 24px; }

/* ===== Mehr Farbe & Rhythmus ===== */
:root { --amber: #e9a23b; --amber-soft: #fdf0d8; --sand: #fbf4e8; --mint: #e6f4ef; }
body { background: #f2f6f9; }

/* Hero: bunter Hintergrund */
.hero {
  background:
    radial-gradient(520px 320px at 8% 12%, #fdeccf 0%, transparent 70%),
    radial-gradient(700px 420px at 95% 0%, #d6e8fa 0%, transparent 65%),
    radial-gradient(600px 360px at 55% 110%, #d7f1ea 0%, transparent 70%),
    #f7fafc;
}

/* Lineal unter Überschriften */
.sec-head h2::after {
  content: ""; display: block; width: 140px; height: 14px; margin-top: 18px;
  background:
    repeating-linear-gradient(90deg, var(--brand) 0 2px, transparent 2px 28px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--brand) 0 1.5px, transparent 1.5px 7px) 0 100% / 100% 7px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 0 100% / 100% 2px no-repeat;
  opacity: .55;
}

/* Sektionen mit eigenem Farbton */
.process { background: var(--mint); }
#leistungen { background: radial-gradient(#c8d9e8 1.2px, transparent 1.4px) 0 0 / 24px 24px, #f4f8fb; }
section.tech { background: linear-gradient(135deg, #2c5f8c, #3a8196); color: #fff; border: 0; position: relative; overflow: hidden; }
.tech::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 36px 36px; }
.tech .wrap { position: relative; }
.tech .sec-head h2 { color: #fff; }
.tech .sec-head h2::after { background:
    repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 28px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 7px) 0 100% / 100% 7px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat; opacity: .6; }
.tech .sec-head .eyebrow { color: #a8ece0; }
.tech .card { border: 0; }
#branchen { background: var(--sand); }
section#referenzen.alt { background: #e6f0f7; }
#downloads { background: radial-gradient(#c8d9e8 1.2px, transparent 1.4px) 0 0 / 24px 24px, #f4f8fb; }
.contact { background: linear-gradient(130deg, #3f78ab, #4fa7a5); }
.contact .sec-head h2 { color: #fff; }
.contact .sec-head h2::after { background:
    repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 28px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 1.5px, transparent 1.5px 7px) 0 100% / 100% 7px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat; opacity: .6; }
.contact .sec-head p { color: #eaf6ff; }
.contact .sec-head .eyebrow { color: #c9f5ee; }
.contact .card { border: 0; box-shadow: 0 16px 40px rgba(20, 60, 100, .22); }
.contact .card p { color: var(--ink); }
.contact .card a:not(.big) { color: var(--brand-dark); font-weight: 600; }
footer { background: #1e3a56; border: 0; color: #9db4cb; }
footer a { color: #cfe0f0; }
footer a:hover { color: #fff; }

/* Farbige Icons und Akzente je Karte */
#leistungen .card { border-top: 4px solid var(--brand); }
#leistungen .card:nth-child(2) { border-top-color: #3fb8b0; }
#leistungen .card:nth-child(3) { border-top-color: var(--amber); }
#leistungen .card:nth-child(2) .icon { background: #dff4f1; color: #2a9c94; }
#leistungen .card:nth-child(3) .icon { background: var(--amber-soft); color: #c9821c; }
#leistungen .card:nth-child(2) li::before { background: #3fb8b0; }
#leistungen .card:nth-child(3) li::before { background: var(--amber); }
.tech .card:nth-child(2) .art { background: linear-gradient(135deg, #dff4f1, #eaf6ff); }
.tech .card:nth-child(3) .art { background: linear-gradient(135deg, var(--amber-soft), #f7f1e4); }
.tech .card:nth-child(3) .art svg { stroke: #c9821c; }
.steps3 li:nth-child(2) i { background: linear-gradient(135deg, #3fb8b0, #5cc99b); }
.steps3 li:nth-child(3) i { background: linear-gradient(135deg, var(--amber), #f2c16a); }
.steps3 li { border: 0; }
.panel { border: 0; box-shadow: 0 14px 40px rgba(150, 110, 40, .12); }
.panel-art { background: linear-gradient(135deg, #e3f0fb, #e0f4ef); }
.tabs { border: 0; box-shadow: var(--shadow); }
.chip { background: #fff; }
details.more { border: 0; box-shadow: var(--shadow); }
.dl .pdf { background: linear-gradient(135deg, #ef6b73, #e9a23b); }

.tech .card { color: var(--ink); }
.tech .card p { color: var(--muted); }
.tech .sec-head p { color: #e3f1fb; }
