/* /css/beitrag.css?v=e93c1981 */
/* Einheitliches Layout für Projekte und Blogbeiträge (src/lib/beitrag.ts) – mobile-first.
   Farben und Schrift aus dem thinkfox-Kit (post-52.css), Kontraste nach WCAG 2.2 AA. */

.tf-beitrag {
  --tf-lila: #5b4ec8;
  --tf-lila-dunkel: #3b3192;
  --tf-lila-hell: #eceafb;
  --tf-hell: #eef7ff;
  --tf-text: #313131;
  --tf-grau: #55536a;
  --tf-linie: #dcdbe8;
  --tf-radius: 18px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tf-text);
  background: #fff;
}
.tf-beitrag *, .tf-beitrag *::before, .tf-beitrag *::after { box-sizing: border-box; }
.tf-beitrag img { display: block; max-width: 100%; height: auto; }

.tf-huelle { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: 20px; }
.tf-huelle--text { max-width: 940px; }
.tf-huelle--breit { max-width: 980px; }
.tf-weitere .tf-huelle { max-width: 1180px; } /* Karten-Raster wie mehrspaltige Bereiche: 1140 px */

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

/* --- Kopf ---------------------------------------------------------------------------------------- */
.tf-kopf { padding-top: 110px; background: linear-gradient(180deg, var(--tf-hell) 0, var(--tf-hell) 78%, #fff 78%); }
.tf-beitrag--blog .tf-kopf { background: linear-gradient(180deg, var(--tf-hell) 0, var(--tf-hell) 72%, #fff 72%); }

.tf-pfad ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--tf-grau); }
.tf-pfad li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--tf-linie); }
.tf-pfad a { color: var(--tf-lila-dunkel); text-decoration: underline; text-underline-offset: 0.15em; }
.tf-pfad [aria-current] { display: inline-block; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* Dachzeile über dem Titel: ohne Hintergrund, im Verhältnis zur Überschrift (wie auf den Leistungsseiten) */
.tf-kopf__marke { margin: 0 0 0.75rem; font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem); font-weight: 600; line-height: 1.3; color: var(--tf-lila-dunkel); }
.tf-beitrag .tf-kopf__titel {
  margin: 0 0 1rem; font-size: clamp(2rem, 6.5vw, 3.5rem); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--tf-lila); overflow-wrap: break-word; hyphens: manual;
}
.tf-kopf__teaser { margin: 0 0 2rem; font-size: clamp(1.125rem, 2.4vw, 1.375rem); line-height: 1.5; color: var(--tf-text); max-width: 46ch; }

.tf-kopf__bild { margin-block: 0 0; }
.tf-kopf__bild--video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--tf-radius); background: var(--tf-lila-dunkel); box-shadow: 0 18px 50px rgb(59 49 146 / 0.18); }

