/* TB-Software 2026, Components */

/* ── Header ──────────────────────────────────────────────────────────── */
.tb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--tb-bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--tb-line);
}
.tb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}
.tb-header__logo { display: flex; align-items: center; gap: var(--space-2); }
.tb-header__logo svg, .tb-header__logo img { width: 42px; height: 42px; }
.tb-header__brand { font-family: Geist, Inter, sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--tb-ink-900); letter-spacing: -0.01em; white-space: nowrap; }
.tb-header__nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;     /* Top-Items + Dropdown-Trigger auf gleicher Y-Achse */
}
.tb-header__nav > a,
.tb-header__nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--tb-ink-700);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;        /* identisch für alle Items */
}
.tb-header__nav a:hover,
.tb-header__nav-trigger:hover {
  background: var(--tb-primary-50);
  color: var(--tb-primary-700);
  border-color: var(--tb-primary-200);
}
/* margin-left:auto schiebt die CTA-Zone (Briefing + Burger) immer ans
   rechte Ende, auch wenn die Nav dazwischen versteckt/leer ist und das
   space-between des Containers durch Whitespace/<br>-Knoten ausgehebelt
   wird (wpautop-Fallstrick). User-Beobachtung 2026-05-05: Burger landete
   auf Mobile horizontal mittig, diese Regel zieht ihn klar nach rechts. */
.tb-header__cta { display: flex; gap: var(--space-2); align-items: center; margin-left: auto; }

/* Dropdown-Menüs, schlank, hover/focus-only */
.tb-header__nav-group {
  position: relative;
  display: inline-flex;     /* statt inline-block, vertikales Aligning */
  align-items: center;
}
.tb-header__nav-dropdown {
  position: absolute;
  /* KEIN Abstand mehr zwischen Trigger und Dropdown, vorher 4px Luecke
     plus eine Bruecke (::before), aber wenn die Maus genau in die 4px
     reinfiel ohne Bruecke zu treffen, schloss das Dropdown und oeffnete
     beim naechsten Pixel wieder = Flackern. (Bug-Report 2026-05-06).
     top:100% klebt das Dropdown direkt an den Trigger. Plus margin-top
     damit Borderpaint nicht ueberlappt. */
  top: 100%;
  margin-top: 1px;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--tb-line, #e5e7ee);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(14, 14, 42, 0.10);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  /* Open ist instant, Close erst nach 180ms, verhindert Flackern wenn
     der User schnell zwischen Menue-Gruppen wechselt. */
  transition: opacity .12s ease .18s, transform .12s ease .18s;
  z-index: 100;
}
/* Hover-Stabilisierung: nav-group bekommt einen unsichtbaren Padding-Bereich
   nach unten, der die Hover-Erkennung bis ueber den Top-Rand des Dropdowns
   ausdehnt. Damit verliert die Maus den Hover nicht beim Uebergang. */
