/* software.house GmbH – Designsystem (Entwurf) */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* CI-Farben */
  --sh-red: #e20718;
  --sh-red-dark: #b30513;
  --sh-grey-dark: #6d6d6d;
  --sh-grey-light: #d6d6d6;
  --sh-black: #000000;
  --sh-white: #ffffff;

  /* abgeleitete Flächen */
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --ink: #111111;
  --ink-muted: #555555;   /* auf Weiß AA-konform */
  --line: var(--sh-grey-light);

  --font-display: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --text-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --text-sm: clamp(0.9rem, 0.87rem + 0.15vw, 0.97rem);
  --text-base: clamp(1.02rem, 0.98rem + 0.2vw, 1.13rem);
  --text-lg: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  --text-2xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --text-hero: clamp(2.7rem, 1.6rem + 4.6vw, 5.6rem);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--sh-red); color: #fff; }
:focus-visible { outline: 3px solid var(--sh-red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--sh-black); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--sh-red); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: .55rem; }
.brand img { width: 190px; height: auto; }
@media (max-width: 560px) { .brand img { width: 150px; } }
.brand .dot { color: var(--sh-red); }
.nav { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); align-items: center; }
.nav a { font-size: var(--text-sm); text-decoration: none; color: var(--ink); position: relative; padding: .4rem 0; font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sh-red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .6rem 1.1rem; color: #fff; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); text-decoration: none; padding: .9rem 1.5rem; border-radius: var(--radius);
  border: 2px solid var(--sh-red); background: var(--sh-red); color: #fff; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--sh-red-dark); border-color: var(--sh-red-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.035em; line-height: 1.0; }
.hero h1 .red { color: var(--sh-red); }
.hero .lead { font-size: var(--text-lg); color: var(--ink-muted); max-width: 40ch; margin: 1.6rem 0 2.2rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.blueprint { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: end; }
.blueprint svg { width: 100%; height: 100%; overflow: visible; }
.bp-grid line { stroke: var(--line); stroke-width: 1; }
.bp-dim { stroke: var(--sh-grey-dark); stroke-width: 1; fill: none; }
.bp-label { font-family: var(--font-mono); font-size: 11px; fill: var(--sh-grey-dark); letter-spacing: .04em; }
.bp-label.red { fill: var(--sh-red); }
.bp-house { stroke: var(--sh-black); stroke-width: 6; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.bp-roof { stroke: var(--sh-red); stroke-width: 9; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.bp-smoke { stroke: var(--sh-grey-light); stroke-width: 5; fill: none; stroke-linecap: round; }
.bp-code { font-family: var(--font-mono); font-size: 12.5px; fill: var(--ink); }
.bp-code .k { fill: var(--sh-red); }
.bp-code .c { fill: var(--sh-grey-dark); }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.is-ready .draw { animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
.fade { opacity: 0; }
.is-ready .fade { animation: fade .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.smoke-anim { animation: smoke 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes smoke { 0%,100% { transform: translateX(0); opacity: .9; } 50% { transform: translateX(6px); opacity: .55; } }

.hero-foot { display: flex; justify-content: flex-start; align-items: flex-end; gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.fact strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.fact span { font-size: var(--text-xs); color: var(--ink-muted); font-family: var(--font-mono); letter-spacing: .03em; }
.ci-logo { width: clamp(180px, 20vw, 260px); flex-shrink: 0; }

/* ---------- Sektionen ---------- */
section { position: relative; }
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.section-head h2 { font-size: var(--text-2xl); }
.section-head p { color: var(--ink-muted); max-width: 58ch; margin: 0; }
.num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--sh-red); letter-spacing: .06em; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.service { padding: 2rem 2rem 2.2rem 0; border-bottom: 1px solid var(--line); position: relative; }
.service:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.service svg { width: 40px; height: 40px; margin-bottom: 1.4rem; color: var(--ink); }
.service h3 { font-size: var(--text-lg); margin: .5rem 0 .6rem; letter-spacing: -0.01em; }
.service p { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; line-height: 1.55; }
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--sh-red); transition: width .5s var(--ease); }
.service:not(:nth-child(3n+1))::before { left: 0; }
.service:hover::before { width: 100%; }
.service .ico-accent { color: var(--sh-red); }

/* Kundengruppen */
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.client { border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: clamp(1.8rem, 3vw, 2.6rem); background: #fff; transition: border-top-color .3s; }
.client:hover { border-top-color: var(--sh-red); }
.client svg { width: 48px; height: 48px; margin-bottom: 1.4rem; }
.client .ico-accent { color: var(--sh-red); stroke: var(--sh-red); }
.client h3 { font-size: var(--text-xl); margin: .5rem 0 1.2rem; }
.client ul { list-style: none; margin: 0; padding: 0; }
.client li { padding: .7rem 0; border-top: 1px solid var(--line); font-size: var(--text-base); }
.client li::before { content: "–"; color: var(--sh-red); margin-right: .7rem; }
@media (max-width: 760px) { .clients { grid-template-columns: 1fr; } }

/* Berührungspunkte */
.touch { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.touch h2 { font-size: var(--text-2xl); position: sticky; top: 110px; }
.touch-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.touch-list li { counter-increment: t; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.touch-list li:first-child { border-top: 1px solid var(--line); }
.touch-list li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--sh-red); padding-top: .2rem; }
.touch-list strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; margin-bottom: .2rem; }
.touch-list span { color: var(--ink-muted); font-size: var(--text-sm); }
.touch-note { margin-top: 2rem; color: var(--ink-muted); font-size: var(--text-sm); }

/* Statement */
.statement { background: var(--sh-black); color: #fff; padding: var(--section) 0; overflow: hidden; }
.statement .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.statement .bar { width: 6px; background: var(--sh-red); }
.statement blockquote { margin: 0; }
.statement blockquote p { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; max-width: 22ch; margin: 0; }
.statement blockquote p em { font-style: normal; color: var(--sh-red); }
.statement .sub { color: #bdbdbd; max-width: 60ch; margin-top: 2rem; font-size: var(--text-base); }
.statement cite { display: block; margin-top: 1.5rem; font-style: normal; font-family: var(--font-mono); font-size: var(--text-xs); color: #a8a8a8; letter-spacing: .06em; text-transform: uppercase; }

/* Arbeitsweise */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--line); }
.step { position: relative; padding-right: 1rem; }
.step .marker { width: 39px; height: 39px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; position: relative; margin-bottom: 1.5rem; transition: background .3s, color .3s, border-color .3s; }
.step:hover .marker { background: var(--sh-red); border-color: var(--sh-red); color: #fff; }
.step h3 { font-size: var(--text-lg); margin-bottom: .6rem; letter-spacing: -0.01em; }
.step p { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; }

/* Datenschutz */
.privacy { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.privacy-intro { position: sticky; top: 110px; }
.privacy-intro h2 { font-size: var(--text-2xl); margin-bottom: 1.5rem; }
.privacy-intro p { color: var(--ink-muted); max-width: 46ch; }
.privacy-mark { width: 96px; margin-top: 2rem; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pv { background: #fff; padding: 2rem 1.8rem; position: relative; }
.pv::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--sh-red); transition: height .45s var(--ease); }
.pv:hover::before { height: 100%; }
.pv h3 { font-size: var(--text-lg); margin: .6rem 0 .6rem; letter-spacing: -0.01em; }
.pv p { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; line-height: 1.55; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } .privacy-intro { position: static; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* KI */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split h2 { font-size: var(--text-2xl); margin-bottom: 1.5rem; }
.split p { color: var(--ink-muted); }
.terminal { background: #0d0d0d; color: #e8e8e8; border-radius: 8px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.terminal-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #262626; align-items: center; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.terminal-bar i:first-child { background: var(--sh-red); }
.terminal-bar b { margin-left: auto; font-weight: 400; font-size: 11px; color: #8a8a8a; }
.terminal pre { margin: 0; padding: 1.3rem 1.4rem 1.6rem; white-space: pre-wrap; min-height: 15.5rem; }
.terminal .p { color: var(--sh-red); }
.terminal .m { color: #8f8f8f; }
.terminal .ok { color: #ffffff; font-weight: 600; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--sh-red); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Kontakt-CTA */
.cta { padding: var(--section) 0; border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cta h2 { font-size: var(--text-2xl); margin-bottom: 1.5rem; }
.cta p { color: var(--ink-muted); max-width: 52ch; }
.signature { margin-top: 2rem; font-family: var(--font-display); font-weight: 600; }
.signature span { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--ink-muted); }
.contact-card { border: 1px solid var(--ink); padding: 2rem; border-radius: var(--radius); }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.contact-card dd { margin: .15rem 0 0; font-size: var(--text-base); }
.contact-card dd a { text-decoration: none; border-bottom: 1px solid var(--sh-grey-light); transition: border-color .2s; }
.contact-card dd a:hover { border-color: var(--sh-red); }
.contact-card .btn { margin-top: 1.8rem; width: 100%; justify-content: center; }
.cup { width: 44px; height: 44px; margin-bottom: 1.2rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.site-footer h4 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 500; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sh-red); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.footer-bottom small { color: var(--ink-muted); font-size: var(--text-xs); }
.footer-logo { width: clamp(200px, 22vw, 280px); }


/* ---------- Unterseiten ---------- */
.page-hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero .lead { font-size: var(--text-lg); color: var(--ink-muted); max-width: 52ch; margin: 1.4rem 0 0; line-height: 1.5; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.card-link { display: inline-flex; gap: .4rem; margin-top: 1.1rem; font-size: var(--text-sm); font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--sh-red); padding-bottom: 2px; }
.card-link:hover { color: var(--sh-red); }
.contact-card .card-link { display: flex; width: max-content; }
.btn--sm { padding: .55rem 1rem; font-size: var(--text-xs); }

/* Lageplan */
.map-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.map-figure { margin: 0; }
.map-frame { position: relative; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 1 / 1; }
.map-frame img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.map-missing { display: none; position: absolute; inset: 0; place-items: center; align-content: center; gap: .8rem; color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.map-missing svg { width: 56px; height: 56px; color: var(--ink); }
.map-frame.is-missing img { display: none; }
.map-frame.is-missing .map-missing { display: grid; }
.map-figure figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); }
.card-note { font-size: var(--text-xs); color: var(--ink-muted); margin: 1.2rem 0 0; line-height: 1.5; }

.travel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.travel-item { background: #fff; padding: clamp(1.6rem, 3vw, 2.4rem); }
.travel-item svg { width: 40px; height: 40px; margin-bottom: 1.2rem; }
.travel-item .ico-accent { color: var(--sh-red); stroke: var(--sh-red); }
.travel-item h3 { font-size: var(--text-lg); margin-bottom: .7rem; letter-spacing: -0.01em; }
.travel-item p { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; line-height: 1.6; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; padding-top: 2.6rem; }

/* Rechtstexte */
.legal { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.legal-aside { position: sticky; top: 110px; }
.legal .prose { order: 2; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-lg); font-weight: 700; margin: 2.8rem 0 .9rem; letter-spacing: -0.01em; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #2a2a2a; }
.prose a { color: var(--ink); text-decoration-color: var(--sh-red); text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--sh-red); }
.facts-table { border-top: 1px solid var(--ink); }
.facts-table > div { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts-table span { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); padding-top: .25rem; }
.facts-table p { margin: 0; }
.address-block { border-left: 3px solid var(--sh-red); padding-left: 1.1rem; }
.checks { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.checks li { position: relative; padding: .9rem 1rem .9rem 2.8rem; background: var(--bg-soft); border-radius: var(--radius); margin: 0; }
.checks li::before { content: ""; position: absolute; left: 1rem; top: 1.25rem; width: 12px; height: 7px; border-left: 2.5px solid var(--sh-red); border-bottom: 2.5px solid var(--sh-red); transform: rotate(-45deg); }
.callout { border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 1.4rem 0; }
.callout strong { display: block; margin-bottom: .4rem; font-family: var(--font-display); }
.callout p { margin: 0; }
.stand { margin-top: 3rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); }
.notice { background: var(--sh-black); color: #fff; border-radius: var(--radius); padding: 1.6rem; border-top: 4px solid var(--sh-red); }
.notice strong { font-family: var(--font-display); font-size: var(--text-lg); display: block; margin-bottom: .6rem; }
.notice p { color: #cfcfcf; font-size: var(--text-sm); margin: 0; }
.notice .card-link { color: #fff; }
.toc span { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.toc ol { list-style: none; padding: 0; margin: .9rem 0 0; border-left: 1px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; font-size: var(--text-sm); text-decoration: none; color: var(--ink-muted); border-left: 2px solid transparent; margin-left: -1px; }
.toc a::before { content: counter(toc) ". "; font-family: var(--font-mono); font-size: .8em; }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--sh-red); }
mark.todo { background: #fff2b3; color: #000; padding: 0 .25em; border-radius: 2px; outline: 1px dashed #b38f00; }

/* Fußzeile: Datenschutz-Hinweis */
.privacy-tag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink); margin-bottom: .6rem; }
.privacy-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sh-red); }
.footer-bottom > div { display: flex; flex-direction: column; }

@media (max-width: 1020px) { .legal { grid-template-columns: 240px 1fr; } }
@media (max-width: 860px) {
  .map-grid, .legal { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
  .legal .prose { order: 0; }
  .toc { display: none; }
  .cta-actions { padding-top: 0; }
}
@media (max-width: 560px) {
  .facts-table > div { grid-template-columns: 1fr; gap: .3rem; }
}


/* Mission & Softwareentwicklung */
.page-hero h1 .red { color: var(--sh-red); }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.subnav a { font-size: var(--text-xs); font-family: var(--font-mono); text-decoration: none; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); transition: border-color .2s, color .2s; }
.subnav a:hover { border-color: var(--sh-red); color: var(--sh-red); }
.qa { display: grid; }
.qa-item { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1rem, 3vw, 3rem); padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.qa-item:first-child { border-top: 1px solid var(--ink); }
.qa-item .num { font-size: var(--text-sm); padding-top: .35rem; }
.qa-item h2 { font-size: var(--text-xl); letter-spacing: -0.02em; }
.qa-item p { color: #2a2a2a; }
.qa-item div > p:last-child { margin-bottom: 0; }
.pull { margin: 1.6rem 0; padding: 1.4rem 0 1.4rem 1.4rem; border-left: 4px solid var(--sh-red); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.aside-note { font-size: var(--text-sm); color: var(--ink-muted) !important; }
.timeline { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 1.6rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.timeline li.now { color: var(--sh-red); font-weight: 600; }
.timeline li.now::before { background: var(--sh-red); border-color: var(--sh-red); }
.cta--soft { background: var(--bg-soft); border-top: 0; }
.split--top { align-items: start; }
.split p { color: #2a2a2a; }
.definition { margin: 2rem 0 0; padding: 1.6rem; background: var(--bg-soft); border-radius: var(--radius); border-top: 3px solid var(--ink); }
.definition blockquote { margin: 0; font-size: var(--text-base); line-height: 1.6; font-style: italic; }
.definition figcaption { margin-top: .9rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-muted); }
.definition a { color: inherit; }
.services-note { margin-top: 1.5rem; font-size: var(--text-xs); font-family: var(--font-mono); color: var(--ink-muted); }
.tool-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.toolbox { width: 100%; max-width: 240px; justify-self: center; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit { border-top: 3px solid var(--sh-red); padding-top: 1.4rem; }
.benefit strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); letter-spacing: -0.02em; margin-bottom: .6rem; }
.benefit p { color: var(--ink-muted); margin: 0; }
.card-link--light { color: #fff; margin-top: 1.8rem; }
.card-link--light:hover { color: #ff5a66; }
.section .card-link.reveal { margin-top: 2rem; }
@media (max-width: 860px) {
  .qa-item { grid-template-columns: 1fr; gap: .8rem; }
  .tool-grid, .benefits { grid-template-columns: 1fr; }
  .toolbox { max-width: 160px; justify-self: start; }
  .timeline li { font-size: 11px; }
}

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; } .fade, .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service:not(:nth-child(3n+1)) { padding: 2rem 1.5rem 2.2rem 0; border-left: 0; }
  .service:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .steps::before { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 84px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 1.5rem var(--gutter) 2rem; gap: 1rem; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
  .nav.open { transform: none; }
  .nav a { font-size: var(--text-lg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .section-head, .touch, .split, .cta-grid { grid-template-columns: 1fr; }
  .blueprint { justify-self: center; max-width: 380px; margin-top: 1rem; }
  .touch h2 { position: static; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .ci-logo { align-self: flex-end; }
}
@media (max-width: 560px) {
  .services, .steps, .footer-grid, .travel { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n), .service:not(:nth-child(3n+1)) { padding: 1.8rem 0; border-left: 0; }
  .statement .wrap { grid-template-columns: 1fr; }
  .statement .bar { width: 48px; height: 6px; }
  .footer-bottom { flex-direction: column; align-items: flex-end; }
  .footer-bottom small { align-self: flex-start; }
}

/* Umbruch-Schutz für lange deutsche Komposita */
.statement .wrap > *, .tool-grid > *, .qa-item > *, .split > *, .section-head > * { min-width: 0; }
h1, h2, h3, .statement blockquote p { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
