/* =========================================================================
   sciarc AZ — Block-Styles

   Alle Maße sind aus der freigegebenen Vorlage übernommen
   (sciarc-site/public/css/app.css). Farben kommen ausschließlich über die
   Tokens aus style.css und damit aus der Kadence Global Palette.
   ========================================================================= */


/* =========================================================================
   MARKE IM HEADER (Shortcode [sciarc_logo_pair])
   Vorlage: .v4-brand / .v4-logo / .v4-logo-sciarc
   ========================================================================= */
.sciarc-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.sciarc-brand img { display: block; transition: height .25s ease; }

/* Partnerlogo mit Trennstrich, kleiner als das Hauptlogo. */
.sciarc-brand .sciarc-logo--partner_logo {
  border-left: 1px solid var(--az-line);
  padding-left: 18px;
}

.sciarc-brand .sciarc-logo--partner_logo img { transition: height .25s ease, opacity .15s; }
.sciarc-brand .sciarc-logo--partner_logo:hover img { opacity: .8; }

.sciarc-brand__fallback {
  font-family: var(--az-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--az-ink);
  text-decoration: none;
}

/* "Sign in" steckt im Menü nur fürs Mobilmenü — auf dem Desktop übernimmt
   das der Header-Button, sonst stünde es doppelt da. */
.header-navigation .sciarc-menu-signin { display: none; }
.mobile-navigation .sciarc-menu-signin { display: block; }

@media (max-width: 720px) {
  .sciarc-brand { gap: 12px; }
  .sciarc-brand .sciarc-logo--partner_logo { display: none; }
}

/* =========================================================================
   HEADER-FEINHEITEN
   Kadence bietet für diese Werte zwar Customizer-Optionen an, sie schlagen
   aber nicht zuverlässig bis ins Markup durch. Deshalb hier direkt nach den
   Maßen der Vorlage (.v4-nav-links / .v4-nav-right / .v4-btn).
   ========================================================================= */

/* Vorlage: .v4-nav-right gap 32px — Abstand zwischen Menü und Button.
   14px davon stecken schon im Innenabstand des letzten Menüpunkts. */
.site-header-main-section-right .header-navigation + .header-button-wrap,
.site-header-main-section-right .header-navigation + div { margin-left: 18px; }

/* Vorlage: .v4-btn — 14px/22px, 14.5px, Radius 8px */
.site-header-main-section-right .header-button {
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--az-r-sm);
}

/* Vorlage: .v4-nav-in padding-block 14px */
.site-header-main-section-left,
.site-header-main-section-right { padding-block: 14px; }

/* =========================================================================
   KOPFLEISTE (Vorlage: .v4-topbar — dezent, transparent)
   ========================================================================= */
.sciarc-topbar {
  font-size: 12.5px;
  text-align: center;
  color: var(--az-muted);
  background: transparent;
}

.sciarc-topbar .sciarc-wrap { padding-block: 12px 2px; }

/* Farbige Varianten bleiben wählbar, sind aber nicht der Standard. */
.sciarc-topbar--brand { background: var(--az-primary); color: var(--az-surface); }
.sciarc-topbar--ink   { background: var(--az-ink);     color: var(--az-surface); }
.sciarc-topbar--tint  { background: var(--az-tint);    color: var(--az-ink); }
.sciarc-topbar--brand .sciarc-wrap,
.sciarc-topbar--ink .sciarc-wrap,
.sciarc-topbar--tint .sciarc-wrap { padding-block: 9px; }

/* =========================================================================
   MARKE IM FOOTER (Vorlage: .v4-footer-brand)
   ========================================================================= */
.sciarc-footer-brand { display: flex; flex-direction: column; align-items: flex-start; }

.sciarc-footer-brand img {
  max-width: 100%;
  height: auto;
  background: var(--az-surface);
  padding: 9px 12px;
  border-radius: 12px;
}

.sciarc-footer-brand__name {
  font-family: var(--az-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--az-surface);
  line-height: 1.3;
}

.sciarc-footer-brand__tagline {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--az-surface) 60%, transparent);
  max-width: 30ch;
}

/* Menü-Widgets im Footer — Vorlage: .v4-footer-col */
.site-middle-footer-inner-wrap .widget_nav_menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-middle-footer-inner-wrap .widget_nav_menu li { margin-bottom: 9px; }

.site-footer .site-middle-footer-inner-wrap .widget_nav_menu a {
  font-size: 14px;
  text-decoration: none;
  color: color-mix(in srgb, var(--az-surface) 82%, transparent);
  transition: color .15s;
}

.site-footer .site-middle-footer-inner-wrap .widget_nav_menu a:hover { color: var(--az-surface); }

/* Footer-Spaltenüberschriften — Vorlage: .v4-footer-col h5 (Mono, klein).
   Kadence gibt sein dynamisches CSS inline im <head> aus, also nach diesem
   Stylesheet — die Selektoren brauchen deshalb etwas mehr Gewicht. */
.site-footer .site-middle-footer-inner-wrap .widget-title,
.site-footer .site-middle-footer-inner-wrap .footer-navigation-title {
  font-family: var(--az-font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--az-surface) 45%, transparent);
  margin: 0 0 14px;
}

.site-footer .footer-navigation .menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.site-footer .footer-navigation .menu li a { padding: 0; font-size: 14px; }

/* Footer in abgedunkeltem Graphit — zusammen mit dem Mulberry-CTA-Band darüber
   die beiden Farben des Logos (seit 2026-10-27, vorher Navy). Die untere
   Zeile liegt eine Stufe tiefer. */
/* Kadence legt die Fläche auf .site-footer-row-container-inner, nicht auf den
   äußeren Wrap — dort muss die Abstufung also ansetzen. */
