/* embres GmbH – Stylesheet
   Farben und Abstände zentral als Variablen, damit spätere Seiten (Karriere, News, Blog) dasselbe Design nutzen. */

:root {
  --bg: #0b0d12;
  --bg-2: #12151d;
  --bg-3: #1a1e29;
  --ink: #eceef3;
  --muted: #949bab;
  --line: #252a37;
  --brand: #e700ed;        /* Magenta aus dem embres-Logo */
  --brand-soft: rgba(231, 0, 237, .14);
  --accent: #059dff;       /* Blau der bisherigen Seite */
  --radius: 14px;
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); color: var(--brand); font-size: 14px; letter-spacing: .3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: 14px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; padding: 0 22px;
  background: rgba(18, 21, 29, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.logo img { height: 24px; width: auto; }
.menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--muted); font-size: 15px; font-weight: 500; }
.menu a:hover, .menu a.active { color: var(--ink); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lang a { color: var(--muted); padding: 4px 4px; }
.lang a[aria-current] { color: var(--brand); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); width: 40px; height: 40px; cursor: pointer; font-size: 18px; }

/* Hero */
.hero { position: relative; min-height: 94vh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 80px; }
.hero-bg { position: absolute; inset: -4%; background: url("../img/hero-bg.jpg") center/cover no-repeat; opacity: .62; filter: saturate(.9); animation: kenburns 28s ease-in-out infinite alternate; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,13,18,.92) 15%, rgba(11,13,18,.55) 55%, rgba(11,13,18,.1)), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero svg.traces { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; z-index: 1; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -2px; margin: 18px 0 24px; max-width: 900px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-block; padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 16px; transition: .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 30px rgba(231, 0, 237, .25); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 30px 24px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 38px; line-height: 1.1; letter-spacing: -1px; }
.stats span { color: var(--muted); font-size: 14px; }

/* Sektionen */
section { padding: 110px 0; }
.alt { background: var(--bg-2); }
.head { max-width: 720px; margin-bottom: 52px; }
.head h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -1px; margin: 12px 0 16px; }
.head p { color: var(--muted); margin: 0; font-size: 18px; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.service:hover { border-color: var(--brand); transform: translateY(-3px); }
.service .img { aspect-ratio: 16/9; overflow: hidden; }
.service .img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.8); transition: .4s; }
.service:hover .img img { filter: none; transform: scale(1.04); }
.service .txt { padding: 24px 26px 28px; }
.service .n { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.service h3 { margin: 6px 0 8px; font-size: 21px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* Arbeitsweise */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.principle.wide { grid-column: span 2; background: linear-gradient(135deg, var(--brand-soft), var(--bg-3) 60%); }
.principle h3 { margin: 0 0 10px; font-size: 20px; }
.principle p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.principle p:last-child { margin-bottom: 0; }
.principle .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }

/* Referenzprojekte */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery button { padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: flex; flex-direction: column; transition: .25s; }
.gallery button:hover, .gallery button:focus-visible { border-color: var(--brand); transform: translateY(-3px); }
.gallery .img { display: block; aspect-ratio: 4/3; overflow: hidden; background: #0a080c; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); transition: .4s; }
.gallery button:hover img, .gallery button:focus-visible img { filter: none; transform: scale(1.04); }
.gallery .txt { display: block; padding: 16px 18px 18px; }
.gallery .n { display: block; font-family: var(--mono); font-size: 12px; color: var(--brand); margin-bottom: 6px; }
.gallery .t { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.gallery .d { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(5,6,9,.92); display: none; align-items: center; justify-content: center; z-index: 90; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--ink); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* Technologien */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.tech { list-style: none; margin: 0; padding: 0; }
.tech li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tech li:first-child { border-top: 1px solid var(--line); }
.tech span:last-child { color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }

/* Historie */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .5; }
.timeline > div { position: relative; padding: 40px 24px 0 0; }
.timeline > div::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.timeline b { font-size: 34px; letter-spacing: -1px; display: block; }
.timeline p { color: var(--muted); margin: 6px 0 0; }

/* Kontakt */
.contact { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(231,0,237,.16) 0%, var(--bg) 60%); }
.contact .head { margin: 0 auto 40px; }
.mail-big { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: var(--ink); letter-spacing: -.5px; border-bottom: 2px solid var(--brand); }
.mail-big:hover { text-decoration: none; color: var(--brand); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; text-align: left; }
.contact-grid > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-grid h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.contact-grid p { margin: 0; font-size: 17px; }
.contact-grid a { color: var(--ink); }

/* Unterseiten (Impressum, Datenschutz, später News/Blog/Karriere) */
.page { padding: 170px 0 100px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1px; margin: 10px 0 36px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; }
.page h3 { font-size: 17px; margin: 26px 0 6px; }
.page p, .page li { color: #c3c8d3; }
.note { border: 1px dashed var(--brand); border-radius: 10px; padding: 14px 18px; color: var(--ink); background: var(--brand-soft); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; gap: 20px; }

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

/* Responsive */
@media (max-width: 980px) {
  .services, .principles { grid-template-columns: 1fr 1fr; }
  .principle.wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; gap: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 20px; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 12px 0; font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services, .principles, .contact-grid, .timeline { grid-template-columns: 1fr; }
  .principle.wide { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .timeline > div { padding: 0 0 28px 30px; }
  section { padding: 80px 0; }
  .logo img { height: 17px; }
  .nav { padding: 0 14px; gap: 10px; }
  .nav-right { gap: 8px; }
  .stats b { font-size: 28px; }
  .stats > div { padding: 24px 16px; }
}

/* Lösungen: große Themenblöcke mit Bild */
.solutions { display: grid; gap: 28px; }
.solution { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.solution:nth-child(even) .solution-img { order: 2; }
.solution-img { min-height: 360px; background-size: cover; background-position: center; position: relative; }
.solution-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg-2)); }
.solution:nth-child(even) .solution-img::after { background: linear-gradient(270deg, transparent 60%, var(--bg-2)); }
.solution-txt { padding: 44px 44px 40px; }
.solution-txt h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 10px 0 14px; letter-spacing: -.5px; }
.solution-txt p { color: var(--muted); margin: 0 0 18px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--brand); border: 1px solid rgba(231,0,237,.4); background: var(--brand-soft); border-radius: 999px; padding: 3px 12px; }
.checks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.more { font-weight: 700; color: var(--ink); }
.more:hover { color: var(--brand); text-decoration: none; }

