/*
Theme Name: Suchmaschinenmakler
Theme URI: https://suchmaschinenmakler.de
Author: Suchmaschinenmakler GmbH
Description: Modulares ACF-Flexible-Content-Theme fuer suchmaschinenmakler.de (Relaunch 2026).
Version: 1.0.0
Text Domain: smk-theme
*/

/* ==========================================================
   1. Design Tokens
   ========================================================== */
:root {
  --primary: #99e132;
  --primary-hover: #85c82a;
  --primary-text: #5a8a1a;
  --dark: #0f172a;
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-border: rgba(255, 255, 255, 0.1);
  --text-main: #0f172a;
  --text-sec: #475569;
  --text-muted: #94a3b8;
  --text-light: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --r-sm: 0.25rem;
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
  --r-2xl: 1.5rem;
  --section-pad: 5rem;
  /* Sticky-Offsets: Defaults gemessen (Desktop 121px / ≤1024px 85px); js/modules.js
     ueberschreibt sie mit den echten Hoehen von Header und Inhaltsleiste. */
  --smk-header-h: 130px;
  --smk-toc-h: 0px;
}
@media (max-width: 1024px) {
  :root { --smk-header-h: 84px; }
}
/* Seiten mit Inhaltsleiste: Hoehen-Fallback ohne JS (Desktop ~49px, Mobil ~47px) */
html:has(.sm-toc) { --smk-toc-h: 49px; }
@media (max-width: 640px) {
  html:has(.sm-toc) { --smk-toc-h: 47px; }
}

/* ==========================================================
   2. Reset + Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Sprungmarken landen unterhalb des sticky Headers (+ Inhaltsleiste, falls vorhanden) */
  scroll-padding-top: calc(var(--smk-header-h) + var(--smk-toc-h) + 0.75rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

/* "hidden" macht <main> zum Scroll-Container und bricht damit position:sticky
   fuer alle Kindelemente (Inhaltsleiste, A-Z-Nav, Legal-TOC, Seitenkarten).
   "clip" beschneidet identisch, ohne Scroll-Container zu erzeugen. */
.sm-main { overflow-x: hidden; }
@supports (overflow: clip) {
  .sm-main { overflow-x: clip; }
}

/* ==========================================================
   3. Layout Utilities
   ========================================================== */
.sm-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sm-container--960 { max-width: 960px; }
.sm-container--800 { max-width: 800px; }
.sm-container--768 { max-width: 768px; }
.sm-container--720 { max-width: 720px; }
.sm-container--640 { max-width: 640px; }

.sm-section { padding: var(--section-pad) 0; }
.sm-section--dark { background: var(--dark); color: var(--text-light); }
.sm-section--alt { background: var(--bg-alt); }
.sm-section--white { background: var(--bg); }

.sm-green-line { width: 48px; height: 3px; background: var(--primary); border-radius: 2px; }

.sm-section__head { margin-bottom: 3rem; }
.sm-section__head--center { text-align: center; }
.sm-section__head--center .sm-green-line { margin: 0 auto 1rem; }
.sm-section__head:not(.sm-section__head--center) .sm-green-line { margin-bottom: 1rem; }
.sm-heading { font-size: 2.25rem; }
.sm-heading--sm { font-size: 1.75rem; }
.sm-subline { color: var(--text-sec); margin-top: 0.5rem; font-size: 1.0625rem; }
.sm-section--dark .sm-subline { color: var(--text-muted); }

.sm-eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-text); margin-bottom: 0.5rem; display: block; }
.sm-section--dark .sm-eyebrow { color: var(--primary); }