.site-footer .site-middle-footer-wrap .site-footer-row-container-inner {
  background: color-mix(in srgb, var(--az-ink-2) 78%, #000);
}

.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner {
  background: color-mix(in srgb, var(--az-ink-2) 58%, #000);
  border-top-color: color-mix(in srgb, var(--az-surface) 12%, transparent);
}

/* Kadence vererbt die Fließtextfarbe (Graphite) in den Footer — auf dunklem
   Grund ist die praktisch unsichtbar. Deshalb hier eine helle Grundfarbe. */
.site-footer .site-middle-footer-wrap,
.site-footer .site-bottom-footer-wrap {
  color: color-mix(in srgb, var(--az-surface) 82%, transparent);
}

.site-footer .site-middle-footer-wrap :is(p, span, li, div),
.site-footer .site-bottom-footer-wrap :is(p, span, li, div) { color: inherit; }

/* Copyright-Zeile: links der Rechtehinweis, rechts die Domain — wie in der
   Vorlage, in Mono und zurückhaltend. */
/* Etwas zurückhaltender als der übrige Footer-Text; die Spezifität muss die
   allgemeine Farbregel oben überbieten. */
.site-footer .site-bottom-footer-wrap .sciarc-footer-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--az-font-mono);
  font-size: 12px;
  color: color-mix(in srgb, var(--az-surface) 68%, transparent);
}

.site-footer .site-bottom-footer-wrap .widget { margin-bottom: 0; }
.site-footer .site-bottom-footer-wrap .widget-title { display: none; }

@media (max-width: 600px) {
  .sciarc-footer-copyright { justify-content: center; text-align: center; }
}

/* Bottom-Bar in Mono wie in der Vorlage */
.site-bottom-footer-inner-wrap .footer-html {
  font-family: var(--az-font-mono);
  font-size: 12px;
}


/* =========================================================================
   HERO (Vorlage: .v4-hero)
   ========================================================================= */
.sciarc-hero.sciarc-block--section { padding-block: var(--az-hero-y); }

.sciarc-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.sciarc-hero__grid--single {
  grid-template-columns: 1fr;
  max-width: 62ch;
}

.sciarc-hero__body { display: flex; flex-direction: column; }

/* Vorlage: .v4-hero-h — margin 0 0 22px */
.sciarc-hero__title { margin: 0 0 22px; }

.sciarc-hero__accent { color: var(--az-primary); }

.sciarc-block--bg-ink .sciarc-hero__accent,
.sciarc-block--bg-brand .sciarc-hero__accent { color: var(--az-gold); }

/* Vorlage: .v4-hero-body — 15.5px, lh 1.62, mb 28px, max-width 42ch */
.sciarc-hero__lead {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--az-muted);
  margin: 0 0 28px;
  max-width: 42ch;
}

/* Vorlage: .v4-hero-cta — gap 12px, mb 26px */
.sciarc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

/* Vorlage: .v4-hero-built — pt 24px, mt 8px, 13.5px */
.sciarc-hero__trust {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--az-ink-2);
  padding-top: 24px;
  margin-top: 8px;
}

/* Vorlage: .v4-built-ic — 46x46, radius 12px */
.sciarc-hero__trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--az-brand-50);
  color: var(--az-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sciarc-hero__trust-icon svg { width: 22px; height: 22px; }

/* --- Rechter Slot (Vorlage: .v4-hero-demo) --- */
.sciarc-hero__media { min-width: 0; display: flex; align-items: stretch; }

.sciarc-hero__image,
.sciarc-hero__video img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--az-r-lg);
  border: 1px solid var(--az-line);
  box-shadow: var(--az-shadow-soft);
}

.sciarc-hero__video {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--az-r-lg);
}

/* Vorlage: Play-Kreis erscheint erst beim Überfahren. */
.sciarc-hero__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--az-surface);
  background: color-mix(in srgb, var(--az-primary) 92%, transparent);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--az-ink) 50%, transparent);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.sciarc-hero__play svg { width: 26px; height: 26px; }

.sciarc-hero__video:hover .sciarc-hero__play,
.sciarc-hero__video:focus-visible .sciarc-hero__play {
  opacity: 1;
  transform: scale(1);
}

/* Chat-Demo (assets/css/chat-demo.css) — Höhe vorab reservieren, das
   Stylesheet kommt erst im Footer. */
.sciarc-hero__demo {
  --az-demo-h: 540px;
  width: 100%;
  min-height: var(--az-demo-h);
}

.sciarc-hero__embed {
  width: 100%;
  border-radius: var(--az-r-lg);
  overflow: hidden;
  border: 1px solid var(--az-line);
  box-shadow: var(--az-shadow-soft);
}

.sciarc-hero__embed :is(iframe, video) {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 900px) {
  /* Einspaltig, Text zuerst. */
  .sciarc-hero__grid { grid-template-columns: 1fr; gap: 36px; }
}


/* =========================================================================
   SEITENKOPF
   ========================================================================= */
.sciarc-page-hero__inner { max-width: 720px; }
.sciarc-page-hero .sciarc-h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
.sciarc-page-hero .sciarc-lead { font-size: 15px; }


/* =========================================================================
   ABSCHNITTSKOPF (Vorlage: .v4-exp-head / .v4-contact-head)
   ========================================================================= */
.sciarc-section-head { padding-block: var(--az-section-y) 0; }

/* Folgt ein Inhaltsblock, trägt der Kopf den Abstand nach unten. */
.sciarc-section-head + .sciarc-block--section { padding-top: 32px; }

.sciarc-section-head__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.sciarc-section-head__text { flex: 1 1 32rem; min-width: 0; }

.sciarc-section-head .sciarc-h2 { margin-bottom: 16px; }
.sciarc-section-head .sciarc-lead { font-size: 15px; line-height: 1.6; }

/* Zentriert: Vorlage begrenzt auf 640px, Fließtext auf 62ch. */
.sciarc-section-head--center .sciarc-section-head__inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sciarc-section-head--center .sciarc-section-head__text {
  flex-basis: auto;
  max-width: 640px;
}

.sciarc-section-head--center .sciarc-lead { margin-inline: auto; }

/* Kompakte Variante — Vorlage .v4-included-h: kleiner als ein normales H2
   und auf 34 Zeichen Breite begrenzt, damit der Titel ruhig umbricht. */
.sciarc-section-head--compact .sciarc-h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 34ch;
}

.sciarc-section-head--compact.sciarc-section-head--center .sciarc-h2 { margin-inline: auto; }

/* Der Leitlinien-Abschnitt ist in der Vorlage auf 1020px begrenzt. */
.sciarc-section-head--compact .sciarc-section-head__text { max-width: 1020px; }

/* Feine Linie unter der Überschrift (Vorlage: .v4-exp-h::after) */
.sciarc-section-head--rule .sciarc-h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--az-primary);
  border-radius: 2px;
  margin: 18px 0 0;
}