.tb-header__nav-group {
  padding-bottom: 8px;
  margin-bottom: -8px;
}
.tb-header__nav-group:hover .tb-header__nav-dropdown,
.tb-header__nav-group:focus-within .tb-header__nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;   /* Öffnen direkt, kein Delay */
}
.tb-header__nav-dropdown a {
  padding: .45rem .75rem !important;
  border-radius: 6px !important;
  border: 0 !important;
  font-size: .88rem;
  white-space: nowrap;
}
.tb-header__nav-dropdown a:hover {
  background: var(--tb-primary-50, #f0f0ff) !important;
}

/* Burger nur auf Mobile sichtbar */
.tb-header__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--tb-line, #e5e7ee);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #1f1f3a;             /* Fallback-Farbe falls --tb-ink-700 nicht greift */
  flex: 0 0 auto;
}
.tb-header__burger span {
  display: block !important;     /* vs. WP-Resets die span:empty oft hide-en */
  width: 20px !important;
  height: 2.5px !important;
  background-color: #1f1f3a !important;   /* hart-codiert, immer sichtbar gegen weisse Header */
  border-radius: 1px;
  transition: transform .15s ease, opacity .15s ease;
}
.tb-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tb-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tb-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-Nav */
.tb-header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid var(--tb-line, #e5e7ee);
}
.tb-header__mobile-nav[hidden] { display: none !important; }
.tb-header__mobile-link {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--tb-ink-700, #333);
  font-weight: 600;
  border-radius: 6px;
  font-size: 1rem;
  min-height: 44px;        /* Touch-Target */
  line-height: 20px;
}
.tb-header__mobile-link--sub {
  padding-left: 32px;
  font-weight: 400;
  font-size: .92rem;
  color: var(--tb-ink-500, #5b5b78);
  min-height: 36px;
}
.tb-header__mobile-link:hover { background: var(--tb-primary-50, #f0f0ff); }

@media (max-width: 900px) {
  .tb-header__nav { display: none; }
  .tb-header__burger { display: inline-flex; }
  .tb-header__mobile-nav:not([hidden]) { display: flex; }
  /* Header-Logo + CTAs auf Mobile dichter */
  .tb-header__inner { gap: 8px; }
  .tb-header__brand { font-size: .95rem; }
}
/* Schmale Tablets / grosse Phones: Briefing-CTA aus dem Header raus.
   Briefing ist eh in der Burger-Mobile-Nav als "Briefing starten" verfuegbar.
   QR-Button wurde am 2026-05-05 komplett aus dem Header entfernt
   (war doppelt zum Footer-Aktionen-Eintrag). Damit auf Mobile nur noch
   Logo + Burger, klare Linie. */
@media (max-width: 580px) {
  .tb-header__cta .tb-btn--primary { display: none; }
  .tb-header__inner { padding-block: 10px; }
  /* Logo dezent groesser: 36 fuehlte sich zu klein, 44 ist Touch-Target-Konvention */
  .tb-header__logo img { width: 44px; height: 44px; }
  .tb-header__cta {
    gap: 8px;
    align-items: center;
  }
  /* Hero-CTAs auf Mobile gleich breit (full-width stacked) */
  .tb-hero__ctas { flex-direction: column; align-items: stretch; }
  .tb-hero__ctas .tb-btn { width: 100%; justify-content: center; }
}
/* Sehr schmal (kleine Phones): Brand-Schriftzug raus → nur Logo + Burger */
@media (max-width: 380px) {
  .tb-header__brand { display: none; }
}

/* Auf Touch-Geräten: Hover-Dropdowns durch Tap-Toggle ersetzen */
@media (hover: none) {
  .tb-header__nav-group:hover .tb-header__nav-dropdown {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: Geist, Inter, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--dur-fast) var(--ease-default),
              background var(--dur-fast) var(--ease-default),
              border-color var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default);
  white-space: nowrap;
  line-height: 1.2;
}
.tb-btn:hover { transform: translateY(-1px); }
.tb-btn--primary {
  background: var(--tb-primary-700);
  color: #fff;
  box-shadow: 0 4px 14px rgba(25,25,200,0.25);
}
.tb-btn--primary:hover { background: var(--tb-primary-900); box-shadow: 0 6px 20px rgba(25,25,200,0.35); }
.tb-btn--secondary {
  background: transparent;
  color: var(--tb-primary-700);
  border-color: var(--tb-primary-700);
}
.tb-btn--secondary:hover {
  background: var(--tb-primary-50);
  border-color: var(--tb-primary-900);
  color: var(--tb-primary-900);
}
.tb-btn--ghost {
  background: transparent;
  color: var(--tb-ink-700);
  border: 1px solid var(--tb-line);
}
.tb-btn--ghost:hover { background: var(--tb-bg-card); border-color: var(--tb-primary-200); }

/* ── Section Defaults ────────────────────────────────────────────────── */
.tb-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.tb-section--alt {
  background: linear-gradient(180deg,
    var(--tb-bg) 0%,
    color-mix(in srgb, var(--tb-primary-50) 65%, var(--tb-bg)) 100%);
  border-block: 1px solid color-mix(in srgb, var(--tb-primary-200) 35%, transparent);
}
.tb-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-10);
}
.tb-section__head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}
.tb-section__head p {
  color: var(--tb-ink-700);
  font-size: 1.0625rem;
}
.tb-section__cta {
  margin-top: var(--space-8);
  text-align: center;
}
.tb-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--tb-primary-50);
  color: var(--tb-primary-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.tb-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
.tb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}
.tb-hero__copy { max-width: 640px; }
.tb-hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--tb-accent-amber) 18%, var(--tb-bg-card));
  border: 1px solid color-mix(in srgb, var(--tb-accent-amber) 60%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tb-ink-900);
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 8px rgba(25,25,200,0.06);
}
.tb-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
  color: var(--tb-ink-900);
  font-weight: 800;
}
.tb-hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--tb-primary-700) 0%, var(--tb-accent-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.tb-hero__sub-title {
  display: block;
  color: var(--tb-ink-700);
  font-weight: 600;
  font-size: 0.7em;
  margin-top: var(--space-2);
}
.tb-hero__lead {
  font-size: 1.1875rem;
  color: var(--tb-ink-700);
  line-height: 1.55;
  margin-bottom: var(--space-6);
  max-width: 540px;
}
.tb-hero__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-8); }
.tb-hero__chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: var(--space-6); flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--tb-ink-500);
}
.tb-hero__chips li strong {
  color: var(--tb-ink-900);
  font-weight: 700;
  margin-right: .25rem;
}
/* Klickbarer Chip, visuell hervorgehoben, führt zur Werdegang-Seite */
.tb-hero__chip-link a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1.5px dashed currentColor;
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.tb-hero__chip-link a:hover,
.tb-hero__chip-link a:focus {
  color: var(--tb-accent, #FF6B2C);
  border-bottom-color: var(--tb-accent, #FF6B2C);
}

/* Hero-Mark (Logo-Karte rechts) */
.tb-hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tb-hero__mark-card {
  position: relative;
  width: 280px; height: 280px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tb-accent-cyan) 18%, transparent) 0%, transparent 60%),
    var(--tb-bg-card);
  border: 1px solid var(--tb-line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(4deg);   /* in die andere Richtung gekippt */
}
.tb-hero__mark-card img {
  width: 180px; height: 180px;
  filter: drop-shadow(0 8px 20px rgba(25,25,200,0.20));
  position: relative; z-index: 1;
}
.tb-hero__mark-pulse {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--tb-primary-700) 30%, transparent);
  /* Initial 3 Wiederholungen beim Page-Load, danach erst wieder bei Hover */
  animation: tb-pulse 3s var(--ease-default) 3;
}
.tb-hero__mark:hover .tb-hero__mark-pulse,
.tb-hero__mark-card:hover .tb-hero__mark-pulse {
  animation: tb-pulse 3s var(--ease-default) infinite;
}
@keyframes tb-pulse {
  0%   { transform: scale(0.85); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

@media (max-width: 880px) {
  .tb-hero__grid { grid-template-columns: 1fr; }
  .tb-hero__mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-hero__mark-pulse { animation: none; }
}

/* ── Tech-Karten mit Hover-Flip ─────────────────────────────────────── */
.tb-tech-flips { perspective: 1500px; }

/* Variante mit Wellen-Abschluss: Sektion endet mit einer SVG-Wellen-Form.
   Look-Logik (User-Feedback 2026-05-13):
   • Cards-Bereich oben: hell, fast weiss
   • Bottom-Zone: Brand-Blau-Verlauf (gehoert visuell zu tech-pills, "Worin
     wir zu hause sind"-Abschluss)
   • Welle selbst: WEISS, wirkt wie der Anfang der HELLEN Folge-Sektion
     (Butler/highlight-cards), die durch das Blau "ins Bild flutet"
   So entsteht der Eindruck: dunkles Plateau am Ende des tech-pills, gefolgt
   von einer hellen Welle die zur naechsten Section ueberleitet, sauberer
   Schnitt auch wenn USP-dark dazwischen-rendert, weil die helle Welle
   visuell den Abschluss DIESER section bildet, nicht den Start der USP. */
.tb-tech-flips--wave-end {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--tb-bg) 0%,
    var(--tb-bg) 70%,
    #0e1830 100%);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  margin-block: 0;
}
/* Folge-Sektion direkt nach Wellen-Divider braucht weder Margin noch
   nochmal grosses Top-Padding, die Welle gibt schon Atmungsraum. */
.tb-tech-flips--wave-end + * {
  margin-top: 0;
  border-top: 0;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
/* tb-section--alt setzt sonst eine 1px border-block die als „harte Linie"
   unter der Welle sichtbar wird, hier killen, der Wellen-Cut ist die Trennung. */
.tb-tech-flips--wave-end { border: 0; }

/* Divider 2× breit + sanfte translateX-Drift für seamless Wellen-Bewegung.
   `max-width: none` overrides globale WP-Regel `svg { max-width: 100% }`
   die sonst die 200%-Breite auf 100% kappt → Welle wäre nicht durchgängig. */
.tb-tech-flips__divider {
  position: absolute;
  left: 0; bottom: 0;
  width: 200%;
  max-width: none;
  height: clamp(60px, 9vw, 110px);
  display: block;
  pointer-events: none;
  z-index: 1;
  animation: tb-tf-divider-drift 95s linear infinite reverse;
}
@keyframes tb-tf-divider-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-tech-flips__divider { animation: none; }
}

.tb-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 980px) { .tb-tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tb-tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .tb-tech-grid { grid-template-columns: 1fr; } }

