/* ==========================================================================
   flintec.de – modernes Design (Variante zum Vergleich), mobile first
   ========================================================================== */

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

:root {
  --primary:     #1775b8;
  --primary-600: #125f97;
  --primary-50:  #edf5fc;
  --primary-100: #d7e9f8;
  --navy:        #0b2545;
  --navy-700:    #13335c;
  --ink:         #0f1b2d;
  --text:        #3b4759;
  --muted:       #66748a;
  --soft:        #f5f8fc;
  /* Hintergrund mit blauen Farbwolken: Kopfbereich der Startseite, Seitenkopf der Unterseiten, abwechselnde Abschnitte */
  --clouds: radial-gradient(900px 560px at 85% 5%, rgb(23 117 184 / .36), transparent 72%),
            radial-gradient(800px 520px at 8% 95%, rgb(61 169 246 / .32), transparent 72%),
            linear-gradient(180deg, #dceaf8, #edf4fc);
  --border:      #e3e9f1;
  --flame:       #d9381e;
  --white:       #fff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(15 27 45 / .06), 0 1px 3px rgb(15 27 45 / .05);
  --shadow:    0 10px 30px -12px rgb(15 27 45 / .18);
  --shadow-lg: 0 30px 60px -20px rgb(11 37 69 / .30);
  --container: 1240px;
  --gutter: 1.25rem;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 800px) { :root { --gutter: 2rem; --header-h: 76px; } }

/* Grundlagen ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.m { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
:focus-visible { outline: 3px solid rgb(23 117 184 / .45); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p, ul, ol, figure, table { margin: 0 0 1.1em; }
.icon { width: 1.1em; height: 1.1em; max-width: none; flex: none; } /* max-width: none – Safari rechnet 100 % in Raster-/Flexboxen sonst auf 0 */
.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.m-container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { left: .5rem; }

/* Bausteine ------------------------------------------------------------------- */
.m-eyebrow { margin: 0 0 .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.m-pill { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; padding: .4rem .9rem .4rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--navy); }
.m-pill--sm { margin: 0; padding: .2rem .65rem; font-size: .75rem; box-shadow: none; background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-600); }
.m-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 4px rgb(217 56 30 / .15); }
.m-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--primary); }
.m-link .icon { transition: transform .2s var(--ease); }
a:hover .m-link .icon, .m-link:hover .icon { transform: translateX(3px); }