.sciarc-section-head--center.sciarc-section-head--rule .sciarc-h2::after {
  margin-inline: auto;
}


/* =========================================================================
   CTA-BAND (Vorlage: .v4-cta-band — padding 56px, mit Lichtkreis)
   ========================================================================= */
.sciarc-cta { position: relative; overflow: hidden; padding-block: 0; }

.sciarc-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  /* Heller Schein statt Gold — Gold biss sich mit Mulberry. */
  background: radial-gradient(circle, color-mix(in srgb, var(--az-surface) 16%, transparent), transparent 70%);
  pointer-events: none;
}

.sciarc-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  /* Seitlichen Innenabstand des Containers beibehalten — mit dem
     "padding: 56px 0" der Vorlage würde der Inhalt 24px weiter außen
     stehen als in allen anderen Abschnitten. */
  padding-block: 56px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.sciarc-cta__text { flex: 1 1 30rem; min-width: 0; }

.sciarc-cta__title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: inherit;
}

.sciarc-cta__sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
  color: color-mix(in srgb, currentColor 72%, transparent);
}


/* =========================================================================
   HINWEIS (Vorlage: .v4-tool-disc / .v4-included-note / .v4-included-foot)
   ========================================================================= */
.sciarc-notice__inner {
  max-width: var(--az-maxw);
  margin-inline: auto;
  padding-inline: var(--az-gutter);
}

/* Kasten mit Tint-Fläche — Vorlage .v4-tool-disc */
.sciarc-notice--bar .sciarc-notice__inner,
.sciarc-notice--box .sciarc-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: var(--az-brand-50);
  border: 1px solid var(--az-brand-100);
  border-radius: var(--az-r-md);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--az-ink-2);
  text-align: left;
}

.sciarc-notice--bar,
.sciarc-notice--box { padding-block: 32px; }

/* Gemeinsame Breite mit dem Seiteninhalt herstellen. */
.sciarc-notice--bar .sciarc-notice__inner,
.sciarc-notice--box .sciarc-notice__inner {
  max-width: calc(var(--az-maxw) - 2 * var(--az-gutter));
  margin-inline: auto;
}

/* Zeile mit Icon, ohne Fläche — Vorlage .v4-included-note */
.sciarc-notice--inline { padding-block: 26px; }

.sciarc-notice--inline .sciarc-notice__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--az-muted);
  text-align: left;
}

.sciarc-notice--inline .sciarc-notice__icon { color: var(--az-muted); }

/* Fußnote — Vorlage .v4-included-foot: 12px, zentriert, sehr zurückhaltend */
.sciarc-notice--footnote { padding-block: 26px; }

.sciarc-notice--footnote .sciarc-notice__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 92ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--az-muted);
  text-align: center;
}

.sciarc-notice__icon { flex-shrink: 0; margin-top: 1px; }
.sciarc-notice__icon svg { width: 18px; height: 18px; }

.sciarc-notice--brand   .sciarc-notice__icon { color: var(--az-primary); }
.sciarc-notice--neutral .sciarc-notice__icon { color: var(--az-muted-2); }

.sciarc-notice--gold .sciarc-notice__icon { color: var(--az-gold); }
.sciarc-notice--gold.sciarc-notice--bar .sciarc-notice__inner,
.sciarc-notice--gold.sciarc-notice--box .sciarc-notice__inner {
  background: var(--az-gold-50);
  border-color: var(--az-gold-100);
}

.sciarc-notice--neutral.sciarc-notice--bar .sciarc-notice__inner,
.sciarc-notice--neutral.sciarc-notice--box .sciarc-notice__inner {
  background: var(--az-soft);
  border-color: var(--az-line);
}


/* =========================================================================
   HINWEIS MIT LOGO — Logo links, Text rechts (z. B. Hinweis auf den Partner)
   ========================================================================= */
.sciarc-logo-notice { padding-block: 32px; }

.sciarc-logo-notice__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Mittig: schmaler Kasten, der Text bleibt linksbündig neben dem Logo. */
.sciarc-logo-notice--center .sciarc-logo-notice__inner {
  justify-content: center;
  max-width: 880px;
  margin-inline: auto;
}

.sciarc-logo-notice--bar .sciarc-logo-notice__inner,
.sciarc-logo-notice--box .sciarc-logo-notice__inner {
  padding: 22px 28px;
  border-radius: var(--az-r-md);
}

.sciarc-logo-notice--bar .sciarc-logo-notice__inner { background: var(--az-soft); }

.sciarc-logo-notice--box .sciarc-logo-notice__inner {
  background: var(--az-surface);
  border: 1px solid var(--az-line);
  box-shadow: var(--az-shadow-card);
}

.sciarc-logo-notice__logo { flex: none; display: flex; align-items: center; }
.sciarc-logo-notice__logo a { display: block; line-height: 0; }
.sciarc-logo-notice__logo img { display: block; width: auto; max-width: 240px; }

.sciarc-logo-notice__text {
  min-width: 0;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--az-ink-2);
}

.sciarc-logo-notice--divider .sciarc-logo-notice__text {
  padding-left: 28px;
  border-left: 1px solid var(--az-line-strong);
}

/* Kadence setzt Absatz-Abstände inline nach diesem Stylesheet. */
.sciarc-block.sciarc-block .sciarc-logo-notice__text p { margin: 0; }
.sciarc-block.sciarc-block .sciarc-logo-notice__text p + p { margin-top: 8px; }

.sciarc-logo-notice__text strong { font-weight: 600; color: var(--az-ink); }

