/* ==========================================================================
   programmierung-berlin.de
   Formensprache von lorop.de: Bereichsfarbe Rosa/Magenta, Navy als Grundton,
   Oswald-Versalien für Überschriften, Lato für Text, dunkle Navy-Kacheln.
   ========================================================================== */

@font-face { font-family: "Oswald"; src: url("../fonts/oswald-var.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Konstanten ---------- */
:root {
  --magenta: #ff006e;
  --magenta-strong: #e0005c;
  --magenta-soft: rgba(255, 0, 110, .1);
  --navy: #1f2446;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

/* ---------- Hell ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f6f9;
  --hero-bg: linear-gradient(160deg, #fecce2 0%, #fde3ef 55%, #fff1f7 100%);
  --hero-solid: #fdd8e9;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --panel: #1f2446;          /* Navy-Kacheln */
  --panel-2: #2a305b;
  --panel-text: #ffffff;
  --panel-muted: #b9bcd6;
  --text: #1f2446;
  --body: #3b3e56;
  --muted: #62667f;
  --line: #e3e3ec;
  --line-strong: #cbcbd8;
  --accent-text: #d1005a;
  --header-bg: rgba(255, 255, 255, .94);
  --footer-bg: #1f2446;
  --shadow: 0 1px 2px rgba(31, 36, 70, .06), 0 16px 36px -18px rgba(31, 36, 70, .22);
  --shadow-lg: 0 40px 80px -40px rgba(31, 36, 70, .4);
  --logo-filter: grayscale(1) opacity(.65);
  --logo-tile: #ffffff;
  --ok-bg: #e7f7ef; --ok-fg: #0c6a3e;
}

/* ---------- Dunkel (tiefes Navy) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12152b;
    --bg-2: #161a34;
    --hero-bg: linear-gradient(160deg, #3a1638 0%, #241a3f 55%, #161a34 100%);
    --hero-solid: #2a1838;
    --surface: #1c2042;
    --surface-2: #242951;
    --panel: #262c57;
    --panel-2: #303767;
    --panel-text: #ffffff;
    --panel-muted: #b9bcd6;
    --text: #f2f3f9;
    --body: #cfd1e2;
    --muted: #9fa3bd;
    --line: rgba(255, 255, 255, .1);
    --line-strong: rgba(255, 255, 255, .22);
    --accent-text: #ff4d98;
    --header-bg: rgba(18, 21, 43, .94);
    --footer-bg: #0d1024;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
    --logo-filter: grayscale(1) opacity(.75);
    --logo-tile: #e8e9f1;
    --ok-bg: rgba(61, 220, 132, .12); --ok-fg: #7ee2a8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12152b;
  --bg-2: #161a34;
  --hero-bg: linear-gradient(160deg, #3a1638 0%, #241a3f 55%, #161a34 100%);
  --hero-solid: #2a1838;
  --surface: #1c2042;
  --surface-2: #242951;
  --panel: #262c57;
  --panel-2: #303767;
  --panel-text: #ffffff;
  --panel-muted: #b9bcd6;
  --text: #f2f3f9;
  --body: #cfd1e2;
  --muted: #9fa3bd;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --accent-text: #ff4d98;
  --header-bg: rgba(18, 21, 43, .94);
  --footer-bg: #0d1024;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --logo-filter: grayscale(1) opacity(.75);
    --logo-tile: #e8e9f1;
  --ok-bg: rgba(61, 220, 132, .12); --ok-fg: #7ee2a8;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; color: var(--text); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--magenta-strong); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografie ---------- */
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.04; text-wrap: balance; color: var(--text); }
.h-xl { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4vw, 3.1rem); }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.h-sm { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .01em; line-height: 1.2; }
.accent { color: var(--magenta); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; color: var(--text);
}
.kicker .hg { width: 24px; height: 24px; color: var(--magenta); flex-shrink: 0; }
.kicker.small { font-size: .95rem; gap: 10px; color: var(--accent-text); }
.kicker.small .hg { width: 18px; height: 18px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.65; color: var(--body); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--magenta-strong); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 8px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 10px 24px -14px rgba(224, 0, 92, .7);
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-navy { --btn-bg: var(--navy); box-shadow: 0 10px 24px -14px rgba(31, 36, 70, .8); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-ghost:hover { filter: none; box-shadow: inset 0 0 0 2px var(--magenta); color: var(--accent-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 6px; text-decoration: none;
  background: var(--magenta-strong); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  transition: filter .2s;
}
.btn-sm:hover { filter: brightness(1.1); }
.btn-sm svg { width: 13px; height: 13px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--accent-text); text-decoration: none; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgba(31, 36, 70, .3);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; position: relative; }
.brand img { height: 36px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-trigger {
  padding: 10px 14px; background: none; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px; position: relative; transition: color .2s;
}
.nav > a::after, .nav-trigger::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--magenta);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav-trigger:hover::after, .nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-trigger .plus { width: 14px; height: 14px; color: var(--magenta); transition: transform .25s; }
.nav-trigger[aria-expanded="true"] .plus { transform: rotate(45deg); }
.nav > a.btn { margin-left: 10px; padding: 12px 18px; font-size: .92rem; color: #fff; background: var(--magenta-strong); }
.nav > a.btn::after { display: none; }

.has-mega { position: static; }
.mega {
  position: absolute; top: calc(100% - 2px); right: var(--gutter); width: min(980px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--magenta); border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-lg); padding: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 18px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega h3 { font-family: var(--font-display); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-text); padding: 4px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mega a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: .96rem; line-height: 1.35; color: var(--text); min-width: 0; overflow-wrap: break-word; transition: background .15s; }
.mega a:hover, .mega a[aria-current="page"] { background: var(--magenta-soft); }
.mega a svg { width: 18px; height: 18px; color: var(--magenta); flex-shrink: 0; }

/* Theme-Menü (ganz rechts am Seitenrand) */
.theme-menu { position: relative; }
.theme-menu--header { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); z-index: 110; }
.theme-menu--nav { display: none; }
.theme-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.theme-btn:hover, .theme-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-list { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.theme-list.open { opacity: 1; visibility: visible; transform: none; }
.theme-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: .95rem; text-align: left; cursor: pointer; }
.theme-list button:hover, .theme-list button:focus-visible { background: var(--surface-2); outline: none; }
.theme-list svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.theme-list .tick { margin-left: auto; color: var(--magenta); visibility: hidden; }
.theme-list [aria-checked="true"] .tick { visibility: visible; }
@media (min-width: 981px) {
  .site-header .wrap { padding-right: max(var(--gutter), calc(70px - max(0px, (100vw - var(--wrap)) / 2))); }
}