.tb-tech-flip {
  display: block;
  height: 260px;
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  outline: none;
}
.tb-tech-flip__inner {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.4, .15, .25, 1);
}
.tb-tech-flip:hover .tb-tech-flip__inner,
.tb-tech-flip:focus-visible .tb-tech-flip__inner {
  transform: rotateY(180deg);
}
.tb-tech-flip__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column;
  background: var(--tb-bg-card);
  border: 1px solid var(--tb-line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms;
  overflow: hidden;
}
.tb-tech-flip:hover .tb-tech-flip__face { box-shadow: var(--shadow-md); }

.tb-tech-flip__face--front {
  justify-content: space-between;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--tb-primary-500) 7%, transparent) 0%, transparent 60%),
    var(--tb-bg-card);
}

/* ── Variante mit Hintergrund-Bild ────────────────────────────────── */
.tb-tech-flip--with-img .tb-tech-flip__face--front {
  padding: 0;
  /* position: absolute bleibt vom Default (.tb-tech-flip__face), sonst kollabiert
     die Höhe weil alle Kinder absolute positioniert sind */
  overflow: hidden;
  /* Background transparent setzen, sonst deckt der weisse bg-card das img ab */
  background: transparent;
}
.tb-tech-flip--with-img .tb-tech-flip__img {
  /* z-index:1 sicher über dem face-Background, unter overlay+content (z-index 2/3) */
  z-index: 1;
}
.tb-tech-flip--with-img .tb-tech-flip__overlay { z-index: 2; }
.tb-tech-flip--with-img .tb-tech-flip__front-content { z-index: 3; }
.tb-tech-flip__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 600ms var(--ease-default), opacity 400ms var(--ease-default);
  /* Bild deutlich sichtbar, als atmosphärisches Hintergrund-Foto.
     Overlay (siehe ::overlay) sorgt trotzdem für Text-Kontrast. */
  opacity: 0.65;
  filter: saturate(1.05);
  z-index: 0;
}
.tb-tech-flip--with-img:hover .tb-tech-flip__img {
  transform: scale(1.08);
  /* Bei Hover: Bild fast komplett ausblenden, damit beim Karten-Flip die
     dunkle Rückseite klar lesbar bleibt (kein Bleed durch backface-Quirks). */
  opacity: 0.05;
}
.tb-tech-flip__overlay {
  position: absolute; inset: 0;
  /* Reduziertes Overlay → Bild bleibt sichtbar, aber weicher Schleier
     hellt unteren Bereich für Text-Kontrast auf. */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.62) 65%, rgba(255,255,255,0.85) 100%);
  z-index: 1;
  transition: opacity 300ms var(--ease-default);
}
.tb-tech-flip--with-img:hover .tb-tech-flip__overlay { opacity: 0.15; }
.tb-tech-flip__front-content {
  position: absolute;
  inset: 0;
  /* Mehr Luft um Icon und Text, nicht mehr am Rand klebend. */
  padding: clamp(18px, 2.5vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  color: var(--tb-ink-900);
}
.tb-tech-flip--with-img .tb-tech-flip__icon {
  width: 48px; height: 48px;
  /* Eigene Margin-Box damit Icon nicht am Title klebt */
  margin: 0 0 var(--space-3) 0;
  background: linear-gradient(135deg, var(--tb-primary-700), var(--tb-accent-cyan));
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 14px rgba(25,25,200,0.18);
  align-self: flex-start;
}
.tb-tech-flip--with-img .tb-tech-flip__title {
  color: var(--tb-ink-900);
  font-size: 1.125rem;
  margin: 0 0 6px 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tb-tech-flip--with-img .tb-tech-flip__tags {
  color: var(--tb-ink-500);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.5;
}
.tb-tech-flip__icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--tb-primary-700) 0%, var(--tb-accent-cyan) 100%);
  color: #fff;
  margin-bottom: var(--space-4);
  box-shadow: 0 6px 16px rgba(25,25,200,0.18);
  transition: transform 400ms var(--ease-default);
}
.tb-tech-flip:hover .tb-tech-flip__icon { transform: scale(1.06) rotate(-4deg); }

