/* ==========================================================================
   B2 – Anpassung der Gestaltung an WordPress-Blöcke
   b2.css enthält das Design aus dem Prototyp. Diese Datei gleicht aus, was
   WordPress-Blöcke anders auszeichnen: Buttons, Aufklapp-Fragen, verlinkte Karten.
   ========================================================================== */

/* ---------- Rahmen von WordPress neutralisieren ---------- */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .wp-block-post-content > * { margin-block: 0; }
.wp-block-group { box-sizing: border-box; }
.wp-block-post-content { display: block; }
a:where(:not(.wp-element-button)) { text-decoration: none; }

/* ---------- Umgewandelte Textelemente ---------- */
:where(.t-strong) { font-weight: 700; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------- Buttons (Block „Buttons") ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans); white-space: nowrap; cursor: pointer; text-decoration: none; box-shadow: none;
  background: var(--blue); color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.wp-block-button.ist-gross .wp-block-button__link { padding: 17px 28px; font-size: 1rem; }
.wp-block-button.is-style-primary .wp-block-button__link { background: var(--blue); color: #fff; }
.wp-block-button.is-style-primary .wp-block-button__link:hover { background: var(--ink); }
.wp-block-button.is-style-accent .wp-block-button__link { background: var(--orange); color: var(--ink); }
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #fff; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; border-color: var(--line); color: var(--ink); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--ink); }
.wp-block-button.hat-pfeil .wp-block-button__link::after {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor; transition: transform .25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.hat-pfeil .wp-block-button__link:hover::after { transform: translateX(4px); }
/* dunkle Flächen */
.dark .wp-block-button.is-style-ghost .wp-block-button__link { color: #fff; border-color: var(--line-light); }
.dark .wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: #fff; }
.dark .wp-block-button.is-style-primary .wp-block-button__link:hover { background: #fff; color: var(--ink); }
/* Button-Reihen im Seitenkopf */
.hero__actions, .phero__actions { gap: 12px; }
.letter__sign .wp-block-buttons, .ai__note .wp-block-buttons { flex: none; }

/* ---------- Verlinkte Karten: Link im Titel, über die ganze Karte gespannt ---------- */
.hat-link { position: relative; }
.hat-link a { color: inherit; }
.hat-link a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hat-link a:focus-visible { outline: none; }
.hat-link:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.chan.hat-link:hover { transform: translateY(-4px); border-color: var(--blue); }
.chan--main.hat-link:hover { background: var(--ink); border-color: var(--ink); }
.svc__link.hat-link:focus-within { border-radius: var(--radius); }

/* ---------- Aufklapp-Fragen (Block „Details") ---------- */
.faq .wp-block-details summary { font: 600 clamp(1.1rem, 1.45vw, 1.28rem)/1.3 var(--display); letter-spacing: -.015em; }
.faq .wp-block-details summary:hover { color: var(--blue); }
.faq .wp-block-details summary::after {
  content: ""; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); flex: none;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: background-color .3s, border-color .3s;
}
.faq .wp-block-details[open] summary::after { background-color: var(--orange); border-color: var(--orange); background-size: 12px 1.5px, 0 0; }

/* ---------- Reiter: ohne Skript stehen die Abschnitte untereinander ---------- */
.tabs > .tabs__panel + .tabs__panel { margin-top: 16px; }
.tabs > .tabs__list + .tabs__panel { margin-top: 20px; }

/* ---------- Referenzen ---------- */
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--echt::after { display: none; }
.wcard h3 a::after { content: ""; position: absolute; inset: 0; }
.wcard { position: relative; }
.referenz-bild { margin: 0 0 clamp(32px, 4vw, 56px); }
.referenz-bild img { width: 100%; height: auto; border-radius: 24px; }
.u-titel { margin: 20px 0 24px; }

/* ---------- Formular in WordPress ---------- */
.b2-formular .form[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form--light .field__error { color: #B3261E; }

/* ---------- Smartphones ---------- */
@media (max-width: 820px) {
  .hero__actions .wp-block-button, .phero__actions .wp-block-button { width: 100%; }
  .hero__actions .wp-block-button__link, .phero__actions .wp-block-button__link { width: 100%; }
}

/* Kleine Zeilen über Titeln: gleiche Zeilenhöhe wie im Prototyp */
.way .t-small, .phase .t-small, .duo .t-small { line-height: 27px; }

/* Angemeldete Redakteure: Kopfzeile unter der WordPress-Leiste halten */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* Platzhalter-Hinweise auf dunklen Flächen lesbar halten */
.dark .placeholder { color: var(--mist); border-color: rgba(255, 255, 255, .35); }
.dark .placeholder b { background: var(--orange); color: var(--ink); }