.sciarc-logo-notice__text a {
  color: var(--az-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ohne Fläche auf dunklem Abschnitt: Text und Linie hell. */
.sciarc-logo-notice--plain:is(.sciarc-block--bg-ink, .sciarc-block--bg-brand) .sciarc-logo-notice__text {
  color: color-mix(in srgb, var(--az-surface) 82%, transparent);
  border-color: color-mix(in srgb, var(--az-surface) 25%, transparent);
}

.sciarc-logo-notice--plain:is(.sciarc-block--bg-ink, .sciarc-block--bg-brand) .sciarc-logo-notice__text :is(strong, a) {
  color: var(--az-surface);
}

@media (max-width: 600px) {
  .sciarc-logo-notice__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sciarc-logo-notice--center .sciarc-logo-notice__inner {
    align-items: center;
    text-align: center;
  }

  .sciarc-logo-notice--divider .sciarc-logo-notice__text {
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 1px solid var(--az-line-strong);
  }
}


/* =========================================================================
   ICON-KARTEN
   Zwei Ausprägungen der Vorlage:
     .v4-mini  — zentriert, Icon frei stehend (Hero-Features)
     .v4-feat  — linksbündig, Icon im Badge  (Tool-Features, Kontakt)
   ========================================================================= */
.sciarc-icon-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

/* Stil: Karte — Vorlage .v4-feat (padding 30px) */
.sciarc-icon-cards--card .sciarc-icon-card {
  padding: 30px;
  background: var(--az-surface);
  border: 1px solid var(--az-line);
  border-radius: var(--az-r-md);
  box-shadow: var(--az-shadow-card);
  transition: transform .2s, box-shadow .2s, border-color .15s;
}

.sciarc-icon-cards--card a.sciarc-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--az-shadow-soft);
}

/* Zentrierte Variante — Vorlage .v4-mini (padding 26px 22px, radius 14px) */
.sciarc-icon-cards--center .sciarc-icon-card {
  align-items: center;
  text-align: center;
  gap: 12px;
  line-height: 1.3;
}

.sciarc-icon-cards--center.sciarc-icon-cards--card .sciarc-icon-card { padding: 26px 22px; }

/* Stil: Kachel */
.sciarc-icon-cards--tile .sciarc-icon-card {
  padding: 26px 22px;
  background: var(--az-tint);
  border-radius: var(--az-r-md);
}

/* Stil: schlicht */
.sciarc-icon-cards--plain .sciarc-icon-card { padding: 0; gap: 12px; }

/* Icon frei stehend — Vorlage .v4-mini-ic: 30px, keine Fläche */
.sciarc-icon-card__icon { color: var(--az-primary); }
.sciarc-icon-card__icon svg { width: 30px; height: 30px; }

/* Icon im Badge — Vorlage .v4-feat-ic: 50x50, radius 14px, mb 18px */
.sciarc-icon-card .sciarc-icon--badge { margin-bottom: 18px; }
.sciarc-icon-cards--center .sciarc-icon-card .sciarc-icon--badge { margin-bottom: 0; }

/* Titel — Vorlage .v4-feat h3: 17px / .v4-mini-l: 16px w700 */
.sciarc-icon-card__title {
  margin: 0 0 8px;
  font-family: var(--az-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--az-ink);
}

.sciarc-icon-cards--center .sciarc-icon-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

/* Text — Vorlage .v4-feat p: 13.5px lh 1.58 / .v4-mini-d: 13px lh 1.55 */
.sciarc-icon-card__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--az-muted);
}

.sciarc-icon-cards--center .sciarc-icon-card__text { font-size: 13px; line-height: 1.55; }

.sciarc-icon-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--az-primary);
}

.sciarc-icon-card__link svg { width: 14px; height: 14px; }

a.sciarc-icon-card:hover .sciarc-icon-card__link { gap: 10px; }

/* Auf dunklem Grund */
.sciarc-block--bg-ink .sciarc-icon-card__title,
.sciarc-block--bg-brand .sciarc-icon-card__title,
.sciarc-block--bg-ink .sciarc-icon-card__text,
.sciarc-block--bg-brand .sciarc-icon-card__text { color: inherit; }

.sciarc-block--bg-ink .sciarc-icon-cards--card .sciarc-icon-card,
.sciarc-block--bg-brand .sciarc-icon-cards--card .sciarc-icon-card {
  background: color-mix(in srgb, var(--az-surface) 8%, transparent);
  border-color: color-mix(in srgb, var(--az-surface) 18%, transparent);
}


/* =========================================================================
   KENNZAHLEN (Vorlage: .v4-stats — Karten, max 560px, gap 16px)
   ========================================================================= */
.sciarc-stats .sciarc-grid {
  max-width: 560px;
  margin-inline: auto;
}

/* Ohne Kartenoptik nutzt der Block die volle Breite. */
.sciarc-stats--plain .sciarc-grid { max-width: none; }

.sciarc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 22px 14px 26px;
  background: var(--az-surface);
  border: 1px solid var(--az-line);
  border-radius: var(--az-r-md);
  box-shadow: var(--az-shadow-card);
}

.sciarc-stats--plain .sciarc-stat {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 12px;
}

/* Vorlage: .v4-stat-ic — 42x42, radius 11px, mb 14px */
.sciarc-stat__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--az-brand-50);
  color: var(--az-primary);
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
}
.sciarc-stat__icon svg { width: 22px; height: 22px; }

/* Vorlage: .v4-stat-n — 28px, w700, lh 1 */
.sciarc-stat__number {
  font-family: var(--az-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--az-ink);
}

/* Vorlage: .v4-stat-l — 11.5px. Auf dem getönten Grund liest sich der
   gedämpfte Ton schlecht, deshalb eine Stufe dunkler und etwas größer. */
.sciarc-stat__label {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--az-ink-2);
  margin-top: 8px;
}

/* Trennlinien sind in der Vorlage nicht vorgesehen, bleiben aber wählbar. */
.sciarc-stats--dividers .sciarc-grid > .sciarc-stat:not(:first-child) {
  border-left: 1px solid var(--az-line);
}

@media (max-width: 600px) {
  .sciarc-stats--dividers .sciarc-grid > .sciarc-stat:not(:first-child) { border-left: 0; }
}

.sciarc-block--bg-ink .sciarc-stat__number,
.sciarc-block--bg-brand .sciarc-stat__number { color: inherit; }


/* =========================================================================
   SCHRITT-KARTEN (Vorlage: .v4-step — zentriert, padding 26px 18px)
   ========================================================================= */
.sciarc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 26px 18px;
  background: var(--az-surface);
  border: 1px solid var(--az-line);
  border-radius: var(--az-r-md);
  box-shadow: var(--az-shadow-card);
  transition: transform .2s, box-shadow .2s;
}

.sciarc-step:hover { transform: translateY(-4px); box-shadow: var(--az-shadow-soft); }

/* Vorlage: .v4-step-ic — 50x50, radius 14px, mb 18px */
.sciarc-step .sciarc-icon--badge { margin-bottom: 18px; }