.tb-tech-flip__title {
  display: block;
  font-family: Geist, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--tb-ink-900);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}
.tb-tech-flip__tags {
  display: block;
  font-size: 0.8125rem;
  color: var(--tb-ink-500);
  font-weight: 500;
}

.tb-tech-flip__face--back {
  transform: rotateY(180deg);
  /* Halbtransparenter Marken-Verlauf, damit die Vorderseiten dahinter leise
     durchschimmern. Der dunkle Overlay (::before, 25 % schwarz) sorgt dafür,
     dass weisser Text trotzdem klar lesbar bleibt. */
  background:
    linear-gradient(135deg,
      rgba(20, 20, 142, 0.55) 0%,
      rgba(10, 10, 92, 0.55) 60%,
      rgba(14, 14, 42, 0.55) 100%);
  color: #fff;
  justify-content: flex-start;
  padding: clamp(18px, 2.5vw, 24px);
  isolation: isolate;
  /* Inhalts-Hintergrund für Browser ohne backdrop-filter (Fallback) */
  -webkit-backdrop-filter: blur(2px) brightness(0.85);
          backdrop-filter: blur(2px) brightness(0.85);
}
/* Starkes dunkles Overlay AUF der Rückseite, UNTER den Inhalten:
   garantiert maximalen Kontrast für weissen Text und blockt Front-Bleed. */
.tb-tech-flip__face--back::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(4, 8, 26, 0.65);
  z-index: 0;
  pointer-events: none;
}
/* Alle direkten Kinder der Rückseite müssen über dem Overlay liegen */
.tb-tech-flip__face--back > * { position: relative; z-index: 1; }
/* Hover: Front-Inhalte fast komplett ausblenden, damit beim Karten-Flip die
   dunkle Rückseite klar lesbar bleibt (back ::before-Overlay sorgt zusätzlich
   für Kontrast hinter den weissen Texten). */
