/* ITCoreNet – Stylesheet
   Farben aus dem Logo (#00A6CA, #002F65). Schriften lokal (IBM Plex, SIL OFL 1.1). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --navy: #002f65;        /* Logo-Navy */
  --cyan: #00a6ca;        /* Logo-Cyan: nur Grafiken, nie Text auf Weiß */
  --night: #011e3c;       /* dunkle Flächen */
  --cyan-light: #4fd1e8;  /* Akzente auf Dunkel (9,3:1) */
  --action: #00799a;      /* Links, Knöpfe auf Hell (5,0:1) */
  --text: #0b1f33;
  --muted: #4a5d70;       /* 6,8:1 auf Weiß */
  --muted-dark: #b6c6d6;  /* auf Nachtblau */
  --tint: #f4f7fa;
  --line: #d9e2ec;
  --white: #ffffff;
  --error: #b42318;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; color: var(--text); }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 .5rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
a { color: var(--action); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }
.on-dark :focus-visible { outline-color: var(--cyan-light); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section--line { border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--action); margin: 0 0 .75rem; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Dunkle Flächen mit feinem Raster */
.on-dark { background-color: var(--night); color: var(--white); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .eyebrow, .on-dark .accent { color: var(--cyan-light); }
.on-dark .lead, .on-dark p { color: var(--muted-dark); }
.on-dark a { color: var(--cyan-light); }
.on-dark a:hover { color: var(--white); }
.grid-bg {
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}

/* Sprunglink */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: 6px; }
.skip-link:focus { top: 1rem; color: var(--white); }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem; border-radius: 6px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn--primary { background: var(--action); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--cyan-light); color: var(--night); }
.on-dark a.btn--light { color: var(--night); }
.btn--light:hover, .on-dark a.btn--light:hover { background: var(--white); color: var(--night); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); font-weight: 500; }
.on-dark a.btn--ghost { color: var(--white); }
.btn--ghost:hover, .on-dark a.btn--ghost:hover { border-color: var(--cyan-light); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.more { font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Kopfzeile */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.logo { display: block; flex-shrink: 0; }
.logo img { display: block; height: 34px; width: auto; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 1rem; }
.site-nav a:hover { color: var(--action); }
.site-nav a[aria-current="page"] { color: var(--action); font-weight: 600; }
.lang { font-family: var(--mono); font-size: .875rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.lang a { color: var(--muted); padding: .5rem .25rem; }
.lang [aria-current="true"] { color: var(--navy); font-weight: 600; }
.site-nav .btn { min-height: 44px; padding: .55rem 1.1rem; color: var(--white); }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--navy); cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .9rem 0; }
  .site-nav .btn { display: flex; margin-top: 1rem; }
  .site-nav li.nav-cta { border-top: 0; }
  .lang { padding: .6rem 0; }
}

/* Startseite: Kopfbereich */
.hero { overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero h1 .accent { color: var(--cyan-light); }
.hero .lead { color: var(--muted-dark); margin-bottom: 2.5rem; }
.anim-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.anim-stage canvas, .anim-stage .anim-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.anim-stage .anim-fallback { object-fit: contain; padding: 14% 30%; }
.anim-stage.is-live .anim-fallback { display: none; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .anim-stage { order: -1; max-width: 520px; margin: -1rem auto -1.5rem; }
}

/* Raster und Karten */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--action); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }
.card .icon { width: 28px; height: 28px; color: var(--action); margin-bottom: 1rem; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card { display: flex; flex-direction: column; gap: .75rem; }
.service-card img { border-radius: 8px; display: block; width: 100%; }
.service-card .num, .num { font-family: var(--mono); font-size: .875rem; color: var(--action); }
.service-card p { flex-grow: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: .875rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); }

/* Ablauf */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { position: relative; padding-top: 2.75rem; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--dot, var(--cyan)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--dot, var(--cyan)) 18%, transparent); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 9px; left: 30px; right: -1.5rem; height: 2px; background: var(--line); }
.steps li:nth-child(1) { --dot: var(--cyan-light); }
.steps li:nth-child(2) { --dot: var(--cyan); }
.steps li:nth-child(3) { --dot: #0a6fa8; }
.steps li:nth-child(4) { --dot: var(--navy); }
.steps h3 { margin-top: .25rem; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 2rem 3rem; }
  .steps li:not(:last-child)::after { top: 30px; left: 9px; right: auto; bottom: 0; width: 2px; height: auto; }
}