/* Leistungen im Projekt: Wischleiste mit nummerierten Karten – wenige passen nebeneinander, viele lassen sich wischen */
.tf-leistungen { padding-top: 3rem; }
.tf-leistungen__kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tf-beitrag .tf-leistungen__titel { margin: 0; font-size: var(--fs-h4, 1.25rem); font-weight: 700; line-height: 1.3; color: var(--tf-lila); }
.tf-leistungen__pfeile { display: flex; gap: 0.5rem; }
.tf-leistungen__pfeile[hidden] { display: none; }
/* !important: die Kit-Regel für alle <button> (grau, 22/32 px Innenabstand) ist spezifischer */
.tf-beitrag .tf-leistungen__pfeil {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0 !important; border: 1px solid var(--tf-lila) !important; border-radius: 10px !important;
  background: #fff !important; color: var(--tf-lila) !important; font: 700 1.25rem/1 "Outfit", sans-serif !important; letter-spacing: 0 !important; cursor: pointer;
}
.tf-beitrag .tf-leistungen__pfeil:is(:hover, :focus-visible):not(:disabled) { background: var(--tf-lila) !important; color: #fff !important; }
.tf-beitrag .tf-leistungen__pfeil:focus-visible { outline: 3px solid var(--tf-lila); outline-offset: 2px; }
.tf-beitrag .tf-leistungen__pfeil:disabled { opacity: 0.35; cursor: default; }
.tf-leistungen__leiste {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  scrollbar-width: thin; scrollbar-color: var(--tf-linie) transparent; padding: 2px 2px 12px; margin: -2px -2px 0;
}
.tf-leistungen__leiste:focus-visible { outline: 3px solid var(--tf-lila); outline-offset: 2px; border-radius: 12px; }
.tf-leistungen--mehr .tf-leistungen__leiste { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.tf-leistungen__liste {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(78vw, 240px), 1fr); gap: 0.875rem;
  margin: 0; padding: 0; list-style: none;
}
.tf-leistungen__liste li {
  display: flex; flex-direction: column; gap: 0.5rem; scroll-snap-align: start; padding: 1.125rem 1.25rem 1.25rem;
  border-radius: 14px; background: var(--tf-hell); color: var(--tf-text); font-size: 1.0625rem; font-weight: 600; line-height: 1.35;
  overflow-wrap: break-word; hyphens: auto;
}
.tf-leistungen__nr { font-size: 0.9375rem; font-weight: 700; color: var(--tf-lila-dunkel); }
.tf-kopf__bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--tf-radius); box-shadow: 0 18px 50px rgb(59 49 146 / 0.18); }

/* Projektdaten (links neben dem Text, wie im Original) */
.tf-steckbrief { display: grid; gap: 1rem; margin: 0; padding: 0 0 1.5rem; border-bottom: 2px solid var(--tf-linie); }
.tf-steckbrief div { display: grid; gap: 0.125rem; }
.tf-steckbrief dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-grau); }
.tf-steckbrief dd { margin: 0; min-width: 0; font-weight: 600; line-height: 1.4; }
.tf-steckbrief__link a { color: var(--tf-lila-dunkel); font-weight: 700; overflow-wrap: anywhere; }

/* --- Text (Projekt): Aufgabe/Lösung/Ergebnis als ein Fließtext ------------------------------------ */
.tf-case { display: grid; gap: 2rem; padding-block: 3rem 1rem; }
.tf-beitrag .tf-case__text h2 { margin: 1.8em 0 0.5em; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.25; }
.tf-beitrag .tf-case__text > h2:first-child { margin-top: 0; }

.tf-text > :first-child { margin-top: 0; }
.tf-text p, .tf-text ul, .tf-text ol, .tf-text blockquote { margin: 0 0 1.15em; }
.tf-text ul, .tf-text ol { padding-left: 1.3em; }
.tf-text li { margin-bottom: 0.35em; }
.tf-text li::marker { color: var(--tf-lila); }
.tf-beitrag .tf-text h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--tf-lila); scroll-margin-top: 120px; }
.tf-beitrag .tf-text h3 { margin: 1.8em 0 0.5em; font-size: clamp(1.2rem, 2.5vw, 1.4rem); font-weight: 700; line-height: 1.3; color: var(--tf-text); scroll-margin-top: 120px; }
.tf-beitrag .tf-text h4 { margin: 1.5em 0 0.4em; font-size: 1.1rem; font-weight: 700; color: var(--tf-text); }
.tf-text strong { font-weight: 700; }
.tf-beitrag .tf-text a, .tf-faq__antwort a { color: var(--tf-lila-dunkel); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.tf-beitrag .tf-text a:hover { text-decoration-thickness: 2px; }
.tf-text blockquote { padding: 0.25em 0 0.25em 1.1em; border-left: 4px solid var(--tf-lila); font-size: 1.15em; }
.tf-text img { border-radius: 12px; margin: 1.5em 0; }

/* Inhaltsverzeichnis (Blog) */
.tf-inhalt { margin: 2.5rem 0; padding: 1.25rem 1.5rem; border-radius: var(--tf-radius); background: var(--tf-hell); }
.tf-beitrag .tf-inhalt__titel { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-grau); }
.tf-inhalt ol { margin: 0; padding-left: 1.2em; }
.tf-inhalt li { margin: 0.3em 0; }
.tf-inhalt li::marker { color: var(--tf-lila); font-weight: 700; }
.tf-inhalt a { color: var(--tf-lila-dunkel); text-decoration: none; }
.tf-inhalt a:hover { text-decoration: underline; }
.tf-beitrag--blog .tf-huelle--text > .tf-text { padding-top: 2.5rem; }
.tf-beitrag--blog .tf-inhalt + .tf-text { padding-top: 0; }