.tb-tech-flip:hover .tb-tech-flip__img { opacity: 0.05; }
.tb-tech-flip:hover .tb-tech-flip__overlay { opacity: 0.15; }
.tb-tech-flip:hover .tb-tech-flip__front-content { opacity: 0.05; }
.tb-tech-flip__back-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.tb-tech-flip__back-icon {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.tb-tech-flip__back-title {
  font-family: Geist, Inter, sans-serif;
  font-weight: 800;
  font-size: 1.0625rem;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tb-tech-flip__back-desc {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  opacity: 0.92;
  color: rgba(255,255,255,0.92);
}
.tb-tech-flip__back-list {
  list-style: none;
  margin: 0 0 var(--space-3) 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tb-tech-flip__back-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #ffffff;                      /* maximaler Kontrast */
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.tb-tech-flip__back-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tb-accent-cyan, #18C6E6);
  font-weight: 800;
}
.tb-tech-flip__back-cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 700;
  font-size: 0.88rem;
  padding-top: var(--space-2);
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

/* Vereinheitlichter Icon-Verlauf für ALLE 8 Karten, kein farblicher
   Themen-Code mehr (war bei 8 Stück nicht mehr eindeutig). Alle Icons in
   Blau-Türkis wie der Brand. */
.tb-tech-flip .tb-tech-flip__icon,
.tb-tech-flip[data-tech="ki"]              .tb-tech-flip__icon,
.tb-tech-flip[data-tech="iot"]             .tb-tech-flip__icon,
.tb-tech-flip[data-tech="automatisierung"] .tb-tech-flip__icon,
.tb-tech-flip[data-tech="design"]          .tb-tech-flip__icon,
.tb-tech-flip[data-tech="server"]          .tb-tech-flip__icon {
  background: linear-gradient(135deg, var(--tb-primary-700) 0%, var(--tb-accent-cyan) 100%);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .tb-tech-flip__inner { transition: none !important; }
  .tb-tech-flip:hover .tb-tech-flip__inner { transform: none; }
  .tb-tech-flip:hover .tb-tech-flip__icon { transform: none; }
}

/* ── Karten / Tiles ─────────────────────────────────────────────────── */
.tb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.tb-card {
  background: var(--tb-bg-card);
  border: 1px solid var(--tb-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-default), box-shadow var(--dur-fast) var(--ease-default);
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.tb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Highlight-Karten mit Bild oben */
.tb-card--highlight { padding: 0; }
.tb-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tb-primary-50) 0%, var(--tb-bg-card) 100%);
  position: relative;
}
.tb-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 600ms var(--ease-default);
}
.tb-card[data-cat="ki"] .tb-card__media img       { object-position: center 65%; } /* Team-Foto: Personen mittig-unten */
.tb-card[data-cat="iot"] .tb-card__media img      { object-position: center 40%; }
.tb-card[data-cat="software"] .tb-card__media img { object-position: center top; }
.tb-card:hover .tb-card__media img { transform: scale(1.06); }
.tb-card__body {
  /* `--space-5` ist jetzt in tokens.css definiert, vorher fehlte es und die
     ganze padding-Shorthand wurde von CSS verworfen → Text klebte am Rand. */
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  /* Default flex-Layout streckt Children auf volle Breite (align-items:stretch).
     Das bricht inline-Badges (sie wirken dann als full-width-Strip ohne Margin).
     Mit flex-start sitzen Badges wie Tags an ihrer natürlichen Content-Breite. */
  align-items: flex-start;
}
/* Headings/Paragraphen DOCH wieder voll-breit damit Text nicht abgeschnitten wirkt */
.tb-card__body > h3,
.tb-card__body > p { align-self: stretch; }
.tb-card__body h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--tb-ink-900);
}
.tb-card__body p {
  color: var(--tb-ink-700);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.tb-card__cta {
  color: var(--tb-primary-700);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.tb-card:hover .tb-card__cta { color: var(--tb-primary-900); }

/* Akzent-Stripe an Highlight-Karten, als oberer Strich, nicht über das Bild legen */
.tb-card[data-cat]::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tb-primary-500);
  z-index: 3;
}
.tb-card[data-cat="ki"]::before              { background: var(--tb-accent-teal); }
.tb-card[data-cat="iot"]::before             { background: var(--tb-accent-mint); }
.tb-card[data-cat="automatisierung"]::before { background: var(--tb-accent-emerald); }
.tb-card[data-cat="design"]::before          { background: var(--tb-accent-amber); }
.tb-card[data-cat="software"]::before        { background: var(--tb-primary-700); }
.tb-card[data-cat="web-seo"]::before         { background: var(--tb-primary-500); }
.tb-card[data-cat="apps"]::before            { background: var(--tb-accent-cyan); }
.tb-card[data-cat="server"]::before          { background: var(--tb-ink-700); }

/* ── Tags / Chips ───────────────────────────────────────────────────── */
.tb-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--tb-primary-50);
  color: var(--tb-primary-700);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tb-tag--accent {
  background: color-mix(in srgb, var(--tb-accent-amber) 18%, var(--tb-bg-card));
  color: var(--tb-ink-900);
  border: 1px solid color-mix(in srgb, var(--tb-accent-amber) 50%, transparent);
}