/* Leistungspakete */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.package { display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: .25s; }
.package:hover { border-color: var(--brand); }
.package.featured { border-color: rgba(231,0,237,.55); box-shadow: 0 0 0 1px rgba(231,0,237,.25), 0 20px 50px rgba(231,0,237,.12); }
.package .img { aspect-ratio: 16/9; overflow: hidden; }
.package .img img { width: 100%; height: 100%; object-fit: cover; }
.package-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.package h3 { font-size: 23px; margin: 10px 0 8px; }
.package .for { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.package .checks { flex: 1; }
.package .result { font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 20px; color: #c3c8d3; }
.package .result b { color: var(--ink); }
.package .btn { text-align: center; }

@media (max-width: 980px) {
  .packages { grid-template-columns: 1fr; max-width: 640px; }
  .solution { grid-template-columns: 1fr; }
  .solution:nth-child(even) .solution-img { order: 0; }
  .solution-img { min-height: 240px; }
  .solution-img::after, .solution:nth-child(even) .solution-img::after { background: linear-gradient(0deg, var(--bg-2), transparent 50%); }
  .solution-txt { padding: 28px 26px 32px; }
}
.package .badge { align-self: flex-start; }
.package .checks { align-content: start; }
.package h3, .service h3, .principle h3 { line-height: 1.25; }

/* ===== Bewegung (dezent, abschaltbar über prefers-reduced-motion) ===== */
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }

/* Leuchtende Signalimpulse auf den Leiterbahnen */
.hero .pulse { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px currentColor); animation: pulse-run 6s linear infinite; color: var(--brand); }
.hero .pulse.p2 { animation-duration: 8s; animation-delay: -3s; }
.hero .pulse.p3 { animation-duration: 5s; animation-delay: -1s; color: var(--accent); }
.hero .pulse.p4 { animation-duration: 7s; animation-delay: -4s; color: var(--accent); }
@keyframes pulse-run { to { stroke-dashoffset: 0; } }
.hero .node { animation: node-blink 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero .node:nth-child(2) { animation-delay: .8s; } .hero .node:nth-child(3) { animation-delay: 1.6s; } .hero .node:nth-child(4) { animation-delay: 2.3s; }
@keyframes node-blink { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.8); } }

/* Schwebende Lichtflecken */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 1; pointer-events: none; }
.orb-1 { width: 420px; height: 420px; background: var(--brand); right: 8%; top: 18%; animation: drift1 18s ease-in-out infinite alternate; }
.orb-2 { width: 320px; height: 320px; background: var(--accent); right: 30%; bottom: 6%; opacity: .25; animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(.9); } }

/* Wechselndes Wort in der Überschrift */
.hero h1 em.rotate { display: block; width: fit-content; white-space: nowrap; min-height: 1.04em; padding-bottom: .3em; margin-bottom: -.3em; line-height: 1.1; }
@keyframes caret { 50% { opacity: 0; } }

/* Laufband mit Schlagworten */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--mono); font-size: 14px; color: var(--muted); padding: 0 28px; white-space: nowrap; position: relative; }
.ticker span::before { content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker + .wrap .stats { border-top: 0; }

/* Einblenden von der Seite für Lösungsblöcke */
.solution.reveal { transform: translateY(40px) scale(.98); }
.solution.reveal.in { transform: none; }
.solution-img { background-size: cover; background-repeat: no-repeat; transition: background-size .8s ease; overflow: hidden; }

/* Radar-Sweep über dem Radarbild */
.solution-img[data-fx="radar"]::before { content: ""; position: absolute; z-index: 1; left: 57%; top: 47%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(231,0,237,.35), rgba(231,0,237,0) 70deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 69%, transparent 70%); mask: radial-gradient(circle, #000 0 69%, transparent 70%);
  animation: sweep 4s linear infinite; mix-blend-mode: screen; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* Hervorgehobenes Paket: umlaufender Lichtrand */
.package.featured { position: relative; }
.package.featured::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--brand) 85%, var(--accent) 95%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-border 5s linear infinite; pointer-events: none; z-index: 2; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .25s ease, border-color .25s; }

