/* content-base.css - Stile für das Sektions-basierte Content-System.
   Ein Block pro Stilvorlage (cs-*), Namen halten sich an die "type"-Werte
   aus _content-renderer.php. Neue Stilvorlagen kommen hier immer als
   eigener .cs-* Block dazu. */

/* Gemeinsame "Papier auf dunklem Grund"-Optik für alle Sektionen AUSSER
   Hero (der bleibt bewusst vollflächig mit eigenem Bild) - helles, fast
   weißes Blatt mit Schatten, wie auf dem Boden liegend, statt der
   früheren dunklen Verlaufs-Karte. Textfarben innerhalb dieser Sektionen
   werden weiter unten gezielt auf dunkel umgestellt, da die üblichen
   --text/--text-muted-Variablen für dunklen Untergrund gedacht sind. */
.cs-text2col, .cs-quote, .cs-timeline, .cs-tabsblock, .cs-faq, .cs-subpages, .cs-gallery, .cs-pageselect{
  position:relative; overflow:hidden;
  background:#fbfaf8;
  border:none; border-radius:20px;
  margin:36px auto; max-width:1200px;
  box-shadow:0 24px 60px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.28);
  color:#2a2a35;
}
.cs-text2col::before, .cs-quote::before, .cs-timeline::before, .cs-tabsblock::before,
.cs-faq::before, .cs-subpages::before, .cs-gallery::before, .cs-pageselect::before{
  content:''; position:absolute; top:-60px; left:-60px; width:220px; height:220px;
  background:radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity:.10; pointer-events:none;
}
.cs-text2col::after, .cs-quote::after, .cs-timeline::after, .cs-tabsblock::after,
.cs-faq::after, .cs-subpages::after, .cs-gallery::after, .cs-pageselect::after{
  content:''; position:absolute; bottom:-60px; right:-60px; width:220px; height:220px;
  background:radial-gradient(circle, var(--blue) 0%, transparent 70%);
  opacity:.10; pointer-events:none;
}
.cs-text2col > *, .cs-quote > *, .cs-timeline > *, .cs-tabsblock > *,
.cs-faq > *, .cs-subpages > *, .cs-gallery > *, .cs-pageselect > *{ position:relative; }

/* Textfarben innerhalb der "Papier"-Sektionen auf dunkel umstellen - die
   Section-interne Schrift war bisher hell (für dunklen Hintergrund
   gedacht) und wäre auf dem neuen hellen Papier kaum lesbar. */
