/*!
 * THK Verlag — Block-Stylesheet (v0.9.0)
 *
 * Zweigeteilte Datei:
 *
 *   1. Editor-UI    — Klassen, die cms-editor.js fürs Backend produziert
 *                     (ghos-block-card, ghos-cms-modal, ghos-blocks-liste,
 *                     ghos-block-kat, ghos-block-typ, ghos-feld, ghos-grid-2,
 *                     ghos-pill, ghos-cms-editor__layout).
 *
 *   2. Frontend     — Generische `ghos-block--*`-Klassen für die 14 aus
 *                     GruppenhausOS portierten Block-Typen (hero, heading,
 *                     bild, text, text_bild, galerie, tiles, features, cta,
 *                     akkordeon, journal_teaser, embed, trenner, stats).
 *
 * Verlags-spezifische Blöcke (buecher, autoren, usp, newsletter) — und
 * die `thk-block`-Basisklasse — sind in thk-blocks.css.
 *
 * Designprinzip: pragmatisch funktional, kein Pixel-Match mit GHOS. Farben
 * folgen dem THK-Designsystem (Tinte/Bordeaux/Papier), Spacing-Tokens
 * sind eingebettet (nicht über --thk-*-Custom-Properties geschickt, damit
 * die Datei standalone funktioniert).
 *
 * @copyright (C) THK-Verlag UG / Jens Richter Agentur
 * @license   Proprietary
 */

/* ════════════════════════════════════════════════════════════════════════
   1. EDITOR-UI (Admin)
   ════════════════════════════════════════════════════════════════════════ */

.ghos-cms-editor { position: relative; }
.ghos-cms-editor__layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
@media (max-width: 980px) {
  .ghos-cms-editor__layout { grid-template-columns: 1fr; }
}