/* Schwebende Icons in der Arbeitsweise */
.principle .icon { animation: float 5s ease-in-out infinite; }
.principle:nth-child(2) .icon { animation-delay: -1s; } .principle:nth-child(3) .icon { animation-delay: -2s; } .principle:nth-child(4) .icon { animation-delay: -3s; } .principle:nth-child(5) .icon { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Überschriften: Unterstrich wächst beim Einblenden */
.head h2 { position: relative; }
.head.reveal h2::after { content: ""; display: block; height: 3px; width: 0; margin-top: 14px; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 3px; transition: width 1s .3s ease; }
.head.reveal.in h2::after { width: 72px; }
.contact .head h2::after { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero .pulse, .hero .node, .orb, .ticker-track, .solution-img[data-fx="radar"]::before, .package.featured::before, .principle .icon, .hero h1 em.rotate::after { animation: none !important; }
  .hero .pulse { display: none; }
}
@media (max-width: 820px) {
  .orb-1 { width: 260px; height: 260px; } .orb-2 { display: none; }
  .solution-img[data-fx="radar"]::before { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
}
.more.ext { display: inline-block; margin-left: 0; font-weight: 600; color: var(--muted); }
.more.ext:hover { color: var(--accent); }
@media (max-width: 560px) { .more.ext { margin: 10px 0 0; display: block; } }
/* Lösungs-Cards gleich hoch (Desktop) */
@media (min-width: 901px) { .solutions { grid-auto-rows: 1fr; } .solution-txt { align-self: center; } }
/* Scroll-Hinweis im Hero */
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font: 500 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 2px; text-transform: uppercase; transition: opacity .4s ease; }
.scroll-hint:hover { color: var(--ink); text-decoration: none; }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid currentColor; border-radius: 14px; position: relative; }
.scroll-hint .mouse::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: scroll-dot 1.8s ease-in-out infinite; }
.scroll-hint::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); margin-top: -4px; animation: scroll-arrow 1.8s ease-in-out infinite; }
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes scroll-arrow { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(6px) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint .mouse::before, .scroll-hint::after { animation: none; } }
@media (max-height: 640px) { .scroll-hint .label { display: none; } }
.hero { padding-bottom: 140px; }
@media (max-width: 700px) { .scroll-hint { position: fixed; bottom: 14px; } .scroll-hint .label { display: none; } }
/* Highlight-Kacheln (Stats) als Karten */
.stats, .ticker + .wrap .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; border: 0; margin: 48px 0 8px; }
.stats > div, .stats > div:nth-child(-n+2), .stats > div:last-child { position: relative; overflow: hidden; padding: 26px 24px 24px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.stats > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .7; }
.stats > div:hover { transform: translateY(-4px); border-color: rgba(231, 0, 237, .45); box-shadow: 0 14px 40px -18px rgba(231, 0, 237, .55); }
.stats .ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 6px 20px -6px rgba(231, 0, 237, .6); }
.stats .ico svg { width: 22px; height: 22px; }
.stats b { font-size: 28px; letter-spacing: -.5px; margin-bottom: 6px; }
.stats span { display: block; font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .stats, .ticker + .wrap .stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; } }
@media (max-width: 560px) { .stats > div, .stats > div:nth-child(-n+2), .stats > div:last-child { padding: 18px 16px; } .stats b { font-size: 22px; } .stats .ico { width: 36px; height: 36px; margin-bottom: 12px; } .stats .ico svg { width: 19px; height: 19px; } .stats span { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .stats > div { transition: none; } .stats > div:hover { transform: none; } }
@media (max-width: 820px) {
  .gallery { gap: 12px; }
  .gallery .txt { padding: 12px 14px 14px; }
  .gallery .t { font-size: 14px; overflow-wrap: break-word; hyphens: auto; }
  .gallery .d { overflow-wrap: break-word; hyphens: auto; }
}

/* Themenbilder (statt Inline-Styles, damit die Content-Security-Policy keine Inline-Styles erlauben muss) */
.bg-mikrocontroller { background-image: url("../img/themen/mikrocontroller.jpg"); }
.bg-embedded-ki-loesung { background-image: url("../img/themen/embedded-ki-loesung.jpg"); }
.bg-kamera-design { background-image: url("../img/themen/kamera-design.jpg"); }
.bg-automotive-steuergeraete { background-image: url("../img/themen/automotive-steuergeraete.jpg"); }
.bg-yocto-linux { background-image: url("../img/themen/yocto-linux.jpg"); }
.bg-cra-plattform { background-image: url("../img/themen/cra-plattform.jpg"); }