/* Vorlage: .v4-step-n — Mono, 12px, mb 6px */
.sciarc-step__number {
  font-family: var(--az-font-mono);
  font-size: 12px;
  color: var(--az-primary);
  margin-bottom: 6px;
}

/* Vorlage: .v4-step-t — 14.5px, w600, mb 6px */
.sciarc-step__title {
  margin: 0 0 6px;
  font-family: var(--az-font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--az-ink);
}

/* Vorlage: .v4-step-s — 12px */
.sciarc-step__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--az-muted);
}

/* Anordnung "split" — Vorlage .v4-tool-top: Text links, Karten rechts,
   Raster 1fr / 1.25fr mit 56px Abstand. */
.sciarc-steps--split .sciarc-steps__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.sciarc-steps--split .sciarc-steps__head { min-width: 0; }
.sciarc-steps--split .sciarc-steps__head .sciarc-lead { max-width: 46ch; }

/* Vorlage: .v4-tool-l .v4-h2 — etwas kleiner als ein normales H2 */
.sciarc-steps__head .sciarc-h2 { margin-bottom: 0; }
.sciarc-block.sciarc-block .sciarc-steps__head .sciarc-h2 { margin-bottom: 16px; }

.sciarc-steps--stacked .sciarc-steps__head { margin-bottom: 40px; max-width: 760px; }

@media (max-width: 960px) {
  .sciarc-steps--split .sciarc-steps__inner { grid-template-columns: 1fr; gap: 36px; }
}

/* Reihe mit Pfeilen. Die Pfeile sitzen in der Lücke zwischen den Karten,
   ohne eigene Spalte zu beanspruchen — so fluchten die Schritt-Karten mit
   den Karten darunter. */
.sciarc-steps__row {
  display: grid;
  grid-template-columns: repeat(var(--az-cols, 3), minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.sciarc-steps__row--2 { --az-cols: 2; }
.sciarc-steps__row--3 { --az-cols: 3; }
.sciarc-steps__row--4 { --az-cols: 4; }

.sciarc-steps__arrow {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 8px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  color: var(--az-primary);
  opacity: .5;
  pointer-events: none;
  /* Über der folgenden Karte, sonst verdeckt deren weiße Fläche den Pfeil. */
  z-index: 2;
}

/* Der Pfeil gehört optisch zur Lücke rechts der vorangehenden Karte. */
.sciarc-steps__row .sciarc-step { position: relative; }
.sciarc-steps__row .sciarc-step:has(.sciarc-steps__arrow) { z-index: 1; }

@media (max-width: 860px) {
  .sciarc-steps__row { --az-cols: 1; }
  .sciarc-steps__arrow { display: none; }
}


/* =========================================================================
   LISTEN-SPALTEN (Vorlage: .v4-areas / .v4-area — Karten, gap 12px)
   ========================================================================= */
.sciarc-lists .sciarc-grid { gap: 12px; }

.sciarc-list-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px 18px;
  background: var(--az-surface);
  border: 1px solid var(--az-line);
  border-radius: var(--az-r-md);
  box-shadow: var(--az-shadow-card);
  transition: transform .2s, box-shadow .2s;
}

.sciarc-list-col:hover { transform: translateY(-3px); box-shadow: var(--az-shadow-soft); }

/* Vorlage: .v4-area h3 — 14.5px, w700, Unterstrich in Markenfarbe */
.sciarc-list-col__title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--az-brand-100);
  font-family: var(--az-font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--az-ink);
}

/* Vorlage: .v4-area-label — 11px, Mono-Anmutung, Markenfarbe */
.sciarc-list-col__label {
  font-family: var(--az-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--az-primary);
}

.sciarc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Vorlage: .v4-area-list li — 12.5px, Punkt 5px, Einrückung 14px.
   Bewusst kein Flex: der Punkt sitzt absolut, sonst käme der Flex-Abstand
   zur Einrückung hinzu und der Text würde unnötig schmal. */
.sciarc-list li {
  position: relative;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--az-ink-2);
}

.sciarc-list--dot li { padding-left: 13px; }

.sciarc-list--dot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--az-primary);
}

.sciarc-list--check li { display: flex; align-items: flex-start; gap: 7px; }
.sciarc-list__marker { flex: none; margin-top: 1px; color: var(--az-primary); }
.sciarc-list__marker svg { width: 14px; height: 14px; }


/* =========================================================================
   LOGO-RASTER
   ========================================================================= */
.sciarc-logo-item {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 80px;
  padding: 16px;
  border-radius: var(--az-r-md);
  text-decoration: none;
}

.sciarc-logo-item img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sciarc-logo-item__name {
  font-family: var(--az-font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--az-muted);
  text-align: center;
}

.sciarc-logos--gray .sciarc-logo-item img {
  filter: grayscale(1);
  opacity: .62;
  transition: filter .2s ease, opacity .2s ease;
}

.sciarc-logos--gray a.sciarc-logo-item:hover img { filter: grayscale(0); opacity: 1; }


/* =========================================================================
   SCHRITTE MIT SCREENSHOT (Vorlage: .v4-how-*)
   ========================================================================= */
.sciarc-split__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

/* Vorlage .v4-how-h: etwas kleiner als ein normales H2. */
.sciarc-split .sciarc-h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.sciarc-split .sciarc-lead { margin-bottom: 32px; max-width: 46ch; }

/* Vorlage: .v4-how-steps — gap 10px */
.sciarc-split__steps { display: flex; flex-direction: column; gap: 10px; }

/* Vorlage: .v4-how-step — grid 48px 1fr, gap 16px, padding 16px */
.sciarc-split__step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 16px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--az-r-md);
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.sciarc-split__step:hover { background: var(--az-soft); }

.sciarc-split__step.is-active {
  background: var(--az-brand-50);
  border-color: var(--az-brand-100);
  box-shadow: var(--az-shadow-card);
}

/* Vorlage: .v4-how-ic — 44x44, radius 12px, im aktiven Zustand gefüllt */
.sciarc-split__step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--az-brand-50);
  border: 1px solid var(--az-brand-100);
  color: var(--az-primary);
  display: grid;
  place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}

.sciarc-split__step-icon svg { width: 20px; height: 20px; }

.sciarc-split__step.is-active .sciarc-split__step-icon {
  background: var(--az-primary);
  border-color: var(--az-primary);
  color: var(--az-surface);
}

