/* IMS Messebau – Stylesheet
   Gestaltung angelehnt an den Shop ims-druck.de:
   Blau/Indigo-Verlauf, heller Verlaufshintergrund (blau -> weiss -> teal),
   weisse Karten mit runden Ecken und weichen Schatten, System-Schrift (keine externen Fonts).
   Orange aus dem IMS-Logo nur als kleiner Akzent. */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --teal-50: #f0fdfa;
  --orange: #f29400;       /* Logo-Orange */
  --logo-blue: #104c8c;    /* Logo-Blau */

  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;

  --grad: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  --grad-page: linear-gradient(135deg, var(--blue-50), #ffffff 50%, var(--teal-50));

  --r-md: .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --sh-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --sh-md: 0 4px 6px -1px rgba(17, 24, 39, .08), 0 2px 4px -2px rgba(17, 24, 39, .06);
  --sh-lg: 0 10px 15px -3px rgba(17, 24, 39, .10), 0 4px 6px -4px rgba(17, 24, 39, .08);
  --sh-xl: 0 25px 50px -12px rgba(30, 58, 138, .28);

  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.center { text-align: center; margin-top: 2.5rem; }
/* padding/margin: Platz fuer ueberstehende Buchstaben (z. B. "?" bei enger Laufweite), sonst schneidet der Verlauf sie ab */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em .08em; margin: 0 -.12em -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: .35rem .8rem; border-radius: 9999px; margin-bottom: 1.1rem;
}
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  padding: .95rem 1.6rem; border-radius: var(--r-md); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--sh-lg); }
.btn--primary:hover { color: #fff; box-shadow: var(--sh-xl); }
.btn--ghost { background: #fff; color: var(--blue-700); border-color: var(--blue-200); }
.btn--ghost:hover { border-color: var(--blue-600); background: var(--blue-50); }
.btn--white { background: #fff; color: var(--blue-700); box-shadow: var(--sh-lg); }
.btn--outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--sm { padding: .65rem 1.1rem; font-size: .9375rem; }
.btnrow { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Kopf ---------- */
.topbar { background: var(--blue-900); color: #dbeafe; font-size: .875rem; }
.topbar__in { display: flex; justify-content: flex-end; gap: 1.5rem; padding-block: .45rem; }
.topbar__item { color: inherit; }
a.topbar__item:hover { color: #fff; }
.topbar__item--strong { font-weight: 700; color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease;
}
.header.is-stuck { box-shadow: var(--sh-md); border-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { height: 2.4rem; width: auto; }
.brand__text { font-size: 1.375rem; font-weight: 900; letter-spacing: -.02em; color: var(--logo-blue); white-space: nowrap; }
.brand__text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand--light .brand__text, .brand--light .brand__text span { color: #fff; background: none; }
.brand__chip { background: #fff; border-radius: var(--r-md); padding: .4rem .6rem; display: inline-flex; }
.brand__chip img { height: 1.9rem; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--text); font-weight: 600; font-size: .9875rem; padding-block: .4rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--blue-600); border-color: var(--blue-600); }

.navtoggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; padding: 0; }
.navtoggle span { display: block; width: 1.25rem; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-page); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: 1.1875rem; max-width: 34rem; margin-bottom: 1.75rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--blue-100); font-size: .9375rem; color: var(--muted); }
.hero__facts strong { display: block; color: var(--ink); font-size: 1.25rem; font-weight: 800; }

.hero__media { position: relative; padding-bottom: 3rem; padding-left: 2rem; }
.hero__img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-xl); }
.hero__img2 { position: absolute; left: 0; bottom: 0; width: 38%; border-radius: var(--r-lg); border: 5px solid #fff; box-shadow: var(--sh-lg); }
.hero__badge {
  position: absolute; right: -.5rem; bottom: 1.25rem;
  background: var(--grad); color: #fff; padding: .85rem 1.2rem; border-radius: var(--r-lg);
  box-shadow: var(--sh-xl); display: grid; gap: .1rem; transform: rotate(-2deg);
}
.hero__badge-top { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero__badge-main { font-weight: 800; font-size: .9875rem; }

/* ---------- Kundenlogos ---------- */
.logos { padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.logos__h { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 1.5rem; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.25rem; }
.logos__row img { height: 2.6rem; width: auto; opacity: .8; transition: opacity .2s ease; }
.logos__row img:hover { opacity: 1; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--grad-page); }
.section--dark { background: linear-gradient(135deg, var(--blue-900), #1e40af 55%, var(--indigo-700)); color: #dbeafe; }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }

.sechead { max-width: 46rem; margin: 0 auto 2.75rem; text-align: center; }
.sechead p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.duo img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; }
.duo img:first-child { margin-top: 2.5rem; }
.duo--flat img:first-child { margin-top: 0; }
.duo--flat img { background: #fff; border: 1px solid var(--line); }

.checks { margin: 0 0 1.9rem; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--grad) center / cover;
}
.checks li::after {
  content: ""; position: absolute; left: .47rem; top: .5rem; width: .42rem; height: .7rem;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- Karten ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid #f3f4f6; border-radius: var(--r-lg); padding: 1.75rem;
  box-shadow: var(--sh-md); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.card__icon {
  width: 3.25rem; height: 3.25rem; border-radius: var(--r-md); background: var(--grad);
  display: grid; place-items: center; margin-bottom: 1.2rem; box-shadow: var(--sh-lg);
}
.card__icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Referenzen ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-md); transition: transform .3s ease, box-shadow .3s ease; }
.gallery img:hover { transform: scale(1.03); box-shadow: var(--sh-xl); }

/* Drei Vorteile als eine durchgehende Leiste mit Trennlinien */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.benefits li { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; transition: background-color .25s ease; }
.benefits li + li { border-left: 1px solid var(--line); }
.benefits li:hover { background: var(--blue-50); }
.benefits__icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--grad); box-shadow: var(--sh-md); }
.benefits__icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.benefits strong { display: block; color: var(--ink); font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.benefits div span { color: var(--muted); font-size: .9688rem; }
.referenzen .sechead h2 { font-size: clamp(2rem, 3.8vw, 2.875rem); font-weight: 900; }

/* ---------- Vergleich ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare__col { border-radius: var(--r-lg); padding: 1.6rem 1.4rem; }
.compare__col h3 { font-size: 1.0625rem; margin-bottom: 1rem; }
.compare__col ul { display: grid; gap: .7rem; font-size: 1rem; }
.compare__col li { position: relative; padding-left: 1.7rem; }
.compare__col li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.compare__col--them { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.compare__col--them li::before { content: "✕"; color: #fca5a5; }
.compare__col--us { background: #fff; color: var(--text); box-shadow: var(--sh-xl); }
.section--dark .compare__col--us h3 { color: var(--blue-700); }
.compare__col--us li { color: var(--ink); font-weight: 600; }
.compare__col--us li::before { content: "✓"; color: #16a34a; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; counter-reset: none; }
.step { background: #fff; border: 1px solid #f3f4f6; border-radius: var(--r-lg); padding: 1.5rem 1.25rem; box-shadow: var(--sh-md); }
.step__no {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.125rem; margin-bottom: 1rem; box-shadow: var(--sh-lg);
}
.step h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.step p { margin: 0; font-size: .9375rem; color: var(--muted); line-height: 1.55; }

/* ---------- Kundenstimmen ---------- */
.stars { color: #f59e0b; letter-spacing: .1em; display: block; font-size: 1.5rem; margin-bottom: .4rem; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.6rem; box-shadow: var(--sh-sm); display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.quote blockquote { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.6; }
.quote figcaption { font-weight: 700; color: var(--blue-700); font-size: .9375rem; }

/* ---------- Ansprechpartner ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.person { margin: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.person figcaption { padding: .9rem 1.1rem; font-weight: 700; color: var(--ink); }

/* ---------- Abschluss ---------- */
.cta { background: var(--grad); color: #e0e7ff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 34rem; margin-bottom: .5rem; }
.cta p { margin: 0; font-size: 1.125rem; }

/* ---------- Fuss ---------- */
/* Fusszeile: dunkelblauer Verlauf mit Lichtfleck, Logo + Leitsatz, Kontakt mit Symbol-Kacheln, Seiten, Rechtliches */
.footer { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #0b1d4d, var(--blue-900) 50%, #312e81); color: #c7d2fe; font-size: .9688rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--blue-500), var(--indigo-600)); }
.footer::after { content: ""; position: absolute; z-index: -1; width: 32rem; height: 32rem; right: -8rem; top: -14rem; border-radius: 50%; background: rgba(99, 102, 241, .45); filter: blur(90px); }
.footer a { color: #fff; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1.35fr .6fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.footer__logo { display: inline-block; padding: .7rem 1rem; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-xl); transition: transform .25s ease; }
.footer__logo:hover { transform: translateY(-3px); }
.footer__logo img { display: block; width: auto; height: 2.75rem; }
.footer__leitsatz { margin: 1.4rem 0 .6rem; color: #fff; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.footer__leitsatz span { display: block; color: #93c5fd; }
.footer__claim { margin: 0; max-width: 24rem; color: #c7d2fe; }
.footer__social { display: flex; gap: .6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.footer__social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.footer__social a:hover { background: #fff; color: var(--blue-700); transform: translateY(-3px); text-decoration: none; }
.footer__social svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.footer__social svg.linie { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__h { margin: 0 0 1.1rem; color: #93c5fd; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer__kontakt { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.footer__kontakt li { display: flex; align-items: center; gap: .9rem; }
.footer__kontakt address { font-style: normal; }
.footer__icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.footer__icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__gross { font-size: 1.125rem; font-weight: 800; }
.footer__links { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-block; font-weight: 600; transition: transform .2s ease; }
.footer__links a:hover { transform: translateX(4px); }
.footer__unten { background: rgba(2, 6, 23, .35); border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.1rem; font-size: .875rem; color: #a5b4fc; }
.footer__legal { display: flex; gap: 1.5rem; }

/* ================= Unterseiten ================= */

/* ---------- Seitenkopf ---------- */
.pagehero { background: var(--grad-page); padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--blue-100); }
.pagehero__in { max-width: 48rem; }
.pagehero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.pagehero .lead { margin-bottom: 0; max-width: 40rem; }

/* ---------- Formulare ---------- */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.25rem); box-shadow: var(--sh-lg); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .8rem .95rem; border: 1px solid #d1d5db; border-radius: var(--r-md); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.check { grid-column: 1 / -1; display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--blue-600); flex: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__msg { margin: 0; font-weight: 600; flex: 1 1 14rem; }
.form__msg.is-ok { color: #15803d; }
.form__msg.is-err { color: #b91c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Kontakt ---------- */
.infolist { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; box-shadow: var(--sh-sm); }
.info .card__icon { width: 2.75rem; height: 2.75rem; margin: 0; flex: none; }
.info .card__icon svg { width: 1.35rem; height: 1.35rem; }
.info h3 { font-size: 1rem; margin: 0 0 .15rem; }
.info p { margin: 0; }
.photo { border-radius: var(--r-xl); box-shadow: var(--sh-lg); width: 100%; }

/* ---------- Text / Recht ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1rem; display: grid; gap: .35rem; }

/* ---------- Team / Geschichte ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.person figcaption span { display: block; font-weight: 400; font-size: .9375rem; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.timeline li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--r-md); padding: 1.1rem 1.3rem; box-shadow: var(--sh-sm); }
.timeline strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--blue-700); }

/* ---------- Jobs ---------- */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.job { display: flex; flex-direction: column; align-items: flex-start; }
.job .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.tag { font-size: .8125rem; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 9999px; padding: .2rem .7rem; }
.job > p { margin-bottom: 1rem; color: var(--text); }
.job details { width: 100%; margin-bottom: 1.25rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.job summary { cursor: pointer; font-weight: 700; color: var(--blue-700); }
.job details h4 { margin: 1rem 0 .4rem; font-size: .9375rem; color: var(--ink); }
.job details ul { list-style: disc; padding-left: 1.3rem; font-size: .9688rem; display: grid; gap: .25rem; }
.job .btn { margin-top: auto; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.5rem 0; }
.values li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); padding: .9rem 1.1rem; }
.values strong { display: block; }

.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.35rem; box-shadow: var(--sh-sm); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details[open] summary { color: var(--blue-700); margin-bottom: .6rem; }
.faq p { margin: 0; }

@media (max-width: 960px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form, .timeline, .values { grid-template-columns: 1fr; }
}

/* Kopf: Logo allein (das Zeichen ist bereits der Schriftzug "ims"), Begruessung links in der dunklen Leiste */
.header .brand img { height: 3.1rem; }
/* Oberste Zeile: Leitsatz links, Telefonnummer rechts. Oeffnungszeiten und E-Mail stehen auf der Kontaktseite und im Fuss. */
.topbar { background: linear-gradient(90deg, var(--blue-900), #1e40af 60%, var(--indigo-700)); }
.topbar__in { justify-content: space-between; align-items: center; padding-block: .55rem; }
.topbar__claim { color: #fff; font-weight: 600; font-size: .9375rem; letter-spacing: .02em; }
.topbar__tel { color: #fff; font-weight: 700; white-space: nowrap; }
.topbar__tel:hover { color: #fff; text-decoration: underline; }
/* Kopf und oberste Zeile so breit wie das grosse Bild darunter -> Logo sitzt buendig mit der linken Bildkante */
@media (min-width: 1400px) {
  .topbar .wrap, .header .wrap { max-width: calc(var(--wrap) + 10rem); }
}
@media (max-width: 640px) {
  .header .brand img { height: 2.5rem; }
  .topbar__in { justify-content: center; }
  .topbar__claim { font-size: .8125rem; }
  .topbar__tel { display: none; }   /* Anrufen steckt auf dem Handy in der festen Leiste unten */
}

/* ================= Bewegung & Besonderes ================= */

/* Fortschrittsbalken beim Scrollen */
.progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--blue-600), var(--indigo-600)); border-radius: 0 3px 3px 0; }

/* Verlaufstext schimmert langsam */
.grad { background-image: linear-gradient(90deg, var(--blue-600), var(--indigo-600), #7c3aed, var(--blue-600)); background-size: 300% 100%; animation: schimmer 9s linear infinite; }
@keyframes schimmer { to { background-position: -300% 0; } }

/* Buttons: Lichtstreifen beim Ueberfahren */
.btn--primary, .btn--white { position: relative; overflow: hidden; }
.btn--primary::after, .btn--white::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn--white::after { background: linear-gradient(100deg, transparent, rgba(37, 99, 235, .18), transparent); }
.btn--primary:hover::after, .btn--white:hover::after { left: 130%; }

/* Hero: schwebende Farbflaechen + Logo-Zickzack im Hintergrund */
.hero { position: relative; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: schweben 16s ease-in-out infinite alternate; }
.blob--1 { width: 34rem; height: 34rem; background: #bfdbfe; top: -12rem; left: -8rem; }
.blob--2 { width: 28rem; height: 28rem; background: #c7d2fe; bottom: -12rem; right: 8%; animation-delay: -5s; }
.blob--3 { width: 16rem; height: 16rem; background: #fed7aa; top: 18%; right: -4rem; opacity: .45; animation-delay: -9s; }
@keyframes schweben { to { transform: translate3d(3rem, 2rem, 0) scale(1.12); } }

.eyebrow .dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); margin-right: .5rem; vertical-align: middle; box-shadow: 0 0 0 0 rgba(242, 148, 0, .6); animation: puls 2.2s ease-out infinite; }
@keyframes puls { to { box-shadow: 0 0 0 .6rem rgba(242, 148, 0, 0); } }

.hero__media { perspective: 1200px; }
.hero__frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-xl); transition: transform .25s ease-out; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.hero__frame .hero__img { box-shadow: none; border-radius: 0; animation: zoom 22s ease-in-out infinite alternate; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero__img2 { animation: auf-ab 7s ease-in-out infinite alternate; }
.hero__badge { animation: auf-ab 6s ease-in-out -2s infinite alternate; }
@keyframes auf-ab { from { translate: 0 0; } to { translate: 0 -10px; } }
.hero__facts strong { font-size: 1.75rem; font-weight: 900; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__facts .star { color: #f59e0b; -webkit-text-fill-color: #f59e0b; }

/* Hero-Buehne: ein Bild zeigt, wie der Stand entsteht (Skizze links -> fertiger Stand rechts).
   Beim Laden wird das Bild von links nach rechts "aufgebaut", die drei Phasen leuchten nacheinander auf. */
.hero__grid--stack { grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); }
.hero__grid--stack .hero__text { text-align: center; max-width: 54rem; margin-inline: auto; }
.hero__grid--stack .lead { margin-inline: auto; max-width: 42rem; }
.hero__grid--stack .btnrow { justify-content: center; }
.hero__grid--stack .hero__facts { justify-content: center; gap: 1rem 4rem; margin-top: 0; text-align: center; }

/* Reihenfolge im Hero: Ueberschrift -> Bild mit Phasen -> Text + Buttons -> Kennzahlen */
.hero:has(.hero__grid--stack) { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero__grid--stack { gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero__grid--stack .hero__text h1 { margin-bottom: 0; }
.hero__grid--stack .hero__text .eyebrow { margin-bottom: 1.25rem; }
/* Unter dem Bild: helle Glasflaeche, links Frage + Text, rechts die beiden grossen Buttons */
.hero__unten {
  display: grid; grid-template-columns: 1.35fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px);
  border: 1px solid #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem) clamp(1.4rem, 3.5vw, 2.75rem);
  position: relative; overflow: hidden;
}
.hero__unten::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--orange), var(--blue-600), var(--indigo-600)); }
.hero__frage { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 900; margin-bottom: .6rem; }
.hero__unten .lead { font-size: 1.125rem; margin: 0; max-width: 38rem; color: var(--text); }

.hero__aktion { display: grid; gap: .75rem; min-width: 19rem; }
.btn--gross { padding: 1.1rem 1.6rem; font-size: 1.125rem; border-radius: var(--r-lg); justify-content: space-between; }
.btn--gross > svg { width: 1.35em; height: 1.35em; transition: transform .25s ease; }
.btn--gross:hover > svg { transform: translateX(5px); }
.btn--tel { justify-content: flex-start; gap: .9rem; padding-block: .75rem; text-align: left; }
.btn__icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--sh-md); }
.btn__icon svg { width: 1.25rem; height: 1.25rem; }
.btn--tel:hover .btn__icon { animation: klingeln .6s ease; }
@keyframes klingeln { 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.btn__zwei { display: grid; line-height: 1.2; color: var(--ink); font-size: 1.1875rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn__zwei small { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); }
.hero__hinweis { margin: 0; text-align: center; font-size: .875rem; color: var(--muted); }
.hero__hinweis::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #22c55e; margin-right: .5rem; vertical-align: middle; }

@media (max-width: 900px) {
  .hero__unten { grid-template-columns: 1fr; }
  .hero__aktion { min-width: 0; }
}

.buehne { position: relative; }
.buehne__bild { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #f8f4f1; box-shadow: var(--sh-xl); border: 1px solid rgba(255, 255, 255, .8); }
.buehne__bild img { width: 100%; height: auto; aspect-ratio: 2000 / 733; object-fit: cover; }
.buehne__papier { position: absolute; inset: 0; background: #f8f4f1; transform-origin: right center; transform: scaleX(0); animation: aufbauen 2.6s cubic-bezier(.65, 0, .25, 1) .25s backwards; }
@keyframes aufbauen { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.buehne__linie { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(180deg, transparent, var(--blue-500), var(--orange), transparent); box-shadow: 0 0 18px 4px rgba(59, 130, 246, .55); opacity: 0; animation: linie 2.6s cubic-bezier(.65, 0, .25, 1) .25s backwards; }
@keyframes linie { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.buehne .hero__badge { right: auto; bottom: auto; left: 1.25rem; top: 1.25rem; transform: rotate(-2deg); padding: .75rem 1.1rem .8rem; gap: .3rem; border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), var(--sh-xl); }
/* "Alles aus einer Hand" ist die Hauptzeile, die drei Phasen stehen kleiner darunter */
.buehne .hero__badge-top { font-size: clamp(1.0625rem, 1.7vw, 1.375rem); font-weight: 900; letter-spacing: -.01em; text-transform: none; opacity: 1; line-height: 1.1; padding-bottom: .4rem; border-bottom: 3px solid var(--orange); }
.buehne .hero__badge-main { font-size: .8438rem; font-weight: 700; opacity: 1; }

.buehne__phasen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; position: relative; }
.buehne__phasen li { display: flex; gap: .9rem; align-items: center; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .95rem 1.1rem; box-shadow: var(--sh-sm); animation: phase .7s ease backwards; }
.buehne__phasen li:nth-child(1) { animation-delay: .5s; }
.buehne__phasen li:nth-child(2) { animation-delay: 1.4s; }
.buehne__phasen li:nth-child(3) { animation-delay: 2.3s; }
@keyframes phase { from { opacity: .25; transform: translateY(8px); } 60% { box-shadow: 0 0 0 4px var(--blue-100), var(--sh-lg); } }
.buehne__nr { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; box-shadow: var(--sh-lg); }
.buehne__phasen strong { display: block; color: var(--ink); font-size: 1.0625rem; line-height: 1.2; }
.buehne__phasen div span { color: var(--muted); font-size: .9rem; line-height: 1.35; display: block; margin-top: .15rem; }

/* Die drei Phasen als kraeftige Kacheln. Wie im Bild wird es von links nach rechts "fertiger":
   1 = Skizze (gestrichelter Rahmen), 2 = im Bau (hellblau), 3 = fertig (voller Verlauf). Pfeile verbinden die Schritte. */
.buehne__phasen { gap: 1.75rem; margin-top: 1.5rem; }
.buehne__phasen li.phase { position: relative; gap: .9rem; padding: .8rem 1.15rem; border-radius: var(--r-xl); border-width: 2px; box-shadow: var(--sh-lg); transition: transform .25s ease, box-shadow .25s ease; }
.buehne__phasen li.phase:hover { transform: translateY(-5px); box-shadow: var(--sh-xl); }
.phase .buehne__nr { width: 2.9rem; height: 2.9rem; border-radius: var(--r-md); }
.phase .buehne__nr svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.phase em { display: block; font-style: normal; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .15rem; }
.phase em { font-size: .6875rem; margin-bottom: .05rem; }
.buehne__phasen .phase strong { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.buehne__phasen .phase div span { font-size: .875rem; margin-top: .1rem; line-height: 1.3; }

.phase--1 { background: #fff; border: 2px dashed #94a3b8 !important; }
.phase--1 .buehne__nr { background: #fff; color: #475569; border: 2px dashed #94a3b8; box-shadow: none; }
.phase--1 em { color: #64748b; }
.phase--2 { background: linear-gradient(135deg, var(--blue-50), var(--blue-100)) !important; border-color: var(--blue-500) !important; }
.phase--3 { background: var(--grad) !important; border-color: transparent !important; box-shadow: var(--sh-xl) !important; }
.phase--3 .buehne__nr { background: #fff; color: var(--blue-700); }
.phase--3 em { color: #fde68a; }
.buehne__phasen .phase--3 strong { color: #fff; }
.buehne__phasen .phase--3 div span { color: #dbeafe; }

/* Pfeil zum naechsten Schritt */
.phase:not(:last-child)::after { content: ""; position: absolute; right: -1.75rem; top: 50%; width: 1.75rem; height: 1.75rem; transform: translateY(-50%); background: no-repeat center / 1.35rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
@media (max-width: 760px) {
  .buehne__phasen { gap: .5rem; margin-top: .75rem; }
  .buehne__phasen li.phase { padding: .75rem .7rem; gap: .5rem; border-radius: var(--r-lg); }
  .phase .buehne__nr { width: 2.4rem; height: 2.4rem; border-radius: var(--r-md); }
  .phase .buehne__nr svg { width: 1.25rem; height: 1.25rem; }
  .phase em { display: none; }
  .buehne__phasen .phase strong { font-size: 1rem; }
  .phase:not(:last-child)::after { display: none; }
}

@media (min-width: 1400px) { .buehne, .hero__unten, .zahlen { margin-inline: -5rem; } }

/* Abschnitt "Mehr Aufmerksamkeit": links gestaffelte Bilder vor Farbflaeche, rechts die Vorteile als Zeilen mit Symbol */
.nutzen { position: relative; overflow: hidden; }
.titel, .nutzen__titel, .leist__titel, .warum__titel, .ablauf__titel, .kontakt__titel { max-width: 22ch; margin: 0 auto clamp(2.25rem, 5vw, 3.75rem); text-align: center; font-size: clamp(2.125rem, 5vw, 3.75rem); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.nutzen__bilder { position: relative; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: clamp(.6rem, 1.4vw, 1rem); }
.nutzen__form { position: absolute; inset: 12% -2.5% 12% -2.5%; z-index: 0; border-radius: 2.5rem; background: var(--grad); transform: rotate(-1.5deg); opacity: .9; }
.nutzen__bild { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 4px solid #fff; box-shadow: var(--sh-lg); transition: transform .35s ease, box-shadow .35s ease; }
.nutzen__bild:hover { transform: scale(1.035); box-shadow: var(--sh-xl); z-index: 2; }
.nutzen__bild--gross { grid-column: 2; grid-row: 1 / span 2; height: 100%; aspect-ratio: auto; border-radius: var(--r-xl); }
.nutzen__bild--gross:hover { transform: scale(1.015); }
.nutzen__bild--a { grid-column: 1; grid-row: 1; }
.nutzen__bild--c { grid-column: 1; grid-row: 2; }
.nutzen__bild--b { grid-column: 3; grid-row: 1; }
.nutzen__bild--d { grid-column: 3; grid-row: 2; }
@media (max-width: 640px) {
  .nutzen__bilder { grid-template-columns: 1fr 1fr; }
  .nutzen__bild--gross { grid-column: 1 / -1; grid-row: 1; height: auto; aspect-ratio: 4 / 3; }
  .nutzen__bild--a { grid-column: 1; grid-row: 2; }
  .nutzen__bild--b { grid-column: 2; grid-row: 2; }
  .nutzen__bild--c { grid-column: 1; grid-row: 3; }
  .nutzen__bild--d { grid-column: 2; grid-row: 3; }
  .nutzen__form { inset: 20% -6% 8% -6%; }
}

/* Leistungen: grosse Ueberschrift, darunter sieben kompakte Felder (oben 4, unten 3 breitere) */
.leist { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.75rem, 1.4vw, 1.1rem); margin: 0; padding: 0; list-style: none; }
.leist__feld { grid-column: span 3; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .3rem; padding: 1.35rem 1.35rem 1.45rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.leist__feld:nth-child(n+5) { grid-column: span 4; }
.leist__feld::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.leist__feld:hover { transform: translateY(-4px); border-color: var(--blue-200); box-shadow: var(--sh-lg); }
.leist__feld:hover::after { transform: scaleX(1); }
.leist__icon { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: .9rem; border-radius: var(--r-lg); transition: transform .3s ease; background: var(--grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .6); }
.leist__feld:hover .leist__icon { transform: scale(1.08) rotate(-4deg); }
.leist__deko { position: absolute; right: -1.4rem; bottom: -1.6rem; width: 9.5rem; height: 9.5rem; fill: none; stroke: var(--blue-600); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .09; transform: rotate(-12deg); transition: opacity .3s ease, transform .4s ease; pointer-events: none; }
.leist__feld:hover .leist__deko { opacity: .18; transform: rotate(-6deg) scale(1.06); }
.leist__icon svg { width: 2.5rem; height: 2.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.leist__feld strong, .leist__feld span:not(.leist__icon), .leist__feld em { position: relative; }
.leist__feld strong { color: var(--ink); font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.leist__feld span:not(.leist__icon) { color: var(--muted); font-size: .9688rem; line-height: 1.45; }
.leist__feld em { align-self: flex-start; margin-top: .55rem; padding: .2rem .6rem; border-radius: 99px; background: var(--blue-50); color: var(--blue-700); font-size: .75rem; font-weight: 700; font-style: normal; letter-spacing: .02em; }
@media (max-width: 960px) {
  .leist__feld, .leist__feld:nth-child(n+5) { grid-column: span 6; }
  .leist__feld:last-child { grid-column: span 12; }
}
@media (max-width: 560px) {
  .leist__feld, .leist__feld:nth-child(n+5), .leist__feld:last-child { grid-column: span 12; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .15rem; align-items: center; padding: 1rem 1.1rem; }
  .leist__icon { grid-row: 1 / span 3; margin-bottom: 0; align-self: start; width: 3.75rem; height: 3.75rem; }
  .leist__deko { width: 7rem; height: 7rem; }
  .leist__feld em { margin-top: .3rem; justify-self: start; }
}

/* Warum IMS (dunkler Abschnitt): grosse Ueberschrift, Text in zwei Spalten, weisse Karte mit den fuenf Haken, Schlusssatz */
.warum__titel { max-width: 24ch; }
.warum__titel span, .warum__fazit span { color: #93c5fd; }
.warum__text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.warum__text p { margin: 0; font-size: 1.0625rem; line-height: 1.7; }
.warum__karte { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); padding: 1.4rem 1.75rem; border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh-xl); }
.section--dark .warum__karte h3 { margin: 0; color: var(--blue-700); font-size: 1.375rem; font-weight: 900; line-height: 1.2; }
.warum__karte ul { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-around; gap: .6rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.warum__karte li { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; font-size: 1.0313rem; }
.warum__karte li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: .875rem; font-weight: 900; }
.warum__fazit { margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0; text-align: center; color: #fff; font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 900; line-height: 1.25; text-wrap: balance; }
@media (max-width: 960px) {
  .warum__karte ul { justify-content: center; }
}
@media (max-width: 720px) {
  .warum__text { grid-template-columns: 1fr; gap: 1rem; }
  .warum__karte { align-items: flex-start; }
  .warum__karte ul { flex-direction: column; }
}

/* Ablauf: grosse Ueberschrift, darunter fuenf Felder mit grosser Nummer (Kachel + zarte Riesenziffer), verbunden durch eine Linie */
.ablauf__titel { max-width: 26ch; }
.schritte { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.75rem, 1.4vw, 1.1rem); margin: 0; padding: 0; list-style: none; }
.schritt { position: relative; overflow: hidden; padding: 1.35rem 1.25rem 1.45rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.schritt:hover { transform: translateY(-4px); border-color: var(--blue-200); box-shadow: var(--sh-lg); }
.schritt::before { content: attr(data-nr); position: absolute; right: -.4rem; bottom: -2.6rem; color: var(--blue-600); opacity: .08; font-size: 10rem; font-weight: 900; line-height: 1; pointer-events: none; transition: opacity .3s ease; }
.schritt:hover::before { opacity: .16; }
.schritt__nr { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: .9rem; border-radius: var(--r-lg); background: var(--grad); color: #fff; font-size: 2.25rem; font-weight: 900; line-height: 1; box-shadow: 0 8px 16px -8px rgba(37, 99, 235, .6); transition: transform .3s ease; }
.schritt:hover .schritt__nr { transform: scale(1.08) rotate(-4deg); }
.schritt h3 { position: relative; margin: 0 0 .45rem; color: var(--ink); font-size: 1.125rem; font-weight: 800; line-height: 1.25; hyphens: auto; }
.schritt p { position: relative; margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.ablauf__kontakt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); padding: 1.5rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); }
.ablauf__kontakt p { flex: 1 1 22rem; margin: 0; color: var(--ink); font-size: clamp(1.25rem, 2.3vw, 1.625rem); font-weight: 900; line-height: 1.25; text-wrap: balance; }
.ablauf__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 1080px) {
  .schritte { grid-template-columns: repeat(6, 1fr); }
  .schritt { grid-column: span 2; }
  .schritt:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 640px) {
  .schritte { grid-template-columns: 1fr; }
  .schritt, .schritt:nth-child(n+4) { grid-column: auto; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; padding: 1rem 1.1rem; }
  .schritt__nr { grid-row: 1 / span 2; width: 3.5rem; height: 3.5rem; margin-bottom: 0; font-size: 1.75rem; }
}

/* Kopfzeile: die zwei Shop-Buttons rechts neben dem Menue */
.nav__shops { display: flex; gap: .6rem; }
@media (max-width: 1180px) and (min-width: 961px) { .nav { gap: 1.1rem; } .nav__shops .btn { padding-inline: .85rem; } }

/* Kontaktseite: vier Felder mit den Kontaktdaten, darunter die Standortkarte (festes Bild) mit Schild */
.kontakt__daten .leist__feld a { color: var(--blue-700); font-weight: 700; overflow-wrap: anywhere; }
.kontakt__daten .leist__feld a:hover { text-decoration: underline; }
.karte { position: relative; margin: clamp(.75rem, 1.4vw, 1.1rem) 0 0; }
.karte__bild { position: relative; z-index: 0; height: clamp(22rem, 52vw, 40rem); overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--sh-lg); background: #e5e7eb; font-family: var(--font); }
.karte__marke { pointer-events: none; }
.karte__bild > .karte__marke { display: none; }   /* Rohdaten im HTML – die Karte setzt daraus ihre Markierungen */
.karte__marke i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--indigo-600); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .35); pointer-events: auto; }
.karte__marke b { position: absolute; top: -.8rem; left: 13px; padding: .12rem .5rem; border-radius: .45rem; background: rgba(255, 255, 255, .94); color: var(--indigo-700); font-size: .8125rem; font-weight: 800; line-height: 1.35; white-space: nowrap; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); }
.karte__marke--l b { left: auto; right: 13px; }
.karte__marke[data-rang="2"] b { opacity: 0; transition: opacity .2s ease; }
.karte[data-stufe="2"] .karte__marke[data-rang="2"] b, .karte[data-stufe="3"] .karte__marke[data-rang="2"] b, .karte__marke[data-rang="2"]:hover b { opacity: 1; }
.karte__marke--ims i { left: -17px; top: -41px; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue-600); border: 0; box-shadow: 0 6px 14px rgba(15, 23, 42, .4); }
.karte__marke--ims i::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.karte__marke--ims b { top: -2.45rem; left: auto; right: 24px; padding: .22rem .65rem; background: var(--blue-600); color: #fff; font-size: .9375rem; }
.karte__legende { position: absolute; z-index: 800; left: 1.1rem; bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .5rem .8rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .94); box-shadow: var(--sh-md); color: var(--ink); font-size: .8125rem; font-weight: 700; pointer-events: none; }
.karte__legende span { display: inline-flex; align-items: center; gap: .4rem; }
.karte__punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--indigo-600); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--blue-200); }
.karte__punkt--ims { background: var(--blue-600); }
.karte .karte__bild.leaflet-container { font-family: var(--font); }
.karte .karte__bild .leaflet-bar { border: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-xl); }
.karte .karte__bild .leaflet-bar a { width: 2.6rem; height: 2.6rem; line-height: 2.6rem; color: var(--blue-700); font-size: 1.4rem; font-weight: 800; }
.karte .karte__bild .leaflet-bar a:hover { background: var(--blue-600); color: #fff; }
.karte__schild { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; margin-top: clamp(.75rem, 1.4vw, 1.1rem); padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); }
.karte__schild strong { color: var(--ink); font-size: 1.125rem; font-weight: 900; }
.karte__schild span { flex: 1 1 14rem; color: var(--muted); font-size: 1rem; }
.karte figcaption { order: 3; margin-top: .5rem; text-align: right; color: var(--muted); font-size: .8125rem; }
.karte { display: flex; flex-direction: column; }

/* Unterseiten: Kopf mittig mit grosser Ueberschrift */
.pagehero--mitte .pagehero__in { max-width: none; text-align: center; }
.pagehero--mitte h1 { max-width: 16ch; margin: 0 auto 1rem; font-size: clamp(2.5rem, 6.5vw, 4.5rem); line-height: 1.05; }
.pagehero--mitte .lead { max-width: none; margin-inline: auto; color: var(--ink); font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 800; }

.pagehero__text { max-width: 46rem; margin: 0 auto; font-size: 1.1875rem; line-height: 1.65; text-wrap: pretty; }
.titel--breit { max-width: 30ch; }

/* Jobs-Kopf "Handwerk und Kreativitaet": links eine Schreinerei (Werkbank, Hobel, Saege), rechts ein CAD-Fenster mit
   Messestand als Drahtmodell. Gezeichnete Linien (SVG in der Seite), kein Bild. Die CAD-Linien zeichnen sich beim Laden. */
.werk { position: relative; isolation: isolate; overflow: hidden; border-bottom: 0; padding-block: clamp(5.5rem, 12vw, 9.5rem); background: linear-gradient(135deg, #0b1d4d, #1e3a8a 55%, #312e81); }
.werk h1, .werk .pagehero__text { position: relative; color: #fff; text-shadow: 0 4px 28px rgba(5, 13, 42, .85); }
.werk .pagehero__text { max-width: 34rem; color: #dbeafe; }
.werk .grad { background-image: linear-gradient(90deg, #93c5fd, #c4b5fd, #f0abfc, #93c5fd); text-shadow: none; }
.werk__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.werk__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 75% at 50% 50%, rgba(11, 29, 77, .92), rgba(11, 29, 77, .55) 60%, rgba(11, 29, 77, 0)); }
.werk__grafik { position: absolute; top: 0; height: 100%; width: min(44vw, 40rem); fill: none; stroke: #bfdbfe; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.werk__grafik--werkstatt { left: 0; }
.werk__grafik--cad { right: 0; padding-block: 1.25rem; }
.ws__zart { opacity: .35; }
.ws__holz { stroke: #fbbf24; opacity: .8; }
.ws__zaehne { stroke-dasharray: 3 5; stroke-width: 5; }
.ws__blatt { transform-origin: 456px 270px; animation: ws-dreh 5s linear infinite; }
@keyframes ws-dreh { to { transform: rotate(360deg); } }
.cad__fenster { fill: rgba(5, 13, 42, .45); stroke-width: 1.5; }
.cad__rahmen, .cad__werkzeug rect { stroke-width: 1.2; opacity: .6; }
.cad__punkte circle { fill: #93c5fd; stroke: none; opacity: .7; }
.cad__text { fill: #bfdbfe; stroke: none; font: 600 11px ui-monospace, Consolas, monospace; letter-spacing: .04em; opacity: .85; }
.cad__modell { stroke: #7dd3fc; stroke-width: 1.8; }
.cad__linie { stroke-dasharray: 1; stroke-dashoffset: 0; animation: cad-zeichnen 2.6s ease-out both; }
.cad__linie:nth-child(n+4) { animation-delay: .5s; }
.cad__linie:nth-child(n+9) { animation-delay: 1s; }
.cad__linie:nth-child(n+12) { animation-delay: 1.5s; }
@keyframes cad-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cad__mass { stroke: #fbbf24; stroke-width: 1; opacity: .9; }
.cad__mass text { fill: #fbbf24; stroke: none; font: 700 11px ui-monospace, Consolas, monospace; }
.cad__kreuz { stroke: #f0abfc; stroke-width: .8; opacity: .7; }
@media (max-width: 900px) {
  .werk__grafik { width: 58vw; opacity: .4; }
  .werk__bg::after { background: rgba(11, 29, 77, .45); }
}
@media (prefers-reduced-motion: reduce) { .ws__blatt, .cad__linie { animation: none; } }

/* "Hinter den Kulissen": Buehne als Hintergrund – Traverse mit vier Scheinwerfern, Lichtkegel, Vorhaenge links/rechts,
   die sich beim Laden oeffnen. Alles reines CSS, kein Bild. */
.kulisse { position: relative; isolation: isolate; overflow: hidden; border-bottom: 0; padding-block: clamp(6.5rem, 14vw, 10.5rem) clamp(4.5rem, 10vw, 7.5rem); background: radial-gradient(ellipse 80% 90% at 50% 110%, #1e40af 0%, #0b1d4d 55%, #050d2a 100%); }
.kulisse h1, .kulisse .lead { position: relative; color: #fff; text-shadow: 0 4px 30px rgba(5, 13, 42, .7); }
.kulisse .lead { color: #dbeafe; }
.kulisse .grad { background-image: linear-gradient(90deg, #93c5fd, #c4b5fd, #f0abfc, #93c5fd); text-shadow: none; }
.kulisse__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kulisse__boden { position: absolute; left: 10%; right: 10%; bottom: -3rem; height: 9rem; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(147, 197, 253, .45), rgba(147, 197, 253, 0) 70%); }
.kulisse__traverse { position: absolute; left: 0; right: 0; top: 1.4rem; height: 28px; opacity: .8; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='28'%3E%3Cpath d='M0 2h40M0 26h40M0 26L20 2l20 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x; }
.kulisse__lampe { position: absolute; top: calc(1.4rem + 24px); width: 2.1rem; height: 1.7rem; margin-left: -1.05rem; border-radius: .3rem .3rem .9rem .9rem; background: linear-gradient(#334155, #0f172a); box-shadow: 0 10px 22px 4px rgba(191, 219, 254, .7), inset 0 -5px 0 #e0f2fe; }
.kulisse__strahl { position: absolute; top: calc(1.4rem + 44px); width: 30rem; height: 120%; margin-left: -15rem; transform-origin: 50% 0; clip-path: polygon(47.5% 0, 52.5% 0, 100% 100%, 0 100%); background: linear-gradient(to bottom, rgba(219, 234, 254, .55), rgba(191, 219, 254, .14) 55%, rgba(191, 219, 254, 0) 92%); mix-blend-mode: screen; animation: kulisse-schwenk 7s ease-in-out infinite alternate; }
.kulisse__lampe--1, .kulisse__strahl--1 { left: 18%; }
.kulisse__lampe--2, .kulisse__strahl--2 { left: 39%; }
.kulisse__lampe--3, .kulisse__strahl--3 { left: 61%; }
.kulisse__lampe--4, .kulisse__strahl--4 { left: 82%; }
.kulisse__strahl--1 { --von: -30deg; --bis: -16deg; }
.kulisse__strahl--2 { --von: -4deg; --bis: -14deg; animation-duration: 9s; }
.kulisse__strahl--3 { --von: 14deg; --bis: 3deg; animation-duration: 8s; }
.kulisse__strahl--4 { --von: 16deg; --bis: 31deg; animation-duration: 10s; }
@keyframes kulisse-schwenk { from { transform: rotate(var(--von)); } to { transform: rotate(var(--bis)); } }
.kulisse__vorhang { position: absolute; top: 0; bottom: 0; width: clamp(3.5rem, 15vw, 15rem); background: repeating-linear-gradient(90deg, #1e3a8a 0, #3730a3 14px, #131a5c 30px, #1e3a8a 46px); box-shadow: inset 0 -5rem 4rem -2rem rgba(5, 13, 42, .75), 0 0 3rem rgba(5, 13, 42, .8); animation: kulisse-auf 1.6s cubic-bezier(.65, 0, .25, 1) both; }
.kulisse__vorhang--l { left: 0; transform-origin: 0 50%; border-radius: 0 0 85% 0 / 0 0 22% 0; }
.kulisse__vorhang--r { right: 0; transform-origin: 100% 50%; border-radius: 0 0 0 85% / 0 0 0 22%; }
@keyframes kulisse-auf { from { transform: scaleX(3.6); } to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .kulisse__strahl { width: 16rem; margin-left: -8rem; }
  .kulisse__lampe--2, .kulisse__strahl--2, .kulisse__lampe--3, .kulisse__strahl--3 { display: none; }
  .kulisse__lampe--1, .kulisse__strahl--1 { left: 28%; }
  .kulisse__lampe--4, .kulisse__strahl--4 { left: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  .kulisse__vorhang { animation: none; }
  .kulisse__strahl { animation: none; transform: rotate(var(--bis)); }
}

/* Ueber uns: grosse Ueberschriften, Text + Bild, Geschichte als Jahres-Felder im dunklen Abschnitt, Team */
.section--dark .titel span { color: #93c5fd; }
.ueber__text p { font-size: 1.0938rem; line-height: 1.75; }
.ueber__text p:last-child { margin-bottom: 0; }
.ueber__bild { position: relative; }
.ueber__bild .nutzen__form { inset: 8% -3% 8% 6%; transform: rotate(-3deg); }
.ueber__duo { align-items: start; }
.ueber__intro { max-width: 52rem; margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem); text-align: center; font-size: 1.125rem; line-height: 1.7; text-wrap: pretty; }
.ueber__intro--unten { margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0; }
.schritte--jahre { grid-template-columns: repeat(3, 1fr); }
.schritte--jahre .schritt { grid-column: auto; }
.schritte--jahre .schritt__nr { display: inline-grid; width: auto; padding-inline: 1.1rem; font-size: 1.875rem; letter-spacing: .01em; }
.schritte--jahre .schritt::before { display: none; }
.section--dark .schritt h3 { color: var(--ink); }
.section--dark .schritt { border-color: transparent; box-shadow: var(--sh-xl); }
@media (max-width: 720px) {
  .schritte--jahre { grid-template-columns: 1fr; }
  .schritte--jahre .schritt__nr { width: auto; height: 3.5rem; font-size: 1.5rem; }
}

/* Kennzahlen: grosses Jubilaeums-Siegel "20+ Jahre" mit Zeitleiste, daneben zwei Zahlenkacheln */
.zahlen { display: grid; grid-template-columns: 2.1fr 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.zahl { background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); border: 1px solid #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: 1.5rem 1.75rem; transition: transform .25s ease, box-shadow .25s ease; }
.zahl:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }

.zahl--jahre { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); background: linear-gradient(120deg, #fff 55%, var(--blue-50)); }
.siegel { position: relative; flex: none; width: clamp(8.5rem, 13vw, 10.5rem); aspect-ratio: 1; }
.siegel svg { width: 100%; height: 100%; display: block; }
.siegel__text { transform-origin: 100px 100px; animation: drehen 40s linear infinite; }
.siegel__text text { font-size: 12.5px; font-weight: 800; fill: var(--logo-blue); font-family: var(--font); }
@keyframes drehen { to { transform: rotate(360deg); } }
.siegel__zahl { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--logo-blue); line-height: 1.1; }
.siegel__zahl b { display: block; font-size: clamp(2.1rem, 3.4vw, 2.75rem); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.zahl__text h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 900; margin-bottom: .25rem; }
.zahl__text p { margin: 0 0 1.1rem; color: var(--text); }
/* Zeitleiste 2004 -> heute: Linie fuellt sich beim Laden */
.zeit { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; position: relative; padding-top: 1.35rem; }
.zeit::before, .zeit::after { content: ""; position: absolute; left: .45rem; right: calc(33.333% - .3rem); top: .4rem; height: 4px; border-radius: 4px; }
.zeit::before { background: var(--blue-100); }
.zeit::after { background: linear-gradient(90deg, var(--orange), var(--blue-600), var(--indigo-600)); transform-origin: left; animation: wachsen 2.2s ease-out .6s backwards; }
@keyframes wachsen { from { transform: scaleX(0); } }
.zeit li { position: relative; font-size: .875rem; color: var(--muted); line-height: 1.3; }
.zeit li::before { content: ""; position: absolute; left: 0; top: -1.35rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff; border: 3px solid var(--blue-600); z-index: 1; }
.zeit li:first-child::before { border-color: var(--orange); }
.zeit li:last-child::before { background: var(--indigo-600); border-color: var(--indigo-600); box-shadow: 0 0 0 4px rgba(79, 70, 229, .2); }
.zeit b { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 800; }

.zahl--klein { display: grid; align-content: center; justify-items: center; text-align: center; gap: .15rem; color: var(--muted); }
.zahl--klein strong { font-size: clamp(2.5rem, 4.2vw, 3.5rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zahl__sterne { color: #f59e0b; font-size: 1.35rem; letter-spacing: .12em; }

@media (max-width: 1000px) {
  .zahlen { grid-template-columns: 1fr 1fr; }
  .zahl--jahre { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .zahl { padding: 1.1rem 1.1rem; }
  .zahl--jahre { flex-direction: column; text-align: center; }
  .zeit { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .siegel__text, .zeit::after { animation: none !important; } }
@media (max-width: 760px) {
  /* Auf schmalen Bildschirmen den Uebergang Skizze -> Stand gross zeigen statt das ganze Panorama winzig */
  .buehne__bild img { aspect-ratio: 16 / 10; object-position: 46% center; }
  .buehne__phasen { gap: .5rem; }
  .buehne__phasen li { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .7rem .7rem; }
  .buehne__phasen div span { display: none; }
  .buehne__phasen strong { font-size: .9375rem; }
  .buehne__nr { width: 1.9rem; height: 1.9rem; font-size: .9rem; }
  .buehne .hero__badge { left: .6rem; top: .6rem; padding: .55rem .8rem; }
  .buehne .hero__badge-main { font-size: .8125rem; }
  .hero__grid--stack .hero__text { text-align: left; }
  .hero__unten .lead { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .buehne__papier, .buehne__linie, .buehne__phasen li { animation: none !important; }
}

/* Kundenlogos als Laufband */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee.is-laufend .logos__row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; animation: laufband 45s linear infinite; }
.marquee.is-laufend .logos__row li { flex: none; padding-inline: 1.6rem; }
.marquee:hover .logos__row { animation-play-state: paused; }
@keyframes laufband { to { transform: translateX(-50%); } }

/* Karten: farbiger Rand und drehendes Symbol beim Ueberfahren */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px;
  background: linear-gradient(135deg, var(--blue-500), var(--indigo-600), var(--orange));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__icon { transition: transform .4s ease; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--blue-700); }

/* Galerie: grosse erste Kachel, Zoom, Grossansicht */
.gallery { grid-auto-flow: dense; }
.gallery__item { all: unset; display: block; position: relative; cursor: zoom-in; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); aspect-ratio: 1; }
.gallery__item--gross { grid-column: span 3; grid-row: span 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.08); box-shadow: none; }
.gallery__item::after { content: "＋"; position: absolute; right: .7rem; bottom: .7rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--blue-700); font-weight: 800; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }
.gallery__item:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 60rem); }
.lightbox::backdrop { background: rgba(15, 23, 42, .85); backdrop-filter: blur(4px); }
.lightbox img { width: min(92vw, 88vh, 60rem); border-radius: var(--r-lg); box-shadow: var(--sh-xl); }
.lightbox__close { position: absolute; top: .6rem; right: .6rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--sh-lg); }

/* Dunkle Abschnitte: Lichtflecken */
.section--dark { position: relative; overflow: hidden; isolation: isolate; }
.section--dark::before, .section--dark::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); }
.section--dark::before { width: 28rem; height: 28rem; background: rgba(99, 102, 241, .55); top: -10rem; right: -6rem; }
.section--dark::after { width: 22rem; height: 22rem; background: rgba(242, 148, 0, .16); bottom: -10rem; left: -4rem; }

/* Ablauf: Verbindungslinie zwischen den Schritten */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 2.8rem; height: 3px; background: linear-gradient(90deg, var(--orange), var(--blue-600), var(--indigo-600)); border-radius: 3px; opacity: .35; }
.step { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }

/* Kundenstimmen */
.quote { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.quote__stars { color: #f59e0b; letter-spacing: .12em; }
.quote blockquote { flex: 1; }

/* Abschluss-Band: bewegter Verlauf */
.cta { background: linear-gradient(110deg, var(--blue-600), var(--indigo-600), #7c3aed, var(--blue-600)); background-size: 300% 100%; animation: schimmer 18s linear infinite; }

/* Stellenseiten */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.pagehero .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.listcard h2 { font-size: 1.25rem; }
.listcard ul { display: grid; gap: .6rem; }
.listcard li { position: relative; padding-left: 1.5rem; color: var(--text); }
.listcard li::before { content: ""; position: absolute; left: 0; top: .6rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--grad); }
.job .btnrow { margin-top: auto; }

/* Feste Leiste auf dem Handy */
.mobilebar { display: none; }
@media (max-width: 640px) {
  .mobilebar { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(17, 24, 39, .08); }
  body { padding-bottom: 4.2rem; }
  .benefits li + li { border-left: 0; border-top: 1px solid var(--line); }
  .gallery { gap: .5rem; }
  .steps::before { display: none; }
}
@media (max-width: 1080px) { .steps::before { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .grad, .blob, .hero__frame .hero__img, .hero__img2, .hero__badge, .cta, .eyebrow .dot, .marquee.is-laufend .logos__row { animation: none !important; }
}

/* ---------- Einblenden ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__marke { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .navtoggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-lg); padding: .5rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__shops { flex-direction: column; margin-top: 1rem; }
  .nav__shops .btn { justify-content: center; }

  .hero__grid, .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar__in { justify-content: space-between; gap: .75rem; }
  .topbar__item:first-child { display: none; }
  .brand img { height: 2rem; }
  .brand__text { font-size: 1.1875rem; }
  .hero__media { padding-left: 1rem; }
  .hero__badge { right: 0; }
  .cards--3, .cards--4, .steps, .benefits, .compare { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .logos__row img { height: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__marke { grid-column: auto; }
  .btnrow .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Sprach-Umschalter DE | EN in der obersten Zeile */
.topbar .topbar__in { justify-content: space-between; }
.topbar__rechts { display: flex; align-items: center; gap: 1rem; }
.sprache { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); font-size: .9375rem; font-weight: 800; line-height: 1; }
.sprache svg { width: 1.25rem; height: 1.25rem; margin: 0 .3rem 0 .45rem; fill: none; stroke: #fff; stroke-width: 1.8; }
.sprache b, .sprache a { padding: .4rem .85rem; border-radius: 99px; color: #fff; transition: background-color .2s ease; }
.sprache b { background: #fff; color: var(--blue-900); box-shadow: 0 2px 6px rgba(5, 13, 42, .3); }
.topbar .topbar__in { padding-block: .4rem; }
@media (max-width: 480px) { .sprache { font-size: .8125rem; } .sprache svg { display: none; } .sprache b, .sprache a { padding: .35rem .6rem; } }
.sprache a:hover { background: rgba(255, 255, 255, .22); color: #fff; text-decoration: none; }

/* Datenschutz-Hinweis beim ersten Besuch (unten, verdeckt die Seite nicht) + Platzhalter der Karte bis zur Zustimmung */
.einwilligung { position: fixed; z-index: 2000; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(60rem, calc(100% - 2rem)); display: flex; align-items: center; gap: 1rem 1.75rem; padding: 1.15rem 1.4rem; background: #fff; border: 1px solid var(--blue-200); border-top: 4px solid var(--blue-600); border-radius: var(--r-lg); box-shadow: 0 20px 50px -10px rgba(15, 23, 42, .45); }
.einwilligung[hidden] { display: none; }
.einwilligung__text { flex: 1; }
.einwilligung__text strong { display: block; margin-bottom: .25rem; color: var(--ink); font-size: 1.0625rem; font-weight: 900; }
.einwilligung__text p { margin: 0; color: var(--text); font-size: .9063rem; line-height: 1.5; }
.einwilligung__text a { color: var(--blue-700); font-weight: 700; text-decoration: underline; }
.einwilligung__tasten { flex: none; display: grid; gap: .5rem; }
.einwilligung__tasten .btn { justify-content: center; white-space: nowrap; }
.footer__taste { padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.footer__taste:hover { text-decoration: underline; }
.footer__legal { flex-wrap: wrap; gap: .4rem 1.5rem; }
@media (max-width: 720px) {
  .einwilligung { flex-direction: column; align-items: stretch; bottom: 4.75rem; padding: 1rem 1.1rem; }   /* ueber der festen Handy-Leiste */
  .einwilligung__tasten { grid-template-columns: 1fr 1fr; }
}
.karte__sperre { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1.5rem; text-align: center; background: linear-gradient(160deg, #dbeafe, #e0e7ff); }
.karte__sperre strong { color: var(--ink); font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 900; }
.karte__sperre p { max-width: 34rem; margin: 0 0 .4rem; color: var(--text); font-size: 1rem; line-height: 1.55; }
.karte__bild:has(.karte__sperre) .karte__legende { display: none; }