.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 .97rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.m-btn:hover { transform: translateY(-1px); }
.m-btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.m-btn--lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.m-btn--block { width: 100%; }
.m-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgb(23 117 184 / .7); }
.m-btn--primary:hover { background: var(--primary-600); color: #fff; }
.m-btn--outline { border-color: var(--border); color: var(--ink); background: var(--white); }
.m-btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.m-btn--light { background: #fff; color: var(--navy); }
.m-btn--light:hover { color: var(--primary); }
.m-btn--ghost-light { border-color: rgb(255 255 255 / .4); color: #fff; }
.m-btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .08); }

/* Kopf ------------------------------------------------------------------------- */
.m-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
/* Weichzeichner nur am Desktop: backdrop-filter würde das fixierte Mobilmenü auf die Kopfhöhe beschneiden */
@media (min-width: 1180px) { .m-header { background: rgb(255 255 255 / .85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); } }
.m-header.is-stuck { border-bottom-color: var(--border); box-shadow: 0 6px 24px -14px rgb(15 27 45 / .25); }
.m-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.m-header__logo img { width: 160px; height: auto; }
.m-header__actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.m-lang { display: none; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.m-lang a { display: block; padding: .3rem .45rem; border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.m-lang a:hover { background: var(--soft); color: var(--ink); }
.m-header__cta { display: none; }
.m-header__burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer; }
.m-header__burger .icon { width: 22px; height: 22px; }
@media (min-width: 640px) { .m-header__cta { display: inline-flex; } }

/* Navigation mobil: Vollbild-Panel */
.m-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); overflow-y: auto; padding: 1rem var(--gutter) 6rem; }
.m-nav.is-open { display: block; }
.m-nav__list, .m-nav__sub { list-style: none; margin: 0; padding: 0; }
.m-nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
.m-nav__link { flex: 1; padding: 1rem 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.m-nav__link[aria-current="page"], .m-nav__item.is-open-page > .m-nav__link { color: var(--primary); }
.m-nav__toggle { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.m-nav__toggle .icon { transition: transform .2s var(--ease); }
.m-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.m-nav__panel { display: none; width: 100%; padding: 0 0 1rem; }
.m-nav__item.sub-open > .m-nav__panel { display: block; }
.m-nav__panel-head { display: none; }
.m-nav__sub a { display: block; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--text); }
.m-nav__sub a strong { display: block; font-weight: 600; color: var(--ink); }
.m-nav__sub a span { display: none; }
.m-nav__sub a:hover, .m-nav__sub a[aria-current="page"] { background: var(--primary-50); }

@media (min-width: 1180px) {
  .m-header__burger { display: none; }
  .m-lang { display: flex; }
  .m-nav { display: block; position: static; padding: 0; background: none; overflow: visible; margin-left: .5rem; }
  .m-nav__list { display: flex; gap: .1rem; }
  .m-nav__item { position: static; border: 0; flex-wrap: nowrap; }
  .m-nav__link { padding: .5rem .6rem; font-size: .93rem; font-weight: 500; color: var(--text); border-radius: 10px; white-space: nowrap; transition: background .15s, color .15s; }
  .m-nav__item:hover > .m-nav__link, .m-nav__link[aria-current="page"], .m-nav__item.is-open-page > .m-nav__link { color: var(--ink); background: var(--soft); }
  .m-nav__toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .m-nav__toggle:focus-visible { position: static; width: 24px; height: 24px; clip: auto; }
  .m-nav__panel {
    display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
    position: absolute; left: 50%; top: calc(100% - 6px); width: min(880px, calc(100vw - 2 * var(--gutter))); transform: translate(-50%, 8px);
    padding: 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    /* Schließen leicht verzögert, damit ein kurzes Verlassen beim Hinüberfahren das Panel nicht zuklappt */
    transition: opacity .18s var(--ease) .2s, transform .18s var(--ease) .2s, visibility 0s linear .38s;
  }
  /* Unsichtbare Brücke über dem Panel: überdeckt die Lücke zwischen Menüpunkt und Panel, damit der Hover nicht abreißt */
  .m-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2rem; }
  .m-nav__item:hover > .m-nav__panel, .m-nav__item:focus-within > .m-nav__panel, .m-nav__item.sub-open > .m-nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .m-nav__panel-head { display: block; padding: 1.25rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--primary-50), #fff); }
  .m-nav__panel-title { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
  .m-nav__panel-head p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
  .m-nav__sub { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; align-content: start; }
  .m-nav__sub a { padding: .7rem .85rem; }
  .m-nav__sub a span { display: block; font-size: .8rem; line-height: 1.4; color: var(--muted); margin-top: .15rem; }
}

/* Startseite: Hero ----------------------------------------------------------- */
.m-hero { position: relative; overflow: hidden; padding: 3rem 0 2.5rem; background: var(--clouds); }
.m-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .m-hero { padding: 5rem 0 3.5rem; } .m-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.m-hero__title { font-size: clamp(1.4rem, 6.1vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.1rem; padding-bottom: .12em; background: linear-gradient(120deg, var(--navy) 30%, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); max-width: 56ch; }
.m-hero__lead p { margin-bottom: .6em; }
.m-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.m-showcase { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding-bottom: 3.4rem; }
.m-showcase .slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-showcase .slider__track::-webkit-scrollbar { display: none; }
.m-showcase__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; background: linear-gradient(160deg, #dcebf9, #f4f9ff 60%); }
.m-showcase__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% center; mix-blend-mode: multiply; }
.m-showcase__caption { padding: 1.1rem 1.4rem 0; background: var(--white); flex: 1; }
.m-showcase__title { margin: 0 0 .2rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.m-showcase .slider__controls { position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; align-items: center; justify-content: center; gap: .6rem; pointer-events: none; }
.m-showcase .slider__btn { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.m-showcase .slider__btn:hover { border-color: var(--primary); color: var(--primary); }
.m-showcase .slider__dots { display: flex; gap: .35rem; pointer-events: auto; }
.m-showcase .slider__dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--primary-100); cursor: pointer; transition: width .25s var(--ease), background .2s; }
.m-showcase .slider__dot[aria-current="true"] { width: 24px; background: var(--primary); }

.m-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 2.75rem 0 0; padding: 0; }
.m-chips li { padding: .45rem .85rem; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: .82rem; font-weight: 500; color: var(--muted); }

/* Abschnitte ------------------------------------------------------------------ */
.m-section { padding: 4rem 0; }
@media (min-width: 900px) { .m-section { padding: 5.5rem 0; } }
.m-section--soft { background: var(--clouds); }
.m-section__head { max-width: 720px; margin-bottom: 2.25rem; }
.m-section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.m-section__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin: 0; }