.sciarc-split__step-body { min-width: 0; display: flex; flex-direction: column; }

/* Vorlage: h4 15px w600, im Ruhezustand gedämpft */
.sciarc-split__step-title {
  font-family: var(--az-font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--az-muted);
  margin: 4px 0;
  transition: color .2s;
}

.sciarc-split__step.is-active .sciarc-split__step-title { color: var(--az-ink); }

.sciarc-split__step-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--az-muted-2);
  max-width: 44ch;
  transition: color .2s;
}

.sciarc-split__step.is-active .sciarc-split__step-text { color: var(--az-muted); }

/* Vorlage: .v4-how-prog — nur beim aktiven Schritt sichtbar */
.sciarc-split__progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--az-line);
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s;
}

.sciarc-split__step.is-active .sciarc-split__progress { opacity: 1; }

.sciarc-split__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--az-primary);
}

.sciarc-split__step.is-active .sciarc-split__progress i {
  animation: sciarc-progress linear forwards;
  animation-duration: var(--az-step-duration, 4600ms);
}

@keyframes sciarc-progress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .sciarc-split__step.is-active .sciarc-split__progress i { animation: none; width: 100%; }
}

/* Screenshot-Rahmen — Vorlage: .v4-shot, klebt beim Scrollen */
.sciarc-split__right { position: sticky; top: 90px; }

.sciarc-split__frame {
  background: var(--az-surface);
  border: 1px solid var(--az-line);
  border-radius: var(--az-r-lg);
  overflow: hidden;
  box-shadow: var(--az-shadow-soft);
}

/* Vorlage: .v4-shot-bar — padding 13px 16px, farbige Punkte */
.sciarc-split__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--az-soft);
  border-bottom: 1px solid var(--az-line);
}

.sciarc-split__bar > span { width: 11px; height: 11px; border-radius: 50%; background: var(--az-line-strong); }
.sciarc-split__bar > span:nth-child(1) { background: #E8856B; }
.sciarc-split__bar > span:nth-child(2) { background: #E8C36B; }
.sciarc-split__bar > span:nth-child(3) { background: #84C08A; }

/* Vorlage: .v4-shot-url — Mono 11.5px im hellen Feld */
.sciarc-split__url {
  flex: 1;
  margin-left: 12px;
  padding: 5px 12px;
  background: var(--az-surface);
  border: 1px solid var(--az-line);
  border-radius: 6px;
  font-family: var(--az-font-mono);
  font-size: 11.5px;
  color: var(--az-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vorlage: .v4-shot-stack — feste Höhe 440px */
.sciarc-split__stack { position: relative; height: 440px; }

.sciarc-split__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

.sciarc-split__slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }

.sciarc-split__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Platzhalter, solange kein Screenshot hinterlegt ist */
.sciarc-split__ph {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  background: repeating-linear-gradient(45deg,
    var(--az-surface) 0, var(--az-surface) 14px,
    var(--az-soft) 14px, var(--az-soft) 28px);
}

.sciarc-split__ph-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--az-brand-50);
  color: var(--az-primary);
  display: grid;
  place-items: center;
  font-family: var(--az-font-display);
  font-size: 18px;
  font-weight: 700;
}

.sciarc-split__ph-title {
  font-family: var(--az-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--az-ink);
  max-width: 24ch;
}

/* Vorlage: .v4-shot-dots — 8px, aktiver Punkt 26px breit */
.sciarc-split__dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

.sciarc-split__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--az-line-strong);
  cursor: pointer;
  transition: background .2s, width .2s;
}

.sciarc-split__dot.is-active { background: var(--az-primary); width: 26px; }

@media (max-width: 960px) {
  .sciarc-split__grid { grid-template-columns: 1fr; gap: 36px; }
  .sciarc-split__right { position: static; }
  .sciarc-split__stack { height: auto; aspect-ratio: 16 / 10; }
}


/* =========================================================================
   FAQ (Vorlage: .v4-faq-*)
   ========================================================================= */
.sciarc-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.sciarc-faq__grid--single { grid-template-columns: 1fr; }

.sciarc-faq .sciarc-h2 { margin-bottom: 16px; }
.sciarc-faq__side .sciarc-lead { margin-bottom: 28px; max-width: 42ch; }

/* Hinweiskarte — Vorlage: .v4-faq-still, padding 30px */
.sciarc-faq__card {
  padding: 30px;
  border-radius: var(--az-r-md);
}

/* Vorlage: .v4-still-ic — 46x46, radius 12px, mb 16px */
.sciarc-faq__card .sciarc-icon--badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.sciarc-faq__card-title {
  margin: 0 0 8px;
  font-family: var(--az-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--az-ink);
}

.sciarc-faq__card-text {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--az-ink-2);
}

/* Vorlage: .v4-faq-secure — 12px, mt 18px */
.sciarc-faq__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--az-muted-2);
}

.sciarc-faq__foot .sciarc-icon { color: var(--az-muted-2); }

/* Akkordeon — Vorlage: .v4-faq-r, gap 10px */
.sciarc-faq__list { display: flex; flex-direction: column; gap: 10px; }

.sciarc-faq__item {
  padding: 0;
  overflow: hidden;
  border-radius: var(--az-r-md);
  transition: box-shadow .2s, transform .2s;
}

.sciarc-faq__item[open] { box-shadow: var(--az-shadow-soft); transform: translateY(-2px); }

/* Vorlage: .v4-faq-q — padding 19px 22px, gap 14px */
.sciarc-faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  text-align: left;
}

.sciarc-faq__q::-webkit-details-marker { display: none; }
.sciarc-faq__q::marker { content: ""; }

/* Vorlage: .v4-faq-qic — 36x36, radius 10px, Icon 17px */
.sciarc-faq__q-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--az-brand-50);
  color: var(--az-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sciarc-faq__q-icon svg { width: 17px; height: 17px; }

/* Vorlage: .v4-faq-qt — 14.5px, w600 */
.sciarc-faq__q-text {
  flex: 1;
  min-width: 0;
  font-family: var(--az-font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--az-ink);
}

/* Vorlage: .v4-faq-pm — Plus/Minus in Markenfarbe, 20px */
.sciarc-faq__q-toggle {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--az-primary);
}