.nav-meta { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1120px) and (min-width: 981px) { .nav > a, .nav-trigger { padding: 10px 9px; font-size: .98rem; } }

@media (max-width: 980px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-toggle { display: inline-flex; }
  .theme-menu--header { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; height: calc(100dvh - var(--header-h)); margin: 0;
    background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > a, .nav-trigger { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.35rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a::after, .nav-trigger::after { display: none; }
  .nav > a[aria-current="page"] { color: var(--accent-text); }
  .nav-trigger .plus { width: 20px; height: 20px; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: 1fr; box-shadow: none; border: 0; border-radius: 12px; background: var(--bg-2); margin: 8px 0 12px; padding: 14px; }
  .mega.open { display: grid; }
  .nav > a.btn { margin: 22px 0 0; justify-content: center; padding: 18px; font-size: 1.05rem; border-bottom: 0; border-radius: 8px; }
  .nav-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 28px; color: var(--muted); font-size: .98rem; }
  .nav-contact { display: grid; gap: 12px; min-width: 0; }
  .theme-menu--nav { display: block; flex-shrink: 0; }
  .theme-menu--nav .theme-btn { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); }
  .theme-menu--nav .theme-list { top: auto; bottom: calc(100% + 8px); transform: translateY(4px); }
  .theme-menu--nav .theme-list.open { transform: none; }
  .nav-contact a, .nav-contact span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .nav-contact svg { width: 17px; height: 17px; color: var(--magenta); }
}