/* Projektliste */
.plist { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.plist li { display: flex; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); color: var(--white); }
.plist .num { color: var(--cyan-light); padding-top: .15rem; }
.note { font-size: .9375rem; font-style: italic; }

/* Kontaktbox */
.cta-box { border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.75rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.cta-box .mail { font-family: var(--mono); }
.cta-box .actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } }

/* Seitenköpfe der Unterseiten */
.page-head { position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 1; min-height: clamp(18rem, 32vw, 30rem); display: flex; flex-direction: column; justify-content: center; padding-block: 3.5rem; }
.page-head .wrap > * { max-width: 40rem; }
@media (min-width: 961px) { .page-head:not(.page-head--center):not(.page-head--plain) .wrap > * { max-width: min(40rem, calc(50vw - 9rem)); } }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); margin-bottom: 1rem; }
.page-head .banner { position: absolute; top: 0; right: 0; width: 50%; height: 100%; object-fit: contain; object-position: right center; }
.page-head--center .wrap { justify-content: flex-end; }
.page-head--center .banner { width: 100%; object-fit: cover; object-position: center; opacity: .9; }
@media (max-width: 960px) {
  .page-head .banner { display: none; }
}
.page-head--plain .wrap { min-height: 0; padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Über-Seite: Animation als Eröffnung */
.about-stage { padding: 1.5rem 0 2rem; }
.about-stage .anim-stage { max-width: 960px; margin: 0 auto; }

/* Fließtext-Seiten (Leistungen, Projekte, Recht) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.prose address { font-style: normal; margin-bottom: 1rem; }
.service-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.service-block:last-of-type { border-bottom: 0; }
.service-block img { border-radius: 12px; width: 100%; display: block; }
.service-block ul { padding-left: 1.25rem; margin: 0; color: var(--muted); }
.service-block li { margin-bottom: .35rem; }
.service-block p { color: var(--muted); }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; } }

.experience { border-top: 1px solid var(--line); padding-block: 2.25rem; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem 1.5rem; }
.experience .num { font-size: 1rem; padding-top: .3rem; }
.experience h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.experience dl { margin: 0; }
.experience dt { font-weight: 600; margin-top: .75rem; }
.experience dd { margin: .25rem 0 0; color: var(--muted); }
.experience ul { margin: 0; padding-left: 1.25rem; }
.disclaimer { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 2.5rem; max-width: 46rem; }
@media (max-width: 560px) { .experience { grid-template-columns: 1fr; gap: .25rem; } }

/* Formular */
.form { display: grid; gap: 1.25rem; max-width: 40rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1px solid #8a9bb0; border-radius: 6px; padding: .75rem .9rem; min-height: 48px; }
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--action); outline: 3px solid color-mix(in srgb, var(--cyan) 45%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: .9375rem; margin: .4rem 0 0; }
.form-hint { font-size: .9375rem; color: var(--muted); }
.alert { border: 2px solid var(--error); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; max-width: 40rem; }
.alert h2 { font-size: 1.125rem; margin: 0 0 .5rem; color: var(--error); }
.alert ul { margin: 0; padding-left: 1.25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-aside .mail { font-family: var(--mono); }

/* Fußzeile */
.site-footer { font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2.5rem; }
.site-footer .brand { display: flex; align-items: center; gap: .9rem; }
.site-footer .brand img { height: 26px; width: auto; display: block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--muted-dark); }
.site-footer a:hover { color: var(--white); }

/* 404 */
.notfound { display: grid; gap: 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .notfound { grid-template-columns: 1fr; } }

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

@media print {
  .site-header nav, .nav-toggle, .anim-stage canvas, .skip-link { display: none !important; }
  .on-dark { background: none; color: #000; }
}

/* Startseite: Kennzahlen, schwebend über der Kante des Kopfbereichs */
.stats-wrap { position: relative; z-index: 2; margin-top: -3.25rem; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(1, 30, 60, .35); overflow: hidden; }
.stats li { display: flex; align-items: center; gap: 1.1rem; padding: 1.5rem 1.75rem; }
.stats li + li { border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--navy); background: linear-gradient(135deg, var(--navy), var(--action)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; flex-shrink: 0; }
.stat-label { color: var(--muted); font-size: .9688rem; line-height: 1.4; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .stats li { padding: 1.1rem 1.4rem; }
}

/* Kopfbereich: Lichtschein hinter der Animation */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; width: 60vw; max-width: 900px; aspect-ratio: 1; right: -12vw; top: 50%; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(0, 166, 202, .22), rgba(0, 166, 202, 0)); pointer-events: none; }
.hero .wrap { position: relative; padding-bottom: clamp(5.5rem, 10vw, 8rem); }