.sciarc-faq__q-toggle::before,
.sciarc-faq__q-toggle::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.sciarc-faq__q-toggle::after { transform: rotate(90deg); }
.sciarc-faq__item[open] .sciarc-faq__q-toggle::after { transform: rotate(0deg); opacity: 0; }

/* Vorlage: .v4-faq-a — Einzug bis unter den Text, 13.5px */
.sciarc-faq__a {
  padding: 0 22px 20px 72px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--az-muted);
}

.sciarc-faq__a p { margin: 0; }
.sciarc-faq__a p + p { margin-top: 12px; }

@media (max-width: 960px) {
  .sciarc-faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .sciarc-faq__a { padding-left: 22px; }
}


/* =========================================================================
   ZITATE (Vorlage: .v4-exp-card — hier kommt die Serifenschrift zum Zug)
   ========================================================================= */
.sciarc-quotes .sciarc-grid { gap: 20px; }

.sciarc-quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  padding: 38px;
  border-radius: var(--az-r-lg);
}

.sciarc-quote__mark { color: var(--az-brand-100); display: inline-flex; margin-bottom: 12px; }

/* Vorlage: .v4-exp-text — Serif, kursiv, 18px */
.sciarc-quote__text {
  font-family: var(--az-font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--az-ink);
  margin: 0 0 24px;
}

/* Vorlage: .v4-exp-who — Trennlinie darüber, gap 14px */
.sciarc-quote__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--az-line-soft);
}

.sciarc-quote__avatar {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.sciarc-quote__avatar--icon {
  display: grid;
  place-items: center;
  background: var(--az-brand-50);
  color: var(--az-primary);
}

.sciarc-quote__meta { display: flex; flex-direction: column; min-width: 0; }

.sciarc-quote__name {
  font-family: var(--az-font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--az-ink);
}

.sciarc-quote__role { font-size: 12px; line-height: 1.4; color: var(--az-muted); margin-top: 3px; }


/* =========================================================================
   LINK-KARTEN (Vorlage: .v4-ack / .v4-pub)
   ========================================================================= */
.sciarc-links__box { padding: 36px 38px; border-radius: var(--az-r-lg); }

/* Vorlage: .v4-ack-t — 19px, w700 */
.sciarc-links__title {
  margin: 0 0 4px;
  font-family: var(--az-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--az-ink);
}

/* Vorlage: .v4-ack-sub — Mono, 11px, Markenfarbe */
.sciarc-links__sub {
  margin-bottom: 16px;
  font-family: var(--az-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--az-primary);
}

/* Vorlage: .v4-ack-intro — 13.5px, max 92ch */
.sciarc-links__intro {
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--az-muted);
  max-width: 92ch;
}

.sciarc-links .sciarc-grid { gap: 14px; }

/* Vorlage: .v4-pub — Kachel auf gedeckter Fläche, padding 22px */
.sciarc-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  background: var(--az-soft);
  border: 1px solid var(--az-line);
  border-radius: var(--az-r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .2s, box-shadow .2s;
}

a.sciarc-link-card:hover {
  border-color: var(--az-brand-100);
  transform: translateY(-3px);
  box-shadow: var(--az-shadow-card);
}

/* Vorlage: .v4-pub-t — 13px, w600 */
.sciarc-link-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--az-ink);
}

.sciarc-link-card__foot { display: flex; flex-direction: column; }

/* Vorlage: .v4-pub-j — Serif kursiv, 12.5px */
.sciarc-link-card__source {
  display: block;
  font-family: var(--az-font-serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--az-muted);
  margin-bottom: 10px;
}

/* Vorlage: .v4-pub-link — 12.5px, w700 */
.sciarc-link-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--az-primary);
}

.sciarc-link-card__cta svg { width: 14px; height: 14px; }


/* =========================================================================
   SCHLAGWORT-ZEILE (Vorlage: .v4-exp-tags — Mono, versalisiert)
   ========================================================================= */
/* Vorlage: .v4-exp-tags steht 40px unter dem Block darüber. Als eigener
   Block braucht der Abstand Padding — ein Margin am Kind würde aus der
   farbigen Fläche herauskollabieren und einen hellen Streifen hinterlassen. */
.sciarc-tags.sciarc-block--section { padding-block: 40px; }

.sciarc-tags__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--az-font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--az-muted);
  text-align: center;
}

.sciarc-tags__sep { color: var(--az-primary); }

.sciarc-tags--pills .sciarc-tags__inner { text-transform: none; font-family: var(--az-font-body); }

.sciarc-tags--pills .sciarc-tags__item {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--az-tint);
  color: var(--az-ink-2);
  font-size: 13px;
  letter-spacing: 0;
}


/* =========================================================================
   ABSTÄNDE ABSICHERN

   Kadence gibt sein dynamisches CSS inline im <head> aus — also nach diesem
   Stylesheet — und setzt dort Überschriften- und Absatz-Margins über
   .entry-content-Selektoren (h1 bekommt z. B. margin-top: 1.5em = 81px).
   Damit die Maße der Vorlage gewinnen, steht die Blockklasse hier bewusst
   doppelt: das hebt die Spezifität, ohne !important zu brauchen.
   ========================================================================= */
.sciarc-block.sciarc-block :is(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl) {
  margin: 0;
}

/* Listen zusätzlich vom Einzug befreien: Kadence gibt <ul> 32px padding-left
   mit. Zusammen mit der eigenen 13px-Einrückung stand der Text sonst 45px
   vom Kartenrand entfernt und hatte deutlich zu wenig Platz. */
.sciarc-block.sciarc-block :is(ul, ol) {
  padding-left: 0;
  list-style: none;
}

/* Hero — Vorlage: Eyebrow 20px, H1 22px, Lead 28px, Buttons 26px */
.sciarc-block.sciarc-block .sciarc-eyebrow      { margin-bottom: 20px; }
.sciarc-block.sciarc-block .sciarc-hero__title  { margin-bottom: 22px; }
.sciarc-block.sciarc-block .sciarc-hero__lead   { margin-bottom: 28px; }

/* Seitenkopf der Unterseiten: Titel und Einleitung. Die Regel oben im
   Abschnitt "Page Hero" verlor gegen den Reset, der Lead klebte am Titel. */
.sciarc-block.sciarc-page-hero .sciarc-h1 { margin-bottom: 16px; }