/* ── Timo-Karte ─────────────────────────────────────────────────────── */
.tb-timo .tb-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-8);
}
.tb-timo .tb-card::before { display: none; }
@media (max-width: 600px) {
  .tb-timo .tb-card { grid-template-columns: 1fr; text-align: center; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
/* ── Footer, EIN durchgehendes Band, keine sichtbaren Sub-Sektionen ── */
.tb-footer {
  background: var(--tb-bg-card);
  border-top: 1px solid var(--tb-line);
  margin-top: 0;                  /* Kein Riesen-Abstand mehr → Footer schliesst direkt an */
  padding-block: 0;
}
.tb-footer__inner {
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* Vier Spalten in EINEM Grid, Wetter | Navigation | Kontakt | Aktionen.
   Keine Trennlinien zwischen Spalten, keine separate „Bottom"-Sektion. */
.tb-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(160px, 0.9fr) minmax(200px, 1fr) minmax(170px, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
/* Ohne Wetter-Ueli ist der Footer 3-spaltig: Navigation | Kontakt | Aktionen */
.tb-footer__grid--3col {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(170px, 0.8fr);
}
@media (max-width: 980px) {
  .tb-footer__grid { grid-template-columns: 1fr 1fr; }
  .tb-footer__grid--3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tb-footer__grid { grid-template-columns: 1fr; }
  .tb-footer__grid--3col { grid-template-columns: 1fr; }
}

/* Einheitliche Spalten-Titel */
.tb-footer__title,
.tb-footer__col h3 {
  margin: 0 0 var(--space-3);
  font-family: Geist, Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tb-ink-500);
}

.tb-footer__col a {
  color: var(--tb-ink-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.tb-footer__col a:hover {
  color: var(--tb-primary-700);
  border-bottom-color: color-mix(in srgb, var(--tb-primary-700) 35%, transparent);
}

.tb-footer__links {
  list-style: none;
  margin: 0; padding: 0;
  line-height: 1.95;
  font-size: 0.92rem;
}

.tb-footer__address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--tb-ink-700);
}
.tb-footer__address strong { color: var(--tb-ink-900); font-weight: 700; }
.tb-footer__hint { color: var(--tb-ink-500); margin-left: 0.4em; font-size: 0.85em; }

/* Feedback-Link in der Footer-Kontakt-Spalte: dezent als Link-Button.
   Optisch wie ein Anker-Link mit Icon, kein Box-Button, passt zur Footer-
   Typografie, faellt nicht aus dem Rhythmus. */
.tb-footer__feedback-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0.85rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tb-primary-700, #1919C8);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid color-mix(in srgb, var(--tb-primary-700) 25%, transparent);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.tb-footer__feedback-link:hover {
  color: var(--tb-primary-900, #0F0F8C);
  border-bottom-color: var(--tb-primary-700, #1919C8);
}

/* Wetter-Card, dezenter Rahmen, max-height begrenzt damit Spalten-Höhen
   nicht aus dem Ruder laufen (vorher Hauptgrund für „verwürfeltes" Gefühl). */
.tb-footer__col--weather .tb-footer__widget {
  background: color-mix(in srgb, var(--tb-bg) 60%, var(--tb-bg-card));
  border: 1px solid var(--tb-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 0.85rem;
  color: var(--tb-ink-700);
  line-height: 1.5;
  max-height: 180px;
  overflow: hidden;
  position: relative;
}
.tb-footer__col--weather .tb-footer__widget::after {
  /* Sanftes Fade-out unten falls Text länger ist, kein hartes Abschneiden */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tb-bg) 60%, var(--tb-bg-card)));
  pointer-events: none;
}
.tb-footer__chip {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tb-primary-700) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--tb-primary-700) 22%, transparent);
  color: var(--tb-primary-700);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.tb-footer__chip:hover {
  background: color-mix(in srgb, var(--tb-primary-700) 14%, transparent);
  border-color: color-mix(in srgb, var(--tb-primary-700) 40%, transparent);
}

/* Aktionen-Spalte: untereinander, im Stil der Navigation-Links, kein
   Form-Button-Look, sondern Icon + Label nebeneinander, dezenter Hover. */
.tb-footer__col--actions .tb-footer__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.4;            /* zusammen mit gap → ruhige Zeilen */
}
/* Mobile: kompakter, sonst zerren die Buttons den Footer auseinander.
   2026-05-05: User-Feedback "etwas grosse Abstaende bei Aktionen". */
@media (max-width: 720px) {
  .tb-footer__col--actions .tb-footer__actions {
    gap: 0.25rem;
    line-height: 1.25;
  }
  .tb-footer__btn {
    padding: 0.15rem 0;        /* knapper vertikaler Abstand */
  }
}
.tb-footer__btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--tb-ink-700);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  transition: color .15s ease;
}
.tb-footer__btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tb-primary-700) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--tb-primary-700) 18%, transparent);
  color: var(--tb-primary-700);
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease;
}
.tb-footer__btn-ico svg {
  width: 14px;
  height: 14px;
}
.tb-footer__btn-label {
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  padding-bottom: 1px;
}
.tb-footer__btn:hover .tb-footer__btn-label {
  color: var(--tb-primary-700);
  border-bottom-color: color-mix(in srgb, var(--tb-primary-700) 35%, transparent);
}
.tb-footer__btn:hover .tb-footer__btn-ico {
  background: color-mix(in srgb, var(--tb-primary-700) 16%, transparent);
  border-color: color-mix(in srgb, var(--tb-primary-700) 32%, transparent);
}
.tb-footer__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tb-primary-700) 55%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scroll-to-Top: dezenter Button ganz unten im Footer. Kein FAB, sondern
   inline am Footer-Ende, damit User der unten angekommen ist mit einem
   Klick wieder oben ist. */