/* Seitliche Kontaktleiste (wie lorop.de, aber schlanker) */
.side-contact { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: grid; gap: 2px; }
.side-contact a {
  display: flex; align-items: center; gap: 18px; height: 50px; padding: 0 16px; margin-left: auto;
  background: var(--navy); color: #fff; text-decoration: none; border-radius: 10px 0 0 10px;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem;
  transform: translateX(calc(100% - 50px)); transition: transform .25s ease, background .2s;
  box-shadow: 0 10px 24px -12px rgba(31, 36, 70, .6);
}
.side-contact a:hover, .side-contact a:focus-visible { transform: none; background: var(--magenta-strong); }
.side-contact svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 1100px) { .side-contact { display: none; } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; position: relative; }
.overlap { display: flow-root; padding-top: 0; } /* verhindert Margin-Collapse, damit Kacheln in den Hero ragen */
.tone-a { background: var(--bg); }
.tone-b { background: var(--bg-2); }
.split-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.split-head > * { min-width: 0; }
.split-head p { margin: 0; color: var(--body); }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; align-items: start; } }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.sec-link { display: flex; justify-content: flex-end; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); padding: clamp(56px, 8vw, 104px) 0 clamp(120px, 12vw, 168px); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-shape { width: 100%; max-width: 520px; margin-left: auto; animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--text); font-size: .95rem; font-weight: 700; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--magenta); }
.rotator { display: inline-grid; justify-items: start; vertical-align: bottom; color: var(--accent-text); font-weight: 700; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .45s, transform .45s; }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-40%); }
.display .rotator { color: var(--magenta); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shape { max-width: 280px; margin: 8px auto 0; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--accent-text); }

/* Navy-Kacheln unter dem Hero (wie die Bereichs-Tabs auf lorop.de) */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: calc(-1 * clamp(64px, 8vw, 96px)); position: relative; z-index: 3; }
.tab {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; border-radius: 12px; text-decoration: none; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); color: var(--panel-text); box-shadow: var(--shadow-lg);
  transition: transform .25s;
}
.tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 30%; background: var(--magenta); transition: width .35s; }
.tab:hover { transform: translateY(-4px); }
.tab:hover::after { width: 100%; }
.tab svg.ti { width: 30px; height: 30px; color: var(--magenta); }
.tab b { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.tab span { font-size: .92rem; color: var(--panel-muted); line-height: 1.5; }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tabs { gap: 10px; } .tab { padding: 16px 16px 18px; gap: 8px; } .tab b { font-size: 1.02rem; } .tab span { display: none; } }

/* Hero-Emblem für Unterseiten: Navy-Panel */
.emblem {
  position: relative; aspect-ratio: 1 / .92; max-width: 440px; width: 100%; margin-left: auto; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 75% 20%, rgba(255, 0, 110, .35), transparent 50%), linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.emblem::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.emblem .shape { position: absolute; width: 44%; right: -6%; bottom: -8%; opacity: .9; }
.emblem .core { position: relative; width: 30%; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(145deg, var(--magenta), #b4004e); color: #fff; box-shadow: 0 20px 40px -12px rgba(255, 0, 110, .7); }
.emblem .core svg { width: 50%; height: 50%; stroke-width: 1.7; }
.emblem .tag { position: absolute; font-family: var(--font-mono); font-size: .74rem; color: #e6e7f3; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 10px; border-radius: 6px; }
.emblem .t1 { top: 10%; left: 8%; } .emblem .t2 { top: 24%; right: 8%; } .emblem .t3 { bottom: 12%; left: 10%; }
@media (max-width: 900px) { .emblem { max-width: 340px; margin: 8px auto 0; } }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--body); font-size: .98rem; }
.card .btn-sm, .card .link-arrow { margin-top: 18px; }
.icon-sq { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--magenta-soft); color: var(--accent-text); margin-bottom: 20px; }
.icon-sq svg { width: 25px; height: 25px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--magenta-strong); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }

