/* GB Saga-Struktur – nutzt die Variablen und Klassen des Themes (.page-hero, .back-link, .section-label) */
.gbs-section { background: #110e0b; padding: 5rem 4rem 7rem; }
.gbs-inner { max-width: 1100px; margin: 0 auto; }
.gbs-breadcrumb { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 3rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gbs-breadcrumb a { color: var(--muted); }
.gbs-breadcrumb span { opacity: 0.5; }
.gbs-block { margin-top: 4.5rem; }
.gbs-muted { color: var(--muted); }

/* Fliesstext aus dem Block-Editor */
.gbs-content { font-size: 1.12rem; line-height: 1.9; color: var(--parchment-dark); }
.gbs-content > * + * { margin-top: 1.2em; }
.gbs-content h2, .gbs-content h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; color: var(--parchment); line-height: 1.2; margin-top: 2em; }
.gbs-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.gbs-content h3 { font-size: 1.5rem; }
.gbs-content a { color: var(--gold-light); opacity: 1; border-bottom: 1px solid rgba(196,164,90,0.3); }
.gbs-content img { max-width: 100%; height: auto; }
.gbs-content blockquote { border-left: 1px solid var(--gold); padding-left: 1.5rem; font-style: italic; }
.gbs-text, .gbs-lead { max-width: 760px; }

/* Faktenliste (Haus, Sitz, Ehe …) */
.gbs-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; margin: 0 0 2.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(154,124,58,0.18); border-bottom: 1px solid rgba(154,124,58,0.18); }
.gbs-facts dt { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); opacity: 0.8; padding-top: 0.35rem; }
.gbs-facts dd { color: var(--parchment); }
.gbs-facts a { color: var(--parchment); opacity: 1; }
.gbs-facts a:hover { color: var(--gold-light); }

/* Figur */
.gbs-figur-grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 4rem; align-items: start; }
.gbs-figur-grid.no-img { grid-template-columns: 1fr; max-width: 820px; }
.gbs-portrait img { width: 100%; height: auto; display: block; border: 1px solid rgba(154,124,58,0.25); }

/* Haus */
.gbs-haus-intro { display: grid; grid-template-columns: 220px 1fr; gap: 4rem; align-items: start; }
.gbs-haus-intro.no-img { grid-template-columns: 1fr; max-width: 820px; }
.gbs-wappen img { width: 100%; height: auto; display: block; }
.gbs-verweise ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem 2.5rem; }
.gbs-verweise a { color: var(--parchment); opacity: 0.85; }

/* Karten */
.gbs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px; }
.gbs-card { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 2rem 1.6rem; background: rgba(58,53,48,0.3); border: 1px solid rgba(154,124,58,0.12); opacity: 1; transition: background 0.3s; }
.gbs-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--gold) 0%, transparent 100%); }
.gbs-card:hover { background: rgba(58,53,48,0.5); }
.gbs-card-img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 1rem; }
.gbs-card-img.is-wappen { aspect-ratio: 1; object-fit: contain; }
.gbs-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 300; color: var(--parchment); line-height: 1.15; }
.gbs-card-rolle { font-size: 0.85rem; font-style: italic; color: var(--parchment-dark); opacity: 0.7; }
.gbs-card-ehe { font-size: 0.8rem; color: var(--gold-light); opacity: 0.8; }

/* Entwurfs-Markierung – nur für eingeloggte Redaktion sichtbar */
.gbs-draft { outline: 1px dashed rgba(196,164,90,0.6); outline-offset: -4px; }
.gbs-badge { position: absolute; top: 0.6rem; right: 0.6rem; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; background: var(--wine); color: var(--parchment); padding: 0.2rem 0.5rem; }

/* Stammbaum mit Hotspots */
.gbs-baum { position: relative; border: 1px solid rgba(154,124,58,0.2); background: #0d0b08; }
.gbs-baum-canvas { position: relative; }
.gbs-baum-img { display: block; width: 100%; height: auto; }
.gbs-spot { position: absolute; display: block; opacity: 1; border: 1px solid transparent; transition: border-color 0.2s, background 0.2s; }
.gbs-spot:hover, .gbs-spot:focus-visible { border-color: var(--gold-light); background: rgba(196,164,90,0.12); }
.gbs-zoom-btn { position: absolute; right: 1rem; bottom: 1rem; padding: 0.5rem 1rem; background: rgba(26,22,18,0.85); color: var(--parchment-dark); border: 1px solid rgba(154,124,58,0.4); font-family: 'EB Garamond', serif; letter-spacing: 0.1em; cursor: pointer; }
.gbs-zoom-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.gbs-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(10,8,6,0.97); overflow: auto; -webkit-overflow-scrolling: touch; }
.gbs-overlay .gbs-baum-canvas { margin: 0 auto; }
.gbs-overlay-close { position: fixed; top: 1rem; right: 1.5rem; z-index: 501; font-size: 2.2rem; line-height: 1; background: none; border: none; color: var(--parchment); cursor: pointer; }
body.gbs-noscroll { overflow: hidden; }