.tb-footer__totop {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4, 1rem);
  padding-top: var(--space-3);
}
.tb-footer__totop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--tb-line, #E7E7F2);
  background: transparent;
  color: var(--tb-ink-700, #374151);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.tb-footer__totop-btn:hover {
  background: var(--tb-primary-50, #f0f0ff);
  color: var(--tb-primary-700, #1919C8);
  border-color: var(--tb-primary-200, #C7C7F0);
  transform: translateY(-1px);
}
.tb-footer__totop-btn:focus-visible {
  outline: 2px solid var(--tb-primary-700, #1919C8);
  outline-offset: 3px;
}
.tb-footer__totop-btn svg { width: 14px; height: 14px; }

/* Bottom-Strip: Copyright/Version/Heritage UND Live-Metrics-Pills in EINEM
   Block, keine sichtbare Trennlinie, eine einzige Footer-Schluss-Region.
   Auf Desktop: beide Zeilen nebeneinander (space-between). Auf Schmal:
   gestapelt, immer noch ohne visuelle Sub-Sektion. */
.tb-footer__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-3);
  font-size: 0.78rem;
  color: var(--tb-ink-500);
  line-height: 1.6;
}
.tb-footer__strip-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.tb-footer__strip-metrics {
  flex: 0 0 auto;
}
@media (max-width: 980px) {
  .tb-footer__strip { justify-content: center; text-align: center; }
  .tb-footer__strip-text, .tb-footer__strip-metrics { flex: 1 1 100%; }
  .tb-footer__strip-metrics { display: flex; justify-content: center; }
}
.tb-footer__strip strong {
  color: var(--tb-primary-700);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tb-footer__strip a {
  color: var(--tb-ink-700);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--tb-primary-700) 18%, transparent);
}
.tb-footer__strip a:hover {
  color: var(--tb-primary-700);
  border-color: var(--tb-primary-700);
}
.tb-footer__sep {
  color: color-mix(in srgb, var(--tb-ink-500) 40%, transparent);
  margin: 0 0.35em;
  font-weight: 400;
}

/* Metrics-Pills im Footer-Strip: kompakter, gleicher Look wie Aktionen-Btns */
.tb-footer__strip-metrics .tb-metrics-autofooter {
  padding: 0;
  display: inline-flex;
}
.tb-footer__strip-metrics .tb-metrics-footer {
  gap: var(--space-2);
  font-size: 0.75rem;
}
.tb-footer__strip-metrics .tb-metrics-footer__pill {
  padding: 3px 9px;
  background: color-mix(in srgb, var(--tb-primary-700) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--tb-primary-700) 18%, transparent);
}

/* ── Sinus-Trennlinie ───────────────────────────────────────────────── */
.tb-sine-divider { width: 100%; height: 24px; display: block; margin-block: var(--space-8); }

/* ── Print ──────────────────────────────────────────────────────────── */
@media print {
  .tb-header__nav, .tb-header__cta, .tb-footer, .tb-sine-fog,
  #tb-butler-fab, #tb-concierge-fab, #tb-cookie-banner { display: none !important; }
}