/* Lösungen */
.m-solutions { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .m-solutions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .m-solutions { grid-template-columns: repeat(4, 1fr); } }
.m-solution { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); color: var(--text); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.m-solution:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); color: var(--text); }
.m-solution__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1.25rem; border-radius: 18px; background: var(--primary-50); }
.m-solution__icon img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; }
.m-solution__title { font-size: 1.15rem; margin-bottom: .5rem; }
.m-solution__text { font-size: .92rem; color: var(--muted); }
.m-solution .m-link { margin-top: auto; }

/* Über uns */
.m-about { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .m-about { grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; align-items: start; } }
.m-about__text h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }

/* Vorteile */
.m-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .m-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .m-benefits { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.m-benefit { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); }
.m-benefit__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 12px; background: var(--primary); color: #fff; box-shadow: 0 8px 16px -8px rgb(23 117 184 / .8); }
.m-benefit__title { font-size: 1.05rem; margin-bottom: .35rem; }
.m-benefit__text { margin: 0; font-size: .92rem; color: var(--muted); }

/* Karten (Presse) */
.m-cards { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .m-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .m-cards { grid-template-columns: repeat(3, 1fr); } }
.m-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.m-card:hover, .m-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); }
.m-card__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(145deg, var(--primary-50), #fff); border-bottom: 1px solid var(--border); }
.m-card__media img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); max-width: none; object-fit: contain; }
.m-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.4rem; }
.m-card__meta { margin: 0 0 .5rem; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.m-card__title { font-size: 1.1rem; line-height: 1.3; margin-bottom: .6rem; }
.m-card__title a { color: var(--ink); }
.m-card__title a::after { content: ""; position: absolute; inset: 0; }
.m-card:hover .m-card__title a { color: var(--primary); }
.m-card__text { font-size: .92rem; color: var(--muted); }
.m-card .m-link { margin-top: auto; }

/* Unterseiten: Seitenkopf, Layout, Kacheln ------------------------------------ */
.m-pagehead { padding: 2rem 0 2.5rem; background: var(--clouds); border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .m-pagehead { padding: 2.5rem 0 3.25rem; } }
.m-pagehead__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; max-width: 22ch; margin: 1rem 0 .75rem; }
.m-pagehead__lead { font-size: 1.12rem; max-width: 62ch; color: var(--text); margin: 0; }
.m-quicknav { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.m-quicknav a { display: block; padding: .45rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: .88rem; font-weight: 500; color: var(--ink); transition: border-color .15s, color .15s; }
.m-quicknav a:hover { border-color: var(--primary); color: var(--primary); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: #b6c0ce; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.m-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 3rem 4rem; }
@media (min-width: 1000px) { .m-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; } .m-layout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }

.m-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 700px) { .m-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .m-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-tile { position: relative; display: block; height: 100%; padding: 1.4rem 3.5rem 1.4rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); color: var(--text); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.m-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-100); color: var(--text); }
.m-tile__title { font-size: 1.05rem; margin-bottom: .35rem; }
.m-tile__text { margin: 0; font-size: .9rem; color: var(--muted); }
.m-tile__arrow { position: absolute; right: 1.1rem; top: 1.3rem; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-50); color: var(--primary); transition: background .2s, color .2s; }
.m-tile:hover .m-tile__arrow { background: var(--primary); color: #fff; }

/* Seitenleiste */
.m-aside { display: grid; gap: 1.25rem; align-content: start; }
.m-contact-card, .m-downloads { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.m-contact-card__person { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.m-contact-card__person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--primary-50); }
.m-contact-card__name { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.3; }
.m-contact-card__role { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.m-contact-card__actions { display: grid; gap: .5rem; }
.m-downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.m-downloads a { display: flex; align-items: center; gap: .8rem; padding: .6rem; margin: 0 -.6rem; border-radius: var(--radius-sm); color: var(--text); }
.m-downloads a:hover { background: var(--soft); }
.m-downloads__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary); }
.m-downloads strong { display: block; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.m-downloads small { font-size: .78rem; color: var(--muted); }

/* Fließtext */
.m-prose { font-size: 1.04rem; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.m-prose > :first-child { margin-top: 0; }
.m-prose h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.m-prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-top: 2em; }
.m-prose h3 { font-size: 1.2rem; margin-top: 1.75em; }
.m-prose a { text-decoration: underline; text-decoration-color: var(--primary-100); text-underline-offset: .2em; text-decoration-thickness: 2px; }
.m-prose a:hover { text-decoration-color: var(--primary); }
.m-prose ul { padding: 0; list-style: none; }
.m-prose ul li { position: relative; padding-left: 1.75rem; margin-bottom: .55em; }
.m-prose ul li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231775b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.m-prose blockquote { margin: 2em 0; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--primary-50); border: 0; font-size: 1.1rem; color: var(--ink); }
.m-prose table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.m-prose th, .m-prose td { border-bottom: 1px solid var(--border); padding: .6rem .75rem; text-align: left; }
.m-prose th { color: var(--ink); }
.m-prose .figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.m-prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* Bausteine: Fragen, Kacheln, Logos, Zeitleiste */
.m-prose .b-cards, .m-prose .b-logos, .m-prose .b-timeline { list-style: none; padding: 0; margin: 2em 0; }
.m-prose .b-cards > li, .m-prose .b-logos > li, .m-prose .b-timeline > li { padding-left: 0; margin: 0; }
.m-prose .b-cards > li::before, .m-prose .b-logos > li::before { content: none; }
.m-prose .b-card a, .m-prose .b-faq summary { text-decoration: none; }
.b-faq { margin: 2em 0; display: grid; gap: .6rem; }
.b-faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); transition: box-shadow .2s, border-color .2s; }
.b-faq__item[open] { border-color: var(--primary-100); box-shadow: var(--shadow); }
.b-faq__question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.b-faq__question::-webkit-details-marker { display: none; }
.b-faq__question .icon { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--primary-50); color: var(--primary); transition: transform .2s var(--ease); }
.b-faq__item[open] .b-faq__question .icon { transform: rotate(180deg); }
.b-faq__answer { padding: 0 1.25rem 1.25rem; color: var(--text); }
.b-faq__answer p:last-child { margin-bottom: 0; }
.b-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 900px) {
  .b-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.b-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); }