.sm-img-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 0.75rem; text-align: center;
}
.sm-img-placeholder--dark { background: linear-gradient(135deg, #1e293b, #334155); color: #64748b; }

.sm-checklist { display: flex; flex-direction: column; gap: 0.5rem; }
.sm-checklist__item { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--text-sec); font-size: 0.9375rem; }
.sm-checklist__item::before { content: '✓'; color: var(--primary-text); font-weight: 700; flex-shrink: 0; }
.sm-section--dark .sm-checklist__item { color: #cbd5e1; }
.sm-section--dark .sm-checklist__item::before { color: var(--primary); }

.sm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.sm-breadcrumb-trail { font-size: 0.75rem; color: #64748b; margin-bottom: 1.5rem; }
.sm-breadcrumb-trail a { color: #64748b; text-decoration: none; }
.sm-breadcrumb-trail a:hover { color: var(--primary); }
.sm-breadcrumb-trail .sep { margin: 0 0.25rem; }
.sm-breadcrumb-trail .current { color: #cbd5e1; }
.sm-hero-stats .sm-breadcrumb-trail { margin-bottom: 2rem; }

/* ==========================================================
   4. Buttons
   ========================================================== */
.sm-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: var(--r-md);
  font-weight: 700; font-size: 0.9375rem; font-family: var(--font);
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
}
.sm-btn--sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }

.sm-btn--primary { background: var(--primary); color: var(--dark); }
.sm-btn--primary:hover { background: var(--primary-hover); box-shadow: 0 0 20px rgb(153 225 50 / 0.25); transform: translateY(-1px); }

.sm-btn--secondary { border: 1.5px solid var(--border); color: var(--text-sec); font-weight: 600; background: transparent; }
.sm-btn--secondary:hover { border-color: var(--primary); color: var(--primary-text); }

.sm-btn--ghost-light { border: 1.5px solid rgba(255,255,255,0.2); color: var(--text-muted); font-weight: 600; background: transparent; }
.sm-btn--ghost-light:hover { border-color: var(--primary); color: var(--primary); }

.sm-btn--whatsapp { background: var(--whatsapp); color: white; }
.sm-btn--whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-1px); }

.sm-btn--block { width: 100%; justify-content: center; }

/* ==========================================================
   5. Header
   ========================================================== */
.sm-header { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; z-index: 200; }
.sm-header__topbar-inner, .sm-header__main { max-width: 1536px; }
.sm-header__topbar { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0.5rem 0; }
.sm-header__topbar-inner { display: flex; justify-content: flex-end; gap: 1.5rem; font-size: 0.75rem; color: #94a3b8; letter-spacing: 0.04em; }
.sm-header__main { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
/* Logo: Breite statt fester Hoehe. Die Hoehe ergibt sich aus dem Seitenverhaeltnis (height:auto), damit das
   Logo auf schmalen Displays nie gestaucht wird; der Link darf (bis min-width) schrumpfen, das Bild folgt. */
.sm-header__logo { display: block; flex: 0 1 176px; width: 176px; min-width: 120px; line-height: 0; }
.sm-header__logo img { display: block; width: 100%; height: auto; }
.sm-header__nav { display: flex; gap: clamp(1rem, 1.6vw, 2rem); font-size: 0.875rem; font-weight: 500; color: #cbd5e1; }
.sm-header__nav li { list-style: none; margin: 0; padding: 0; }
.sm-header__nav a { text-decoration: none; color: inherit; position: relative; transition: color 0.2s; }
.sm-header__nav a:hover { color: var(--primary); }
.sm-header__nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.25s ease; }
.sm-header__nav a:hover::after { width: 100%; }
.sm-header__nav .menu-item-has-children { position: relative; }
.sm-header__nav .menu-item-has-children > a { padding-right: 1.1rem; }
.sm-header__nav .menu-item-has-children > a::before {
  content: '▾'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 0.7em; opacity: 0.7;
}
.sm-header__nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 240px; background: var(--dark); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 1.25rem 0 0.5rem; box-shadow: 0 12px 24px rgba(0,0,0,0.35); z-index: 50;
}
.sm-header__nav .menu-item-has-children:hover > .sub-menu,
.sm-header__nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.sm-header__nav .sub-menu li { width: 100%; }
.sm-header__nav .sub-menu a { display: block; padding: 0.5rem 1.25rem; font-size: 0.8125rem; white-space: nowrap; }
.sm-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.sm-header__cta { order: 1; }
.sm-header__badge { flex-shrink: 0; }
.sm-header__badge img { height: 44px; width: auto; max-width: none; opacity: 0.9; }
/* zwischen Tablet-Menue und breitem Desktop ist die Kopfzeile zu eng fuer Logo + Nav + Button + Siegel → Siegel ausblenden */
@media (min-width: 1025px) and (max-width: 1180px) {
  .sm-header__badge { display: none; }
}
.sm-header__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0; }
.sm-header__toggle span { display: block; width: 100%; height: 2px; background: white; transition: all 0.2s; }
.sm-header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sm-header__toggle.is-open span:nth-child(2) { opacity: 0; }
.sm-header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .sm-header__topbar { display: none; }
  .sm-header__nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh;
    background: var(--dark); flex-direction: column; gap: 0; padding: 5rem 2rem 2rem;
    transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
  }
  .sm-header__nav.is-open { transform: translateX(0); }
  .sm-header__nav li { margin-top: 0.375rem; }
  .sm-header__nav a { padding: 0.875rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .sm-header__nav .menu-item-has-children > a::before { display: none; }
  .sm-header__nav .sub-menu {
    display: block; position: static; background: none; border: none; box-shadow: none;
    margin: 0; padding: 0 0 0 1rem;
  }
  .sm-header__nav .sub-menu a { padding: 0.625rem 0; font-size: 0.8125rem; color: #94a3b8; }
  .sm-header__logo { flex-basis: 156px; width: 156px; }
  .sm-header__actions { gap: 0.625rem; }
  .sm-header__toggle { display: flex; flex-shrink: 0; }
  .sm-header__cta.sm-btn--sm { order: 0; margin: 0 auto; padding: 0.5rem 0.75rem; font-size: 0.6875rem; flex-shrink: 0; }
}
@media (max-width: 640px) {
  .sm-header__badge { display: none; }
}
/* kleine Smartphones: Kopfzeile enger, damit Logo + Button + Menue ohne Stauchen in eine Zeile passen */
@media (max-width: 400px) {
  .sm-header__main { gap: 0.75rem; }
  .sm-header__logo { flex-basis: 132px; width: 132px; min-width: 88px; }
  .sm-header__cta.sm-btn--sm { padding: 0.4375rem 0.5rem; font-size: 0.625rem; }
}

/* ==========================================================
   6. Footer
   ========================================================== */
.sm-footer { background: var(--dark); color: var(--text-light); border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 0 2rem; }
.sm-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; font-size: 0.8125rem; }
.sm-footer__brand img { width: 220px; max-width: 100%; height: auto; margin-bottom: 1rem; }
.sm-footer__brand address { color: #64748b; line-height: 1.7; font-style: normal; }
.sm-footer__col h4 { color: white; font-weight: 700; margin-bottom: 0.75rem; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sm-footer__links { display: flex; flex-direction: column; gap: 0.375rem; }
.sm-footer__links li { list-style: none; margin: 0; padding: 0; }
.sm-footer__links a, .sm-footer__links span { color: #64748b; text-decoration: none; }
.sm-footer__links a:hover { color: var(--primary); }
.sm-footer__social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.sm-footer__social a { width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.sm-footer__social a:hover { background: var(--primary); color: var(--dark); }
.sm-footer__col-badge { margin-top: 1.25rem; }
.sm-footer__col-badge img { height: 110px; width: auto; opacity: 0.9; }
.sm-footer__badges {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06);
}
.sm-footer__badges img { height: 110px; width: auto; opacity: 0.9; transition: opacity 0.2s; }
.sm-footer__badges a:hover img { opacity: 1; }
.sm-footer__badges + .sm-footer__bottom { border-top: none; padding-top: 0; margin-top: 1rem; }
.sm-footer__bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-size: 0.75rem; color: #475569; }

@media (max-width: 900px) {
  .sm-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .sm-footer__badges { gap: 1.5rem 2rem; }
  .sm-footer__badges img { height: 88px; }
}
@media (max-width: 560px) {
  .sm-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   8. Modul: hero_split
   ========================================================== */
.sm-hero-split { padding: 5rem 0 4rem; }
/* 45fr/55fr statt 45%/55%: Prozentspalten + 3rem Gap waren 48px breiter als der Container
   (rechter Text wurde am Viewport-Rand abgeschnitten, von overflow-x am <main> verdeckt) */
.sm-hero-split__grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 3rem; align-items: stretch; max-width: 1536px; }
.sm-hero-split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 340px; }
.sm-hero-split__media > img { width: 100%; height: 100%; object-fit: cover; }
.page-id-8 .sm-hero-split__media > img { transform: scaleX(-1); }
.sm-hero-split__badge { position: absolute; bottom: 12px; left: 12px; z-index: 10; transition: transform 0.2s; background: transparent; }
.sm-hero-split__badge:hover { transform: scale(1.03); }
.sm-hero-split__badge img { width: 208px; height: auto; background: transparent; filter: drop-shadow(2px 4px 12px rgba(0,0,0,0.4)); }
.sm-hero-split h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.sm-hero-split__content { min-width: 0; }
.sm-hero-split__sub { font-size: 1.125rem; color: #94a3b8; line-height: 1.6; margin-bottom: 1.5rem; max-width: 480px; }
/* Lange Redaktions-Intros: mehrere Absaetze in voller Spaltenbreite, erster als Lead */
.sm-hero-split__sub--wide { max-width: none; font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }
.sm-hero-split__sub--lead { font-size: 1.0625rem; color: #cbd5e1; }
.sm-hero-split__sub--wide + :is(.sm-hero-split__proof, .sm-hero-split__checks, .sm-hero-split__actions, .sm-hero-split__meta) { margin-top: 1.75rem; }
.sm-hero-split__meta { font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); }
.sm-hero-split__meta time { color: #cbd5e1; font-weight: 600; }
.sm-hero-split__proof { margin-bottom: 1.5rem; }
.sm-hero-split__proof--split { display: grid; grid-template-columns: 0.5fr 1fr; align-items: stretch; gap: 0.75rem; }
.sm-hero-split__rating { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; background: rgba(255,255,255,0.06); border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.08); max-width: fit-content; text-decoration: none; color: inherit; transition: background 0.2s, border-color 0.2s; }
a.sm-hero-split__rating:hover { background: rgba(255,255,255,0.1); border-color: rgba(153,225,50,0.4); }
.sm-hero-split__proof--split .sm-hero-split__rating { max-width: none; width: 100%; height: 100%; box-sizing: border-box; }
.sm-hero-split__google { height: 100%; display: flex; align-items: center; }
.sm-hero-split__google .rplg .rplg-badge2 { margin: 0 !important; }
/* Das Bewertungs-Plugin vergibt eigene z-index-Werte (Badge: 999). Die Widgets bekommen deshalb einen eigenen Stacking-Kontext auf
   Ebene 0 — so liegen sie nie über Sticky-Leiste (250), Header (200) und Inhaltsleiste (150) und fangen keine Klicks darauf ab. */
.sm-hero-split__google,
.sm-testimonials__shortcode { position: relative; z-index: 0; isolation: isolate; }
.sm-hero-split__rating-star { font-size: 1.5rem; }
.sm-hero-split__rating-score { font-weight: 700; font-size: 0.9375rem; color: white; white-space: nowrap; }
.sm-hero-split__rating-source { font-weight: 400; color: #94a3b8; font-size: 0.8125rem; }
.sm-hero-split__rating-count { font-size: 0.75rem; color: #64748b; }
.sm-hero-split__checks { display: grid; grid-template-columns: 0.65fr 1fr; gap: 0.5rem; margin-bottom: 2rem; }
.sm-hero-split__checks .sm-checklist__item { font-size: 0.875rem; }
.sm-hero-split__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.sm-hero-split__calendly { margin-top: 1rem; }
.sm-hero-split__calendly a { color: var(--primary); font-size: 0.875rem; font-weight: 600; text-decoration: none; }

/* Bewertungs-Widgets: Agenturtipp-Karte + Google-Badge (fix 263px breit) brauchen nebeneinander
   ~520px Spaltenbreite — in den schmaleren Hero-Spalten bis 1100px daher untereinander */
@media (max-width: 1100px) {
  .sm-hero-split__proof--split { grid-template-columns: 1fr; gap: 0.625rem; }
  .sm-hero-split__proof--split .sm-hero-split__rating { max-width: 263.5px; width: 100%; height: auto; box-sizing: border-box; }
}
@media (max-width: 900px) {
  .sm-hero-split__grid { grid-template-columns: 1fr; }
  .sm-hero-split__media { min-height: 260px; order: -1; }
  .sm-hero-split h1 { font-size: 2.25rem; }
  .sm-hero-split__checks { grid-template-columns: 1fr; }
  .sm-hero-split__badge { left: 4px; bottom: 8px; }
  .sm-hero-split__badge img { width: 128px; max-width: 128px; }
  .sm-hero-split__proof--split { grid-template-columns: 1fr; gap: 0.625rem; }
  .sm-hero-split__proof--split .sm-hero-split__rating { max-width: 263.5px; width: 100%; height: auto; box-sizing: border-box; }
}
@media (max-width: 640px) {
  /* .sm-btn ist nowrap — lange CTA-Texte (z.B. "Kostenlose Coaching-Analyse anfragen") duerfen umbrechen statt ueberzulaufen */
  .sm-hero-split__actions .sm-btn { white-space: normal; text-align: center; max-width: 100%; }
}

/* ==========================================================
   9. Modul: stats_bar
   ========================================================== */
.sm-stats-bar { padding: 3.5rem 0; }
.sm-stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.sm-stats-bar__grid + .sm-stats-bar__badges { margin-top: 2.5rem; }
.sm-stats-bar__num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.sm-stats-bar--dark .sm-stats-bar__num { color: var(--primary); }
.sm-stats-bar__label { font-size: 0.8125rem; color: var(--text-sec); font-weight: 500; }
.sm-stats-bar--dark .sm-stats-bar__label { color: #94a3b8; }
.sm-stats-bar__badges { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; }
.sm-stats-bar__badges a { transition: transform 0.2s; max-width: 100%; }
.sm-stats-bar__badges a:hover { transform: scale(1.03); }
/* Award-Badges in 1,5-facher Groesse (vorher 100 px, jetzt 150 px hoch). max-width + object-fit: auf sehr schmalen Displays
   begrenzt die Containerbreite das Bild, ohne es zu verzerren. */
.sm-stats-bar__badges img { height: 150px; width: auto; max-width: 100%; object-fit: contain; }

@media (max-width: 700px) {
  .sm-stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* ==========================================================
   10. Modul: icon_grid
   ========================================================== */
.sm-icon-grid__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sm-icon-grid__grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .sm-icon-grid__grid--4 { grid-template-columns: repeat(2, 1fr); } }
.sm-icon-grid__item { padding: 2rem; border: 1px solid var(--border); border-radius: var(--r-lg); text-align: center; transition: all 0.2s; }
.sm-icon-grid__item:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
.sm-icon-grid__icon { width: 3.5rem; height: 3.5rem; background: #f0fdf4; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.sm-icon-grid__item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.sm-icon-grid__item p { font-size: 0.875rem; color: var(--text-sec); line-height: 1.6; }
.sm-icon-grid__closing { text-align: center; font-size: 1.125rem; color: var(--text-sec); margin-top: 2.5rem; }
.sm-icon-grid__closing strong { color: var(--text-main); }

@media (max-width: 800px) { .sm-icon-grid__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   11. Modul: card_grid
   ========================================================== */
.sm-card-grid__grid { display: grid; gap: 1rem; }
.sm-card-grid__grid--2 { grid-template-columns: repeat(2, 1fr); }
.sm-card-grid__grid--3 { grid-template-columns: repeat(3, 1fr); }
.sm-card-grid__grid--4 { grid-template-columns: repeat(4, 1fr); }
.sm-card-grid__card { text-decoration: none; color: inherit; padding: 1.5rem; background: var(--bg); border-radius: var(--r-lg); border: 1px solid var(--border); transition: all 0.2s; display: block; }
.sm-card-grid__card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
.sm-card-grid__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.sm-card-grid__card h3 { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.375rem; }
.sm-card-grid__card p { font-size: 0.8125rem; color: var(--text-sec); line-height: 1.5; }
.sm-card-grid__more { font-size: 0.75rem; color: var(--primary-text); font-weight: 600; margin-top: 0.75rem; display: block; }
.sm-card-grid__footer { text-align: center; margin-top: 2.5rem; }

@media (max-width: 900px) { .sm-card-grid__grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .sm-card-grid__grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .sm-card-grid__grid--2, .sm-card-grid__grid--3, .sm-card-grid__grid--4 { grid-template-columns: 1fr; } }

/* ==========================================================
   12. Modul: process_steps
   ========================================================== */
.sm-process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.sm-process__step { text-align: center; }
.sm-process__number { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--dark); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; margin: 0 auto 1rem; }
.sm-process__step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.sm-process__step p { font-size: 0.8125rem; color: var(--text-sec); line-height: 1.6; }
.sm-process__footer { text-align: center; margin-top: 2.5rem; }

@media (max-width: 800px) { .sm-process__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } }
@media (max-width: 500px) { .sm-process__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   13. Modul: case_studies (Startseite Teaser, dark)
   ========================================================== */
.sm-case-studies__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sm-case-studies__card { padding: 2rem; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--r-lg); }
.sm-case-studies__logo { width: 64px; height: 64px; border-radius: var(--r-md); margin-bottom: 1rem; font-weight: 700; }
.sm-case-studies__branch { font-size: 0.75rem; color: #64748b; margin-bottom: 0.5rem; }
.sm-case-studies__stat { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.sm-case-studies__desc { font-size: 0.875rem; color: #94a3b8; margin-top: 0.25rem; }
.sm-case-studies__footer { text-align: center; margin-top: 2.5rem; }

@media (max-width: 800px) { .sm-case-studies__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   14. Modul: team_grid
   ========================================================== */
.sm-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.sm-team__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.sm-team__item h3 { font-size: 1.0625rem; }
.sm-team__role { font-size: 0.8125rem; color: var(--text-sec); }
.sm-team__info { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

@media (max-width: 700px) { .sm-team__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ==========================================================
   15. Modul: testimonial_slider
   ========================================================== */
.sm-testimonials__viewport { position: relative; min-height: 260px; }
.sm-testimonials__slide { display: none; background: white; padding: 2.5rem; border-radius: var(--r-xl); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08); gap: 1.5rem; align-items: flex-start; }
.sm-testimonials__slide.is-active { display: flex; }
.sm-testimonials__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sm-testimonials__photo--fallback { display: flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--text-muted); font-weight: 700; font-size: 1.25rem; }
.sm-testimonials__meta { margin-bottom: 0.75rem; }
.sm-testimonials__stars { color: #eab308; font-size: 1rem; }
.sm-testimonials__source { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.5rem; }
.sm-testimonials__quote { font-size: 1rem; line-height: 1.7; color: var(--text-sec); margin-bottom: 1rem; }
.sm-testimonials__name { font-weight: 700; font-size: 0.875rem; }
.sm-testimonials__company { font-size: 0.8125rem; color: var(--text-muted); }
.sm-testimonials__dots { display: flex; justify-content: center; gap: 0.375rem; margin-top: 1.5rem; }
.sm-testimonials__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; }
.sm-testimonials__dot.is-active { background: var(--dark); }

/* BRB (Business Reviews Bundle) Slider — an unser Karten-Design angeglichen.
   BRB's eigenes CSS setzt fast jede Deklaration mit !important, daher hier
   bewusst hoehere Selektor-Spezifitaet (eigene BRB-Klassen mit im Selektor)
   UND !important, um zuverlaessig zu gewinnen statt gegen Ladereihenfolge
   zu wetten. */
.sm-testimonials__shortcode .rplg-slider-review { display: flex; flex-direction: column; background: white; padding: 2.5rem; border-radius: var(--r-xl); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08); }
.sm-testimonials__shortcode .rplg-row { order: -1; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.sm-testimonials__shortcode .rplg .rplg-box { border: none !important; background: transparent !important; margin: 0 !important; border-radius: 0 !important; }
.sm-testimonials__shortcode .rplg-slider .rplg-box:before,
.sm-testimonials__shortcode .rplg-slider .rplg-box .rplg-box-content:before { content: none !important; display: none !important; }
.sm-testimonials__shortcode .rplg-slider .rplg-box .rplg-box-content { height: auto !important; margin: 0 !important; background: transparent !important; }
.sm-testimonials__shortcode .rplg-review-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.sm-testimonials__shortcode .rplg-review-name { font-weight: 700; font-size: 0.875rem; color: var(--text-main); }
.sm-testimonials__shortcode .rplg-box-content { display: grid; grid-template-areas: "stars badge" "text text"; grid-template-columns: 1fr auto; align-items: center; row-gap: 1rem; }
.sm-testimonials__shortcode .rplg-stars { grid-area: stars; }
.sm-testimonials__shortcode .rplg-stars svg { fill: #eab308 !important; }
.sm-testimonials__shortcode .rplg-stars svg use { fill: #eab308 !important; }
.sm-testimonials__shortcode .rplg-review-text { grid-area: text; font-size: 1rem !important; line-height: 1.7 !important; color: var(--text-sec) !important; }
.sm-testimonials__shortcode .rplg-review-badge { grid-area: badge; }
.sm-testimonials__shortcode .rplg-social-logo svg { width: 22px; height: 22px; }
.sm-testimonials__shortcode .rplg-slider-prev, .sm-testimonials__shortcode .rplg-slider-next { color: var(--text-muted); }

@media (max-width: 600px) {
  .sm-testimonials__slide { flex-direction: column; padding: 1.75rem; }
}

/* ==========================================================
   16. Modul: contact_split
   ========================================================== */
.sm-contact-split__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.sm-contact-split__grid > * { min-width: 0; }
.sm-contact-split__phone { font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.sm-contact-split__email { color: #64748b; font-size: 0.875rem; }
.sm-contact-split__contact-block { margin-bottom: 2rem; }
.sm-contact-split__checks { margin-bottom: 2rem; }
.sm-contact-split__ways { padding: 1rem; background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--r-md); margin-top: 0.5rem; }
.sm-contact-split__ways-title { font-size: 0.75rem; color: #64748b; margin-bottom: 0.5rem; }
.sm-contact-split__ways-list { font-size: 0.8125rem; color: #94a3b8; display: flex; flex-direction: column; gap: 0.25rem; }

.sm-contact-split__tabs { display: flex; }
.sm-contact-split__tab {
  flex: 1; text-align: center; padding: 0.875rem; font-weight: 600; font-size: 0.875rem;
  color: #94a3b8; background: rgba(255,255,255,0.03); border: 1px solid var(--dark-border); border-left: 0;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.sm-contact-split__tab:first-child { border-left: 1px solid var(--dark-border); border-radius: var(--r-md) 0 0 0; }
.sm-contact-split__tab:last-child { border-radius: 0 var(--r-md) 0 0; }
.sm-contact-split__tab.active { color: var(--dark); background: var(--primary); font-weight: 700; border-color: var(--primary); }

.sm-contact-split__panel { display: none; padding: 2rem; background: rgba(255,255,255,0.03); border: 1px solid var(--dark-border); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }
.sm-contact-split__panel.active { display: block; }
.sm-contact-split__panel--solo { display: block; border-radius: var(--r-md); }
.sm-contact-split__calendly-intro { padding: 1rem 0 0.5rem; }
.sm-contact-split__calendly-intro p:first-child { font-size: 0.875rem; color: #cbd5e1; font-weight: 600; }
.sm-contact-split__calendly-intro p:last-child { font-size: 0.75rem; color: #64748b; }

/* FluentForm im Dark-Kontext (Split-Layout): Labels/Inputs an Design angleichen */
.sm-contact-split:not(.sm-contact-split--centered):not(.sm-contact-split--light) .ff-el-form-control,
.sm-contact-split:not(.sm-contact-split--centered):not(.sm-contact-split--light) select.ff-el-form-control,
.sm-contact-split:not(.sm-contact-split--centered):not(.sm-contact-split--light) textarea.ff-el-form-control {
  background: transparent !important; border: 1px solid rgba(255,255,255,0.12) !important;
  color: white !important; border-radius: var(--r-sm) !important; font-family: var(--font) !important;
}
.sm-contact-split .ff-el-form-control,
.sm-contact-split select.ff-el-form-control,
.sm-contact-split textarea.ff-el-form-control {
  width: 100% !important; padding: 0.75rem 1rem !important; font-size: 0.875rem !important;
  outline: none !important; box-shadow: none !important; transition: border-color 0.2s, box-shadow 0.2s !important;
}
.sm-contact-split .ff-el-form-control:focus,
.sm-contact-split select.ff-el-form-control:focus,
.sm-contact-split textarea.ff-el-form-control:focus {
  border-color: var(--primary) !important; outline: none !important;
  box-shadow: 0 0 0 3px rgb(153 225 50 / 0.2) !important;
}
.sm-contact-split:not(.sm-contact-split--centered) .ff-el-input--label label { color: #94a3b8 !important; font-size: 0.8125rem !important; }
.sm-contact-split .ff_submit_btn_wrapper { text-align: inherit !important; }
.sm-contact-split .ff-btn-submit {
  display: block !important; width: 100% !important; padding: 0.875rem !important;
  font-size: 0.9375rem !important; background: var(--primary) !important; color: var(--dark) !important;
  font-weight: 700 !important; border-radius: var(--r-md) !important; border: none !important;
  font-family: var(--font) !important; cursor: pointer !important; transition: all 0.2s !important;
  white-space: normal !important; line-height: 1.35 !important; /* lange Beschriftungen ("Kostenloses SEO-Erstgespräch (30 Min.)") umbrechen statt die Spalte zu sprengen */
}
.sm-contact-split .ff-btn-submit:hover { background: var(--primary-hover) !important; box-shadow: 0 0 20px rgb(153 225 50 / 0.25) !important; }

/* Layout-Variante "centered": hell, einspaltig, nur Formular (Kontaktseite) */
.sm-contact-split--centered { padding: 3rem 0; background: var(--bg); color: var(--text-main); }
.sm-contact-split--centered .sm-contact-split__centered-box { background: var(--bg-alt); padding: 2.5rem; border-radius: var(--r-xl); border: 1px solid var(--border); }
.sm-contact-split--centered .sm-contact-split__tab { background: var(--bg); border-color: var(--border); color: var(--text-muted); }
.sm-contact-split--centered .sm-contact-split__tab:first-child { border-left-color: var(--border); }
.sm-contact-split--centered .sm-contact-split__tab.active { background: var(--primary); color: var(--dark); border-color: var(--primary); }
.sm-contact-split--centered .sm-contact-split__panel,
.sm-contact-split--centered .sm-contact-split__panel--solo { background: transparent; border-color: var(--border); }
.sm-contact-split--centered .sm-contact-split__calendly-intro p:first-child { color: var(--text-main); }
.sm-contact-split--centered .sm-contact-split__calendly-intro p:last-child { color: var(--text-muted); }

/* Layout-Variante "light": hell, zweispaltig als Card auf bg-alt (z.B. Leistungsübersicht) */
.sm-contact-split--light { padding: 5rem 0; background: var(--bg); color: var(--text-main); }
.sm-contact-split--light .sm-contact-split__grid--light { background: var(--bg-alt); padding: 3rem; border-radius: var(--r-xl); }
.sm-contact-split--light .sm-contact-split__phone { color: var(--text-main); }
.sm-contact-split--light .sm-contact-split__email { color: var(--text-sec); }
.sm-contact-split--light .sm-contact-split__panel,
.sm-contact-split--light .sm-contact-split__panel--solo { background: white; border: 1px solid var(--border); border-radius: var(--r-md); }
.sm-contact-split--light .sm-contact-split__tab { background: var(--bg); border-color: var(--border); color: var(--text-muted); }
.sm-contact-split--light .sm-contact-split__tab:first-child { border-left-color: var(--border); }
.sm-contact-split--light .sm-contact-split__tab.active { background: var(--primary); color: var(--dark); border-color: var(--primary); }

@media (max-width: 900px) {
  .sm-contact-split__grid--light { padding: 2rem; }
  .sm-contact-split__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================
   17. Modul: faq
   ========================================================== */
.sm-faq__list { display: flex; flex-direction: column; gap: 0.5rem; }
.sm-faq__item { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
.sm-faq__q { padding: 1.25rem 1.5rem; font-weight: 600; cursor: pointer; font-size: 0.9375rem; list-style: revert; }
.sm-faq__q:hover { color: var(--primary-text); }
.sm-faq__a { padding: 0 1.5rem 1.25rem; font-size: 0.875rem; color: var(--text-sec); line-height: 1.7; }
.sm-faq__a :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 0.75rem; }

/* ==========================================================
   18. Modul: hero_stats
   ========================================================== */
.sm-hero-stats { padding: 4rem 0 3.5rem; }
.sm-hero-stats h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1.25rem; max-width: 720px; }
.sm-hero-stats__sub { font-size: 1.125rem; color: #94a3b8; line-height: 1.6; margin-bottom: 2rem; max-width: 600px; }
.sm-hero-stats__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.sm-hero-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sm-hero-stats__num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.sm-hero-stats__label { font-size: 0.8125rem; color: #94a3b8; }

@media (max-width: 700px) {
  .sm-hero-stats h1 { font-size: 2rem; }
  .sm-hero-stats__grid { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
}

/* ==========================================================
   19. Modul: trust_bar_inline
   ========================================================== */
.sm-trust-bar { padding: 0.875rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sm-trust-bar__inner { display: flex; justify-content: center; align-items: center; gap: 2rem; font-size: 0.8125rem; flex-wrap: wrap; }
.sm-trust-bar__stars { color: #eab308; }
.sm-trust-bar__sep { color: var(--border); }
.sm-trust-bar__item { color: var(--text-sec); }
.sm-trust-bar__item--strong { font-weight: 600; color: var(--text-main); }

/* ==========================================================
   20. Modul: text_image
   ========================================================== */
.sm-text-image__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
.sm-text-image--img-left .sm-text-image__grid { direction: rtl; }
.sm-text-image--img-left .sm-text-image__grid > * { direction: ltr; }
.sm-text-image__body p { color: var(--text-sec); line-height: 1.7; margin-bottom: 1rem; }
.sm-text-image__body h3 { font-size: 1rem; margin: 1.5rem 0 0.75rem; }
.sm-text-image__media img { width: 100%; border-radius: var(--r-xl); object-fit: cover; aspect-ratio: 4/3; }

@media (max-width: 900px) {
  .sm-text-image__grid, .sm-text-image--img-left .sm-text-image__grid { grid-template-columns: 1fr; direction: ltr; }
  .sm-text-image__media { order: -1; }
}

/* ==========================================================
   21. Modul: timeline (vertikal, mit Outcome-Zeile)
   ========================================================== */
.sm-timeline__list { border-left: 3px solid var(--border); padding-left: 2rem; margin-left: 1rem; display: flex; flex-direction: column; gap: 2.5rem; }
.sm-timeline__step { position: relative; }
.sm-timeline__number { position: absolute; left: -2.85rem; width: 36px; height: 36px; border-radius: 50%; background: var(--dark); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sm-timeline__card { background: var(--bg); padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--border); }
.sm-timeline__card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.sm-timeline__card p { font-size: 0.875rem; color: var(--text-sec); line-height: 1.6; }
.sm-timeline__outcome { font-size: 0.8125rem; color: var(--primary-text); font-weight: 600; margin-top: 0.75rem; }

/* ==========================================================
   22. Modul: cta_banner
   ========================================================== */
.sm-cta-banner { padding: 3.5rem 0; text-align: center; }
.sm-cta-banner h2 { font-size: 1.75rem; color: white; margin-bottom: 0.5rem; }
.sm-cta-banner p { color: #94a3b8; margin-bottom: 1.5rem; font-size: 0.875rem; }
.sm-cta-banner__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================
   23. Modul: case_study_detail
   ========================================================== */
.sm-case-study-detail__box { padding: 2.5rem; border: 1px solid var(--border); border-radius: var(--r-xl); }
.sm-case-study-detail__box--kompakt { padding: 2rem; align-items: center; }
.sm-case-study-detail__box.sm-cs-grid--ausfuehrlich { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.sm-case-study-detail__box.sm-cs-grid--kompakt { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: center; }
.sm-case-study-detail__logo { width: 72px; height: 72px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.75rem; margin-bottom: 1rem; }
.sm-cs-grid--kompakt .sm-case-study-detail__logo { margin: 0 auto 0.75rem; width: 80px; height: 80px; }
.sm-case-study-detail__branch { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.sm-case-study-detail__stat { font-size: 3.5rem; font-weight: 800; color: var(--primary-text); line-height: 1; }
.sm-cs-grid--kompakt .sm-case-study-detail__stat { font-size: 3rem; text-align: center; }
.sm-case-study-detail__stat-label { font-size: 1rem; color: var(--text-sec); margin-top: 0.25rem; }
.sm-cs-grid--kompakt .sm-case-study-detail__stat-label { text-align: center; font-size: 0.875rem; }
.sm-cs-grid--kompakt .sm-case-study-detail__col1 { text-align: center; }
.sm-case-study-detail__chart { width: 100%; border-radius: var(--r-md); margin-top: 1.5rem; aspect-ratio: 16/9; object-fit: cover; }
.sm-case-study-detail__col2 h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.sm-case-study-detail__col2 p { font-size: 0.875rem; color: var(--text-sec); line-height: 1.6; margin-bottom: 1.5rem; }
.sm-case-study-detail__measures { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.5rem; }
.sm-case-study-detail__measures .sm-checklist__item { font-size: 0.875rem; color: var(--text-sec); }
.sm-case-study-detail__quote { border-left: 3px solid var(--primary); padding-left: 1rem; }
.sm-case-study-detail__quote p { font-size: 0.875rem; color: var(--text-sec); font-style: italic; margin-bottom: 0; }
.sm-case-study-detail__quote footer { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }
.sm-case-study-detail__footer { text-align: center; margin-top: 2rem; }

@media (max-width: 800px) {
  .sm-case-study-detail__box.sm-cs-grid--ausfuehrlich,
  .sm-case-study-detail__box.sm-cs-grid--kompakt { grid-template-columns: 1fr; }
}

/* ==========================================================
   24. Modul: related_services
   ========================================================== */
.sm-related-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.sm-related-services__card { text-decoration: none; color: inherit; padding: 1.5rem; background: var(--bg); border-radius: var(--r-lg); border: 1px solid var(--border); transition: all 0.2s; }
.sm-related-services__card:hover { border-color: var(--primary); }
.sm-related-services__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.sm-related-services__card h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.sm-related-services__card p { font-size: 0.8125rem; color: var(--text-sec); }
.sm-related-services h3.sm-related-services__sub-heading { font-weight: 700; margin-bottom: 0.75rem; font-size: 1rem; }
.sm-related-services__chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sm-related-services__chips a { padding: 0.375rem 0.875rem; border-radius: 9999px; border: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-sec); text-decoration: none; transition: all 0.2s; }
.sm-related-services__chips a:hover { border-color: var(--primary); color: var(--primary-text); }

@media (max-width: 700px) { .sm-related-services__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   25. Modul: contact_cards (Kontaktseite)
   ========================================================== */
.sm-contact-cards { padding: 2rem 0 3rem; }
.sm-contact-cards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.sm-contact-cards__card { padding: 1.5rem; background: var(--bg); border-radius: var(--r-lg); border: 1px solid var(--border); text-align: center; text-decoration: none; color: inherit; display: block; }
.sm-contact-cards__card--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: white; }
.sm-contact-cards__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.sm-contact-cards__card h3 { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.sm-contact-cards__value { font-size: 0.9375rem; font-weight: 700; color: var(--primary-text); overflow-wrap: anywhere; }
.sm-contact-cards__card--whatsapp .sm-contact-cards__value { color: white; }
.sm-contact-cards__note { font-size: 0.75rem; color: var(--text-muted); }
.sm-contact-cards__card--whatsapp .sm-contact-cards__note { color: rgba(255,255,255,0.8); }

@media (max-width: 700px) { .sm-contact-cards__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   26. Modul: location_map (Kontaktseite)
   ========================================================== */
.sm-location-map__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.sm-location-map__frame { border-radius: var(--r-xl); min-height: 300px; overflow: hidden; background: var(--border); position: relative; }
.sm-location-map__frame iframe { border: 0; width: 100%; height: 100%; min-height: 300px; }
.sm-location-map__info h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.sm-location-map__info-list { display: flex; flex-direction: column; gap: 1rem; color: var(--text-sec); font-size: 0.9375rem; }
.sm-location-map__info-list strong { color: var(--text-main); }

@media (max-width: 800px) { .sm-location-map__grid { grid-template-columns: 1fr; } .sm-location-map__frame { min-height: 260px; } }

/* ==========================================================
   27. Modul: page_title_bar (Kontakt-Hero minimal)
   ========================================================== */
.sm-page-title { padding: 4rem 0 2rem; text-align: center; }
.sm-page-title h1 { font-size: 3rem; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.sm-page-title__sub { font-size: 1.125rem; color: var(--text-sec); }

@media (max-width: 700px) { .sm-page-title h1 { font-size: 2.25rem; } }

/* ==========================================================
   28. Responsive: generelle Section-Innenabstaende
   ========================================================== */
@media (max-width: 700px) {
  :root { --section-pad: 3.5rem; }
  .sm-hero-split, .sm-hero-stats { padding-top: 3rem; }
}

/* ==========================================================
   29. Gemeinsam: Filter-Pills (Referenzen, Blog)
   ========================================================== */
.sm-filter-pill { display: inline-block; padding: 0.5rem 1rem; border-radius: 9999px; border: 1.5px solid var(--border); font-size: 0.8125rem; font-weight: 600; color: var(--text-sec); background: white; cursor: pointer; text-decoration: none; transition: all 0.2s; font-family: var(--font); }
.sm-filter-pill.active, .sm-filter-pill:hover { border-color: var(--primary); color: var(--primary-text); background: #f0fdf4; }

/* ==========================================================
   30. Modul: portfolio_grid (Referenzen)
   ========================================================== */
.sm-portfolio-grid__filters { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sm-portfolio-grid__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sm-portfolio-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; display: block; transition: all 0.2s; background: white; }
.sm-portfolio-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgb(0 0 0 / 0.12); border-color: var(--primary); }
.sm-portfolio-card__img { aspect-ratio: 4/3; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }
.sm-portfolio-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-portfolio-card__img--placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.75rem; text-align: center; padding: 1rem; }
.sm-portfolio-card__body { padding: 1.25rem; }
.sm-portfolio-card__cat { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.sm-portfolio-card__body h3 { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.sm-portfolio-card__body p { font-size: 0.8125rem; color: var(--text-sec); }
.sm-portfolio-grid__note { text-align: center; font-size: 0.8125rem; color: var(--text-muted); margin-top: 2rem; }

@media (max-width: 900px) { .sm-portfolio-grid__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sm-portfolio-grid__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   31. Modul: logo_cloud (Referenzen)
   ========================================================== */
.sm-logo-cloud__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; }
.sm-logo-cloud__slot { height: 64px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text-muted); font-size: 0.75rem; filter: grayscale(1); opacity: 0.7; transition: all 0.2s; }
.sm-logo-cloud__slot:hover { filter: grayscale(0); opacity: 1; }
.sm-logo-cloud__slot img { max-width: 80%; max-height: 70%; object-fit: contain; }
.sm-logo-cloud__note { font-size: 0.75rem; color: var(--text-muted); margin-top: 1.5rem; }

@media (max-width: 700px) { .sm-logo-cloud__grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================
   32. Modul: blog_grid (Blog-Übersicht, dynamisch)
   ========================================================== */
.sm-blog-grid__filters { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sm-blog-grid__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sm-blog-card { text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: block; transition: all 0.2s; background: white; }
.sm-blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgb(0 0 0 / 0.12); border-color: var(--primary); }
.sm-blog-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.75rem; overflow: hidden; }
.sm-blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sm-blog-card__body { padding: 1.5rem; }
.sm-cat-pill { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; background: #f0fdf4; color: var(--primary-text); font-size: 0.75rem; font-weight: 700; }
.sm-blog-card__body h3 { font-weight: 700; font-size: 1.0625rem; margin: 0.75rem 0 0.5rem; line-height: 1.4; }
.sm-blog-card__body p { font-size: 0.8125rem; color: var(--text-sec); line-height: 1.6; margin-bottom: 0.75rem; }
.sm-blog-card__meta { font-size: 0.75rem; color: var(--text-muted); }
.sm-blog-grid__pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.sm-blog-grid__page { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--border); color: var(--text-sec); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.sm-blog-grid__page.active { background: var(--dark); color: var(--primary); border-color: var(--dark); }

@media (max-width: 900px) { .sm-blog-grid__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sm-blog-grid__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   33. Module: alphabet_nav + glossary_index (Lexikon, dynamisch)
   ========================================================== */
.sm-az-nav { position: sticky; top: var(--smk-header-h); z-index: 150; background: white; border-bottom: 1px solid var(--border); }
.sm-az-nav__inner { display: flex; gap: 0.25rem; padding: 0.75rem 1.5rem; flex-wrap: wrap; justify-content: center; }
.sm-az-letter { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: var(--text-sec); }
.sm-az-letter.has-terms:hover, .sm-az-letter.has-terms.active { background: var(--primary); color: var(--dark); }
.sm-az-letter.no-terms { color: var(--border); }
.sm-glossary-index__group { margin-bottom: 2.5rem; }
.sm-glossary-index__group-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.sm-glossary-index__group-head h2 { font-size: 1.5rem; font-weight: 800; }
.sm-glossary-index__terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
.sm-glossary-index__term { display: block; padding: 0.5rem 0.875rem; border-radius: var(--r-sm); font-size: 0.875rem; color: var(--text-sec); text-decoration: none; transition: all 0.15s; }
.sm-glossary-index__term:hover { background: #f0fdf4; color: var(--primary-text); }

@media (max-width: 700px) { .sm-glossary-index__terms { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   34. Modul: story_columns (Unternehmen) + page_title_bar-Erweiterung
   ========================================================== */
.sm-page-title__awards { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.sm-page-title__awards img { height: 90px; width: auto; }

.sm-story-columns__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
.sm-story-columns__head h2 { font-size: 2rem; font-weight: 800; line-height: 1.25; }
.sm-story-columns__body { color: #94a3b8; line-height: 1.75; font-size: 0.9375rem; }
.sm-story-columns__body p + p { margin-top: 1rem; }

@media (max-width: 900px) { .sm-story-columns__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ==========================================================
   35. Sticky CTA-Bar (Desktop unten links, Mobile volle Breite)
   ========================================================== */
.sm-sticky-bar {
  position: fixed; right: 24px; bottom: 24px; z-index: 250;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.sm-sticky-bar__btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--dark); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.sm-sticky-bar__btn:hover { transform: scale(1.08); background: var(--primary-hover); color: var(--dark); }
.sm-sticky-bar__btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.sm-sticky-bar__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.sm-sticky-bar__btn[title="WhatsApp"] { background: var(--whatsapp); }
.sm-sticky-bar__btn[title="WhatsApp"]:hover { background: var(--whatsapp-hover); color: white; }

@media (max-width: 1024px) {
  .sm-sticky-bar {
    left: 0; right: 0; bottom: 0; top: auto; width: 100%;
    flex-direction: row; background: var(--dark); gap: 0;
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    border-top: 2px solid var(--primary);
  }
  .sm-sticky-bar__btn {
    flex: 1 1 0; width: auto; height: auto; border-radius: var(--r-sm);
    background: transparent; box-shadow: none; flex-direction: column; gap: 0.25rem;
    padding: 0.5rem 0.25rem; color: #cbd5e1;
  }
  .sm-sticky-bar__btn[title="WhatsApp"] { background: transparent; }
  .sm-sticky-bar__btn:hover { transform: none; background: rgba(255,255,255,0.08); color: white; }
  .sm-sticky-bar__btn svg { width: 20px; height: 20px; }
  .sm-sticky-bar__btn span {
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
    font-size: 0.6875rem; font-weight: 600;
  }
  .sm-footer { padding-bottom: 4.5rem; }
}

/* ==========================================================
   36. Template: Rechtliches (Auto-TOC)
   ========================================================== */
.sm-legal { padding: 3rem 0 5rem; }
.sm-legal__grid { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
/* Aside ueber die volle Zeilenhoehe strecken (Grid: align-items:start) — sonst hat der
   sticky Block in seinem Container keinen Spielraum; lange Listen scrollen in sich selbst */
.sm-legal__toc { align-self: stretch; }
.sm-legal__toc-inner {
  position: sticky; top: calc(var(--smk-header-h) + 1.5rem);
  max-height: calc(100vh - var(--smk-header-h) - 3rem); overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.sm-legal__toc-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.sm-legal__toc ol { list-style: none; }
.sm-legal__toc-item a { display: block; padding: 0.4rem 0 0.4rem 0.875rem; border-left: 2px solid var(--border); font-size: 0.8125rem; color: var(--text-sec); text-decoration: none; line-height: 1.4; transition: all 0.2s; }
.sm-legal__toc-item a:hover { color: var(--primary-text); border-left-color: var(--primary); }
.sm-legal__toc-item.active > a { color: var(--primary-text); border-left-color: var(--primary); font-weight: 700; }
.sm-legal__toc-item--h3 a { padding-left: 1.75rem; font-size: 0.75rem; }

.sm-legal__content { max-width: 760px; }
.sm-legal__content h1 { font-size: 2.25rem; margin-bottom: 2rem; }
.sm-legal__content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.sm-legal__content h2:first-of-type { margin-top: 0; }
.sm-legal__content h3 { font-size: 1.125rem; margin: 1.75rem 0 0.75rem; }
.sm-legal__content p { margin-bottom: 1rem; color: var(--text-sec); line-height: 1.8; }
.sm-legal__content ul, .sm-legal__content ol { margin: 0 0 1rem 1.25rem; color: var(--text-sec); line-height: 1.8; }
.sm-legal__content ul { list-style: disc; }
.sm-legal__content ol { list-style: decimal; }
.sm-legal__content a { color: var(--primary-text); text-decoration: underline; }
.sm-legal__content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.875rem; }
.sm-legal__content table td, .sm-legal__content table th { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }

.sm-legal__fab, .sm-legal__backdrop, .sm-legal__card { display: none; }

@media (max-width: 1024px) {
  .sm-legal__grid { grid-template-columns: 1fr; }
  .sm-legal__toc { display: none; }

  .sm-legal__fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 20px; bottom: 80px; z-index: 260;
    width: 52px; height: 52px; border-radius: 50%; border: none;
    background: var(--dark); color: white; box-shadow: 0 4px 16px rgba(0,0,0,0.25); cursor: pointer;
  }
  .sm-legal__fab svg { width: 22px; height: 22px; }

  .sm-legal__backdrop {
    display: block; position: fixed; inset: 0; z-index: 261; background: rgba(15,23,42,0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.2s;
  }
  .sm-legal__backdrop.is-open { opacity: 1; visibility: visible; }

  .sm-legal__card {
    display: flex; flex-direction: column; position: fixed; right: 16px; bottom: 144px; z-index: 262;
    width: min(340px, calc(100vw - 32px)); max-height: 65vh;
    background: white; border-radius: var(--r-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .sm-legal__card.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .sm-legal__card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 1rem 1rem 0.75rem; border-bottom: 1px solid var(--border); }
  .sm-legal__card-title { font-size: 0.8125rem; font-weight: 700; color: var(--text-main); line-height: 1.4; }
  .sm-legal__card-close { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: var(--bg-alt); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .sm-legal__card-close svg { width: 12px; height: 12px; }
  .sm-legal__card-list { list-style: none; padding: 0.5rem 0; margin: 0; overflow-y: auto; }
  .sm-legal__card-item a { display: block; padding: 0.625rem 1rem; font-size: 0.8125rem; color: var(--text-main); text-decoration: none; border-left: 3px solid transparent; line-height: 1.4; }
  .sm-legal__card-item--h3 a { padding-left: 1.75rem; font-size: 0.75rem; color: var(--text-sec); }
  .sm-legal__card-item.active > a { font-weight: 700; color: var(--primary-text); border-left-color: var(--primary); background: var(--bg-alt); }
}

/* ==========================================================
   37. Template: single-glossary (Lexikon-Einzelbegriff)
   ========================================================== */
.sm-glossary-term { padding: 3rem 0 5rem; }
.sm-glossary-term h1 { font-size: 2.25rem; margin: 1.5rem 0 2rem; }
/* Eigene, längere Seitenüberschrift (ACF "glossary_h1"): mobil kleiner, damit sie nicht fünf Zeilen füllt */
@media (max-width: 600px) { .sm-glossary-term h1.sm-glossary-term__h1--long { font-size: 1.75rem; margin-bottom: 1.5rem; } }
.sm-glossary-term__content { max-width: 760px; }
/* Bestandsdaten beginnen selbst mit einem <h1> ("Was ist X?") — visuell als Subheading behandeln, damit nicht zwei große Titel hintereinander stehen */
.sm-glossary-term__content h1 { font-size: 1.5rem; margin: 0 0 1rem; }
.sm-glossary-term__content h2 { font-size: 1.375rem; margin: 2rem 0 0.875rem; }
.sm-glossary-term__content h3 { font-size: 1.125rem; margin: 1.5rem 0 0.75rem; }
.sm-glossary-term__content p { margin-bottom: 1rem; color: var(--text-sec); line-height: 1.8; }
.sm-glossary-term__content ul, .sm-glossary-term__content ol { margin: 0 0 1rem 1.25rem; color: var(--text-sec); line-height: 1.8; }
.sm-glossary-term__content ul { list-style: disc; }
.sm-glossary-term__content ol { list-style: decimal; }
.sm-glossary-term__content strong { color: var(--text-main); }
.sm-glossary-term__content a { color: var(--primary-text); text-decoration: underline; }
/* Code-Schrift (Dateinamen, Direktiven) und Beispieldateien, z. B. im Eintrag "llms.txt" */
.sm-glossary-term__content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.9em; color: var(--text-main); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.sm-glossary-term__content pre { margin: 0 0 1.25rem; padding: 1rem 1.25rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); overflow-x: auto; max-width: 100%; line-height: 1.6; }
.sm-glossary-term__content pre code { display: block; font-size: 0.875rem; background: none; border: 0; border-radius: 0; padding: 0; white-space: pre; overflow-wrap: normal; }
@media (max-width: 500px) { .sm-glossary-index__terms { grid-template-columns: 1fr; } }

/* ==========================================================
   38. Content-Schema: gemeinsame Bausteine (Prosa, Lead, Chips, Platzhalter)
   ========================================================== */
.sm-lead { font-size: 1.125rem; color: var(--text-sec); line-height: 1.7; margin-top: 0.75rem; }
.sm-section--dark .sm-lead { color: #cbd5e1; }

.sm-prose p { color: var(--text-sec); line-height: 1.75; margin-bottom: 1rem; }
.sm-prose > :last-child { margin-bottom: 0; }
.sm-prose strong { color: var(--text-main); }
.sm-prose ul, .sm-prose ol { margin: 0 0 1rem 1.25rem; color: var(--text-sec); line-height: 1.75; }
.sm-prose ul { list-style: disc; }
.sm-prose ol { list-style: decimal; }
.sm-prose--lead p { font-size: 1.125rem; }
/* Links im Fliesstext (auch im WYSIWYG-Text von text_image) als Links erkennbar */
.sm-prose a, .sm-text-image__body > div a { color: var(--primary-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sm-prose a:hover, .sm-text-image__body > div a:hover { color: var(--primary-hover); }
.sm-section--dark .sm-prose p, .sm-section--dark .sm-prose ul, .sm-section--dark .sm-prose ol { color: #cbd5e1; }
.sm-section--dark .sm-prose strong { color: #fff; }
.sm-section--dark .sm-prose a { color: var(--primary); }

.sm-eyebrow--link { text-decoration: none; }
.sm-eyebrow--link:hover { text-decoration: underline; text-underline-offset: 3px; }

.sm-chip { display: inline-block; max-width: 100%; padding: 0.375rem 0.875rem; border-radius: var(--r-xl); background: var(--bg-alt); border: 1px solid var(--border); font-size: 0.8125rem; line-height: 1.4; color: var(--text-sec); overflow-wrap: anywhere; }

/* Offene Platzhalter ([X], [Wert] …): nur fuer eingeloggte Redakteure markiert (smk_ph_wrap) */
.sm-ph { background: #fef9c3; color: #854d0e; padding: 0 0.25rem; border-radius: 0.25rem; font-weight: 600; }

.sm-text-image__links { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.sm-text-image__links a { color: var(--primary-text); font-weight: 700; text-decoration: none; }
.sm-text-image__links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   39. Modul: summary_box ("Kurz gesagt")
   ========================================================== */
.sm-summary { padding: 3rem 0 1rem; }
.sm-summary__box { border-left: 4px solid var(--primary); background: var(--bg-alt); padding: 1.75rem 2rem; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.sm-summary__box p { color: var(--text-main); line-height: 1.75; }
.sm-summary__box p + p { margin-top: 1rem; }

/* ==========================================================
   40. Modul: toc_bar (sticky Inhaltsleiste)
   Sticky unterhalb des sticky Headers (--smk-header-h); auf kleinen Screens
   horizontal wischbar (ohne sichtbare Scrollbar, mit Rand-Verlauf als Hinweis).
   ========================================================================== */
.sm-summary + .sm-toc { margin-top: 2rem; }
.sm-toc { position: sticky; top: var(--smk-header-h); z-index: 150; background: var(--bg); border-bottom: 1px solid var(--border); }
.sm-toc .sm-container { padding: 0; }
.sm-toc__nav {
  position: relative; display: flex; gap: 1.75rem; padding: 0 1.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sm-toc__nav::-webkit-scrollbar { display: none; }
.sm-toc__nav a {
  flex: 0 0 auto; padding: 0.875rem 0; border-bottom: 2px solid transparent;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.4; color: var(--text-sec);
  text-decoration: none; white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.sm-toc__nav a:hover, .sm-toc__nav a.is-active { color: var(--primary-text); border-bottom-color: var(--primary); }
.sm-toc__nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: var(--r-sm); }
/* Verlauf an den Raendern, wenn weitere Eintraege ausserhalb des sichtbaren Bereichs liegen (js/modules.js) */
.sm-toc.has-more-end .sm-toc__nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
.sm-toc.has-more-start .sm-toc__nav { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 2.5rem), transparent); }
.sm-toc.has-more-start.has-more-end .sm-toc__nav { -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent); }

/* ==========================================================
   41. Modul: editorial_section (numbered_cards | labeled_grid | grid_2)
   ========================================================== */
.sm-editorial .sm-green-line { margin-bottom: 1rem; }
.sm-editorial .sm-heading { margin-bottom: 1.25rem; }

/* numbered_cards: links Kopf (sticky), rechts Karten */
.sm-editorial__split { display: grid; grid-template-columns: 2fr 3fr; gap: 3.5rem; align-items: start; }
.sm-editorial__sticky { position: sticky; top: calc(var(--smk-header-h) + var(--smk-toc-h) + 1.5rem); }
.sm-editorial__cards { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sm-num-card { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.sm-num-card__badge { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--dark); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sm-num-card__body { min-width: 0; }
.sm-num-card h3 { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.5rem; }
.sm-num-card .sm-prose p { font-size: 0.9375rem; line-height: 1.7; }
.sm-editorial__closing { margin-top: 2.5rem; padding: 1.5rem 2rem; background: #f0fdf4; border-radius: var(--r-lg); }
.sm-editorial__closing p { font-weight: 600; color: var(--text-main); line-height: 1.7; }

/* zentrierter Kopf (labeled_grid, grid_2) */
.sm-editorial__center { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.sm-editorial__center--narrow { max-width: 720px; margin-bottom: 3rem; }
.sm-editorial__center .sm-green-line { margin: 0 auto 1rem; }
.sm-editorial__center .sm-heading { margin-bottom: 1rem; }
.sm-editorial__items-heading { text-align: center; font-weight: 700; margin-bottom: 1.5rem; }

/* labeled_grid: Karten mit Label + Chips */
.sm-pattern-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
.sm-pattern-card { padding: 1.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
.sm-pattern-card__label { display: inline-block; max-width: 100%; margin-bottom: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 9999px; background: #f0fdf4; color: var(--primary-text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.sm-pattern-card__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sm-editorial__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 1000px; margin: 0 auto; }
.sm-editorial__cols > .sm-prose:last-child > p:last-child:not(:only-child) { font-weight: 600; color: var(--text-main); }

/* grid_2: 2x2-Raster */
.sm-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 901px) {
  /* ungerade Kartenzahl (z. B. 7 Branchen): die letzte Karte steht mittig statt einsam links */
  .sm-feature-grid:not(.sm-feature-grid--3) > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.75rem); }
}
.sm-feature-card { padding: 2rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color 0.2s, box-shadow 0.2s; min-width: 0; }
.sm-feature-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgb(15 23 42 / 0.06); }
.sm-feature-card__icon { font-size: 2rem; line-height: 1; margin-bottom: 1rem; }
.sm-feature-card h3 { font-weight: 700; font-size: 1.125rem; margin: 0.25rem 0 0.75rem; }
.sm-feature-card .sm-prose p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 0.75rem; }
.sm-feature-card .sm-prose > :last-child { margin-bottom: 0; }
.sm-editorial--grid_2 .sm-editorial__closing { margin-top: 2rem; }

/* aufeinanderfolgende graue Abschnitte durch eine feine Linie trennen */
.sm-editorial.sm-section--alt + .sm-editorial.sm-section--alt { border-top: 1px solid var(--border); }

/* dunkle Variante (bg = dark) */
.sm-editorial.sm-section--dark .sm-num-card,
.sm-editorial.sm-section--dark .sm-pattern-card,
.sm-editorial.sm-section--dark .sm-feature-card { background: var(--dark-card); border-color: var(--dark-border); }
.sm-editorial.sm-section--dark .sm-num-card h3,
.sm-editorial.sm-section--dark .sm-feature-card h3 { color: #fff; }
.sm-editorial.sm-section--dark .sm-num-card__badge { background: var(--primary); color: var(--dark); }
.sm-editorial.sm-section--dark .sm-pattern-card__label { background: rgb(153 225 50 / 0.12); color: var(--primary); }
.sm-editorial.sm-section--dark .sm-chip { background: rgb(255 255 255 / 0.06); border-color: var(--dark-border); color: #cbd5e1; }
.sm-editorial.sm-section--dark .sm-editorial__closing { background: rgb(153 225 50 / 0.1); }
.sm-editorial.sm-section--dark .sm-editorial__closing p { color: #fff; }
.sm-editorial.sm-section--dark .sm-editorial__items-heading { color: #fff; }

/* ==========================================================
   42. Modul: text_aside (Text + sticky Seitenkarte)
   ========================================================== */
.sm-text-aside__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3.5rem; align-items: start; }
.sm-text-aside--single .sm-text-aside__grid { grid-template-columns: minmax(0, 800px); }
.sm-text-aside__main { min-width: 0; }
.sm-text-aside .sm-green-line { margin-bottom: 1rem; }
.sm-text-aside .sm-heading { margin-bottom: 1.5rem; }
.sm-text-aside__aside { padding: 2rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-xl); min-width: 0; }
.sm-section--alt .sm-text-aside__aside { background: var(--bg); }
.sm-text-aside--sticky .sm-text-aside__aside { position: sticky; top: calc(var(--smk-header-h) + var(--smk-toc-h) + 1.5rem); }
.sm-text-aside__list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.sm-text-aside__list li { display: flex; gap: 0.625rem; line-height: 1.5; }
.sm-text-aside__list li::before { content: '✓'; flex-shrink: 0; color: var(--primary-text); font-weight: 800; }
.sm-text-aside__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.sm-text-aside__chips .sm-chip { background: var(--bg); }
.sm-section--alt .sm-text-aside__chips .sm-chip { background: var(--bg-alt); }

/* ==========================================================
   43. Modul: case_studies_dynamic (Fallbeispiele aus dem CPT)
   ========================================================== */
.sm-cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sm-cases__head-text { max-width: 640px; }
.sm-cases__head .sm-green-line { margin-bottom: 1rem; }
.sm-cases__head .sm-heading { margin-bottom: 0.25rem; }
.sm-cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sm-case { display: flex; flex-direction: column; min-width: 0; padding: 1.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); }
.sm-case__logo { width: 56px; height: 56px; margin-bottom: 1rem; border-radius: var(--r-md); background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: var(--text-muted); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; font-size: 0.625rem; }
.sm-case__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sm-case__mono { font-size: 1.125rem; font-weight: 800; letter-spacing: 0.02em; color: var(--text-sec); }
.sm-case__kicker { font-size: 0.75rem; color: var(--text-muted); }
.sm-case__title { margin: 0.25rem 0 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.sm-case__client { margin-top: 0.125rem; font-size: 0.8125rem; color: var(--text-sec); }
.sm-case__ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.75rem; align-items: center; margin: 1rem 0; padding: 1rem; background: var(--bg-alt); border-radius: var(--r-md); }
.sm-case__kennz { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 700; color: var(--text-sec); }
.sm-case__ba small { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.sm-case__ba strong { display: block; font-size: 1rem; font-weight: 800; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }
.sm-case__arrow { color: var(--text-muted); }
.sm-case__ba-after strong { color: var(--primary-text); }
.sm-case__text { margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.65; color: var(--text-sec); }
.sm-case__meta { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-sec); }
.sm-case__meta dt { font-weight: 700; color: var(--text-main); }
.sm-case__link { margin-top: 1rem; color: var(--primary-text); font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.sm-case__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sm-case__ba + .sm-case__link, .sm-case__text + .sm-case__link { margin-top: auto; }

/* "Mehr anzeigen": natives <details> — funktioniert ohne JavaScript */
.sm-cases__more { margin-top: 1.5rem; }
.sm-cases__more > summary { display: flex; width: fit-content; margin: 0 auto 1.5rem; list-style: none; cursor: pointer; }
.sm-cases__more > summary::-webkit-details-marker { display: none; }
.sm-cases__more-close { display: none; }
.sm-cases__more[open] .sm-cases__more-open { display: none; }
.sm-cases__more[open] .sm-cases__more-close { display: inline; }

/* ==========================================================
   44. Content-Schema: Responsive
   Breakpoints wie im restlichen Theme: 1024 (Tablet quer), 900 (Spalten
   brechen um, Sticky-Spalten werden statisch), 640 (Smartphone).
   ========================================================== */
/* Branchen-Template: Hero-H1 wie im Mockup (2.75rem) — lange Redaktions-Titel brauchen weniger Hoehe */
@media (min-width: 901px) {
  .sm-tpl-branche .sm-hero-split h1 { font-size: 2.75rem; }
}
@media (max-width: 1024px) {
  .sm-pattern-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sm-editorial__split, .sm-text-aside__grid { grid-template-columns: 1fr; gap: 2rem; }
  .sm-editorial__sticky, .sm-text-aside--sticky .sm-text-aside__aside { position: static; }
  .sm-editorial__cols, .sm-feature-grid { grid-template-columns: 1fr; }
  .sm-editorial__cols { gap: 1.25rem; }
  .sm-editorial__center, .sm-editorial__center--narrow { margin-bottom: 2rem; }
  /* Fallbeispiel-Karten sind kompakt: auf Tablets 2 Spalten, eine einzelne letzte Karte nimmt die volle Breite */
  .sm-cases__grid { grid-template-columns: repeat(2, 1fr); }
  .sm-cases__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .sm-summary { padding: 2rem 0 0.5rem; }
  .sm-summary__box { padding: 1.25rem; }
}
@media (max-width: 640px) {
  .sm-cases__grid { grid-template-columns: 1fr; }
  /* Vorher/Nachher untereinander, damit lange Werte die volle Kartenbreite nutzen */
  .sm-case__ba { grid-template-columns: 1fr; gap: 0.5rem; }
  .sm-case__arrow { justify-self: start; transform: rotate(90deg); }
  .sm-case__ba strong { font-size: 1.125rem; }
  .sm-toc__nav { gap: 1.25rem; }
  .sm-toc__nav a { padding: 0.8125rem 0; }
  .sm-num-card { gap: 1rem; padding: 1.25rem; }
  .sm-num-card__badge { flex-basis: 2.25rem; width: 2.25rem; height: 2.25rem; }
  .sm-editorial__closing { padding: 1.25rem; }
  .sm-feature-card, .sm-case, .sm-text-aside__aside { padding: 1.5rem; }
  .sm-cases__head { margin-bottom: 1.75rem; }
  .sm-tpl-branche .sm-heading { font-size: 1.75rem; }
  .sm-tpl-branche .sm-hero-split h1 { font-size: 2rem; }
}
@media (max-width: 520px) {
  .sm-pattern-grid { grid-template-columns: 1fr; margin-bottom: 2rem; }
}

/* ==========================================================
   45. Content-Schema, Teil 2: Fliesstext-Abschnitte, Tabellen, Button-Zeilen,
   Karten-Links/-Logos, Link-Gruppen, Redakteurs-Kennzeichnung toter Links
   ========================================================== */
.sm-container--880 { max-width: 880px; }

/* Fliesstext-Abschnitt: eine Spalte */
.sm-editorial--prose .sm-editorial__head { margin-bottom: 0.25rem; }
.sm-editorial--prose .sm-prose > p { font-size: 1rem; }
.sm-editorial__cta { margin-top: 2rem; }
.sm-editorial__after { max-width: 880px; margin: 2.5rem auto 0; }
.sm-editorial__after > :first-child { margin-top: 0; }
.sm-text-aside__main .sm-editorial__cta { margin-top: 1.75rem; }

/* Links im Fliesstext von FAQ, Zusammenfassung, Hero und Kontakt */
.sm-faq__a a, .sm-summary__box a { color: var(--primary-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sm-faq__a a:hover, .sm-summary__box a:hover { color: var(--primary-hover); }
.sm-hero-split__sub a, .sm-hero-split__meta a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.sm-contact-split .sm-subline a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.sm-contact-split--light .sm-subline a { color: var(--primary-text); }

/* Tabellen (Textfeld "Zeile | Zeile") */
.sm-table-wrap { margin: 1.75rem 0; overflow-x: auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.sm-section--alt .sm-table-wrap { background: #fff; }
.sm-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.sm-table th, .sm-table td { padding: 0.875rem 1.125rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.sm-table thead th { background: var(--bg-alt); color: var(--text-sec); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.sm-section--alt .sm-table thead th { background: var(--bg-alt); }
.sm-table tbody th { color: var(--text-main); font-weight: 700; min-width: 8rem; }
.sm-table td { color: var(--text-sec); }
.sm-table tbody tr:last-child > * { border-bottom: 0; }
.sm-table td a, .sm-table th a { color: var(--primary-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Karten: Link am Ende, Logo statt Emoji */
.sm-feature-card { display: flex; flex-direction: column; }
.sm-feature-card__img { width: auto; max-width: 100%; max-height: 40px; margin-bottom: 1rem; object-fit: contain; object-position: left center; }
.sm-card-link { display: inline-block; margin-top: auto; padding-top: 1rem; color: var(--primary-text); font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.sm-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sm-num-card--plain { flex-direction: column; gap: 0; }
.sm-feature-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Link-Gruppen (z.B. Staedte nach Region) */
.sm-link-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.sm-link-group { padding: 1.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.sm-section--alt .sm-link-group { background: #fff; }
.sm-link-group h3 { margin-bottom: 1rem; font-size: 1.0625rem; font-weight: 700; }
.sm-link-list { display: flex; flex-direction: column; }
.sm-link-list li { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.75rem 0; border-top: 1px solid var(--border); }
.sm-link-list li:first-child { padding-top: 0; border-top: 0; }
.sm-link-list li:last-child { padding-bottom: 0; }
.sm-link-list__name { color: var(--text-main); font-weight: 700; text-decoration: none; }
a.sm-link-list__name { color: var(--primary-text); }
a.sm-link-list__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sm-link-list__text { color: var(--text-sec); font-size: 0.875rem; line-height: 1.55; }
.sm-link-list__text a { color: var(--primary-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Fallbeispiele: Hinweis unter den Karten */
.sm-cases__footnote { margin-top: 2rem; text-align: center; }
.sm-cases__footnote p { color: var(--text-sec); }

/* Redakteure: Link auf (noch) nicht veroeffentlichte Seite — fuer Besucher gar nicht sichtbar */
.sm-deadlink { border-bottom: 1px dashed #dc2626; cursor: help; }
.sm-deadlink--btn { border: 1.5px dashed #dc2626 !important; background: transparent !important; color: var(--text-sec) !important; opacity: 0.75; box-shadow: none !important; transform: none !important; }

@media (max-width: 900px) {
  .sm-feature-grid--3, .sm-link-groups { grid-template-columns: 1fr; }
  .sm-editorial__after { margin-top: 2rem; }
}

/* Tabellen mobil: jede Zeile wird zu einer Karte, die Kopfzeile erscheint als Beschriftung je Wert */
@media (max-width: 640px) {
  .sm-table-wrap { overflow: visible; background: transparent; border: 0; }
  .sm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sm-table, .sm-table tbody, .sm-table tr, .sm-table th, .sm-table td { display: block; width: 100%; }
  .sm-table tr { margin-bottom: 0.875rem; overflow: hidden; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
  .sm-section--alt .sm-table tr { background: #fff; }
  .sm-table tbody th { min-width: 0; padding: 0.75rem 1rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
  .sm-table td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); }
  .sm-table tbody tr > :last-child { border-bottom: 0; }
  .sm-table td::before { content: attr(data-label); display: block; margin-bottom: 0.125rem; color: var(--text-muted); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
  .sm-link-group { padding: 1.25rem; }
}

/* Lange Button-Beschriftungen ("Über Personalgewinnung sprechen") dürfen auf Smartphones umbrechen, statt über den Rand zu laufen.
   Nur im Seiteninhalt — Header-Button und Sticky-Leiste bleiben einzeilig. */
@media (max-width: 480px) {
  .sm-main .sm-btn { max-width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.3; }
}

/* ==========================================================
   Ergebnislisten (Suche, Archive, 404) — index.php
   ========================================================== */
.sm-search-results { display: grid; gap: 1.5rem; margin: 2rem 0; max-width: 52rem; }
.sm-search-result { padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.sm-search-result h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.sm-search-result h2 a { color: var(--text-main); text-decoration: none; }
.sm-search-result h2 a:hover { color: var(--primary-text); text-decoration: underline; }
.sm-search-result p { margin: 0; color: var(--text-sec); }
.navigation.pagination { margin: 2rem 0; }
.navigation.pagination .nav-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.navigation.pagination .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: var(--r-sm); text-decoration: none; color: var(--text-main); }
.navigation.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); font-weight: 700; }