/* Leistungsbereiche (Startseite) – Bereichsfarbe als Kopf, wie lorop.de */
.area { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.area-head { position: relative; padding: 26px 28px 22px; background: var(--hero-solid); overflow: hidden; }
.area-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.area-head h3 svg { width: 26px; height: 26px; color: var(--magenta); flex-shrink: 0; }
.area-head img { position: absolute; right: -24px; top: -18px; width: 120px; opacity: .55; pointer-events: none; }
.area-body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.checklist { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.checklist svg { width: 18px; height: 18px; color: var(--magenta); flex-shrink: 0; margin-top: 4px; }
.area-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

/* Kennzahlen: Navy-Kacheln */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: linear-gradient(160deg, var(--panel-2), var(--panel)); color: var(--panel-text); border-radius: 12px; padding: 26px 24px 22px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: #ff8fbf; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Zwei Spalten: Neuentwicklung / Betreuung */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo > * { min-width: 0; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo .card { padding: clamp(28px, 4vw, 40px); }
.duo h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.9rem); text-transform: uppercase; margin-bottom: 20px; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--text); font-size: .98rem; }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; background: var(--magenta-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 460px) { .ticks { grid-template-columns: 1fr; } }

/* USP-Karten (überlappen den Hero) */
.usps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: calc(-1 * clamp(64px, 8vw, 96px)); position: relative; z-index: 3; }
.usp { background: var(--surface); border-radius: 12px; padding: 24px 22px; box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--magenta); }
.usp h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; margin-bottom: 8px; }
.usp p { margin: 0; font-size: .95rem; }
.usp .num { width: 34px; height: 34px; font-size: .95rem; margin-bottom: 14px; }
@media (max-width: 1020px) { .usps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .usps { grid-template-columns: 1fr; } }

/* Ablauf */
.steps { list-style: none; display: grid; gap: 18px; counter-reset: s; }
.steps.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 46px 22px 26px; text-align: center; margin-top: 24px; }
.steps .num { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; font-size: 1.3rem; margin: 0; box-shadow: 0 0 0 6px var(--bg-2); }
.tone-a .steps .num { box-shadow: 0 0 0 6px var(--bg); }
.steps h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; line-height: 1.25; margin-bottom: 10px; }
.steps p { margin: 0; font-size: .93rem; }
@media (max-width: 1020px) { .steps.cols-5, .steps.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; } }
@media (max-width: 560px) { .steps.cols-5, .steps.cols-4 { grid-template-columns: 1fr; } }