/* Abschnittsköpfe.
   Achtung: Bei diesen Blöcken sitzen Blockklasse und Bauteilklasse am SELBEN
   Element (.sciarc-block.sciarc-faq), es ist also kein Nachkomme. Mit einem
   Leerzeichen dazwischen greift die Regel nie — genau daran fehlte der Abstand
   zwischen Überschrift und Fließtext. */
.sciarc-block.sciarc-section-head .sciarc-h2 { margin-bottom: 16px; }
.sciarc-block.sciarc-split .sciarc-h2        { margin-bottom: 14px; }
.sciarc-block.sciarc-split .sciarc-lead      { margin-bottom: 32px; }
.sciarc-block.sciarc-faq .sciarc-h2          { margin-bottom: 16px; }
.sciarc-block.sciarc-faq .sciarc-faq__side .sciarc-lead { margin-bottom: 28px; }

/* Zentrierte Lead-Texte brauchen ihr auto-Margin zurück — der Reset oben
   setzt "margin: 0" und nimmt es sonst mit. */
.sciarc-block.sciarc-block .sciarc-lead--center { margin-inline: auto; }

/* Karten */
.sciarc-block.sciarc-block .sciarc-icon-card__title  { margin-bottom: 8px; }
.sciarc-block.sciarc-block .sciarc-step__number      { margin-bottom: 6px; }
.sciarc-block.sciarc-block .sciarc-step__title       { margin-bottom: 6px; }
.sciarc-block.sciarc-block .sciarc-quote__text       { margin-bottom: 24px; }
.sciarc-block.sciarc-block .sciarc-faq__card-title   { margin-bottom: 8px; }
.sciarc-block.sciarc-block .sciarc-faq__card-text    { margin-bottom: 18px; }
.sciarc-block.sciarc-block .sciarc-links__title      { margin-bottom: 4px; }
.sciarc-block.sciarc-block .sciarc-links__intro      { margin-bottom: 26px; }
.sciarc-block.sciarc-block .sciarc-cta__title        { margin-bottom: 10px; }
/* Die Footer-Marke steht ausserhalb der Blöcke, deshalb über den Footer
   adressiert (Kadence setzt dort ebenfalls Absatz-Margins). */
.site-footer .sciarc-footer-brand__tagline { margin: 14px 0 0; }

/* Zentrierte Icon-Karten setzen ihre Abstände über gap, nicht über Margins.
   (Auch hier: --center sitzt am Block-Element selbst, kein Nachkomme.) */
.sciarc-block.sciarc-icon-cards--center .sciarc-icon-card__title { margin-bottom: 0; }


/* =========================================================================
   TEXTSEITEN (Impressum, Datenschutz)

   Der Fließtext steht dort nicht in eigenen Blöcken, sondern als Core-Blöcke
   (Überschrift, Absatz, Liste) in einer Gruppe unter dem Seitenkopf. Ohne
   diese Regeln klebt die Gruppe an Seitenkopf und Footer und hat auf dem
   Handy keinen Seitenrand. Die Textspalte fluchtet mit Titel und Einleitung
   im Seitenkopf (.sciarc-page-hero__inner: 720px inklusive Rand).
   Gruppen mit eigener Fläche (.has-background) und volle Breite bleiben
   unberührt.
   ========================================================================= */
.entry-content > .wp-block-group:not(.alignfull):not(.has-background) {
  padding: var(--az-section-y) var(--az-gutter);
}

.entry-content > .wp-block-group:not(.alignfull):not(.has-background) > * {
  max-width: calc(720px - 2 * var(--az-gutter));
  margin-inline: auto;
}

/* WordPress legt um den Inhalt der Gruppe einen inneren Container
   (.wp-block-group__inner-container), weil Kadence kein Block-Layout
   mitbringt. Die Regeln unten greifen deshalb mit Leerzeichen statt ">". */
.entry-content > .wp-block-group:not(.alignfull):not(.has-background) :is(p, ul, ol):last-child {
  margin-bottom: 0;
}

/* Typografie wie .legal der PHP-Seite: Zwischenüberschriften 20px, je
   Abschnitt eine feine Linie mit 26px Luft davor und danach, Absätze
   innerhalb eines Abschnitts enger als die Abschnitte untereinander.
   Nur margin-top/-bottom setzen — das Block-Layout hält die Spalte mittig. */
.entry-content > .wp-block-group:not(.alignfull):not(.has-background) h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: var(--az-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--az-ink);
}

.entry-content > .wp-block-group:not(.alignfull):not(.has-background) h2:not(:first-child) {
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--az-line);
}

.entry-content > .wp-block-group:not(.alignfull):not(.has-background) h3 {
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--az-ink);
}

.entry-content > .wp-block-group:not(.alignfull):not(.has-background) :is(p, ul, ol) {
  margin-top: 0;
  margin-bottom: 16px;
}

.entry-content > .wp-block-group:not(.alignfull):not(.has-background) strong {
  color: var(--az-ink);
}


/* =========================================================================
   FORMULARE (Kadence Advanced Form, Kontaktseite)
   Kadence stapelt alle Felder. Felder mit der Klasse "sciarc-half" stehen
   paarweise nebeneinander (Vor- und Nachname), auf dem Handy wieder
   untereinander. Die Gruppe um das Formular bekommt unten den üblichen
   Abschnittsabstand, sonst klebt der Absende-Button am Footer.
   ========================================================================= */
/* Kadence setzt flex-direction: column (.wp-block-kadence-advanced-form
   .kb-advanced-form) — dagegen braucht es die höhere Spezifität. Der
   senkrechte Abstand bleibt Kadences 1.6em. */
.wp-block-kadence-advanced-form form.kb-advanced-form {
  flex-direction: row;
  row-gap: 1.6em;
  column-gap: 16px;
}

.wp-block-kadence-advanced-form form.kb-advanced-form > * {
  flex: 1 1 100%;
  min-width: 0;
}

.wp-block-kadence-advanced-form form.kb-advanced-form > .sciarc-half {
  flex-basis: calc(50% - 8px);
}

@media (max-width: 560px) {
  .wp-block-kadence-advanced-form form.kb-advanced-form > .sciarc-half { flex-basis: 100%; }
}

.entry-content > .wp-block-group.has-background:has(.wp-block-kadence-advanced-form) {
  padding-inline: var(--az-gutter);
  padding-bottom: var(--az-section-y);
}