/* Block-Liste (Sortable-Container) */
.ghos-blocks-liste { display: flex; flex-direction: column; gap: .75rem; min-height: 4rem; }
.ghos-blocks-liste.is-dragging { background: #f8fafc; border-radius: 8px; padding: .5rem; }
.ghos-blocks-leer { /* inline-styled im View */ }

/* Block-Card */
.ghos-block-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .75rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.ghos-block-card:hover { border-color: #cbd5e1; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.ghos-block-card.is-inaktiv { opacity: .55; background: #f8fafc; }
.ghos-block-card.sortable-ghost { opacity: .35; background: #fef3c7; }
.ghos-block-card.sortable-chosen { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.ghos-block-card__head {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.ghos-block-card__handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 1.1rem;
  user-select: none;
  padding: 0 .25rem;
}
.ghos-block-card__handle:active { cursor: grabbing; }
.ghos-block-card__icon { display: inline-flex; width: 20px; height: 20px; color: #64748b; }
.ghos-block-card__icon svg { width: 20px; height: 20px; }
.ghos-block-card__label { flex: 1; font-weight: 600; font-size: .95rem; color: #1f2937; }
.ghos-block-card__aktionen { display: flex; gap: .15rem; opacity: .65; transition: opacity .15s; }
.ghos-block-card:hover .ghos-block-card__aktionen { opacity: 1; }

.ghos-block-card__btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: .35rem;
  border-radius: 4px;
  color: #64748b;
  transition: background .12s ease, color .12s ease;
}
.ghos-block-card__btn:hover { background: #f1f5f9; color: #1f2937; }
.ghos-block-card__btn--del:hover { background: #fef2f2; color: #b91c1c; }
.ghos-block-card__btn svg { width: 16px; height: 16px; display: block; }

.ghos-block-card__preview {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid #f1f5f9;
  font-size: .85rem;
  color: #475569;
  line-height: 1.4;
}
.ghos-block-card__preview strong { font-weight: 600; color: #1f2937; }
.ghos-block-card__preview em { font-style: normal; color: #94a3b8; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* Modal */
.ghos-cms-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.ghos-cms-modal[hidden] { display: none; }
.ghos-cms-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.ghos-cms-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.ghos-cms-modal__panel--breit { max-width: 880px; }
.ghos-cms-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.ghos-cms-modal__head h2 { margin: 0; font-size: 1.2rem; font-weight: 600; }
.ghos-cms-modal__close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: .25rem .5rem;
  border-radius: 4px;
}
.ghos-cms-modal__close:hover { background: #f1f5f9; color: #1f2937; }
.ghos-cms-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.ghos-cms-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 10px 10px;
}

/* Block-Typ-Auswahl im Modal */
.ghos-block-kat { margin-bottom: 1.5rem; }
.ghos-block-kat:last-child { margin-bottom: 0; }
.ghos-block-kat__h {
  margin: 0 0 .65rem;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}
.ghos-block-kat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem;
}
.ghos-block-typ {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: .85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.ghos-block-typ:hover {
  border-color: #5a3a3a;
  background: #fafaf7;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ghos-block-typ__icon { display: inline-flex; color: #5a3a3a; }
.ghos-block-typ__icon svg { width: 22px; height: 22px; }
.ghos-block-typ__label { font-weight: 600; font-size: .95rem; color: #1f2937; }
.ghos-block-typ__desc { font-size: .8rem; color: #64748b; line-height: 1.35; }

/* Felder im Block-Edit-Modal */
.ghos-feld { margin-bottom: 1rem; }
.ghos-feld label,
.ghos-feld__label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; color: #1f2937; }
.ghos-feld input[type="text"],
.ghos-feld input[type="number"],
.ghos-feld input[type="url"],
.ghos-feld input[type="email"],
.ghos-feld input[type="search"],
.ghos-feld select,
.ghos-feld textarea {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
}
.ghos-feld input:focus,
.ghos-feld select:focus,
.ghos-feld textarea:focus {
  outline: none;
  border-color: #5a3a3a;
  box-shadow: 0 0 0 3px rgba(90,58,58,.12);
}
.ghos-feld textarea { min-height: 5rem; resize: vertical; }
.ghos-feld .ghos-check { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; margin: 0; }
.ghos-feld .ghos-check input[type="checkbox"] { width: auto; }

.ghos-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .ghos-grid-2 { grid-template-columns: 1fr; }
}

/* Pills (Status-Badges in der Editor-UI) */
.ghos-pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.ghos-pill--klein { font-size: .72rem; padding: .15rem .55rem; }
.ghos-pill--ok    { background: #dcfce7; color: #166534; }
.ghos-pill--warn  { background: #fef3c7; color: #92400e; }

/* Quill-Editor im Modal — Anti-Overflow */
.ghos-feld .ql-container {
  min-height: 8rem;
  border: 1px solid #d1d5db;
  border-radius: 0 0 6px 6px;
  border-top: 0;
  font-family: inherit;
}
.ghos-feld .ql-toolbar {
  border: 1px solid #d1d5db;
  border-radius: 6px 6px 0 0;
}

/* Bilder-Liste / Listen-Felder (bilder_liste, tiles_liste, features_liste, akkordeon_liste, stats_liste, usp_pillars) */
.ghos-liste-feld { display: flex; flex-direction: column; gap: .5rem; }
.ghos-liste-feld__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .5rem;
  align-items: center;
  padding: .65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.ghos-liste-feld__item input,
.ghos-liste-feld__item textarea { padding: .4rem .55rem; font-size: .9rem; }
.ghos-liste-feld__del {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: 4px;
  font-size: 1rem;
}
.ghos-liste-feld__del:hover { background: #fef2f2; color: #b91c1c; }
.ghos-liste-feld__add {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  padding: .5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
}
.ghos-liste-feld__add:hover { background: #f8fafc; border-color: #94a3b8; color: #1f2937; }

/* Page-Header (für Editor-Hülle) */
.ghos-page__head { /* meist inline-styled, hier nur Fallbacks */ margin-bottom: 1.5rem; }
.ghos-page__head h1 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.ghos-back { color: #64748b; text-decoration: none; font-size: .9rem; }
.ghos-back:hover { color: #1f2937; }

/* ════════════════════════════════════════════════════════════════════════
   2. FRONTEND — GENERISCHE BLÖCKE (ghos-block--*)
   ════════════════════════════════════════════════════════════════════════ */

.ghos-block { margin: 2.5rem 0; }
.ghos-block__header { margin-bottom: 1.5rem; text-align: center; }
.ghos-block__header.is-links { text-align: left; }
.ghos-block__header.is-rechts { text-align: right; }
.ghos-block__kicker {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #5a3a3a;
  margin-bottom: .35rem;
}
.ghos-block__titel {
  margin: 0 0 .35rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: #1f2937;
}
.ghos-block__untertitel {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
  max-width: 60ch;
}
.ghos-block__header.is-mitte .ghos-block__untertitel { margin-left: auto; margin-right: auto; }
.ghos-block__footer { margin-top: 1.5rem; text-align: center; }

/* Hero */
.ghos-block--hero {
  position: relative;
  margin: 0 -1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1f2937;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 4rem 1.5rem;
  min-height: 60vh;
}
.ghos-block--hero.ghos-block--hoehe-klein  { min-height: 40vh; }
.ghos-block--hero.ghos-block--hoehe-mittel { min-height: 60vh; }
.ghos-block--hero.ghos-block--hoehe-gross  { min-height: 80vh; }
.ghos-block--hero.ghos-block--hoehe-voll   { min-height: 100vh; }
.ghos-block--hero.ghos-block--align-links  { text-align: left; justify-content: flex-start; }
.ghos-block--hero.ghos-block--align-rechts { text-align: right; justify-content: flex-end; }
.ghos-block--hero.ghos-block--text-dunkel  { color: #1f2937; text-shadow: none; }
.ghos-block--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  pointer-events: none;
}
.ghos-block--hero.ghos-block--overlay-ohne::before   { background: transparent; }
.ghos-block--hero.ghos-block--overlay-leicht::before { background: rgba(0,0,0,.2); }
.ghos-block--hero.ghos-block--overlay-mittel::before { background: rgba(0,0,0,.4); }
.ghos-block--hero.ghos-block--overlay-stark::before  { background: rgba(0,0,0,.65); }
.ghos-block--hero > * { position: relative; z-index: 1; max-width: 720px; }
.ghos-block--hero h1, .ghos-block--hero h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.ghos-block--hero p { font-size: 1.15rem; margin: 0 0 1.5rem; opacity: .95; }
.ghos-block--hero .ghos-cta {
  display: inline-block;
  background: #5a3a3a;
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s;
}
.ghos-block--hero .ghos-cta:hover { background: #7a4a4a; }

/* Heading */
.ghos-block--heading h1,
.ghos-block--heading h2,
.ghos-block--heading h3,
.ghos-block--heading h4,
.ghos-block--heading h5,
.ghos-block--heading h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #1f2937;
  margin: 0;
}
.ghos-block--heading.ghos-block--align-links  { text-align: left; }
.ghos-block--heading.ghos-block--align-rechts { text-align: right; }
.ghos-block--heading.ghos-block--align-mitte  { text-align: center; }

/* Text */
.ghos-block--text { max-width: 720px; margin-left: auto; margin-right: auto; }
.ghos-block--text.ghos-block--breite-schmal { max-width: 60ch; }
.ghos-block--text.ghos-block--breite-normal { max-width: 720px; }
.ghos-block--text.ghos-block--breite-breit  { max-width: 1080px; }
.ghos-block--text p { line-height: 1.65; }

/* Bild */
.ghos-block--bild { text-align: center; margin: 2rem auto; }
.ghos-block--bild img { max-width: 100%; height: auto; border-radius: 6px; }
.ghos-block--bild.ghos-block--breite-schmal img { max-width: 480px; }
.ghos-block--bild.ghos-block--breite-normal img { max-width: 720px; }
.ghos-block--bild.ghos-block--breite-breit  img { max-width: 1080px; }
.ghos-block--bild.ghos-block--breite-voll   img { max-width: 100%; }
.ghos-block--bild figcaption {
  margin-top: .75rem;
  font-size: .9rem;
  color: #64748b;
  font-style: italic;
}

/* Text + Bild (zweispaltig) */
.ghos-block--text-bild { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1080px; margin: 2.5rem auto; }
.ghos-block--text-bild.ghos-block--bild-links { grid-template-areas: 'bild text'; }
.ghos-block--text-bild.ghos-block--bild-rechts { grid-template-areas: 'text bild'; }
.ghos-block--text-bild .ghos-block--text-bild__bild { grid-area: bild; }
.ghos-block--text-bild .ghos-block--text-bild__text { grid-area: text; }
.ghos-block--text-bild img { max-width: 100%; height: auto; border-radius: 6px; }
.ghos-block--text-bild.ghos-block--bg-sand   { background: #faf6ee; padding: 2rem; border-radius: 8px; max-width: 1140px; }
.ghos-block--text-bild.ghos-block--bg-creme  { background: #fdfaf3; padding: 2rem; border-radius: 8px; max-width: 1140px; }
.ghos-block--text-bild.ghos-block--bg-dunkel { background: #1e293b; color: #f1f5f9; padding: 2rem; border-radius: 8px; max-width: 1140px; }
@media (max-width: 768px) {
  .ghos-block--text-bild { grid-template-columns: 1fr; grid-template-areas: 'bild' 'text'; }
}

/* Galerie */
.ghos-block--galerie { margin: 2.5rem 0; }
.ghos-block--galerie .ghos-galerie-grid { display: grid; gap: .75rem; }
.ghos-block--galerie.ghos-galerie--3 .ghos-galerie-grid { grid-template-columns: repeat(3, 1fr); }
.ghos-block--galerie.ghos-galerie--4 .ghos-galerie-grid { grid-template-columns: repeat(4, 1fr); }
.ghos-block--galerie .ghos-galerie-grid img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
@media (max-width: 640px) {
  .ghos-block--galerie .ghos-galerie-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Tiles */
.ghos-block--tiles .ghos-tiles-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.ghos-block--tiles .ghos-tile {
  background: #fff;
  border: 1px solid #e8e3d4;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.ghos-block--tiles .ghos-tile:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.ghos-block--tiles .ghos-tile img { width: 100%; height: 180px; object-fit: cover; }
.ghos-block--tiles .ghos-tile__inhalt { padding: 1rem 1.25rem 1.25rem; }
.ghos-block--tiles .ghos-tile__titel { font-weight: 600; font-size: 1.05rem; margin: 0 0 .35rem; color: #1f2937; }
.ghos-block--tiles .ghos-tile__text { font-size: .9rem; color: #64748b; line-height: 1.5; margin: 0; }
@media (max-width: 768px) {
  .ghos-block--tiles .ghos-tiles-grid { grid-template-columns: 1fr; }
}

/* Features */
.ghos-block--features .ghos-features-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.ghos-block--features .ghos-feature { text-align: center; padding: 1rem; }
.ghos-block--features .ghos-feature__icon { font-size: 2rem; margin-bottom: .5rem; color: #5a3a3a; }
.ghos-block--features .ghos-feature__titel { font-weight: 600; font-size: 1.05rem; margin: 0 0 .35rem; }
.ghos-block--features .ghos-feature__text { color: #64748b; font-size: .9rem; line-height: 1.5; margin: 0; }
@media (max-width: 768px) {
  .ghos-block--features .ghos-features-grid { grid-template-columns: 1fr; }
}

/* CTA */
.ghos-block--cta {
  background: #5a3a3a;
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 8px;
  margin: 2.5rem auto;
  max-width: 1080px;
}
.ghos-block--cta h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; margin: 0 0 .75rem; color: #fff; }
.ghos-block--cta p { margin: 0 0 1.5rem; opacity: .9; }
.ghos-block--cta .ghos-cta-btn {
  display: inline-block;
  background: #fff;
  color: #5a3a3a;
  padding: .85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s;
}
.ghos-block--cta .ghos-cta-btn:hover { background: #f1f5f9; }

/* Akkordeon */
.ghos-block--akkordeon details {
  border-bottom: 1px solid #e8e3d4;
  padding: 1rem 0;
}
.ghos-block--akkordeon summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2937;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.ghos-block--akkordeon summary::-webkit-details-marker { display: none; }
.ghos-block--akkordeon summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: #94a3b8;
  transition: transform .15s;
}
.ghos-block--akkordeon details[open] summary::after { content: '−'; }
.ghos-block--akkordeon details > div { padding-top: .75rem; color: #475569; line-height: 1.6; }

/* Journal-Teaser */
.ghos-block--journal-teaser .ghos-journal-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.ghos-block--journal-teaser .ghos-journal-card {
  background: #fff;
  border: 1px solid #e8e3d4;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.ghos-block--journal-teaser .ghos-journal-card img { width: 100%; height: 200px; object-fit: cover; }
.ghos-block--journal-teaser .ghos-journal-card__inhalt { padding: 1rem 1.25rem; }
.ghos-block--journal-teaser .ghos-journal-card__titel { font-weight: 600; margin: 0 0 .35rem; font-size: 1.05rem; }
.ghos-block--journal-teaser .ghos-journal-card__meta { font-size: .8rem; color: #94a3b8; }
@media (max-width: 768px) {
  .ghos-block--journal-teaser .ghos-journal-grid { grid-template-columns: 1fr; }
}

/* Embed (Video / iframe) */
.ghos-block--embed { max-width: 720px; margin: 2.5rem auto; }
.ghos-block--embed .ghos-embed-frame { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; background: #000; }
.ghos-block--embed .ghos-embed-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.ghos-block--embed.ghos-embed--4-3  .ghos-embed-frame { padding-bottom: 75%; }
.ghos-block--embed.ghos-embed--1-1  .ghos-embed-frame { padding-bottom: 100%; }
.ghos-block--embed.ghos-embed--21-9 .ghos-embed-frame { padding-bottom: 42.85%; }

/* Trenner */
.ghos-block--trenner { margin: 2rem 0; height: 1px; }
.ghos-block--trenner.ghos-trenner--leer     { background: transparent; }
.ghos-block--trenner.ghos-trenner--linie    { border-top: 1px solid #e8e3d4; }
.ghos-block--trenner.ghos-trenner--punkte   { border-top: 1px dotted #cbd5e1; }
.ghos-block--trenner.ghos-trenner--ornament { border-top: 1px solid #5a3a3a; position: relative; }
.ghos-block--trenner.ghos-trenner--ornament::after {
  content: '✦';
  position: absolute;
  top: -.7em;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 .8em;
  color: #5a3a3a;
}
.ghos-block--trenner.ghos-abstand--klein  { margin: 1rem 0; }
.ghos-block--trenner.ghos-abstand--mittel { margin: 2rem 0; }
.ghos-block--trenner.ghos-abstand--gross  { margin: 4rem 0; }

/* Stats */
.ghos-block--stats .ghos-stats-grid { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); }
.ghos-block--stats.ghos-stats--4 .ghos-stats-grid { grid-template-columns: repeat(4, 1fr); }
.ghos-block--stats .ghos-stat { text-align: center; }
.ghos-block--stats .ghos-stat__zahl { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.5rem; font-weight: 600; color: #5a3a3a; display: block; }
.ghos-block--stats .ghos-stat__label { font-size: .9rem; color: #64748b; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 768px) {
  .ghos-block--stats .ghos-stats-grid,
  .ghos-block--stats.ghos-stats--4 .ghos-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════════
   v0.16.0.0 — CMS-KOMFORTPAKET 1
   ════════════════════════════════════════════════════════════════════════

   Designfelder, die in den BlockRegistry über `designFelder()` zu jedem
   normalen Inhaltsblock dazugemerged werden. CSS ist additiv: greift nur,
   wenn die jeweilige Klasse explizit gesetzt ist. Bestandsinhalte ohne
   diese Klassen sehen exakt aus wie vor v0.15.5.0.

   Nutzt konsequent --thk-*-Variablen aus site.css. Kein Bootstrap, keine
   SaaS-Plastikoptik — ruhig, verlagsmässig, dezent.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Section-Hintergrund (volle Browserbreite) ────────────────────── */
/* Ein Section-Hintergrund bricht aus dem schmalen .ghos-container aus
   und füllt die volle Seitenbreite. Padding sorgt dafür, dass der
   Inhalt nicht oben/unten am Hintergrund klebt. */
.ghos-block--section-bg-papier,
.ghos-block--section-bg-papier-tief,
.ghos-block--section-bg-papier-warm,
.ghos-block--section-bg-tinte,
.ghos-block--section-bg-tinte-dunkel,
.ghos-block--section-bg-bordeaux,
.ghos-block--section-bg-bordeaux-tief,
.ghos-block--section-bg-gold {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  margin-top: 0;
  margin-bottom: 0;
}
.ghos-block--section-bg-papier       { background: var(--thk-papier); }
.ghos-block--section-bg-papier-tief  { background: var(--thk-papier-tief); }
.ghos-block--section-bg-papier-warm  { background: var(--thk-papier-warm); }
.ghos-block--section-bg-tinte        { background: var(--thk-tinte); }
.ghos-block--section-bg-tinte-dunkel { background: var(--thk-tinte-dunkel); }
.ghos-block--section-bg-bordeaux     { background: var(--thk-bordeaux); }
.ghos-block--section-bg-bordeaux-tief{ background: var(--thk-bordeaux-tief); }
.ghos-block--section-bg-gold         { background: var(--thk-gold); }
/* v0.16.0.1 — explizite Transparenz; siehe ciHintergrundOptionen(). */
.ghos-block--section-bg-transparent  { background: transparent; }

/* ── Container-Breite ────────────────────────────────────────────── */
.ghos-block--container-schmal { max-width: var(--content-narrow, 740px); margin-left: auto; margin-right: auto; }
.ghos-block--container-normal { max-width: var(--content-max, 1180px); margin-left: auto; margin-right: auto; }
.ghos-block--container-breit  { max-width: 1380px; margin-left: auto; margin-right: auto; }
.ghos-block--container-voll   { max-width: 100%; }

/* ── Abstände oben/unten (übersteuern .ghos-block { margin } default) */
.ghos-block--abstand-oben-keiner  { margin-top: 0 !important; padding-top: 0 !important; }
.ghos-block--abstand-oben-klein   { margin-top: 1rem !important; }
.ghos-block--abstand-oben-normal  { margin-top: 2.5rem !important; }
.ghos-block--abstand-oben-gross   { margin-top: 5rem !important; }
.ghos-block--abstand-unten-keiner { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.ghos-block--abstand-unten-klein  { margin-bottom: 1rem !important; }
.ghos-block--abstand-unten-normal { margin-bottom: 2.5rem !important; }
.ghos-block--abstand-unten-gross  { margin-bottom: 5rem !important; }

/* ── Text-Invertierung (auf dunklen Hintergründen) ─────────────────
   Greift hierarchisch: alle direkten und indirekten Children erben die
   helle Farbe. Über .ghos-prose-Klassen wird das stärker durchgesetzt,
   damit Listen, Links etc. nicht durchscheinen. */
.ghos-block--text-invertiert,
.ghos-block--text-invertiert .ghos-h2,
.ghos-block--text-invertiert .ghos-kicker,
.ghos-block--text-invertiert .ghos-lead,
.ghos-block--text-invertiert .ghos-prose,
.ghos-block--text-invertiert .ghos-prose p,
.ghos-block--text-invertiert .ghos-prose li,
.ghos-block--text-invertiert .ghos-prose strong,
.ghos-block--text-invertiert .ghos-tb__text,
.ghos-block--text-invertiert .ghos-feature__titel,
.ghos-block--text-invertiert .ghos-feature__text,
.ghos-block--text-invertiert .ghos-cards__titel,
.ghos-block--text-invertiert .ghos-cards__text,
.ghos-block--text-invertiert h1,
.ghos-block--text-invertiert h2,
.ghos-block--text-invertiert h3 {
  color: var(--thk-papier);
}
.ghos-block--text-invertiert a,
.ghos-block--text-invertiert .ghos-prose a {
  color: var(--thk-gold-hell);
}
.ghos-block--text-invertiert a:hover,
.ghos-block--text-invertiert .ghos-prose a:hover {
  color: var(--thk-papier);
}

/* ── Card-Wrapper ───────────────────────────────────────────────────
   Card ist ein zusätzlicher .ghos-block__card Wrapper INNERHALB der
   Section und INNERHALB des Containers. Er sorgt für die typische
   editorial-Box-Optik. */
.ghos-block__card {
  padding: 2rem;
  border-radius: var(--radius, 8px);
  background: var(--thk-papier);
  box-shadow: var(--shadow-soft, 0 4px 18px -8px rgba(20, 40, 69, 0.15));
  transition: box-shadow .2s ease;
}
.ghos-block--card.ghos-block--padding-klein  { padding: 1.25rem; }
.ghos-block--card.ghos-block--padding-normal { padding: 2rem; }
.ghos-block--card.ghos-block--padding-gross  { padding: 3rem; }
.ghos-block--card.ghos-block--radius-gross   { border-radius: var(--radius-lg, 14px); }
.ghos-block--card.ghos-block--schatten-ohne  { box-shadow: none; }
.ghos-block--card.ghos-block--rahmen-fein    { box-shadow: none; border: 1px solid var(--thk-line); }
.ghos-block--card.ghos-block--rahmen-akzent  { box-shadow: none; border: 1px solid var(--thk-bordeaux); }

.ghos-block--card-bg-papier        { background: var(--thk-papier); }
.ghos-block--card-bg-papier-tief   { background: var(--thk-papier-tief); }
.ghos-block--card-bg-papier-warm   { background: var(--thk-papier-warm); }
.ghos-block--card-bg-tinte         { background: var(--thk-tinte); }
.ghos-block--card-bg-tinte-dunkel  { background: var(--thk-tinte-dunkel); }
.ghos-block--card-bg-bordeaux      { background: var(--thk-bordeaux); }
.ghos-block--card-bg-bordeaux-tief { background: var(--thk-bordeaux-tief); }
.ghos-block--card-bg-gold          { background: var(--thk-gold); }
/* v0.16.0.1 — explizite Transparenz für Card-Wrapper. Übersteuert das
   hartkodierte `background: var(--thk-papier)` aus `.ghos-block__card`
   per gleicher Spezifizität + späterer Source-Order. Schatten wird
   bewusst ebenfalls weggenommen — eine transparente Card mit Schatten
   wirkt visuell unrund (schwebende Schattenkante ohne Form). Padding,
   Border-Radius und ggf. gewählter Rahmen bleiben erhalten. */
.ghos-block--card-bg-transparent   { background: transparent; box-shadow: none; }

/* Card in einer mit-Hintergrund-Section soll nicht doppelt wirken.
   Subtilere Hintergrund-Anpassung, damit zwei Schichten Farbe nicht
   matschig wirken. v0.16.0.1: transparent-Section bewusst ausgeschlossen
   — sonst kriegt eine Papier-Card in einer „transparent"-gewählten
   Section unerwartet den heavy Shadow, obwohl visuell nichts dahinter
   liegt. */
.ghos-block[class*="ghos-block--section-bg-"]:not(.ghos-block--section-bg-transparent) .ghos-block__card.ghos-block--card-bg-papier {
  box-shadow: var(--shadow-cover, 0 18px 40px -20px rgba(20, 40, 69, 0.45), 0 6px 12px -8px rgba(20, 40, 69, 0.3));
}

/* ── Editor-Gruppen-Header (Form-Sektionen) ────────────────────────
   Dezent — verlagsmässig, kein Tab-Look.
   v0.16.0.2 — Gruppe ist jetzt ein echter Block-Container (kein
   display:contents mehr), damit der Akkordeon-Collapse-Mechanismus
   sauber greifen kann. Inhaltsfelder bleiben weiter vertikal gestapelt;
   das alte Verhalten ist visuell identisch. */
.ghos-feld-gruppe { display: block; }

/* Folgegruppen-Header: klickbarer Button mit Caret. Vorher war das ein
   reiner Beschriftungs-DIV. Wir nehmen die Standard-Button-Styles weg
   und stylen die Zeile dezent. */
.ghos-feld-gruppe__kopf {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  margin: 1.25rem 0 .25rem;
  padding: .9rem 0 .35rem;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6e6258;
  background: transparent;
  border: 0;
  border-top: 1px solid #eeece4;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.ghos-feld-gruppe__kopf:hover { color: #1f2937; }
.ghos-feld-gruppe__kopf:focus-visible {
  outline: 2px solid #5a3a3a;
  outline-offset: 2px;
  border-radius: 2px;
}
.ghos-feld-gruppe__caret {
  display: inline-block;
  font-size: .85rem;
  line-height: 1;
  color: #94855f;
  transition: transform .15s ease;
}
.ghos-feld-gruppe.is-collapsed > .ghos-feld-gruppe__kopf > .ghos-feld-gruppe__caret {
  transform: rotate(-90deg);
}

/* Erste Sektion (Inhalt) ohne Header — bleibt wie vorher. */
.ghos-feld-gruppe--inhalt > .ghos-feld-gruppe__kopf { display: none; }

/* Collapse: alle Geschwister des Kopfes ausblenden. Werte bleiben im DOM. */
.ghos-feld-gruppe.is-collapsed > .ghos-feld:not(.ghos-feld-gruppe__kopf),
.ghos-feld-gruppe.is-collapsed > *:not(.ghos-feld-gruppe__kopf) {
  display: none;
}

/* Card-Felder verstecken, wenn Darstellung == Neutral. Eigene Klasse,
   damit der Akkordeon-Collapse das Feld bei aufgeklappter Gruppe nicht
   versehentlich wieder zeigt (display: !important schlüge zu hart durch
   bei späteren Erweiterungen — der Selektor hier ist spezifischer). */
.ghos-feld-wrapper .ghos-feld.is-versteckt { display: none; }

.ghos-feld-farbreihe select { flex: 1; }

/* ══════════════════════════════════════════════════════════════════
 * v0.16.7.0 — Feld-Liste-Styles (alle Listen-Typen) plus spezifisch
 *             für pflichttext_sektionen (verschachtelte Sektionen)
 * ══════════════════════════════════════════════════════════════════ */

.ghos-feld-liste {
  display: block;
}
.ghos-feld-liste__items {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: .6rem;
}
.ghos-feld-liste__item {
  display: flex;
  gap: .6rem;
  padding: .8rem;
  background: #f8f7f3;
  border: 1px solid #e0d8c6;
  border-radius: 6px;
  align-items: flex-start;
}
.ghos-feld-liste__item-aktionen {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex-shrink: 0;
}
.ghos-feld-liste__mini-btn {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border: 1px solid #d1cbb7;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: .9rem;
  color: #5a5440;
  line-height: 1;
  padding: 0;
}
.ghos-feld-liste__mini-btn:hover {
  background: #efe8d6;
  border-color: #a08c5f;
}

/* Spezifisch: pflichttext-Sektionen — etwas auffälliger,
   weil sie konzeptionell eine Stufe höher stehen (jedes Item ist
   selbst eine Sektion mit eigenem Inhalts-Typ). */
.ghos-pflichttext-sektion {
  background: #fdfaf2;
  border-color: #c9b889;
  border-left-width: 3px;
  border-left-color: #7a2c1e;  /* THK-Bordeaux als Akzent */
}

/* Innere Akkordeon-Liste innerhalb einer Akkordeon-Sektion: noch eine
   Einrückung, damit die Verschachtelung visuell klar wird. */
.ghos-pflichttext-sektion [data-sektion-body="akkordeon"] .ghos-feld-liste__item {
  background: #fff;
  border-color: #d8cdb8;
  border-left: 2px solid #b08e3a;  /* THK-Gold-Akzent für innere Items */
}