/* ── Blog (home.html + archive.html) ─────────────────────────────────── */
.tb-blog-hero {
  text-align: center;
  margin-bottom: var(--space-12, 3rem);
}
.tb-blog-hero .tb-pg__title {
  font-family: Geist, Inter, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.25rem auto 0.75rem;
  color: var(--tb-ink-900, #0E0E2A);
}
.tb-blog-hero .tb-pg__lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--tb-ink-700, #374151);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.tb-blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--tb-card-bg, #fff);
  border: 1px solid var(--tb-line, #E7E7F2);
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.tb-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(25, 25, 200, 0.12);
}
.tb-blog-card .wp-block-post-featured-image img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.tb-blog-card .wp-block-post-date {
  color: var(--tb-ink-500, #6B7280);
  font-size: 0.875rem;
}
.tb-blog-card .wp-block-post-title {
  font-family: Geist, Inter, sans-serif;
  margin: 0.1rem 0;
}
.tb-blog-card .wp-block-post-title a {
  color: var(--tb-ink-900, #0E0E2A);
  text-decoration: none;
}
.tb-blog-card .wp-block-post-title a:hover { color: var(--tb-primary-700, #1919C8); }
.tb-blog-card .wp-block-post-excerpt {
  color: var(--tb-ink-700, #374151);
  font-size: 0.95rem;
  line-height: 1.5;
}
.tb-blog-card .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--tb-primary-700, #1919C8);
  font-weight: 600;
  text-decoration: none;
}
.tb-blog-card .wp-block-post-excerpt__more-link:hover { text-decoration: underline; }

/* Pagination */
.wp-block-query-pagination {
  margin-top: var(--space-8, 2rem);
  font-weight: 600;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
}
.wp-block-query-pagination a:hover { background: var(--tb-line, #E7E7F2); }
.wp-block-query-pagination .current {
  background: var(--tb-primary-700, #1919C8);
  color: #fff;
}

/* ── Mic-Button (Spracheingabe) · benutzt von Butler / Concierge / Feedback ──
   Diskreter Button mit kreisförmigem Hintergrund. Im aktiven Listening-State
   pulsiert er rot, damit der User klar sieht "Mikrofon ist offen". */
.tb-speech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--tb-line, #d4d4e3);
  border-radius: 50%;
  background: transparent;
  color: var(--tb-text-muted, #666);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tb-speech-btn:hover {
  background: var(--tb-line, #d4d4e3);
  color: var(--tb-primary-700, #1919C8);
}
.tb-speech-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
.tb-speech-btn.tb-speech--listening {
  background: #e23b3b;
  color: #fff;
  border-color: #e23b3b;
  animation: tb-speech-pulse 1.2s ease-in-out infinite;
}
@keyframes tb-speech-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(226, 59, 59, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-speech-btn.tb-speech--listening { animation: none; }
}
/* Mobile/Touch-Geraete: 44x44px Touch-Target (WCAG 2.5.5 / Apple HIG)
   Erhaelt das visuelle Verhaeltnis (Icon waechst proportional mit). */
@media (hover: none) and (pointer: coarse) {
  .tb-speech-btn { width: 44px; height: 44px; }
  .tb-speech-btn svg { width: 20px; height: 20px; }
}

/* ─────────── tb-demos, Demo-Übersichts-Kacheln ─────────── */
.tb-demos {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
.tb-demos__head { padding: 1.5rem 0 2rem; }
.tb-demos__intro {
  color: #374151;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.tb-demos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tb-demos__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tb-demos__card:hover {
  transform: translateY(-2px);
  border-color: #1d4ed8;
  box-shadow: 0 6px 24px rgba(29, 78, 216, .12);
}
.tb-demos__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
  color: #1d4ed8;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
}
.tb-demos__icon svg { width: 28px; height: 28px; }
.tb-demos__title { margin: 0; font-size: 1.25rem; }
.tb-demos__tagline { margin: 0; color: #4b5563; line-height: 1.55; flex: 1; }
.tb-demos__tags { margin: .35rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tb-demos__tag {
  font-size: .8em;
  background: #eff6ff;
  color: #1d4ed8;
  padding: .2em .65em;
  border-radius: 999px;
  font-weight: 500;
}
.tb-demos__cta {
  margin-top: .75rem;
  align-self: flex-start;
  text-decoration: none;
  color: #1d4ed8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.tb-demos__cta:hover { color: #1e3a8a; }
.tb-demos__foot {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  color: #4b5563;
}
.tb-demos__foot a { color: #1d4ed8; }

/* tb-demos image variant */
.tb-demos__card { padding: 0; overflow: hidden; }
.tb-demos__icon { display: none; }
.tb-demos__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
  overflow: hidden;
}
.tb-demos__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
  padding: 1.25rem;
  box-sizing: border-box;
}
.tb-demos__card:hover .tb-demos__media img { transform: scale(1.04); }
.tb-demos__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

/* tb-md-lite Zitate: hochgestellte Ziffer (z.B. von Cloud-Chat-Search-Antworten) */
.tb-md-cite {
    display: inline-block;
    margin: 0 .15em 0 .1em;
    font-size: .75em;
    line-height: 1;
    color: #1d4ed8;
    background: #eef2ff;
    border-radius: 6px;
    padding: .1em .35em;
    vertical-align: super;
    text-decoration: none;
}
.tb-md-cite a {
    color: inherit;
    text-decoration: none;
}
.tb-md-cite:hover { background: #e0e7ff; }

/* tb-demos Speedclip: dezenter Promo-Block ueber den Demo-Karten. */
.tb-demos__speedclip {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 1.25rem;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    margin: 0 0 2rem;
}
.tb-demos__speedclip-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #0f172a;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
}
.tb-demos__speedclip-body { padding: .25rem .5rem; }
.tb-demos__speedclip-eyebrow {
    display: inline-block;
    font-size: .72em;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6d28d9;
    font-weight: 700;
    margin-bottom: .25em;
}
.tb-demos__speedclip-title {
    margin: 0 0 .35em;
    font-size: 1.05rem;
    color: #0f172a;
}
.tb-demos__speedclip-text {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: .95em;
}
@media (max-width: 640px) {
    .tb-demos__speedclip {
        grid-template-columns: 1fr;
    }
}