.cs-text2col, .cs-quote, .cs-timeline, .cs-tabsblock, .cs-faq, .cs-subpages, .cs-gallery, .cs-pageselect{
  --text: #2a2a35; --text-muted: #5a5a68; --text-faint: #8a8a96;
}
.cs-col h2, .cs-col h3, .cs-quote blockquote p, .cs-timeline-card h3,
.cs-tabsblock-panel, .cs-faq-item summary, .cs-subpages-panel h3, .cs-gallery-title,
.cs-pageselect-title{ color:#1a1a24; }
.cs-faq-item, .cs-timeline-card{ background:#fff; border:1px solid rgba(0,0,0,.08); box-shadow:0 2px 8px rgba(0,0,0,.06); }
.cs-timeline-tab, .cs-tabsblock-tab, .cs-subpages-navitem{ background:#fff; border-color:rgba(0,0,0,.12); color:#5a5a68; }
.cs-pageselect-card{ background:#fff; border-color:rgba(0,0,0,.1); }
.cs-pageselect-desc{ color:#5a5a68; }

/* Hero mit Bild - kräftigerer, mehrstufiger Verlauf für bessere Lesbarkeit
   (vorher war das Bild kaum abgedunkelt und wirkte "roh"/unbearbeitet). */
/* Hero mit Bild - linke Textfläche (~350px, mit eigenem Verlauf+Highlights
   passend zum Rest der Sektionen) über dem Hintergrundbild, statt zentriertem
   Overlay-Text auf dem ganzen Bild. */
.cs-hero{
  background-size:cover; background-position:center; min-height:420px;
  display:flex; align-items:center;
  position:relative; border-radius:20px; overflow:hidden;
  margin:36px auto; max-width:1200px;
}
.cs-hero-panel{
  position:relative; width:350px; max-width:85%; flex:none;
  padding:40px 32px; margin:24px;
  background:linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border:1px solid var(--line); border-radius:16px; overflow:hidden;
}
.cs-hero-panel::before{
  content:''; position:absolute; top:-50px; left:-50px; width:180px; height:180px;
  background:radial-gradient(circle, var(--orange) 0%, transparent 70%); opacity:.16; pointer-events:none;
}
.cs-hero-panel::after{
  content:''; position:absolute; bottom:-50px; right:-50px; width:180px; height:180px;
  background:radial-gradient(circle, var(--blue) 0%, transparent 70%); opacity:.16; pointer-events:none;
}
.cs-hero-panel > *{ position:relative; }
.cs-hero-panel h1{ font-size:1.7rem; line-height:1.25; margin:0 0 14px; color:#fff; }
.cs-hero-text{ font-size:15px; color:rgba(255,255,255,.85); line-height:1.6; margin:0 0 20px; }
.cs-hero-text p{ margin:0 0 10px; }

/* 1/2/3-spaltiger Text - Spaltenzahl kommt jetzt aus dem Admin-Editor
   (cs-text-cols-1/2/3), statt fest auf 2 zu stehen. */
.cs-text2col{ display:grid; gap:40px; padding:44px 40px; }
.cs-text-cols-1{ grid-template-columns:1fr; max-width:760px; }
.cs-text-cols-2{ grid-template-columns:1fr 1fr; }
.cs-text-cols-3{ grid-template-columns:1fr 1fr 1fr; }
.cs-col{ font-size:1rem; line-height:1.7; }
.cs-col.cs-col-image img{ width:100%; border-radius:12px; display:block; }
.cs-col-caption{ display:block; font-size:.8rem; color:var(--text-muted); margin-top:8px; }
.cs-col h2, .cs-col h3{ margin-top:0; }

.cs-quote{ padding:50px 40px; text-align:center; }
.cs-quote blockquote{ margin:0 0 20px; }
.cs-quote blockquote p{ font-size:1.4rem; font-style:italic; line-height:1.5; color:var(--text); margin:0; }
.cs-quote cite{ display:block; margin-top:16px; font-style:normal; font-size:.85rem; color:var(--text-muted); }

.cs-btn{
  display:inline-block; background:var(--orange); color:#1a0f00; font-weight:700;
  padding:12px 26px; border-radius:100px; text-decoration:none; font-size:.92rem;
}
.cs-btn:hover{ background:var(--orange-light); }

/* Zeitleiste (timeline) */
.cs-timeline{ padding:44px 36px; }
.cs-timeline-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; border-bottom:1px solid var(--line); padding-bottom:14px; }
.cs-timeline-tab{
  background:var(--surface); border:1px solid var(--line-strong); color:var(--text-muted);
  padding:8px 18px; border-radius:100px; font-size:.85rem; font-weight:700; cursor:pointer; font-family:inherit;
}
.cs-timeline-tab.is-active{ background:var(--orange); border-color:var(--orange); color:#1a0f00; }
.cs-timeline-tab:hover:not(.is-active){ border-color:var(--orange); color:var(--orange-light); }
.cs-timeline-panel{ display:none; }
.cs-timeline-panel.is-active{ display:block; }
.cs-timeline-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-m); padding:22px 26px; margin-bottom:20px;
}
.cs-timeline-card h3{ margin:0 0 10px; font-size:1.2rem; }
.cs-timeline-card p{ margin:0 0 10px; color:var(--text-muted); }
.cs-timeline-date{ font-size:.78rem; color:var(--text-faint); font-weight:600; }
.cs-timeline-article{ font-size:.98rem; line-height:1.7; }

/* Tabs (einfacher, ohne Karte - reiner Textwechsel) */
.cs-tabsblock{ padding:44px 36px; }
.cs-tabsblock-nav{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:24px; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:6px; }
.cs-tabsblock-tab{
  flex:1; background:none; border:none; color:var(--text-muted); padding:10px 16px; border-radius:7px;
  font-size:.85rem; font-weight:600; cursor:pointer; font-family:inherit;
}
.cs-tabsblock-tab.is-active{ background:var(--orange); color:#1a0f00; }
.cs-tabsblock-panel{ display:none; font-size:1rem; line-height:1.7; }
.cs-tabsblock-panel.is-active{ display:block; }

/* FAQ (Akkordeon, natives <details>) */
.cs-faq{ padding:44px 36px; }
.cs-faq-item{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:16px 20px; margin-bottom:12px;
}
.cs-faq-item summary{ cursor:pointer; font-weight:700; font-size:1rem; list-style:none; }
.cs-faq-item summary::-webkit-details-marker{ display:none; }
.cs-faq-item summary::before{ content:'+ '; color:var(--orange); }
.cs-faq-item[open] summary::before{ content:'– '; }
.cs-faq-answer{ margin-top:12px; font-size:.94rem; line-height:1.6; color:var(--text-muted); }

/* Unterseiten-Auswahl (subpages) - Liste oben, darunter immer ein
   Hero-artiges Bild + Text zum ausgewählten Eintrag. */
.cs-subpages{ padding:44px 36px; }
.cs-subpages-nav{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.cs-subpages-navitem{
  background:var(--surface); border:1px solid var(--line-strong); color:var(--text-muted);
  padding:9px 18px; border-radius:100px; font-size:.85rem; font-weight:700; cursor:pointer; font-family:inherit;
}
.cs-subpages-navitem.is-active{ background:var(--orange); border-color:var(--orange); color:#1a0f00; }
.cs-subpages-navitem:hover:not(.is-active){ border-color:var(--orange); color:var(--orange-light); }
.cs-subpages-panel{ display:none; }
.cs-subpages-panel.is-active{ display:block; }
.cs-subpages-hero{
  width:100%; height:320px; background-size:cover; background-position:center;
  border-radius:var(--radius-m); margin-bottom:20px;
}
.cs-subpages-panel h3{ font-size:1.4rem; margin:0 0 12px; }

/* Inhalt eines Unterseiten-Eintrags - jetzt voller Editor.js-Inhalt (siehe
   admin-content-editor.php), nicht mehr nur einfacher Text. Deckt dieselben
   Blocktypen ab wie der Blog (_blog-renderer.php erzeugt identisches HTML),
   deshalb bewusst eigenständig hier statt blog-base.css zusätzlich zu laden. */
.cs-subpages-content{ font-size:1rem; line-height:1.7; margin-bottom:18px; }
.cs-subpages-content h2, .cs-subpages-content h3, .cs-subpages-content h4{ margin:24px 0 12px; }
.cs-subpages-content h2:first-child, .cs-subpages-content h3:first-child, .cs-subpages-content h4:first-child{ margin-top:0; }
.cs-subpages-content p{ margin:0 0 16px; }
.cs-subpages-content p:last-child{ margin-bottom:0; }
.cs-subpages-content ul, .cs-subpages-content ol{ margin:0 0 16px; padding-left:22px; }
.cs-subpages-content li{ margin-bottom:6px; }
.cs-subpages-content blockquote{
  border-left:3px solid var(--orange); margin:20px 0; padding:4px 0 4px 18px; font-style:italic; color:var(--text-muted);
}
.cs-subpages-content .blog-delimiter{ border:none; border-top:2px dotted var(--line-strong); margin:28px auto; width:70px; }
.cs-subpages-content .blog-embed{ position:relative; padding-bottom:56.25%; height:0; margin:20px 0; border-radius:var(--radius-m); overflow:hidden; }
.cs-subpages-content .blog-embed iframe{ position:absolute; top:0; left:0; width:100%; height:100%; border:none; }
.cs-subpages-content .blog-grid-block{ display:grid; gap:16px; margin:20px 0; }
.cs-subpages-content .blog-grid-cell{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden; }
.cs-subpages-content .blog-grid-cell-image img{ width:100%; display:block; }
.cs-subpages-content .blog-grid-cell-caption{ display:block; padding:8px 12px; font-size:.8rem; color:var(--text-muted); }
.cs-subpages-content .blog-grid-cell-text{ padding:14px 16px; font-size:.92rem; line-height:1.6; }
.cs-subpages-content .blog-image{ margin:20px 0; }
.cs-subpages-content .blog-image img{ width:100%; border-radius:var(--radius-m); display:block; }
.cs-subpages-content .blog-image figcaption{ font-size:.82rem; color:var(--text-muted); margin-top:8px; text-align:center; }
@media (max-width:600px){
  .cs-subpages-content .blog-grid-block{ grid-template-columns:1fr !important; }
}

/* Galerie mit Lightbox */
.cs-gallery{ padding:36px; }
.cs-gallery-title{ font-size:1.4rem; margin:0 0 10px; }
.cs-gallery-desc{ font-size:.96rem; color:var(--text-muted); line-height:1.6; margin-bottom:22px; max-width:720px; }
.cs-gallery-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:12px;
}
.cs-gallery-thumb{
  aspect-ratio:1/1; background-size:cover; background-position:center; border:none; border-radius:12px;
  cursor:pointer; padding:0; transition:transform .15s;
}
.cs-gallery-thumb:hover{ transform:scale(1.03); }

/* Seiten-Vorschau (pageselect / "Pseudoblock") - kuratierte Auswahl von
   Content-Holder-Seiten, als anklickbare Karten. */
.cs-pageselect{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; padding:36px;
}
.cs-pageselect-card{
  display:flex; flex-direction:column; align-items:flex-start; text-align:left;
  background:var(--surface-2); border:1px solid var(--line-strong); border-radius:14px;
  overflow:hidden; text-decoration:none; transition:transform .15s, border-color .15s;
}
.cs-pageselect-card:hover{ transform:translateY(-3px); border-color:var(--orange); }
.cs-pageselect-image{
  width:100%; height:150px; background-size:cover; background-position:center;
}
.cs-pageselect-title{ color:var(--text); font-weight:700; font-size:1rem; padding:16px 18px 0; }
.cs-pageselect-card:has(.cs-pageselect-image) .cs-pageselect-title{ padding-top:14px; }
.cs-pageselect-card:not(:has(.cs-pageselect-image)){ align-items:center; text-align:center; justify-content:center; padding:26px 18px; min-height:100px; }
.cs-pageselect-desc{ color:var(--text-muted); font-size:.85rem; line-height:1.5; padding:6px 18px 18px; }

.cs-lightbox-overlay{
  display:none; position:fixed; inset:0; z-index:9999; background:rgba(5,6,18,.94);
  align-items:center; justify-content:center; flex-direction:column;
}
.cs-lightbox-overlay.is-open{ display:flex; }
.cs-lightbox-img{ max-width:88vw; max-height:78vh; border-radius:10px; object-fit:contain; }
.cs-lightbox-caption{ color:rgba(255,255,255,.85); font-size:.9rem; margin-top:16px; text-align:center; max-width:640px; }
.cs-lightbox-close{
  position:absolute; top:22px; right:26px; background:rgba(255,255,255,.1); border:none; color:#fff;
  font-size:1.6rem; width:44px; height:44px; border-radius:50%; cursor:pointer; line-height:1;
}
.cs-lightbox-close:hover{ background:rgba(255,255,255,.2); }
.cs-lightbox-prev, .cs-lightbox-next{
  position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.1); border:none; color:#fff;
  font-size:2rem; width:52px; height:52px; border-radius:50%; cursor:pointer; line-height:1;
}
.cs-lightbox-prev{ left:20px; }
.cs-lightbox-next{ right:20px; }
.cs-lightbox-prev:hover, .cs-lightbox-next:hover{ background:rgba(255,255,255,.2); }

@media (max-width:720px){
  .cs-text2col{ padding:32px 22px; }
  .cs-text-cols-2, .cs-text-cols-3{ grid-template-columns:1fr; gap:24px; }
  .cs-hero-panel{ width:100%; max-width:none; margin:16px; }
  .cs-hero-panel h1{ font-size:1.5rem; }
  .cs-quote blockquote p{ font-size:1.15rem; }
  .cs-tabsblock-nav{ flex-direction:column; }
  .cs-subpages-hero{ height:200px; }
  .cs-lightbox-prev, .cs-lightbox-next{ width:40px; height:40px; font-size:1.5rem; }
  .cs-lightbox-prev{ left:8px; } .cs-lightbox-next{ right:8px; }
}

/* Container-Übersicht (mini-blog-artig) - eigene, schlankere Kartenliste,
   getrennt von den .cs-*-Sektionsstilen oben. */
.cc-listing-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:36px 0 28px; }
.cc-intro{ color:var(--text-muted); max-width:640px; margin-top:8px; }
.cc-empty{ color:var(--text-muted); padding:40px 0; text-align:center; }
.cc-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:20px; padding-bottom:60px; }
.cc-card{
  display:block; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:20px 22px; text-decoration:none; color:inherit; transition:transform .15s;
}
.cc-card:hover{ transform:translateY(-3px); }
.cc-card-title{ font-size:1.05rem; margin:0; }
/* Wiederverwendbare "Papier"-Fläche für einfache, reine Text-/Rechtsseiten
   (Impressum, Cookie-Richtlinie usw.) - dieselbe Optik wie die
   .cs-*-Sektionen oben, aber als eigene, einzeln aufrufbare Klasse für
   Seiten, die nicht über den visuellen Baukasten laufen. */
.sq-legal-page-sheet{
  max-width:750px; margin:44px auto 60px; padding:44px 48px 60px;
  background:#fbfaf8; border-radius:20px;
  box-shadow:0 24px 60px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.28);
  color:#2a2a35; line-height:1.8;
  --text: #2a2a35; --text-muted: #5a5a68; --text-faint: #8a8a96;
}
.sq-legal-page-sheet h1{ color:#1a1a24; margin-bottom:24px; }
.sq-legal-page-sheet a{ color:var(--orange-light); }
@media (max-width:640px){ .sq-legal-page-sheet{ padding:32px 24px 44px; } }
/* FAQ: Kontrast - Einträge hell wie die übrigen Papier-Blöcke */
.cs-faq .cs-faq-item{
  background:#fff;
  border:1px solid rgba(0,0,0,.1);
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.cs-faq .cs-faq-item summary{ color:#1a1a24; }
.cs-faq .cs-faq-item[open]{ border-color:rgba(255,122,26,.45); }
.cs-faq .cs-faq-answer{ color:#3d3d4a; }
.cs-faq .cs-faq-answer a{ color:#c25a00; text-decoration:underline; }