.b-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
/* Bildfläche absolut statt Prozent-Höhe im Raster – sonst vergrößert Safari (iPhone) das Bild und schneidet es ab */
.b-card__media { position: relative; background: var(--soft); aspect-ratio: 4 / 3; }
.b-card__media > img, .b-card__media > a.zoom { position: absolute; inset: 1.25rem; width: calc(100% - 2.5rem); height: calc(100% - 2.5rem); }
.b-card__media img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.b-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.b-card__title { margin: 0; font-size: 1.05rem; color: var(--ink); }
.b-card__text { font-size: .93rem; color: var(--text); }
.b-card__text p { margin: 0 0 .4em; }
.b-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--primary); }
.b-logos { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.b-logos__item { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); aspect-ratio: 5 / 3; }
.b-logos__item img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); max-width: none; object-fit: contain; }
.m-prose .b-timeline { position: relative; padding-left: 1.75rem; }
.m-prose .b-timeline::before { content: ""; position: absolute; left: 6px; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--primary), var(--primary-100)); }
.m-prose .b-timeline__item { position: relative; padding: 0 0 1.75rem; }
.m-prose .b-timeline__item::before { content: ""; position: absolute; left: -1.75rem; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.b-timeline__date { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--primary); }
.b-timeline__title { margin: .15em 0 .2em !important; font-size: 1.15rem; }
.b-timeline__subtitle { margin: 0 0 .5em; color: var(--muted); }
.b-timeline__text p { margin: 0 0 .3em; }

/* Pressemitteilung */
.m-article__head { padding-top: 2rem; }
.m-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.5rem 0 1rem; font-size: .88rem; color: var(--muted); }
.m-article__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.m-article__lead { font-size: 1.2rem; color: var(--text); }
.m-article__cover { margin: 2rem auto 2.5rem; max-width: calc(1000px + 2 * var(--gutter)); }
.m-article__cover img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }
.m-article__back { margin: 3rem 0 4rem; }
.m-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; color: var(--muted); }

