/* =====================================================================
   nxtgen Group – Stylesheet (Redesign 2026)
   Formensprache angelehnt an die Gruppenseiten easyKaufmann, nxtgen.DIGITAL,
   Tamarello und Magplan: Inter, dunkles Navy, helle Flächen #F5F7F9,
   Verlauf als Markenakzent, abgerundete Karten, Pill-Labels, Zahlenband.
   ===================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Gruppenfarben */
  --c-ink: #0b2f4d;            /* Navy – Text & dunkle Flächen (wie easyKaufmann/Tamarello/Magplan) */
  --c-ink-2: #12395c;
  --c-text: #3d5468;           /* Fließtext auf Hell (Kontrast 8:1) */
  --c-muted: #5f7385;          /* Nebeninfos (Kontrast 4.9:1) */
  --c-primary: #b75b9b;        /* nxtgen Magenta */
  --c-primary-dark: #9a457f;   /* für Text/Links (Kontrast 5.6:1) */
  --c-accent: #3993cf;         /* nxtgen Blau */
  --c-accent-dark: #1f6fa6;
  --grad: linear-gradient(100deg, #b75b9b 0%, #7a6fb6 50%, #3993cf 100%);
  --grad-text: linear-gradient(100deg, #a8488c 0%, #6a5fb0 50%, #1f78b8 100%);

  /* Firmenfarben (Wiedererkennung über die Gruppe hinweg) */
  --c-easykaufmann: #a63c82;
  --c-easykaufmann-grad: linear-gradient(100deg, #a63c82, #1c6fa8);
  --c-digital: #c96512;
  --c-tamarello: #b63111;
  --c-magplan: #028ec0;
  --c-magplan-dark: #01709a;

  /* Flächen */
  --c-bg: #ffffff;
  --c-surface: #f5f7f9;
  --c-line: #e3e8ee;

  /* Form */
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(11, 47, 77, .06), 0 2px 8px rgba(11, 47, 77, .05);
  --shadow: 0 10px 30px -12px rgba(11, 47, 77, .22);
  --shadow-l: 0 30px 60px -24px rgba(11, 47, 77, .35);

  /* Raster */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--c-ink); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -.035em; line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; }
h3 { font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
b, strong { color: var(--c-ink); font-weight: 600; }
ul, ol { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--surface { background: var(--c-surface); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--c-ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-s) var(--radius-s); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0; color: #fff; }

/* Gradient-Text als Markenakzent (wie die hervorgehobenen Wörter der Gruppenseiten) */
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pill-Label über Überschriften */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-ink); background: #fff; border: 1px solid var(--c-line);
  padding: 6px 14px 6px 10px; border-radius: 999px; margin-bottom: 20px; box-shadow: var(--shadow-s);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.eyebrow--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { font-size: clamp(17px, 1.4vw, 19px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--c-text); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border: 0; border-radius: var(--radius-s);
  background: var(--btn-bg); color: #fff; font: 600 16px/1.2 var(--font); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; position: relative; isolation: isolate;
  box-shadow: 0 8px 20px -8px rgba(122, 111, 182, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn::after { content: "→"; font-weight: 500; transition: transform .25s var(--ease); }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(122, 111, 182, .8); }
.btn:hover::after { transform: translateX(3px); }
.btn--ghost { background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); box-shadow: var(--shadow-s); }
.btn--ghost:hover { color: var(--c-ink); border-color: #c9d3de; box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--c-ink); box-shadow: none; }
.btn--light:hover { color: var(--c-ink); }
.btn--nolink::after { content: none; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--c-ink); display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 6px 20px -16px rgba(11, 47, 77, .4); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-header__logo { flex: none; display: block; padding: 6px 0; }
.site-header__logo img { width: auto; height: 50px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--c-ink); font-weight: 550; font-size: 15.5px; text-decoration: none; transition: background-color .2s, color .2s; }
.main-nav a:hover { background: var(--c-surface); color: var(--c-ink); }
.main-nav a[aria-current="page"] { background: var(--c-surface); }
.main-nav li:last-child a { background: var(--grad); color: #fff; padding: 0 22px; margin-left: 10px; border-radius: var(--radius-s); box-shadow: 0 8px 20px -10px rgba(122, 111, 182, .8); }
.main-nav li:last-child a:hover { color: #fff; filter: brightness(1.05); }
.social { display: flex; gap: 4px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-ink); transition: background-color .2s; }
.social a:hover { background: var(--c-surface); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social--header { display: none; }

.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-ink); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 921px) {
  :root { --header-h: 68px; }
  .site-header__logo img { height: 42px; }
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; border-top: 1px solid var(--c-line); padding: 16px var(--gutter) 28px;
    box-shadow: 0 30px 40px -20px rgba(11, 47, 77, .35); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; animation: drop .25s var(--ease); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: flex; min-height: 52px; padding: 0 16px; font-size: 18px; border-radius: 12px; }
  .main-nav li:last-child a { margin: 10px 0 0; justify-content: center; }
  .main-nav .social { padding-left: 6px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); background: radial-gradient(1200px 520px at 85% -10%, rgba(57, 147, 207, .14), transparent 60%), radial-gradient(900px 480px at -10% 10%, rgba(183, 91, 155, .12), transparent 60%), #fff; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--c-line); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { margin-bottom: 24px; }
.hero__title .grad-text { display: inline-block; padding-bottom: .06em; }
.hero__claim { display: block; font-size: .52em; letter-spacing: -.02em; color: var(--c-ink); font-weight: 600; margin-top: 14px; }
.hero__lead { font-size: clamp(19px, 1.8vw, 23px); max-width: 34ch; color: var(--c-text); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Marken-Mosaik im Hero: die vier Firmen der Gruppe */
.brand-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.brand-mosaic::before { content: ""; position: absolute; inset: 12% -6% -6% 12%; background: var(--grad); filter: blur(60px); opacity: .25; z-index: 0; border-radius: 50%; }
.brand-mosaic a { position: relative; z-index: 1; display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: 10%; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.brand-mosaic a:nth-child(2) { transform: translateY(28px); }
.brand-mosaic a:nth-child(4) { transform: translateY(28px); }
.brand-mosaic a:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.brand-mosaic a:nth-child(2):hover, .brand-mosaic a:nth-child(4):hover { transform: translateY(22px); }
.brand-mosaic img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* Seiten-Hero (Unterseiten) */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); background: radial-gradient(900px 400px at 90% -20%, rgba(57, 147, 207, .14), transparent 60%), radial-gradient(700px 380px at 0% 0%, rgba(183, 91, 155, .12), transparent 60%), var(--c-surface); border-bottom: 1px solid var(--c-line); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 0; max-width: 18ch; }
.page-hero p { max-width: 60ch; margin: 20px 0 0; }

/* ---------- Zahlenband ---------- */
.stats { background: var(--c-ink); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 15% 0%, rgba(183, 91, 155, .35), transparent 60%), radial-gradient(700px 300px at 90% 100%, rgba(57, 147, 207, .35), transparent 60%); }
.counters { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.counter { padding: clamp(36px, 5vw, 56px) 20px; text-align: center; }
.counter + .counter { border-left: 1px solid rgba(255, 255, 255, .12); }
.counter__number { margin: 0; font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.counter h2 { margin: 12px 0 0; font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.counter { display: flex; flex-direction: column-reverse; }

/* ---------- Angebots-Karten (Icon-Boxen) ---------- */
.icon-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icon-box { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative; overflow: hidden; }
.icon-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.icon-box:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-box:hover::before { transform: scaleX(1); }
.icon-box img { width: 88px; height: 88px; margin-bottom: 22px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, rgba(183, 91, 155, .12), rgba(57, 147, 207, .14)); }
.icon-box h3 { margin-bottom: 14px; }
.icon-box h3 strong { font-weight: inherit; }
.icon-box p { margin: 0; font-size: 16px; }

/* ---------- Split-Abschnitte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split__media img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-l); object-fit: cover; }
.split h2 { margin-bottom: 24px; }

.portrait-card { position: relative; max-width: 420px; margin-inline: auto; }
.portrait-card::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: var(--radius-l); background: var(--grad); opacity: .9; }
.portrait-card img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.portrait-card figcaption { position: absolute; left: 20px; bottom: 20px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 10px 16px; border-radius: 12px; font-weight: 600; color: var(--c-ink); font-size: 15px; box-shadow: var(--shadow-s); }

/* ---------- Lösungs-Karten (Firmen mit Markenfarbe) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { --brand: var(--c-ink); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 36px); }
.card__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.card__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.card h2 { font-size: clamp(22px, 2vw, 26px); margin-bottom: 12px; }
.card p { font-size: 16px; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; --btn-bg: var(--brand); background: var(--brand); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.card--easykaufmann { --brand: var(--c-easykaufmann); }
.card--easykaufmann .btn { background: var(--c-easykaufmann-grad); }
.card--digital { --brand: var(--c-digital); }
.card--tamarello { --brand: var(--c-tamarello); }
.card--magplan { --brand: var(--c-magplan-dark); }

/* ---------- Partner-Logos ---------- */
.logo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-strip li { display: grid; place-items: center; min-height: 112px; padding: 24px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.logo-strip li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-strip img { width: auto; height: var(--h, 44px); max-width: 100%; object-fit: contain; }

/* ---------- CTA-Band ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); color: rgba(255, 255, 255, .82); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 0% 0%, rgba(183, 91, 155, .45), transparent 60%), radial-gradient(600px 320px at 100% 100%, rgba(57, 147, 207, .45), transparent 60%); }
.cta > * { position: relative; }
.cta h2, .cta h3 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.cta p { font-size: 18px; max-width: 52ch; }
.cta__logo { justify-self: end; width: min(300px, 100%); background: #fff; border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-l); }

/* ---------- Unternehmen der Gruppe (Über uns) ---------- */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand { --brand: var(--c-ink); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.brand:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.brand__logo { padding: 18px 18px 0; }
.brand__logo img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.brand__body { flex: 1; display: flex; flex-direction: column; padding: 8px 24px 24px; border-top: 4px solid var(--brand); margin-top: 8px; padding-top: 22px; }
.brand h3 { font-size: 19px; margin-bottom: 8px; }
.brand p { font-size: 15.5px; flex: 1; }
.brand .link-arrow { color: var(--brand); margin-top: auto; }
.brand--easykaufmann { --brand: var(--c-easykaufmann); }
.brand--easykaufmann .brand__body { border-image: var(--c-easykaufmann-grad) 1; }
.brand--digital { --brand: var(--c-digital); }
.brand--tamarello { --brand: var(--c-tamarello); }
.brand--magplan { --brand: var(--c-magplan-dark); }

.video-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); background: #0f1d2c; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Aktuelles ---------- */
.carousel { position: relative; }
.carousel__track { list-style: none; margin: 0; padding: 4px 4px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; }
.carousel__slide a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.carousel__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.carousel__slide a:hover img { transform: scale(1.05); }
.carousel__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(11, 47, 77, .45)); }
.carousel__play svg { width: 64px; height: 64px; padding: 20px 18px 20px 22px; border-radius: 50%; background: rgba(255, 255, 255, .95); fill: var(--c-ink); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.carousel__slide a:hover .carousel__play svg { transform: scale(1.1); }
.carousel__btn { position: absolute; top: calc(50% - 32px); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.carousel__btn svg { width: 22px; height: 22px; fill: currentColor; }
.carousel__btn--prev { left: -20px; }
.carousel__btn--next { right: -20px; }
.carousel__dots { display: flex; justify-content: center; gap: 2px; margin-top: 16px; }
.carousel__dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.carousel__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #c5d0db; transition: width .3s var(--ease), background-color .3s; }
.carousel__dots button[aria-current="true"]::before { width: 28px; background: var(--c-primary); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-teaser { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-teaser:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-teaser__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--c-muted); margin-bottom: 14px; order: -1; }
.post-teaser__meta .card__tag { margin: 0; }
.post-teaser h3 { font-size: 21px; }
.post-teaser h3 a { color: var(--c-ink); text-decoration: none; }
.post-teaser h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-teaser p { font-size: 16px; }
.post-teaser__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: 600; color: var(--c-ink); text-decoration: none; position: relative; }

/* Beitrag */
.article { max-width: 780px; }
.article__meta { color: var(--c-muted); font-size: 15px; }
.article blockquote { margin: 32px 0; padding: 28px 32px; border-radius: var(--radius); background: var(--c-surface); border-left: 4px solid var(--c-primary); font-size: 19px; color: var(--c-ink); }
.article blockquote p { margin: 0; }
.article img { border-radius: var(--radius-l); box-shadow: var(--shadow); margin: 32px auto; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 14px; text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--c-surface); color: var(--c-ink); }
.tags a:hover { background: var(--c-line); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-card { background: var(--c-ink); color: rgba(255, 255, 255, .85); border-radius: var(--radius-l); padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 260px at 0% 0%, rgba(183, 91, 155, .45), transparent 60%), radial-gradient(420px 260px at 100% 100%, rgba(57, 147, 207, .4), transparent 60%); }
.contact-card > * { position: relative; }
.contact-card h2, .contact-card h3, .contact-card strong { color: #fff; }
.contact-card h2 { font-size: clamp(26px, 2.6vw, 34px); }
.contact-card h3 { font-size: 18px; font-weight: 500; opacity: .9; }
.contact-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .9); margin: 24px 0; }
.contact-card a { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 20px; height: 20px; flex: none; fill: currentColor; opacity: .8; }

.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 44px); box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form__status, .form__field--full, .form__hp, .form__note, .form .btn, .form__field:has(textarea), .form__field:has(.form__check) { grid-column: 1 / -1; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: 15px; color: var(--c-ink); }
.form input, .form textarea {
  width: 100%; font: 16px/1.5 var(--font); color: var(--c-ink); background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: 12px; padding: 13px 16px; min-height: 50px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form input::placeholder, .form textarea::placeholder { color: #8293a3; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(57, 147, 207, .18); }
.form [aria-invalid="true"] { border-color: #c0392b; background: #fff; }
.form__check { display: flex; gap: 12px; align-items: flex-start; }
.form__check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--c-primary); padding: 0; }
.form__check label { font-weight: 400; font-size: 15px; color: var(--c-text); }
.form__error { color: #b42318; font-size: 14px; min-height: 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form__note { font-size: 14px; margin: 0; color: var(--c-muted); }
.form__status:empty { display: none; }
.form__status { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.form__status--ok { background: #e8f6ee; color: #14532d; }
.form__status--error { background: #fdecea; color: #8a1f17; }
.req { color: var(--c-primary-dark); }

.map-static { position: relative; display: block; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.map-static img { width: 100%; }
.map-static__credit { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, .85); font-size: 12px; padding: 2px 8px; color: #333; }
.map-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.map-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.address-card { background: var(--c-surface); border-radius: var(--radius-l); padding: clamp(28px, 3vw, 40px); }
.address-card p { margin: 0 0 .3em; }
.address-card .gap { margin-top: 1em; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 860px; margin-inline: auto; padding: clamp(48px, 6vw, 88px) var(--gutter) var(--section); overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: clamp(28px, 5vw, 56px); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--c-line); }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 2em; }
.legal h3 { font-size: 19px; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }
.legal.center h1 { border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, .72); position: relative; overflow: hidden; padding-top: clamp(56px, 7vw, 88px); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer strong { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; font-size: 15px; }
.site-footer h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; }
.footer-brands li a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #fff); margin-right: 10px; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.9; }
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px var(--gutter) 24px; padding-right: 88px; font-size: 14px; }
.site-footer__bar p { margin: 0; }
.site-footer__bar ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer .social a { color: #fff; }
.site-footer .social a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Aktuelles: News, Filter, Termine, Karriere ---------- */
.card--gruppe { --brand: var(--c-primary-dark); }
.preview-note { margin-top: 28px; padding: 16px 20px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #f3d58a; color: #5c4400; font-size: 15px; }
.preview-note strong { color: #5c4400; }
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.news-head h2 { margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter[hidden] { display: none; }
.filter button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); font: 550 15px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filter button:hover { border-color: #c9d3de; background: var(--c-surface); }
.filter button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.filter__empty { text-align: center; color: var(--c-muted); padding: 32px 0; }

:where(.news) { --brand: var(--c-ink); }
.news { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.news[hidden] { display: none; }
.news__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, #fff), var(--c-surface)); }
.news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news:hover .news__media img { transform: scale(1.04); }
.news__example { position: absolute; top: 14px; right: 14px; background: #fff8e6; color: #5c4400; border: 1px solid #f3d58a; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.news__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; border-top: 4px solid var(--brand); }
.card--easykaufmann .news__body { border-image: var(--c-easykaufmann-grad) 1; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--c-muted); margin-bottom: 14px; }
.news__meta .card__tag { margin: 0; }
.news__kind { font-weight: 600; color: var(--c-ink); }
.news h3 { font-size: 20px; margin-bottom: 10px; }
.news h3 a { color: var(--c-ink); text-decoration: none; }
.news h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news h3 a:focus-visible { outline: none; }
.news:has(h3 a:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.news p { font-size: 15.5px; }
.news__more { margin-top: auto; font-weight: 600; color: var(--brand); display: inline-flex; gap: 8px; align-items: center; }
.news__more::after { content: "→"; transition: transform .25s var(--ease); }
.news:hover .news__more::after { transform: translateX(4px); }
.news--featured { display: grid; grid-template-columns: .9fr 1.1fr; margin-bottom: 28px; }
.news--featured .news__media { aspect-ratio: auto; min-height: 320px; }
.news--featured .news__body { border-top: 0; border-left: 4px solid var(--brand); padding: clamp(28px, 4vw, 48px); justify-content: center; }
.news--featured.card--easykaufmann .news__body { border-image: var(--c-easykaufmann-grad) 1; }
.news--featured h3 { font-size: clamp(24px, 2.6vw, 32px); }
.news--featured p { font-size: 17px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.company-news { margin-top: 8px; }
.news-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Blogkarten: Titel, Text und Link über alle Karten einer Reihe auf gleicher Höhe (Subgrid) */
.news-grid .news { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 26px 24px 24px; }
.news-grid .news::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand); }
.news-grid .news.card--easykaufmann::before { background: var(--c-easykaufmann-grad); }
.news-grid .news__body { display: contents; }
.news-grid .news__meta { flex-wrap: nowrap; white-space: nowrap; gap: 10px; font-size: 13px; margin-bottom: 14px; }
.news-grid .news__meta .card__tag { font-size: 12px; padding: 4px 10px; }
.news-grid .news h4 { margin-bottom: 10px; }
.news-grid .news p { margin-bottom: 16px; }
.news-grid .news__more { align-self: end; }

.news-grid[hidden] { display: none; }
.company-news[hidden] { display: none; }
.company-news__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 2px solid var(--brand); }
.company-news__head.card--easykaufmann { border-image: var(--c-easykaufmann-grad) 1; }
.company-news__head h3 { margin: 0; font-size: clamp(20px, 2vw, 24px); }
.company-news__head .link-arrow { color: var(--brand); }
.news h4 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 10px; }
.news h4 a { color: var(--c-ink); text-decoration: none; }
.news h4 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news h4 a:focus-visible { outline: none; }
.news:has(h4 a:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 3px; }


.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
:where(.events li) { --brand: var(--c-ink); }
.events li { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-s); }
.events__date { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-content: center; text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.card--easykaufmann .events__date { background: var(--c-easykaufmann-grad); }
.events__date b { display: block; font-size: 22px; color: #fff; }
.events li > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.events strong { font-size: 17px; }
.events small { color: var(--c-muted); font-size: 14px; }
.events .card__tag { margin: 0; font-size: 12px; }

.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jobs li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; }
.jobs strong { color: #fff; }
.jobs span { font-size: 14px; color: rgba(255, 255, 255, .7); }

@media (max-width: 1024px) {
  .news-grid, .news-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .news--featured { grid-template-columns: 1fr; }
  .news--featured .news__media { min-height: 0; aspect-ratio: 16 / 10; }
  .news--featured .news__body { border-left: 0; border-top: 4px solid var(--brand); }
}
@media (max-width: 767px) {
  .news-grid, .news-grid--4 { grid-template-columns: 1fr; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .filter button { flex: none; }
}

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brands { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel__btn--prev { left: 4px; }
  .carousel__btn--next { right: 4px; }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .brand-mosaic { max-width: 560px; }
  .icon-boxes { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .cta__logo { justify-self: start; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse-mobile > :first-child { order: 2; }
  .cards { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counter:nth-child(3) { border-left: 0; }
  .counter:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .brand-mosaic { gap: 12px; }
  .brand-mosaic a:nth-child(2), .brand-mosaic a:nth-child(4) { transform: translateY(16px); }
  .logo-strip { grid-template-columns: 1fr 1fr; }
  .logo-strip li { min-height: 96px; padding: 18px; }
  .carousel__track { grid-auto-columns: 86%; gap: 16px; }
  .carousel__btn { display: none; }
  .posts { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bar { padding-bottom: 84px; padding-right: var(--gutter); }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .brands { grid-template-columns: 1fr; }
  .brand__logo { padding: 18px 48px 0; }
}