/* --- Medien ------------------------------------------------------------------------------------------ */
.tf-medien { display: grid; gap: 1.5rem; padding-block: 2rem; }
.tf-medium { margin: 0; }
.tf-medium img { width: 100%; border-radius: var(--tf-radius); }
.tf-medium--video iframe, .tf-text .tf-medium--video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--tf-radius); background: var(--tf-lila-dunkel); }
.tf-galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.tf-galerie a { display: block; position: relative; border-radius: 12px; overflow: hidden; }
.tf-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s; }
.tf-galerie a:hover img { transform: scale(1.03); }
.tf-text .tf-medium { margin: 2em 0; }

/* --- Kundenstimme ------------------------------------------------------------------------------- */
.tf-stimme { margin-block: 2.5rem; padding: 2rem 1.5rem; border-radius: var(--tf-radius); background: var(--tf-lila); color: #fff; }
.tf-stimme blockquote { margin: 0 0 1rem; font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.45; font-weight: 500; }
.tf-stimme blockquote p { margin: 0; }
.tf-stimme blockquote p::before { content: "„"; }
.tf-stimme blockquote p::after { content: "“"; }
.tf-stimme figcaption { font-size: 0.9375rem; }

/* --- FAQ ------------------------------------------------------------------------------------------- */
.tf-faq { margin: 3rem 0 1rem; }
.tf-beitrag .tf-faq h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--tf-lila); }
.tf-faq__eintrag { border-bottom: 1px solid var(--tf-linie); }
.tf-faq__frage { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; font-weight: 700; list-style: none; }
.tf-faq__frage::-webkit-details-marker { display: none; }
.tf-faq__frage::after { content: "+"; flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--tf-lila-hell); color: var(--tf-lila-dunkel); font-size: 1.2rem; line-height: 1; }
.tf-faq__eintrag[open] .tf-faq__frage::after { content: "–"; }
.tf-faq__antwort { padding: 0 0 1rem; }
.tf-faq__antwort > :last-child { margin-bottom: 0; }

