/* ==========================================================================
   www.jerocom.de – zentrales Stylesheet
   Aufbau: Tokens · Basis · Layout · Header · Buttons · Sektionen ·
           Komponenten · Formular · Footer · Themen · Utilities
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --bg-2: #0d0d0d;
  --surface: #181818;
  --surface-2: #222;
  --line: rgba(255, 255, 255, .1);
  --text: #fff;
  --muted: #b3b3b3;
  --muted-2: #8a8a8a;
  --accent: #79fa4f;          /* JC-Grün */
  --accent-ink: #000;         /* Text auf Akzentfläche */
  --accent-soft: rgba(121, 250, 79, .14);
  --blue: #2070b7;            /* JC Sec */
  --radius: 4px;
  --radius-lg: 10px;
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, .prose a:hover, .link:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 700; color: var(--text); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.01em; }
h4 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-2); }
.center { text-align: center; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p, .lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.section-head p strong, .lead strong { color: var(--text); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }

/* Grüne Trennlinie zwischen Abschnitten */
.divider { width: min(260px, 50%); height: 1px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--accent), transparent); border: 0; opacity: .8; }
.divider-wide { width: min(520px, 80%); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(24, 24, 24, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius);
  font: 600 .9rem/1 var(--font); color: var(--text);
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-toggle:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.has-menu { position: relative; }
.has-menu.open .nav-toggle::after { transform: translateY(1px) rotate(-135deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px);
  min-width: 250px; padding: 8px; list-style: none; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-menu.open .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (hover: hover) and (min-width: 961px) {
  .has-menu:hover .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .has-menu::before { content: ""; position: absolute; inset: 100% 0 -12px 0; }
}
.menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: .92rem; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.menu a small { display: block; color: var(--muted-2); font-size: .78rem; font-weight: 400; margin-top: 2px; }
.nav-phone { color: var(--accent); font-size: .9rem; font-weight: 500; padding: 8px 12px; white-space: nowrap; }
.nav-phone:hover { text-decoration: underline; }
.nav-tv { display: inline-flex; padding: 6px; }
.nav-tv img { width: 22px; height: 22px; border-radius: 4px; }
.lang { display: inline-flex; gap: 2px; margin-left: 4px; font-size: .8rem; font-weight: 700; }
.lang a { padding: 6px 8px; border-radius: var(--radius); color: var(--muted-2); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.lang a:hover { color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--text); cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter) 40px; overflow-y: auto;
    background: var(--bg); border-top: 1px solid var(--line);
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link, .nav-toggle { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; background: none; padding: 4px 0 12px 12px; min-width: 0; }
  .has-menu.open .menu { display: block; transform: none; }
  .has-menu:focus-within .menu { transform: none; }
  .nav-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 20px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 961px) { .nav-extra { display: contents; } }

main { display: block; }
.page-offset { padding-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius);
  font: 700 .9rem/1.2 var(--font); letter-spacing: .005em;
  border: 1.5px solid var(--accent); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
  text-decoration: none !important;
}
.btn::after { content: "↗"; font-weight: 700; transition: transform .2s; }
.btn.no-arrow::after { content: none; }
.btn:hover::after { transform: translate(2px, -2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 0 24px rgba(121, 250, 79, .45); }
.btn-outline { background: rgba(0, 0, 0, .35); color: var(--text); }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn-sm { padding: 8px 12px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* Grüne Pillen, z. B. "→ On-Premise-KI" */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-block; padding: 9px 14px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .85rem; text-decoration: none !important; transition: box-shadow .2s; }
.chip:hover { box-shadow: 0 0 20px rgba(121, 250, 79, .5); }
.chip-outline { background: transparent; color: var(--text); border: 1px solid var(--accent); }

/* Kleines Label über der Überschrift, z. B. "J|C JeroCom" */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); background: rgba(0, 0, 0, .45); font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem; }
.badge img { height: 14px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  background: #000;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%), linear-gradient(0deg, #000 0%, transparent 30%); }
.hero-content { max-width: 720px; }
.hero h1 { margin-bottom: .4em; }
.hero p { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #e6e6e6; max-width: 560px; margin-bottom: 1.6em; }
.hero-center { text-align: center; }
.hero-center .hero-content { margin-inline: auto; }
.hero-center .hero p { margin-inline: auto; }
.hero-center .btn-row { justify-content: center; }
.hero-sm { min-height: 60vh; }
.hero-xs { min-height: 0; padding-bottom: 48px; }

/* Einfacher Seitenkopf ohne Bild (Rechtstexte, Blog-Beiträge) */
.page-head { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at top, rgba(121, 250, 79, .08), transparent 60%); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.page-head .meta { color: var(--muted); font-size: .95rem; }

/* ---------- Logo-Laufband ---------- */
.logos-title { text-align: center; color: var(--muted); font-weight: 600; margin: 0 0 18px; }
.logo-strip { background: #fff; overflow: hidden; padding: 18px 0; box-shadow: 0 0 40px rgba(255, 255, 255, .25); }
.logo-track { display: flex; align-items: center; gap: clamp(40px, 6vw, 80px); width: max-content; animation: marquee 40s linear infinite; }
.logo-track img { height: 44px; width: auto; max-width: 170px; object-fit: contain; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.5vw, 32px); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-link { transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: var(--accent); transform: translateY(-3px); }

/* Projekt-Kachel: Bild mit Titel oben und "Mehr erfahren"-Leiste unten */
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #111; isolation: isolate; text-decoration: none !important; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; filter: grayscale(.2); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 45%, rgba(0,0,0,.6)); }
.tile:hover img { transform: scale(1.05); }
.tile-title { padding: 16px 18px 0; text-align: center; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 800; line-height: 1.2; }
.tile-kicker { display: block; font-size: .75rem; font-weight: 600; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.tile-more { margin: 6px; padding: 10px; text-align: center; font-weight: 700; font-size: .9rem; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.35); border-radius: var(--radius); transition: background .2s, color .2s; }
.tile-more::after { content: " ↗"; }
.tile:hover .tile-more { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile-wide { aspect-ratio: 16 / 7; }

/* Leistungs-Liste: zentriert, durch grüne Linien getrennt */
.stack { display: grid; gap: 0; max-width: 720px; margin: 0 auto; text-align: center; }
.stack-item { padding: 32px 0; }
.stack-item + .stack-item { border-top: 0; position: relative; }
.stack-item + .stack-item::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100px; height: 1px; background: var(--accent); opacity: .7; }
.stack-item p { color: var(--muted); }

/* Feature-Liste mit Haken */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2379fa4f' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Bild + Text nebeneinander */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Bildband (z. B. Teamfotos) */
.photo-band { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); }
.photo-band img { width: 100%; height: clamp(180px, 22vw, 320px); object-fit: cover; }
@media (max-width: 640px) { .photo-band { grid-template-columns: 1fr; } }

/* Partner-/Zertifikats-Karten */
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.partner .partner-logo { background: #fff; border-radius: var(--radius); padding: 12px; display: flex; align-items: center; justify-content: center; height: 130px; }
.partner .partner-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.partner p { margin: 12px 0 2px; color: var(--muted); font-size: .9rem; }

/* Personen */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.person:nth-child(even) .person-photo { order: 2; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.person h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .2em; }
.person .role { color: var(--muted-2); font-weight: 600; margin-bottom: 1.2em; }
.person p { color: var(--muted); }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person:nth-child(even) .person-photo { order: 0; } .person-photo img { aspect-ratio: 1; } }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.team-grid figure { margin: 0; }
.team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.team-grid figcaption { padding-top: 12px; }
.team-grid figcaption strong { display: block; font-size: 1rem; line-height: 1.25; }
.team-grid figcaption span { color: var(--muted-2); font-size: .85rem; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kontakt-Person (kleine Karte über dem Formular) */
.contact-person { display: flex; align-items: center; gap: 16px; background: rgba(13, 13, 13, .85); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.contact-person img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); }
.contact-person strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.contact-person span { color: var(--muted); font-size: .9rem; }

/* Akkordeon (details/summary) */
.accordion { display: grid; gap: 8px; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; width: 1em; transition: transform .2s; }
.accordion details[open] summary::before { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 20px 18px 52px; color: var(--muted); }

/* Blog-Karten */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; text-decoration: none !important; }
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .post-body { padding: 18px 20px 22px; }
.post-card .post-cat { color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.post-card h3 { font-size: 1.12rem; margin: 8px 0 0; line-height: 1.3; }

/* Standorte */
.location { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.location img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.location .loc-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.location address { font-style: normal; color: var(--muted); margin-bottom: 12px; }
.location .btn { align-self: flex-start; margin-top: auto; }

/* Fließtext (Rechtstexte, Blog) */
.prose { max-width: var(--wrap-narrow); margin-inline: auto; color: #d9d9d9; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2em; color: var(--text); }
.prose h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-top: 1.6em; color: var(--text); }
.prose h4 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-lg); margin: 2em auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { color: var(--muted-2); font-size: .9rem; margin-top: -1.2em; text-align: center; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text); font-style: italic; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.back-link { display: inline-flex; gap: 8px; color: var(--accent); font-weight: 600; margin-bottom: 1.5rem; }
.back-link::before { content: "←"; }

/* ---------- Kontakt-Bereich & Formular ---------- */
.contact { position: relative; isolation: isolate; padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .35); }
.contact-panel { max-width: 720px; margin: 0 auto; }
.contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.contact-tile { display: block; background: rgba(13, 13, 13, .88); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none !important; transition: border-color .2s; }
.contact-tile:hover { border-color: var(--accent); }
.contact-tile span { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.contact-tile span::before { content: ""; width: 16px; height: 16px; background: var(--accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.contact-tile.mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2z M2 5l10 8 10-8' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.contact-tile.phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1z'/%3E%3C/svg%3E"); }
.contact-tile strong { display: block; font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 4px; }
@media (max-width: 560px) { .contact-tiles { grid-template-columns: 1fr; } }

.form { background: rgba(13, 13, 13, .9); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.5vw, 24px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border-radius: var(--radius);
  background: #1c1c1c; border: 1px solid #2c2c2c; color: var(--text);
  font: 400 .95rem/1.4 var(--font);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f6f6f; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); background: #222; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 4px; }
.form-status { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); font-size: .92rem; display: none; }
.form-status.ok { display: block; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); }
.form-status.err { display: block; background: rgba(255, 80, 80, .12); border: 1px solid #ff6b6b; color: #ffd6d6; }
.form.sending .btn { opacity: .6; pointer-events: none; }

/* Whitepaper-Box */
.whitepaper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 40px); }
.whitepaper img { border-radius: var(--radius); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input[type=email] { flex: 1 1 220px; padding: 11px 12px; border-radius: var(--radius); background: #1c1c1c; border: 1px solid #2c2c2c; color: var(--text); font: inherit; }
.inline-form input[type=email]:focus { outline: 0; border-color: var(--accent); }
@media (max-width: 760px) { .whitepaper { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid rgba(121, 250, 79, .35); padding: 56px 0 40px; background: #000; overflow: hidden; }
.footer-glow { position: absolute; left: -2%; top: -6px; width: min(520px, 55%); pointer-events: none; mix-blend-mode: screen; z-index: 0; }
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto; gap: 32px; align-items: start; }
.footer-brand { padding-top: 64px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 12px; }
.footer-brand small { color: var(--muted-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-col h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; font-weight: 700; }
.footer-col a { font-size: .9rem; color: #e0e0e0; }
.footer-col a:hover { color: var(--accent); }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; font-weight: 800; font-size: .85rem; }
.footer-social a:hover { background: var(--accent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; padding-top: 48px; } }

/* ---------- Themen ---------- */
/* JC Sec: blaue Untermarke */
.theme-jcsec { --accent: #3a8fe0; --accent-ink: #fff; --accent-soft: rgba(58, 143, 224, .16); }
.theme-jcsec .btn-primary:hover { box-shadow: 0 0 24px rgba(58, 143, 224, .5); }
.theme-jcsec .chip:hover { box-shadow: 0 0 20px rgba(58, 143, 224, .55); }
.theme-jcsec .page-head { background: radial-gradient(ellipse at top, rgba(58, 143, 224, .14), transparent 60%); }
.theme-jcsec .site-footer { border-top-color: rgba(58, 143, 224, .45); }
.theme-jcsec .footer-glow { filter: hue-rotate(95deg); }

/* ---------- Animation beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.rounded { border-radius: var(--radius-lg); }
.max-640 { max-width: 640px; margin-inline: auto; }
.max-820 { max-width: 820px; margin-inline: auto; }
.subhead { font-size: 1.15rem !important; font-weight: 600; letter-spacing: 0; }

/* ==========================================================================
   Seiten-spezifische Komponenten
   ========================================================================== */

/* Fork A: Leistungsseiten (solutions, ai, reliability-of-ai, cloud, managed-service, softwareentwicklung) */

/* Mosaik der Leistungen (solutions) */
.a-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.a-mosaic-col { display: grid; gap: 8px; }
.a-mosaic-col:nth-child(odd) { margin-top: 60px; }
.a-mosaic .tile { aspect-ratio: 1 / 1; }
.a-mosaic .tile img { filter: grayscale(1); }
.a-mosaic .tile:hover img { filter: grayscale(.3); }
.a-mosaic .a-tall { aspect-ratio: 4 / 5; }
.a-logo-block { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #000; border-radius: var(--radius); border: 1px solid var(--line); }
.a-logo-block img { width: 55%; height: auto; }
@media (max-width: 760px) {
  .a-mosaic { grid-template-columns: 1fr 1fr; }
  .a-mosaic-col { display: contents; }
  .a-logo-block { display: none; }
}

/* Intro-Karte mit Schlagworten (solutions) */
.a-intro { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.a-intro p { color: var(--muted); }
.a-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.a-tags li { background: var(--surface-2); border-radius: var(--radius); padding: 7px 12px; font-size: .82rem; }

/* Textbox auf Bild (cloud, managed-service) */
.a-media-box { position: relative; isolation: isolate; max-width: 820px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.a-media-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.a-media-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.55) 60%, rgba(0,0,0,.25)); }
.a-media-box .a-media-text { padding: clamp(24px, 4vw, 48px); padding-bottom: clamp(120px, 18vw, 220px); text-align: center; color: #e6e6e6; }
.a-media-box.a-text-left .a-media-text { text-align: left; padding-top: clamp(80px, 12vw, 140px); padding-bottom: clamp(24px, 4vw, 40px); }

/* Zentrierter Text-Block mit Bild daneben (softwareentwicklung DevOps) */
.a-devops h3 { color: var(--accent); }
.a-devops p { color: var(--muted); }

/* Kennzahlen mit Ring (reliability) */
.a-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); text-align: center; max-width: 960px; margin: 0 auto; }
.a-stat p { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.a-stat p strong { color: var(--text); }
.a-stat .a-src { font-style: italic; font-size: .85rem; color: var(--muted-2); }
.a-ring { --p: 50; width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 79%), conic-gradient(var(--accent) calc(var(--p) * 1%), #1f1f1f 0); }
.a-ring span { font-weight: 800; font-size: 1.6rem; }
.a-big { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 900; height: 110px; display: flex; align-items: center; justify-content: center; white-space: nowrap; margin-bottom: 16px; letter-spacing: -.03em; }
@media (max-width: 760px) { .a-stats { grid-template-columns: 1fr; } }

/* Mehrwert-Karten mit Icon */
.a-value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); text-align: center; }
.a-value .a-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.a-value .a-icon svg { width: 24px; height: 24px; }
.a-value h3 { color: var(--accent); }
.a-value p { color: var(--muted); margin: 0; }

/* Schritte 1–4 */
.a-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.a-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.a-step img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.a-step p { padding: 14px 16px 18px; margin: 0; color: var(--muted); font-size: .95rem; }
.a-step p strong { color: var(--text); display: block; margin-bottom: 4px; }
@media (max-width: 960px) { .a-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .a-steps { grid-template-columns: 1fr; } .a-step img { aspect-ratio: 2 / 1; } }

/* Hinweis unter Kennzahlen */
.a-cta-note { text-align: center; margin-top: clamp(32px, 5vw, 56px); }
.a-cta-note p { font-weight: 700; }

/* Whitepaper-Bild */
.a-wp-media { text-align: center; }
.a-wp-media img { max-height: 340px; width: auto; margin: 0 auto 12px; }
.a-wp-media h3 { margin-bottom: .25em; }
.a-wp-media p { color: var(--muted); margin: 0; }
.a-privacy { font-size: .8rem; color: var(--muted-2); margin: 10px 0 0; }
.h3-size { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* Fork B: JC Sec, Über uns, Karriere, Rechtstexte, Danke, 404 */

/* Bildkarte (Leistungen JC Sec, Mehrwert) */
.b-imgcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.b-imgcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.b-imgcard .b-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.b-imgcard h3 { font-size: 1.1rem; margin: 0; }
.b-imgcard p { color: var(--muted); font-size: .95rem; margin: 0; }
.b-imgcard .btn { align-self: flex-start; margin-top: auto; }
.b-imgcard.b-center { text-align: center; }
.b-imgcard.b-center h3 { color: var(--accent); }
.b-grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.b-grid-5 > * { grid-column: span 2; }
.b-grid-5 > :nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 960px) { .b-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-grid-5 > *, .b-grid-5 > :nth-child(4) { grid-column: auto; } }
@media (max-width: 560px) { .b-grid-5 { grid-template-columns: 1fr; } }
.b-imgcard h3 { hyphens: auto; overflow-wrap: anywhere; }

/* Rechtliche Links der JCSec GmbH über dem Footer */
.b-jcsec-legal { border-top: 1px solid var(--line); padding: 18px 0; font-size: .9rem; color: var(--muted); }
.b-jcsec-legal .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.b-jcsec-legal a { color: var(--text); }
.b-jcsec-legal a:hover { color: var(--accent); }

/* Branchen-Kacheln (SIEM) */
.b-branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.b-branch img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.b-branch p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Ablauf in 4 Schritten */
.b-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.b-steps figure { margin: 0; }
.b-steps img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.b-steps figcaption { color: var(--muted); font-size: .92rem; padding-top: 12px; }
.b-steps figcaption strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 860px) { .b-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kennzahlen mit Quelle */
.b-stats .stat span { display: block; max-width: 260px; margin: 8px auto 0; }
.b-stats .stat em { color: var(--text); }

/* Zwei-Spalten-Intro mit Akkordeon */
.b-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.b-intro .b-intro-text { color: #e6e6e6; font-weight: 600; text-align: center; }
@media (max-width: 860px) { .b-intro { grid-template-columns: 1fr; } }

/* Kunden-Logos als Raster (Über uns) */
.b-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.b-logo-grid div { background: #fff; border-radius: var(--radius); height: 90px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.b-logo-grid img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* Teamkarte "Werde Teil des Teams" */
.team-grid .b-join { display: flex; flex-direction: column; }
.team-grid .b-join .btn { margin-top: 8px; align-self: flex-start; }

/* Standorte ohne Bild */
.location .b-noimg { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1a1a1a, #0d0d0d); display: grid; place-items: center; color: var(--accent); font-size: 2.4rem; font-weight: 800; }

/* Experten-Buttons */
.b-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Karriere */
.b-career-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.b-career-split img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.b-career-split .b-career-text { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.b-career-split h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: .3em; }
.b-career-split h2.b-dim { color: var(--muted-2); }
.b-career-split h2 a { color: var(--text); text-decoration: none; }
.b-career-split h2 a:hover { color: var(--accent); }
@media (max-width: 760px) { .b-career-split { grid-template-columns: 1fr; } }

/* Rechtstexte */
.prose h2.b-legal-label { font-size: 1rem; text-transform: none; color: var(--text); margin-top: 2.4em; }
.prose ul ul { margin-top: .5em; }
.page-head .b-sub { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; color: var(--text); margin: 0; }
.page-head h1.b-accent { color: var(--accent); }

/* Kontakt-Kacheln JC Sec: gleiche Optik, eigene Adressen */
.b-jcsec-badge img { height: 16px; }

/* Danke / 404 */
.b-status { min-height: 70vh; display: flex; align-items: center; text-align: center; padding: calc(var(--header-h) + 48px) 0 72px; background: radial-gradient(ellipse at center, rgba(121, 250, 79, .08), transparent 60%); }
.b-status .b-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 900; line-height: 1; color: var(--accent); margin-bottom: .1em; letter-spacing: -.04em; }
.b-status p { color: var(--muted); max-width: 560px; margin-inline: auto; }
.b-status .btn-row { justify-content: center; margin-top: 1.5rem; }

/* Experten abwechselnd links/rechts, Fotospalte immer gleich breit */
@media (min-width: 761px) { .b-persons .person:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.b-persons .person:last-child { margin-bottom: 0; }

/* Fork C: Blog-Übersicht und Beiträge */
.blog-head { text-align: center; }
.blog-head .back-link { display: inline-flex; }
.blog-head h1 { margin-bottom: 0; }
.blog-meta { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.blog-meta .post-cat { color: var(--accent); font-weight: 700; text-decoration: none; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; }
.blog-hero { max-width: var(--wrap-narrow); margin: 0 auto 2.5rem; }
.blog-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 70%; border-radius: var(--radius-lg); }
.blog-date { display: block; margin-top: 8px; color: var(--muted-2); font-size: .82rem; }
.blog-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.5rem; }
.blog-cta a.btn { text-decoration: none; }
.prose .blog-cta a.btn-primary { color: var(--accent-ink); }
.prose .blog-cta a.btn-outline { color: var(--text); }
.prose ul li::marker { color: var(--accent); }
.post-card .post-body { flex: 1; }

/* Fork D: Ergänzungen für EN-Leistungsseiten (gleiche Klassen nutzbar für DE) */

/* Kennzahlen mit Ring (z. B. 55 %) */
.d-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); text-align: center; align-items: start; }
.d-stat p { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.d-stat p strong { color: var(--text); }
.d-stat .d-src { font-style: italic; font-size: .9rem; color: var(--muted); }
.d-ring { --p: 50; width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 79%), conic-gradient(var(--accent) calc(var(--p) * 1%), #222 0); }
.d-ring span { font-size: 1.6rem; font-weight: 800; }
.d-big { display: flex; align-items: center; justify-content: center; min-height: 112px; margin-bottom: 16px; font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
@media (max-width: 760px) { .d-stats { grid-template-columns: 1fr; } }

/* Mehrwert-Karten */
.d-value h3 { color: var(--accent); }

/* Schritte "How it works" */
.d-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.d-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.d-step img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.d-step p { padding: 14px 16px 18px; margin: 0; color: var(--muted); font-size: .95rem; }
.d-step p strong { color: var(--text); }
@media (max-width: 960px) { .d-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lösungs-Mosaik */
.d-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d-mosaic .tile { aspect-ratio: auto; min-height: 260px; }
.d-mosaic .tile img { filter: grayscale(1); }
.d-mosaic .d-tall { grid-row: span 2; }
.d-mosaic .d-logo { display: grid; place-items: center; background: #000; border-radius: var(--radius); min-height: 260px; grid-row: span 2; }
.d-mosaic .d-logo img { width: 70%; }
@media (max-width: 760px) { .d-mosaic { grid-template-columns: 1fr 1fr; } .d-mosaic .d-tall, .d-mosaic .d-logo { grid-row: auto; } }

/* Kennenlernen-Box mit Tags */
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.d-tags li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font-size: .85rem; }

/* Bild mit Textüberlagerung (z. B. Cloud-Services) */
.d-overlay { position: relative; max-width: 820px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; }
.d-overlay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.d-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.35) 70%, rgba(0,0,0,.15)); }
.d-overlay .d-overlay-text { padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px) clamp(140px, 22vw, 240px); text-align: center; color: #e6e6e6; }

/* Kontakt-Person mittig über dem Formular */
.contact-panel .contact-person { max-width: 420px; margin-inline: auto; }
.inline-form .form-status { flex-basis: 100%; margin-top: 4px; }
.d-mosaic .d-span3 { grid-column: 1 / -1; min-height: 220px; }
.d-wp-img { max-height: 340px; width: auto; margin-inline: auto; }

/* Fork E: JC Sec, Über uns, Karriere (EN) – ergänzende Bausteine */

/* Karte mit Bild oben (Leistungen, Branchen, Mehrwert, Ablauf) */
.e-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.e-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.e-card .e-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.e-card h3 { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.e-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.e-card .btn { align-self: flex-start; margin-top: auto; }
.e-card.e-card-center { text-align: center; }
.e-card.e-card-center .e-card-body { align-items: center; }
.e-card .e-card-title-accent { color: var(--accent); }
.e-grid-5 { display: grid; gap: clamp(16px, 2.5vw, 24px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Ringdiagramm für Prozentwerte (--p = 0..100) */
.e-ring { --p: 50; width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #222 0); position: relative; }
.e-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg); }
.e-ring strong { position: relative; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.e-stat-big { display: block; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 120px; margin-bottom: 14px; color: var(--text); }
.e-stats .stat span { display: block; max-width: 260px; margin: 0 auto; }
.e-stats .stat em { color: var(--text); }

/* Ablauf-Schritte */
.e-step img { aspect-ratio: 1; object-fit: cover; }

/* Personen-Kopfzeile "Your contact person" */
.e-kicker { color: var(--accent); font-weight: 600; margin-bottom: .4rem; display: block; }

/* Kunden-Logos im Über-uns-Band etwas größer */
.e-team-cta { display: flex; flex-direction: column; gap: 10px; }
.e-team-cta .btn { align-self: flex-start; }

/* Standort ohne Foto */
.e-loc-blank { aspect-ratio: 4 / 3; background: linear-gradient(180deg, #1a1a1a, #0d0d0d); display: grid; place-items: center; color: var(--muted-2); font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }

/* Karriere: Hinweis "keine offene Stelle" */
.e-jobs { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--bg-2); }
.e-jobs > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.e-jobs-text { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.e-jobs-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: .3em; }
.e-jobs-text .e-dim { color: var(--muted-2); }
.e-jobs-text a { color: var(--text); text-decoration: none; }
.e-jobs-text a:hover { color: var(--accent); }
@media (max-width: 760px) { .e-jobs { grid-template-columns: 1fr; } .e-jobs > img { min-height: 220px; } }

/* JC Sec: eigener Rechtshinweis über dem Footer */
.e-sec-legal { border-top: 1px solid var(--line); padding: 18px 0; font-size: .9rem; color: var(--muted); }
.e-sec-legal .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.e-sec-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.e-sec-legal a:hover { color: var(--accent); }

/* Danke-Seite */
.e-thanks { min-height: 70vh; display: flex; align-items: center; }
.e-center-social { display: flex; justify-content: center; }
@media (max-width: 560px) {
  .e-stats { grid-template-columns: 1fr; gap: 32px; }
  .e-stat-big { line-height: 1.1; margin-bottom: 10px; }
}

/* Fork F – englische Blog-Beiträge */
.f-post > img:first-child, .f-post .f-cover { margin-top: 0; width: 100%; }
.f-post > img { width: 100%; }