/* Navy-Band (z. B. KI-Check) */
.band { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(32px, 5vw, 64px); background: linear-gradient(150deg, var(--panel-2), var(--panel)); color: var(--panel-text); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.band > * { min-width: 0; position: relative; z-index: 1; }
.band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.band h2, .band .display { color: #fff; }
.band .lead, .band p { color: var(--panel-muted); }
.band .kicker { color: #fff; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }
.meter { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 26px; }
.meter .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.meter .top b { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: #fff; }
.meter .top span { color: var(--panel-muted); font-size: .9rem; }
.bar { margin-bottom: 14px; }
.bar-label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--panel-muted); margin-bottom: 6px; }
.bar-label b { color: #fff; }
.bar-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--magenta), #ff7ab3); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }

/* Referenzen */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.logos li { list-style: none; display: grid; place-items: center; height: 96px; padding: 18px; background: var(--logo-tile); border: 1px solid var(--line); border-radius: 12px; }
.logos img { max-height: 54px; width: auto; filter: var(--logo-filter); transition: filter .25s; }
.logos li:hover img { filter: none; }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 24px; font-size: 1.12rem; font-style: italic; color: var(--text); line-height: 1.6; }
.quote blockquote::before { content: "„"; display: block; font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: .6; color: var(--magenta); margin-bottom: 14px; font-style: normal; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote figcaption img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; border: 1px solid var(--line); }
.quote .avatar { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--magenta-soft); color: var(--accent-text); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.quote figcaption b { display: block; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.quote figcaption span { font-size: .9rem; color: var(--muted); }

/* CTA: Bereichsfarbe */
.cta { position: relative; overflow: hidden; border-radius: 22px; background: var(--hero-bg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta > * { min-width: 0; position: relative; z-index: 1; }
.cta .cta-shape { position: absolute; right: -60px; bottom: -80px; width: 300px; opacity: .25; z-index: 0; pointer-events: none; }
.cta p { margin: 16px 0 28px; max-width: 54ch; }
.cta-contact { display: grid; gap: 12px; }
.cta-contact a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; text-decoration: none; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s; color: var(--text); }
.cta-contact a:hover { transform: translateY(-2px); }
.cta-contact svg { width: 22px; height: 22px; color: var(--magenta); flex-shrink: 0; }
.cta-contact b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; }
.cta-contact small { color: var(--muted); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Artikel ---------- */
.article-grid { display: grid; grid-template-columns: 270px 1fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.article-grid > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.toc h2 { font-family: var(--font-display); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .93rem; line-height: 1.4; transition: background .2s, color .2s; }
.toc a:hover, .toc a.active { background: var(--magenta-soft); color: var(--text); }
.prose { max-width: 70ch; }
.prose .intro { font-size: 1.2rem; color: var(--text); font-weight: 700; line-height: 1.6; margin-bottom: 1.8em; }
.prose h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.9em 0 .6em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.callout { margin: 1.8em 0; padding: 24px 26px; border-radius: 14px; background: var(--hero-solid); border-left: 5px solid var(--magenta); }
.callout p { margin: 0; color: var(--text); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .toc { position: static; } }

.instead { display: grid; gap: 14px; margin-top: 28px; }
.instead li { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.instead .before, .instead .after { padding: 22px 24px; }
.instead .before { background: var(--surface-2); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 0, 110, .5); text-decoration-thickness: 2px; }
.instead .after { color: var(--text); }
.instead small { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: 6px; text-decoration: none; }
.instead .after small { color: var(--accent-text); }
@media (max-width: 640px) { .instead li { grid-template-columns: 1fr; } }

/* Techstack */
.stack { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.stack h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; }
.stack code { display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: 6px 0 18px; }
.stack ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 6px 12px; border-radius: 6px; background: var(--hero-solid); color: var(--text); font-weight: 700; font-size: .9rem; }

/* ---------- Formulare ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form > * { min-width: 0; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; color: var(--text); }
.req { color: var(--accent-text); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(255, 0, 110, .15); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8da6' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--magenta-strong); flex-shrink: 0; }
.check a { color: var(--accent-text); }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 8px; background: var(--ok-bg); color: var(--ok-fg); font-weight: 700; }
.form-status.show { display: block; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tiles { display: grid; gap: 14px; }
.contact-tile { display: flex; gap: 16px; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
a.contact-tile:hover { border-color: var(--magenta); transform: translateY(-2px); }
.contact-tile .icon-sq { margin: 0; flex-shrink: 0; }
.contact-tile b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); }
.contact-tile span { color: var(--muted); font-size: .95rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--magenta); border-radius: 16px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }

/* ---------- KI-Check ---------- */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.quiz-progress { height: 6px; background: var(--surface-2); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--magenta); transition: width .4s; }
.quiz-body { padding: clamp(24px, 4vw, 44px); }
.quiz-step[hidden] { display: none; }
.quiz-meta { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .88rem; color: var(--accent-text); margin-bottom: 8px; }
.quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz legend { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--text); margin-bottom: 22px; padding: 0; }
.quiz legend small { font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: var(--muted); }
.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .options.two { grid-template-columns: 1fr; } }
.option { position: relative; }
.option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.option label { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; color: var(--text); transition: border-color .15s, background .15s; }
.option label small { display: block; font-weight: 400; font-size: .88rem; color: var(--muted); }
.option label::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; }
.option input[type="checkbox"] + label::before { border-radius: 6px; }
.option input:checked + label { border-color: var(--magenta); background: var(--magenta-soft); }
.option input:checked + label::before { border-color: var(--magenta-strong); background: var(--magenta-strong); box-shadow: inset 0 0 0 4px var(--surface); }
.option input[type="checkbox"]:checked + label::before { box-shadow: none; background: var(--magenta-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.option input:focus-visible + label { outline: 3px solid var(--magenta); outline-offset: 2px; }
.quiz-error { display: none; margin-top: 14px; color: var(--accent-text); font-weight: 700; font-size: .92rem; }
.quiz-error.show { display: block; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.quiz-nav .btn-back { background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 6px; }
.quiz-nav .btn-back:disabled { visibility: hidden; }
.result { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: center; }
.result > * { min-width: 0; }
@media (max-width: 720px) { .result { grid-template-columns: 1fr; justify-items: center; } .result > div:last-child { width: 100%; } }
.gauge { position: relative; width: 230px; max-width: 100%; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 14; }
.gauge .track { stroke: var(--surface-2); }
.gauge .val { stroke: url(#gaugeGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.gauge .center b { font-family: var(--font-display); font-weight: 700; font-size: 3.8rem; line-height: 1; color: var(--text); }
.gauge .center > span { font-size: .88rem; color: var(--muted); }
#quiz-result .bar-label { color: var(--muted); }
#quiz-result .bar-label b { color: var(--text); }
#quiz-result .bar-track { background: var(--surface-2); }
.result-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.result-tiles div { padding: 18px; border-radius: 12px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); color: var(--panel-text); }
.result-tiles b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.result-tiles div > span { display: block; margin-top: 4px; font-size: .85rem; line-height: 1.4; color: var(--panel-muted); }
@media (max-width: 560px) { .result-tiles { grid-template-columns: 1fr; } }
.top3 { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.top3 li { padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.top3 li span { color: var(--muted); font-size: .9rem; }

/* Rechtstexte */
.legal { max-width: 78ch; }
.legal h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.4rem; margin: 2em 0 .6em; }
.legal h3 { font-size: 1.08rem; font-weight: 900; margin: 1.5em 0 .5em; }
.legal ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .5em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal a { color: var(--accent-text); }

/* ---------- Footer (Navy wie lorop.de) ---------- */
.site-footer { background: var(--footer-bg); color: #b9bcd6; padding: 76px 0 30px; font-size: .96rem; }
.site-footer h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; color: #fff; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #ff7ab3; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.footer-grid address { font-style: normal; line-height: 1.7; }
.footer-grid address + address { margin-top: 16px; }
.footer-grid address b { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.socials a:hover { background: var(--magenta-strong); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .25s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--magenta-strong); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Formular-Rückmeldungen ---------- */
.form-status:empty { display: none; }
.form-status.error { display: block; background: var(--magenta-soft); color: var(--text); border-left: 4px solid var(--magenta); font-weight: 400; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.form-success { padding: 26px 28px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-fg); outline: none; }
.form-success b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.form-success p { margin: 0; color: inherit; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hero-solid); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--hero-bg); }
.post-ph img { width: 46%; height: auto; object-fit: contain; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.post-meta { margin: 0; font-size: .86rem; color: var(--muted); }
.post-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.post-title a { text-decoration: none; color: var(--text); }
.post-title a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.post-card { position: relative; }
.post-title a:focus-visible { outline: none; }
.post-card:focus-within { outline: 3px solid var(--magenta); outline-offset: 3px; }
.post-excerpt { margin: 0; font-size: .95rem; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-body .link-arrow { margin-top: auto; padding-top: 6px; }

.post-hero { padding-bottom: clamp(56px, 7vw, 88px); }
.post-hero h1 { text-transform: none; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; letter-spacing: 0; }
.post-hero .post-meta { margin-top: 18px; font-size: .95rem; }
.post-section { padding-top: 0; display: flow-root; }   /* flow-root: Titelbild darf in den Kopfbereich ragen */
.post-cover { max-width: 980px; margin: calc(-1 * clamp(40px, 5vw, 64px)) auto clamp(36px, 5vw, 56px); position: relative; z-index: 2; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-prose { max-width: 72ch; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.post-section:not(:has(.post-cover)) .post-prose { padding-top: clamp(40px, 5vw, 64px); }
.post-prose > p:first-child { font-size: 1.2rem; color: var(--text); }
.prose h2 { font-family: var(--font-display); }
.prose h3 { font-size: 1.25rem; font-weight: 900; margin: 1.6em 0 .5em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--magenta); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--magenta); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 12px; }