/* --- Anfrage ----------------------------------------------------------------------------------- */
.tf-anfrage { margin-top: 3.5rem; padding-block: 2.5rem; background: var(--tf-lila); color: #fff; }
.tf-anfrage__innen { display: grid; gap: 1.25rem; align-items: center; }
.tf-beitrag .tf-anfrage__titel { margin: 0 0 0.25rem; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.2; color: #fff; }
.tf-anfrage p { margin: 0; max-width: 52ch; }

/* Buttons wie auf der Startseite: gefüllt Lila (helle Flächen) bzw. weißer Rahmen (lila Flächen),
   jeweils mit Pfeil-Symbol */
.tf-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 14px 22px;
  border: 1px solid var(--tf-lila); border-radius: 10px; background: var(--tf-lila);
  color: #fff !important; font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-decoration: none !important;
  transition: background-color 0.2s, color 0.2s;
}
.tf-knopf__symbol { width: 1em; height: 1em; flex: none; fill: currentColor; }
.tf-knopf:hover { background: var(--tf-lila-dunkel); border-color: var(--tf-lila-dunkel); }
.tf-knopf--rahmen { justify-self: start; border-color: #fff; background: transparent; }
.tf-knopf--rahmen:hover { background: #fff; border-color: #fff; color: var(--tf-lila) !important; }
.tf-beitrag a:focus-visible, .tf-faq__frage:focus-visible { outline: 3px solid var(--tf-lila-dunkel); outline-offset: 3px; border-radius: 4px; }
.tf-anfrage .tf-knopf:focus-visible { outline-color: #fff; }

/* --- Weitere Beiträge ---------------------------------------------------------------------------- */
.tf-weitere { padding-block: 3.5rem; background: var(--tf-hell); }
.tf-beitrag .tf-weitere h2 { margin: 0 0 1.5rem; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; color: var(--tf-lila); }
.tf-karten { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.tf-karte__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--tf-radius); overflow: hidden; background: #fff; color: var(--tf-text) !important; text-decoration: none !important; box-shadow: 0 6px 24px rgb(59 49 146 / 0.08); transition: transform 0.2s, box-shadow 0.2s; }
.tf-karte__link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(59 49 146 / 0.16); }
.tf-karte__bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tf-karte__kategorie { margin: 1rem 1.25rem 0.25rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--tf-lila-dunkel); }
.tf-karte__titel { margin: 0 1.25rem; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.tf-karte__mehr { margin: auto 1.25rem 1.25rem; padding-top: 0.75rem; font-weight: 700; color: var(--tf-lila-dunkel); }

/* --- Größere Bildschirme ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .tf-huelle { padding-inline: 32px; }
  .tf-kopf { padding-top: 140px; }
  .tf-beitrag { font-size: 1.125rem; }
  .tf-beitrag .tf-kopf__titel { hyphens: none; }
  .tf-galerie { grid-template-columns: repeat(3, 1fr); }
  .tf-karten { grid-template-columns: repeat(3, 1fr); }
  .tf-anfrage__innen { grid-template-columns: 1fr auto; }
  .tf-knopf--rahmen { justify-self: end; }
  .tf-stimme { padding: 2.5rem 3rem; }
}
@media (min-width: 1025px) {
  .tf-kopf { padding-top: 160px; }
  .tf-beitrag--projekt .tf-kopf__teaser { max-width: 58ch; }
  .tf-case { grid-template-columns: 250px minmax(0, 1fr); column-gap: 3.5rem; align-items: start; padding-top: 4rem; }
  .tf-case__fakten { position: sticky; top: 130px; }
  .tf-steckbrief { padding: 0; border: 0; }
  .tf-case__text { grid-column: 2; }
  .tf-case__text:only-child { grid-column: 1 / -1; max-width: 46rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-galerie img, .tf-karte__link, .tf-knopf { transition: none; }
}

/* --- Blog „klassisch“: Aufbau wie im Original ---------------------------------------------------- */
.tf-klassisch { padding: 110px 20px 3rem; background: linear-gradient(180deg, #fff 0, #fff 130px, var(--tf-hell) 130px); }
.tf-klassisch__bild, .tf-klassisch__inhalt { max-width: 940px; margin-inline: auto; }
.tf-klassisch__bild { margin-top: 0; margin-bottom: 2rem; }
.tf-klassisch__bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tf-beitrag .tf-klassisch__titel { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--tf-lila); overflow-wrap: break-word; }
.tf-klassisch__meta { margin: 0 0 1.75rem; font-size: 0.9375rem; color: var(--tf-grau); }
.tf-beitrag--klassisch .tf-text h2 { margin: 1.8em 0 0.5em; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); color: var(--tf-lila); }
.tf-beitrag--klassisch .tf-text h3 { margin: 1.4em 0 0.4em; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); color: var(--tf-lila); }
.tf-beitrag--klassisch .tf-faq { margin-bottom: 0; }
@media (min-width: 768px) {
  .tf-klassisch { padding-top: 140px; background: linear-gradient(180deg, #fff 0, #fff 175px, var(--tf-hell) 175px); }
  .tf-klassisch__bild { margin-bottom: 2.75rem; }
}
/* kein weißer Streifen zwischen hellblauem Inhalt und Abschluss-Box */
.tf-beitrag--klassisch .tf-anfrage { margin-top: 0; }
.tf-beitrag--klassisch .tf-klassisch { padding-bottom: 4rem; }