/* Kontakt-Band */
.m-cta { padding: 3.5rem 0; background: linear-gradient(120deg, var(--navy), var(--primary-600) 70%, var(--primary)); color: #fff; }
.m-cta__inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .m-cta__inner { grid-template-columns: 1fr auto; } }
.m-cta__title { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: .4rem; }
.m-cta__text { margin: 0; color: rgb(255 255 255 / .8); }
.m-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Fußbereich */
.m-footer { background: var(--navy); color: rgb(255 255 255 / .72); padding-top: 3.5rem; font-size: .92rem; }
.m-footer a { color: rgb(255 255 255 / .82); }
.m-footer a:hover { color: #fff; }
.m-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 760px) { .m-footer__grid { grid-template-columns: repeat(3, 1fr); } .m-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .m-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .m-footer__brand { grid-column: auto; } }
.m-footer__logo { width: 180px; height: auto; margin-bottom: 1.25rem; }
.m-footer__claim { color: #fff; font-weight: 600; margin-bottom: 1.25rem; }
.m-footer__pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.m-footer__pillars strong { display: block; color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.m-footer__pillars span { font-size: .85rem; }
.m-footer__head { margin: 0 0 1rem; color: #fff; font-weight: 600; }
.m-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.m-footer__contact li { display: flex; align-items: center; gap: .5rem; }
.m-footer__social { display: flex !important; gap: .5rem !important; margin-top: 1.25rem !important; }
.m-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgb(255 255 255 / .08); }
.m-footer__social a:hover { background: var(--primary); }
.m-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem 5rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }
@media (min-width: 760px) { .m-footer__bottom { padding-bottom: 1.5rem; padding-right: calc(var(--gutter) + 3.5rem); } }
.m-footer__bottom p { margin: 0; }
.m-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; }

a.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--white); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top .icon { display: block; width: 24px; height: 24px; } /* a.to-top: steht im Fuß, dessen weiße Linkfarbe sonst den Pfeil unsichtbar macht */
a.to-top:hover { transform: translateY(-2px); color: var(--primary); }

/* Design-Vergleich (nur im Entwurf) */
.design-switch { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; display: flex; align-items: center; gap: .25rem; padding: .3rem .35rem .3rem .8rem; background: #0f1b2d; color: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); font: 500 13px/1 var(--font); }
.design-switch__label { opacity: .65; margin-right: .3rem; }
.design-switch a { color: #fff; padding: .45rem .8rem; border-radius: 999px; }
.design-switch a[aria-current="true"] { background: var(--primary); }
.design-switch a:hover { background: rgb(255 255 255 / .15); color: #fff; }

@media print {
  .m-header, .m-cta, .m-footer, .m-aside, .design-switch, .to-top, .slider__controls { display: none !important; }
}

/* Großansicht für Bilder (Lightbox) ------------------------------------------- */
a.zoom { position: relative; display: block; cursor: zoom-in; color: inherit; text-decoration: none; }
.zoom__hint { position: absolute; right: .5rem; bottom: .5rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .92); color: #0b2545; box-shadow: 0 2px 8px rgb(11 37 69 / .25); opacity: .85; transition: opacity .2s, transform .2s; pointer-events: none; }
.zoom__hint .icon { width: 20px; height: 20px; }
a.zoom:hover .zoom__hint, a.zoom:focus-visible .zoom__hint { opacity: 1; transform: scale(1.08); }
.b-gallery { margin: 1.5em 0; }
.b-gallery__list { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.b-gallery__list li { margin: 0; padding: 0 !important; }
.b-gallery__list li::before { content: none !important; }
.b-gallery__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f5f8fc; border-radius: 10px; }
html.lightbox-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgb(11 37 69 / .92); }
.lightbox__figure { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 4rem 1rem 3rem; }
.lightbox__img { display: block; max-width: 92vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgb(0 0 0 / .45); }
.lightbox__caption { max-width: 60ch; text-align: center; font-size: .95rem; line-height: 1.45; color: #e7eef8; }
.lightbox__count { position: absolute; top: 1.1rem; left: 1.25rem; margin: 0; font-size: .9rem; color: #c9d6e6; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; transition: background .2s; }
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgb(255 255 255 / .28); outline: none; }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close { top: .75rem; right: .75rem; }
.lightbox__prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: .75rem; transform: none; } }

/* Überschriften im Kacheltext (aus der alten Seite) dezent statt groß */
.b-card__text h2, .b-card__text h3, .b-card__text h4 { font-size: 1rem; line-height: 1.35; margin: 0 0 .35em; }

/* Überschriften: keine Silbentrennung (Wunsch Geschäftsführung 23.10.). Passt ein Wort nicht, verkleinert site.js die Schrift;
   der Umbruch im Wort greift nur als Notlösung ohne JavaScript. */
h1, h2, h3, h4, h5, h6 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; word-break: normal; }

/* Fließtext außerhalb von .m-prose (Seitenkopf, Kacheln, Kontaktkarte): lange Wörter auf schmalen Handys umbrechen */
main p, main li { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.m-contact-card__person > div { min-width: 0; }