/* Für wen: Illustration und Situationen */
.who-illu { display: block; width: 100%; max-width: 520px; height: auto; margin-top: 2rem; }
/* IT-Landschaft: Datenpunkte wandern auf den Speichen von außen zur Mitte */
.it-landschaft .il-flow { fill: none; stroke: var(--cyan-light); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0 24; opacity: .9; }
.it-landschaft .il-halo { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .it-landschaft .il-flow { animation: il-flow 1.5s linear infinite; }
  .it-landschaft .il-flow2 { animation-delay: -.25s; } .it-landschaft .il-flow3 { animation-delay: -.5s; }
  .it-landschaft .il-flow4 { animation-delay: -.75s; } .it-landschaft .il-flow5 { animation-delay: -1s; }
  .it-landschaft .il-flow6 { animation-delay: -1.25s; }
  .it-landschaft .il-halo { animation: il-halo 3s ease-in-out infinite; }
}
@keyframes il-flow { to { stroke-dashoffset: -24; } }
@keyframes il-halo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .55; } }
.situations { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.situations li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; font-weight: 500; color: var(--navy); transition: transform .2s ease, box-shadow .2s ease; }
.situations li:hover { transform: translateX(4px); box-shadow: 0 8px 22px -14px rgba(1, 30, 60, .45); }
.situations .icon { width: 26px; height: 26px; color: var(--action); flex-shrink: 0; }
@media (max-width: 860px) { .who-illu { max-width: 420px; margin-inline: auto; } }

/* Karten: Symbol in getönter Fläche, Farbkante beim Überfahren */
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--cyan-light), var(--cyan), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: 0 14px 30px -18px rgba(1, 30, 60, .4); }
.card > .icon { box-sizing: content-box; padding: 11px; border-radius: 10px; background: linear-gradient(135deg, rgba(79, 209, 232, .22), rgba(0, 121, 154, .12)); }

/* Kontaktbox dunkel mit Raster */
.cta-box--dark { border: 0; background-color: var(--night); position: relative; overflow: hidden; }
.cta-box--dark::after { content: ""; position: absolute; width: 420px; aspect-ratio: 1; right: -120px; bottom: -200px; background: radial-gradient(closest-side, rgba(0, 166, 202, .35), rgba(0, 166, 202, 0)); pointer-events: none; }
.cta-box--dark > * { position: relative; z-index: 1; }