@media (max-width: 900px) {
  .gbs-section { padding: 3.5rem 1.5rem 5rem; }
  .gbs-figur-grid, .gbs-haus-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .gbs-wappen { max-width: 180px; }
  .gbs-facts { grid-template-columns: 1fr; gap: 0.2rem; }
  .gbs-facts dd { margin-bottom: 0.8rem; }
  .gbs-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Gebauter Stammbaum */
.gbs-tree { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 1rem 0; }
.gbs-tree svg { display: block; width: 100%; height: auto; overflow: visible; font-family: 'EB Garamond', Georgia, serif; }
.gbs-tree .t-lines path { fill: none; stroke: var(--gold); stroke-width: 1.1; opacity: 0.75; }
.gbs-tree .t-labels text { fill: var(--gold); font-size: 12px; text-anchor: middle; }
.gbs-tree .t-hidden { stroke-dasharray: 4 4; opacity: 0.45; }
.gbs-tree .t-labels .t-hidden { opacity: 0.6; font-style: italic; }
.gbs-tree .t-bg { fill: #221c16; transition: fill 0.2s; }
.gbs-tree .t-gl { fill: none; stroke: var(--gold); stroke-width: 1.2; transition: stroke 0.2s; }
.gbs-tree .t-thin { stroke-width: 0.5; opacity: 0.6; }
.gbs-tree .t-orn { stroke-width: 0.9; }
.gbs-tree .t-dot { fill: var(--gold); }
.gbs-tree .t-hole { fill: var(--ink); }
.gbs-tree .t-name { fill: var(--parchment); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 16px; text-anchor: middle; }
.gbs-tree .t-date { fill: var(--parchment-dark); opacity: 0.75; font-size: 12px; text-anchor: middle; }
.gbs-tree .t-hover { transform-box: fill-box; transform-origin: center; transition: transform 0.2s ease; }
.gbs-tree a.t-link { opacity: 1; }
.gbs-tree a.t-link:hover .t-hover, .gbs-tree a.t-link:focus-visible .t-hover { transform: scale(1.12); }
.gbs-tree a.t-link:hover .t-bg, .gbs-tree a.t-link:focus-visible .t-bg { fill: #2e2419; }
.gbs-tree a.t-link:hover .t-gl, .gbs-tree a.t-link:focus-visible .t-gl { stroke: var(--gold-light); }
.gbs-tree .t-draft { opacity: 0.55; }
.gbs-tree .t-draft .t-gl { stroke-dasharray: 3 3; }

/* Figur: Leitsatz, Steckbrief, Porträttext, Zitat */
.gbs-figur-side { align-self: center; }
.gbs-leitsatz { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--parchment); margin: 0 0 2rem; }
.gbs-steckbrief { margin-bottom: 0; }
.gbs-steckbrief dd { line-height: 1.6; }
.gbs-portraittext { margin-top: 4rem; max-width: none; columns: 1; }
.gbs-zitat { margin: 4rem auto 0; max-width: 820px; text-align: center; }
.gbs-zitat blockquote { border: none; padding: 0; }
.gbs-zitat blockquote p { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.4; color: var(--gold-light); }
.gbs-zitat blockquote p::before { content: '„'; }
.gbs-zitat blockquote p::after { content: '“'; }
.gbs-zitat figcaption { margin-top: 1rem; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.gbs-zitat::before { content: ''; display: block; width: 60px; height: 1px; background: var(--gold); opacity: 0.5; margin: 0 auto 2.5rem; }
@media (max-width: 900px) {
  .gbs-portraittext { margin-top: 2.5rem; }
  .gbs-zitat { margin-top: 2.5rem; }
}

/* Cover Reveal */
.gbs-reveal { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 5rem; align-items: center; }
.gbs-reveal.no-img { grid-template-columns: 1fr; max-width: 760px; }
.gbs-reveal-cover { position: relative; }
.gbs-reveal-cover::before { content: ''; position: absolute; inset: -12%; background: radial-gradient(ellipse at center, rgba(196,164,90,0.22) 0%, transparent 65%); z-index: 0; pointer-events: none; }
.gbs-reveal-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; box-shadow: 0 30px 60px rgba(0,0,0,0.55); border: 1px solid rgba(154,124,58,0.25);
  animation: gbsReveal 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gbsReveal { from { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.gbs-reveal-info { animation: gbsFade 1.2s 0.5s ease both; }
@keyframes gbsFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gbs-reveal-img, .gbs-reveal-info { animation: none; } }
.gbs-reveal-badge { display: inline-block; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 0.35rem 0.9rem; margin-bottom: 1.8rem; }
.gbs-reveal-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; color: var(--parchment); margin: 0 0 1rem; }
.gbs-reveal-meta { font-style: italic; color: var(--parchment-dark); opacity: 0.8; margin-bottom: 2rem; }
.gbs-reveal-text { font-size: 1.12rem; line-height: 1.8; color: var(--parchment-dark); margin-bottom: 2.5rem; }
.gbs-reveal-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.gbs-reveal-hinweis { margin-top: 1.5rem; font-size: 0.78rem; color: var(--muted); }
.gbs-reveal-content { margin: 5rem auto 0; }
@media (max-width: 900px) {
  .gbs-reveal { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .gbs-reveal-cover { max-width: 300px; margin: 0 auto; }
  .gbs-reveal-buttons { justify-content: center; }
  .gbs-reveal-content { margin-top: 3rem; text-align: left; }
}

/* Cover Reveal: Stummtaste */
.gbs-mute { position: absolute; z-index: 2; right: 0.9rem; bottom: 0.9rem; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.8rem; background: rgba(26,22,18,0.82); border: 1px solid rgba(154,124,58,0.45); color: var(--parchment-dark);
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.25s, color 0.25s; }
.gbs-mute:hover, .gbs-mute:focus-visible { border-color: var(--gold); color: var(--gold-light); outline: none; }
.gbs-mute svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.gbs-mute .i-on { display: none; }
.is-sound .gbs-mute .i-on { display: block; }
.is-sound .gbs-mute .i-off { display: none; }
.is-sound .gbs-mute { color: var(--gold-light); border-color: var(--gold); }
@media (max-width: 900px) { .gbs-mute { text-align: left; } }

.gbs-reveal-text p { margin: 0 0 1.1em; }
.gbs-reveal-text p:last-child { margin-bottom: 0; }
.gbs-reveal-reihe { line-height: 1.9; }
