/* soXit – Design angelehnt an die bisherige Seite (Navy / Gelb, Fira Sans, Polygon-Hintergründe).
   Farben zentral hier anpassen: */
:root {
  --navy: #051a5b;          /* Hauptfläche */
  --navy-deep: #020c33;
  --night: #090019;         /* Footer */
  --violet: #32387c;        /* Rahmen */
  --yellow: #f0e563;        /* Akzent */
  --sky: #6cbad5;           /* Kundenbereich-Button, Button-Akzent */
  --text: #ffffff;
  --text-soft: rgba(255,255,255,.75);
  --radius: 4px;
  --footer-h: 58px;
  --wrap: 1100px;
  --font: "Fira Sans", Arial, Helvetica, sans-serif;
  --bg1: url("/wp-content/uploads/2022/09/Hintergrund1.jpg");
  --bg2: url("/wp-content/uploads/2022/09/Hintergrund2.jpg");
  --bg3: url("/wp-content/uploads/2022/09/Hintergrund3-1.jpg");
}

/* Fira Sans – lokal ausgeliefert (vom Import-Skript geladen), keine Google-Anfrage */
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: local("Fira Sans"), local("FiraSans-Regular"), url("/assets/fonts/fira-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-display: swap; src: local("Fira Sans Medium"), local("FiraSans-Medium"), url("/assets/fonts/fira-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: local("Fira Sans SemiBold"), local("FiraSans-SemiBold"), url("/assets/fonts/fira-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-display: swap; src: local("Fira Sans Bold"), local("FiraSans-Bold"), url("/assets/fonts/fira-sans-700.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--text); background: var(--navy-deep); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, .h3 { line-height: 1.15; margin: 0 0 .5em; text-transform: uppercase; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
strong { font-weight: 600; color: var(--yellow); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.eyebrow { font-size: 1.15rem; font-weight: 600; text-transform: uppercase; color: var(--yellow); margin: 0 0 .3em; letter-spacing: .01em; }
.eyebrow-plain { text-transform: none; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.05rem; color: var(--text-soft); max-width: 40rem; }
.small { font-size: .85rem; color: var(--text-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: transparent; color: #fff; font-weight: 500; font-size: .95rem;
  padding: .55em 1.3em .55em 1.6em; border: 1px solid var(--sky); border-left: 14px solid var(--sky); border-radius: 0;
  text-decoration: none; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.btn:hover { background: var(--sky); color: var(--navy); }
.btn-more { display: inline-block; color: #fff; font-weight: 500; font-size: .92rem; padding: .45em 1.2em .45em 1.4em;
  border: 1px solid var(--sky); border-left: 12px solid var(--sky); text-decoration: none; transition: background .2s, color .2s; }
.btn-more:hover { background: var(--sky); color: var(--navy); }

/* Polygon-Hintergründe (Fallback: Verlauf, falls Bilder noch nicht importiert) */
.bg-1, .bg-2, .bg-3, .bg-contact { position: relative; background-color: var(--navy); background-size: cover; background-position: center top; }
.bg-1 { background-image: linear-gradient(to bottom, rgba(2,12,51,0) 55%, var(--navy-deep) 100%), var(--bg1), radial-gradient(900px 600px at 0% 30%, #7a5a2a, transparent 60%), linear-gradient(160deg, #0b1d5e, var(--navy-deep)); }
.bg-1.bg-flip { background-image: linear-gradient(to bottom, var(--navy-deep) 0%, rgba(2,12,51,0) 25%, rgba(2,12,51,0) 70%, var(--navy-deep) 100%), var(--bg1); background-position: right center; }
.bg-2 { background-image: linear-gradient(rgba(5,26,91,.35), rgba(5,26,91,.35)), var(--bg2), linear-gradient(180deg, #0a2a8a, var(--navy)); background-attachment: fixed; }
.bg-3 { background-image: linear-gradient(rgba(5,26,91,.25), rgba(5,26,91,.25)), var(--bg3), linear-gradient(180deg, #0a2a8a, var(--navy)); background-attachment: fixed; }
/* weicher Übergang nur dort, wo ein anderer Hintergrund angrenzt */
.bg-1 + .bg-2, .bg-1 + .bg-3 { box-shadow: inset 0 140px 120px -60px var(--navy-deep); }
.bg-2:has(+ .bg-1), .bg-3:has(+ .bg-1), .bg-2:has(+ .bg-contact), .bg-3:has(+ .bg-contact), .bg-2:last-child, .bg-3:last-child { box-shadow: inset 0 -140px 120px -60px var(--navy-deep); }
.bg-1 + .bg-2:has(+ .bg-1), .bg-1 + .bg-3:has(+ .bg-1), .bg-1 + .bg-3:has(+ .bg-contact), .bg-1 + .bg-2:last-child { box-shadow: inset 0 140px 120px -60px var(--navy-deep), inset 0 -140px 120px -60px var(--navy-deep); }
/* Mobil: fixierter Hintergrund ruckelt auf manchen Geräten */
@media (max-width: 980px), (hover: none) { .bg-2, .bg-3 { background-attachment: scroll; } }
.bg-contact { background: linear-gradient(180deg, var(--navy-deep), #06134a); }
.section-plain { background: var(--navy-deep); }

/* Header – transparent über dem Hero, beim Scrollen dunkel */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .15s linear, box-shadow .3s; }
.site-header.scrolled { background-color: var(--navy); box-shadow: 0 2px 24px rgba(0,0,0,.45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 1rem; }
.brand img { height: 46px; width: auto; }
.brand { text-decoration: none; }
.brand-text { font-size: 1.9rem; font-weight: 600; color: #fff; }
.brand-text b { font-weight: 700; }
.main-nav > ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav > ul > li > a:not(.btn-portal):not(.anydesk) { padding: .4em 0; border-bottom: 2px solid transparent; }
.main-nav > ul > li > a:not(.btn-portal):not(.anydesk):hover,
.main-nav > ul > li > a[aria-current] { color: var(--yellow); border-bottom-color: var(--yellow); }
.btn-portal { background: var(--sky); color: #fff !important; font-size: .75rem !important; padding: .55em 1.1em; border-radius: 2px; transition: filter .2s; }
.btn-portal:hover { filter: brightness(1.1); }
.anydesk img { width: 76px; height: auto; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: .6rem 0; position: absolute; left: -1rem; top: 100%; min-width: 280px;
  background: rgba(5,26,91,.98); border-top: 2px solid var(--yellow); box-shadow: 0 14px 30px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.sub a { padding: .55em 1.2em; font-size: .9rem; }
.sub a:hover, .sub a[aria-current] { color: var(--yellow); background: rgba(255,255,255,.04); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .2s; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); max-width: 12em; }
.hero-sub { color: var(--yellow); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; text-transform: uppercase; margin-left: .2em; }
.page-hero { min-height: 82vh; display: flex; align-items: center; padding: 120px 0 60px; }
.page-hero-small { min-height: 46vh; }
.page-hero h1 { max-width: 14em; }

/* Lottie-Animationen */
.lottie { display: grid; place-items: center; }
.lottie > svg { width: 100% !important; height: 100% !important; }
.hero-lottie { width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.lottie-fallback { display: grid; place-items: center; color: var(--sky); opacity: .9; }
.hero-lottie .lottie-fallback .icon { width: 160px; height: 160px; stroke-width: 1; }
.card-lottie .lottie-fallback .icon { width: 64px; height: 64px; }
.lottie.loaded .lottie-fallback { display: none; }

/* Sektionen */
.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.sec-head { text-align: center; margin-bottom: 2.8rem; }
.sec-head .eyebrow { margin-bottom: .1em; }
.sub-head { margin: 0 0 2rem; }
.divider { border: 0; height: 3px; margin: 4.5rem 0; background: linear-gradient(90deg, var(--violet), #6a3d9a, var(--violet)); opacity: .8; }
.outro { text-align: center; font-size: 1.15rem; font-weight: 500; max-width: 42rem; margin: 4rem auto 2rem; }

/* Leistungs-Karten wie im Original */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.2rem 1.1rem 1.8rem;
  background: rgba(5,26,91,.82); border: 2px solid var(--violet); transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--sky); }
.card-lottie { width: 100%; height: 140px; margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .25em; }
.card-kicker { font-size: .78rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1.4em; }
.card-text { font-size: .9rem; font-weight: 500; line-height: 1.45; flex: 1; max-width: 17em; margin-bottom: 1.8em; }

/* Referenzen */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logos a { display: grid; place-items: center; aspect-ratio: 1.2; padding: 1.6rem; background: rgba(5,26,91,.55);
  border: 2px solid rgba(50,56,124,.8); color: #fff; text-decoration: none; font-weight: 600; transition: background .25s, border-color .25s; }
.logos a:hover { background: rgba(5,26,91,.85); border-color: var(--sky); }
.logos img { max-height: 90px; width: auto; object-fit: contain; opacity: .9; transition: opacity .25s, transform .25s; }
.logos a:hover img { opacity: 1; transform: scale(1.04); }

/* Team-Teaser */
.team-photo { display: inline-block; margin: 1rem auto 2rem; border: 3px solid var(--violet); }
.team-photo img { width: 280px; aspect-ratio: 280 / 330; object-fit: cover; }
.h-claim { max-width: 16em; margin: 0 auto 1.6rem; }

/* Listen mit soXit-X */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; }
.h-list { font-size: 1.15rem; margin-bottom: 1.2em; }
.xlist { list-style: none; padding: 0; margin: 0; }
.xlist li { display: flex; gap: .8em; padding: .3em 0; font-size: .95rem; }
.xlist .icon { color: var(--sky); width: .85em; height: .85em; margin-top: .4em; }

/* Kontakt direkt im sichtbaren Bereich (Leistungsseiten) */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.hero-phone { display: inline-flex; align-items: center; gap: .5em; color: #fff; font-weight: 600; text-decoration: none; }
.hero-phone .icon { color: var(--yellow); }
.hero-phone:hover { color: var(--yellow); }

/* Technologien & Hersteller – präsent, aber zurückhaltend */
.tech { margin-top: 3rem; text-align: center; }
.tech-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.tech-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 0; }
.tech-list li { font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.55); padding: 0 .8rem; position: relative; transition: color .2s; }
.tech-list li + li::before { content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--sky); opacity: .6; }
.tech-list a { color: inherit; text-decoration: none; }
.tech-list li:hover, .tech-list a:focus-visible { color: #fff; }
.tech-list img { height: 26px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .55; transition: opacity .2s; }
.tech-list li:hover img { opacity: .95; }

/* Leistungsseiten */
.h-normal { text-transform: none; }
.col-offset { padding-top: 3rem; }
.mirror { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: center; }
.h-big { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
.h-list-gap { margin-top: 2.2rem; }
.note { font-size: .85rem; font-style: italic; color: var(--text-soft); margin-top: 1rem; }
.bg-flip .sec-head { margin-bottom: 2.4rem; }
.bg-flip .outro { margin: 0 auto 1.4rem; }
.bg-flip .cards { max-width: 860px; margin-inline: auto; }

/* Team-Seite */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.team .person { flex: 0 1 300px; }
.team .person img, .team .avatar { width: 230px; margin-bottom: 1rem; }
.team .person p { font-size: .9rem; line-height: 1.55; margin-bottom: .8rem; }
.team .tags li { font-size: .75rem; }
.person h3 { font-size: 1.1rem; margin-bottom: .35em; }
.onepager .panel[id] .sec-head { margin-bottom: 1.8rem; }
@media (min-width: 981px) and (max-height: 820px) {
  .team .person img, .team .avatar { width: 180px; }
  .onepager .panel[id] .sec-head { margin-bottom: 1.2rem; }
  .next-hint { margin-top: 1rem; }
}
/* Hinweis auf den nächsten Team-Abschnitt */
.next-hint { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin: 1.6rem auto 0; width: max-content;
  color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; text-decoration: none; }
.next-hint .icon { width: 26px; height: 26px; animation: hint-bounce 1.8s ease-in-out infinite; }
.next-hint:hover { color: #fff; }
@keyframes hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .next-hint .icon { animation: none; } }
.person img, .avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--violet); margin-bottom: 1.3rem; }
.avatar { display: grid; place-items: center; background: var(--navy); color: var(--yellow); font-size: 3rem; font-weight: 700; }
.person p { color: var(--text-soft); font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .78rem; font-weight: 500; border: 1px solid var(--sky); color: var(--sky); padding: .15em .7em; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: .9em; padding: .55em 0; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--yellow); }
.contact-list .icon { color: var(--yellow); margin-top: .3em; }
.contact-form { display: grid; gap: 1rem; background: rgba(5,26,91,.7); border: 2px solid var(--violet); padding: 2rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 500; font-size: .9rem; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  font: inherit; font-weight: 400; color: #fff; padding: .7em .9em; background: rgba(2,12,51,.6); border: 1px solid var(--violet); border-radius: 0; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--yellow); }
.contact-form [aria-invalid=true] { border-color: #ff7a7a; }
.contact-form .check { display: flex; gap: .7em; align-items: flex-start; font-weight: 400; }
.contact-form .check input { margin-top: .35em; accent-color: var(--yellow); }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-error { color: #ff9a9a; font-size: .85rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border: 1px solid; }
.notice-ok { border-color: var(--yellow); background: rgba(240,229,99,.08); }
.notice-err { border-color: #ff7a7a; background: rgba(255,122,122,.1); }

/* Rechtstexte */
.legal { max-width: 52rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; color: var(--yellow); }
.legal h3, .legal h4 { font-size: 1.05rem; text-transform: none; margin-top: 1.5em; }
.legal p, .legal li { color: var(--text-soft); }

/* Footer – schmale Abschlusszeile */
.site-footer { background: var(--night); color: var(--text-soft); font-size: .82rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bar { min-height: var(--footer-h); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 2rem; padding: .9rem 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }

/* Einblenden beim Scrollen (nur mit JS aktiv) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== OnePager-Verhalten der Startseite (wie bisher): bildschirmfüllende Abschnitte, Wechsel per JS ===== */
@media (min-width: 981px) and (min-height: 620px) {
  .onepager .panel { min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; padding-top: 96px; padding-bottom: 48px; }
  .onepager .panel > .wrap { width: min(100% - 2.5rem, var(--wrap)); }
  .onepager main > section.panel:last-of-type { min-height: calc(100vh - var(--footer-h)); min-height: calc(100svh - var(--footer-h)); }
  .onepager .footer-bar { height: var(--footer-h); padding: 0; flex-wrap: nowrap; }
  .onepager .side-contact { bottom: calc(var(--footer-h) + 20px); }
  /* Inhalte blenden beim Wechsel weich aus und ein */
  .js.onepager .panel .reveal { transition: opacity .7s ease, transform .7s ease; }
}

/* Punktnavigation links */
.dots { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.dots a { position: relative; display: block; width: 11px; height: 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transition: background .3s, border-color .3s, transform .3s; }
.dots a:hover { border-color: var(--yellow); transform: scale(1.2); }
.dots a.active { background: var(--yellow); border-color: var(--yellow); }
.dots span { position: absolute; left: 22px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap; font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; color: #fff; background: rgba(5,26,91,.9); padding: .2em .6em; opacity: 0; pointer-events: none; transition: .25s; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* Seitlicher Kontakt-Reiter rechts */
.side-contact { position: fixed; right: 22px; bottom: 28px; z-index: 40; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .72rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.75); text-decoration: none;
  padding-top: 64px; background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) no-repeat center top / 1px 52px; transition: color .25s; }
.side-contact:hover { color: var(--yellow); }

/* Weiche Übergänge zwischen Unterseiten (Chrome, Edge, Safari; andere Browser laden ganz normal) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .45s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 980px) { .dots { display: none; } .side-contact { right: 10px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== Große Bildschirme (Full HD 1920 × 1080 und größer) ===== */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  body { font-size: 17.5px; }
  .header-inner { min-height: 96px; }
  .brand img { height: 54px; }
  .main-nav > ul { gap: 2rem; }
  .main-nav a { font-size: 1.02rem; }
  .eyebrow { font-size: 1.3rem; }
  h2 { font-size: 2.7rem; }
  .hero h1 { font-size: 4.3rem; }
  .page-hero h1 { font-size: 3.8rem; }
  .hero-sub { font-size: 1.6rem; }
  .lead { font-size: 1.2rem; max-width: 46rem; }
  .hero-lottie { max-width: 600px; }
  .hero-grid { gap: 4rem; }
  .onepager .panel { padding-top: 110px; padding-bottom: 60px; }

  /* Leistungskarten */
  .cards { gap: 18px; }
  .card { padding: 1.6rem 1.4rem 2.2rem; }
  .card-lottie { height: 190px; }
  .card h3 { font-size: 1.35rem; }
  .card-kicker { font-size: .85rem; }
  .card-text { font-size: 1rem; }

  /* Referenzen */
  .logos { gap: 18px; }
  .logos img { max-height: 110px; }

  /* Listen auf den Leistungsseiten */
  .xlist li { font-size: 1.05rem; }
  .h-list { font-size: 1.3rem; }
  .h-big { font-size: 3.6rem; }
  .two-col, .mirror { gap: 3rem 7rem; }

  /* Herstellerzeile */
  .tech-list li { font-size: 1.05rem; padding: 0 1rem; }

  /* Team */
  .team-photo img { width: 340px; }
  .team .person { flex-basis: 380px; }
  .team .person p { font-size: 1rem; }
  .team .tags li { font-size: .82rem; }
  .person h3 { font-size: 1.3rem; }

  /* Kontakt */
  .contact-grid { gap: 6rem; }
  .contact-form { padding: 2.4rem; }
}
@media (min-width: 1600px) and (min-height: 1000px) {
  .team .person img, .team .avatar { width: 300px; }
}

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .main-nav { position: fixed; inset: 0; background: var(--navy); padding: 100px 1.5rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a:not(.btn-portal):not(.anydesk) { padding: .9em 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .btn-portal { margin-top: 1.4rem; text-align: center; font-size: .9rem !important; padding: .8em; }
  .main-nav .anydesk { margin-top: 1.2rem; display: flex; justify-content: center; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 .5rem 1rem; min-width: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-grid, .two-col, .contact-grid, .mirror { grid-template-columns: 1fr; }
  .col-offset { padding-top: 0; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-lottie { max-width: 320px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .tech-list { gap: .5rem 1.4rem; }
  .tech-list li { padding: 0; }
  .tech-list li + li::before { display: none; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 1.3rem; }
  .logos a { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