/* Startseite: animiertes Piktogramm „IT-Check“ neben den typischen Fragen */
.split-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.check-illu { width: 100%; max-width: 400px; justify-self: end; overflow: visible; }
.check-illu .ci-frame { fill: var(--white); stroke: var(--line); stroke-width: 2; }
.check-illu .ci-screen { fill: var(--tint); }
.check-illu .ci-line, .check-illu .ci-stand { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.check-illu .ci-stand { stroke-width: 3; }
.check-illu .ci-led1 { fill: var(--cyan-light); } .check-illu .ci-led2 { fill: var(--cyan); } .check-illu .ci-led3 { fill: var(--navy); }
.check-illu .ci-bars rect { fill: var(--cyan); opacity: .75; transform-box: fill-box; transform-origin: bottom; }
.check-illu .ci-bars rect:nth-child(2n) { fill: var(--navy); opacity: .85; }
.check-illu .ci-pulse { fill: none; stroke: var(--action); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.check-illu .ci-glass { fill: rgba(79, 209, 232, .14); stroke: var(--navy); stroke-width: 5; }
.check-illu .ci-handle { stroke: var(--navy); stroke-width: 8; stroke-linecap: round; }
.check-illu .ci-lens { transform-box: view-box; }
.check-illu .ci-badge circle { fill: var(--cyan); }
.check-illu .ci-badge path { fill: none; stroke: var(--white); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.check-illu .ci-badge { transform-box: fill-box; transform-origin: center; }
.check-illu .ci-dots circle { fill: var(--cyan-light); opacity: .6; }
.check-illu .ci-dots circle:nth-child(2n) { fill: var(--navy); opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .check-illu .ci-pulse { animation: ci-draw 3.2s ease-in-out infinite; }
  .check-illu .ci-bars rect { animation: ci-bar 3.2s ease-in-out infinite; }
  .check-illu .ci-bars rect:nth-child(2) { animation-delay: .25s; }
  .check-illu .ci-bars rect:nth-child(3) { animation-delay: .5s; }
  .check-illu .ci-bars rect:nth-child(4) { animation-delay: .75s; }
  .check-illu .ci-lens { animation: ci-scan 6.4s ease-in-out infinite; }
  .check-illu .ci-badge { animation: ci-pop 3.2s ease-in-out infinite; }
  .check-illu .ci-led { animation: ci-blink 2.4s ease-in-out infinite; }
  .check-illu .ci-led2 { animation-delay: .4s; } .check-illu .ci-led3 { animation-delay: .8s; }
}
@keyframes ci-draw { 0% { stroke-dashoffset: 100; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes ci-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.6); } }
@keyframes ci-scan { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-150px, 10px); } 50% { transform: translate(-120px, 50px); } 75% { transform: translate(-20px, 40px); } }
@keyframes ci-pop { 0%, 55% { transform: scale(.85); opacity: .5; } 65% { transform: scale(1.12); opacity: 1; } 75%, 100% { transform: scale(1); opacity: 1; } }
@keyframes ci-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 860px) {
  .split-head { grid-template-columns: 1fr; }
  .check-illu { justify-self: center; max-width: 320px; }
}


/* Themen-Kacheln mit Häkchenliste (Startseite, Leistungen) */
.topic-card { display: flex; flex-direction: column; }
.topic-card h3 { margin-bottom: .9rem; }
.ticks { list-style: none; margin: 0 0 1.25rem; padding: 0; flex-grow: 1; }
.ticks li { position: relative; padding: .45rem 0 .45rem 1.6rem; color: var(--muted); font-size: 1rem; line-height: 1.45; border-top: 1px solid var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .9rem; width: 9px; height: 5px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.topic-card .more { margin-top: auto; }
/* Ganze Kachel klickbar: der Link spannt sich über die Karte */
.topic-card .more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.topic-card:has(.more) { cursor: pointer; }
.topic-card:has(.more:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
.topic-card .more:focus-visible { outline: none; }

/* Leistungen: Themen im Detail */
.topic-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.topic-detail:first-of-type { margin-top: 2rem; }
.topic-detail__head .icon { width: 28px; height: 28px; padding: 11px; box-sizing: content-box; border-radius: 10px; color: var(--action); background: linear-gradient(135deg, rgba(79, 209, 232, .22), rgba(0, 121, 154, .12)); margin-bottom: 1rem; }
.topic-detail__head { align-self: start; position: sticky; top: 1.5rem; }
.topic-detail__head h3 { font-size: 1.5rem; }
.topic-detail__head p { color: var(--muted); }
.topic-detail:target .topic-detail__head h3 { color: var(--action); }
.topic-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.topic-list > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.topic-list dt { font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.topic-list dd { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .topic-detail { grid-template-columns: 1fr; } .topic-detail__head { position: static; } }
@media (max-width: 640px) { .topic-list { grid-template-columns: 1fr; } }

/* Sanftes Einblenden beim Scrollen (nur mit JavaScript und ohne reduzierte Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .card.reveal.is-visible:hover { transform: translateY(-2px); }
}

/* Abstands-Hilfsklassen (statt Inline-Stilen, wegen Content-Security-Policy) */
.mt-s { margin-top: 1rem; }
.mt-l { margin-top: 2.5rem; }
.cta-box--white { background: var(--white); }

/* Markierung offener Punkte in der Vorschau (Veröffentlichungs-Build bricht ab, solange es sie gibt) */
mark.todo { background: #fff4d6; color: #5c4400; padding: .1rem .3rem; border-radius: 3px; }
