/* Firestarter-Website – Farbschema aus dem Phönix-Logo abgeleitet
   ============================================================================
   Inhaltsverzeichnis (in dieser Reihenfolge in der Datei):
   1. Grundlagen (Farben, Schrift, Links, globale Textfarben)
   2. Kopf- und Fußzeile
   3. Formulare (site-weit: Kontaktformular, Admin, Login)
   4. Buttons
   5. Karten, Bilder & Lightbox (von mehreren Modulen gemeinsam genutzt)
   6. Bildausschnitt-Auswahl im Admin (Fokuspunkt / Ausschnitt-Rahmen)
   7. Inhalts-Module (je ein Abschnitt pro Datei in modules/*.module.php)
   8. Frontend-Editor (nur im Bearbeitungsmodus, ?bearbeiten=1)
   9. Medien-Picker (Bootstrap-Modal für Bild-/Video-Auswahl)
   10. Sonstiges (Statistik-Balken, Nach-oben-Button, Scroll-Reveal-Animation)
   ============================================================================ */

/* ==========================================================================
   1. GRUNDLAGEN
   ========================================================================== */

:root {
    --fs-rot: #e8321a;
    --fs-orange: #ff8c00;
    --fs-gold: #ffc93c;
    --fs-hintergrund: #14100e;
    --fs-hintergrund-hell: #1e1815;
    --fs-text: #f2ece6;
    --fs-text-muted: #b8aca2;
    --fs-verlauf: linear-gradient(90deg, var(--fs-rot), var(--fs-orange), var(--fs-gold));
    --fs-navbar-deckkraft: 0.92;
    --fs-footer-deckkraft: 1;
    /* Einheitlicher "erhoben wirkender" Schatten für Karten und Bilder - klar nach
       unten rechts versetzt statt stark verlaufend/diffus. */
    --fs-bild-schatten: 6px 10px 16px rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--fs-hintergrund);
    color: var(--fs-text);
    font-family: "Segoe UI", Roboto, system-ui, sans-serif;
}

/* Fußzeile bleibt immer am unteren Bildschirmrand, auch wenn die Seite selbst wenig
   Inhalt hat (sonst würde sie direkt unter dem Inhalt "hochrutschen") - klassisches
   Sticky-Footer-Muster: body wird zur Flex-Spalte über die volle Bildschirmhöhe,
   <main> wächst und schiebt die Fußzeile ans Ende. Nur auf .fs-website-body (die
   normalen Seiten mit Kopf-/Fußzeile aus includes/header.php+footer.php) - NICHT
   auf body allgemein, sonst kollidiert das mit der eigenen Zentrierung von
   Login/Freischaltcode-Seite (admin/login.php, zugang.php, admin/setup.php), die
   ihr eigenes, einfaches Flex-Layout direkt am body mitbringen. */
.fs-website-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.fs-website-body main {
    flex: 1 0 auto;
}

/* Pro-Seite-Hintergrundbild: eigener fixer Layer hinter dem gesamten Inhalt, damit
   Helligkeit/Transparenz nur das Bild betreffen und nicht den Text lesbar machen -
   die dunkle body-Hintergrundfarbe scheint durch die Transparenz hindurch. */
.fs-seiten-hintergrund {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    pointer-events: none;
}

a,
a:visited {
    color: var(--fs-gold);
}

a:hover {
    color: var(--fs-orange);
}

/* Bootstraps Standard-Grau für ".text-muted"/".form-text" (z.B. Hilfetexte unter
   Formularfeldern im Admin-Bereich) ist auf helle Hintergründe ausgelegt und auf
   unserem dunklen Feuer-Theme kaum lesbar - auf die Theme-Graufarbe umstellen. */
.text-muted,
.form-text {
    color: var(--fs-text-muted) !important;
}

/* ==========================================================================
   2. KOPF- UND FUSSZEILE
   ========================================================================== */

.fs-navbar {
    background-color: rgba(20, 16, 14, var(--fs-navbar-deckkraft));
    border-bottom: 2px solid transparent;
    border-image: var(--fs-verlauf) 1;
}

.fs-navbar .navbar-brand,
.fs-navbar .nav-link,
.fs-navbar .navbar-brand:visited,
.fs-navbar .nav-link:visited {
    color: var(--fs-text);
    font-weight: 600;
}

.fs-navbar .nav-link:hover {
    color: var(--fs-gold);
}

/* Mobile-Menü-Button (Hamburger-Icon) - Bootstraps Standard-Icon ist auf hellen
   Hintergründen gedacht und auf unserem dunklen Nav kaum zu erkennen. */
.fs-navbar .navbar-toggler {
    border-color: rgba(255, 140, 0, 0.5);
}

.fs-navbar .navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff8c00' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.fs-edit-toggle,
.fs-edit-toggle:visited {
    color: var(--fs-gold) !important;
}

.fs-dropdown-menu {
    background-color: var(--fs-hintergrund-hell);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.fs-dropdown-menu .dropdown-item,
.fs-dropdown-menu .dropdown-item:visited {
    color: var(--fs-text);
}

.fs-dropdown-menu .dropdown-item:hover,
.fs-dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 140, 0, 0.15);
    color: var(--fs-gold);
}

.fs-footer {
    flex-shrink: 0;
    background-color: rgba(30, 24, 21, var(--fs-footer-deckkraft));
    color: var(--fs-text-muted);
    border-top: 2px solid transparent;
    border-image: var(--fs-verlauf) 1;
}

/* ==========================================================================
   3. FORMULARE (site-weit: Kontaktformular, Admin-Formulare, Login)
   ========================================================================== */

.fs-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-control,
.form-select {
    background-color: var(--fs-hintergrund-hell);
    color: var(--fs-text);
    border-color: rgba(255, 140, 0, 0.3);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--fs-hintergrund-hell);
    color: var(--fs-text);
    border-color: var(--fs-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.form-control::placeholder {
    color: var(--fs-text-muted);
}

.form-label,
.form-check-label {
    color: var(--fs-text);
}

/* Einklappbarer Bereich in Admin-Formularen (z.B. Hintergrundbild-Einstellungen) */
.fs-collapse-pfeil {
    transition: transform 0.2s ease;
}

[aria-expanded="true"] .fs-collapse-pfeil {
    transform: rotate(180deg);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.fs-btn-fire {
    background: var(--fs-verlauf);
    border: none;
    color: #1a1210;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(232, 50, 26, 0.3);
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fs-btn-fire:hover {
    filter: brightness(1.1);
    color: #1a1210;
    box-shadow: 0 4px 22px rgba(255, 140, 0, 0.55);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. KARTEN, BILDER & LIGHTBOX (von mehreren Modulen gemeinsam genutzt)
   ========================================================================== */

.fs-card {
    background-color: var(--fs-hintergrund-hell);
    border: 1px solid rgba(255, 140, 0, 0.25);
    color: var(--fs-text);
    box-shadow: var(--fs-bild-schatten);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.fs-card:hover {
    transform: translateY(-4px);
    border-color: var(--fs-orange);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 22px rgba(255, 140, 0, 0.28);
}

.fs-card .card-title {
    color: var(--fs-gold);
}

/* Berichte-Karten sollen unabhängig vom Seitenverhältnis des Titelbilds immer gleich
   hoch aussehen - object-fit:cover beschneidet das Bild, object-position (Bildausschnitt,
   pro Bericht einstellbar) legt fest, welcher Bereich dabei sichtbar bleibt. */
.fs-artikel-karten-bild {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Titelbild auf der Bericht-Detailseite mit gewähltem Ausschnitt (Rahmen) - gleiches
   Zielverhältnis wie die Berichte-Karte, damit der gespeicherte Ausschnitt nicht verzerrt. */
.fs-artikel-bild-ausschnitt {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

/* Bilder innerhalb von Freitext-Inhalten (Textmodul, Berichte) dürfen nie breiter als der Container werden */
.fs-text-block img,
.fs-artikel-inhalt img {
    max-width: 100%;
    height: auto;
}

/* Tabellen innerhalb von Freitext-Inhalten (Textmodul, Berichte) */
.fs-text-block table,
.fs-artikel-inhalt table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.fs-text-block th,
.fs-text-block td,
.fs-artikel-inhalt th,
.fs-artikel-inhalt td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.fs-text-block th,
.fs-artikel-inhalt th {
    background: rgba(255, 140, 0, 0.15);
    color: var(--fs-gold);
}

.fs-text-block tbody tr:nth-child(even),
.fs-artikel-inhalt tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* Bilder sollen generell etwas erhoben wirken (Titelbild, Bilder im Bericht-Text,
   Bildergalerie, Bild+Text-Modul) - Icon-Grid-Icons und das Hero-Hintergrundbild
   bleiben bewusst ausgenommen, da die als flache Fläche bzw. Icon wirken sollen. */
.fs-artikel-bild,
.fs-artikel-inhalt img,
.fs-galerie-bild,
.fs-bild-text img {
    box-shadow: var(--fs-bild-schatten);
}

/* "Zurück"-Link auf Bericht-/News-Detailseiten */
.fs-zurueck-link {
    text-decoration: none;
}

.fs-zurueck-link:hover {
    color: var(--fs-gold);
}

/* Lightbox: Berichte-Titelbild + Bilder im Bericht-Text sowie die Bildergalerie
   lassen sich anklicken, um das Bild groß anzuzeigen (siehe site.js) */
.fs-artikel-bild,
.fs-artikel-inhalt img {
    cursor: pointer;
}

/* Klickzonen links/rechts im großen Lightbox-Bild zum Blättern */
.fs-lightbox-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.fs-lightbox-zone:hover {
    opacity: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent);
}

.fs-lightbox-zone-rechts:hover {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.25), transparent);
}

.fs-lightbox-zone-links {
    left: 0;
}

.fs-lightbox-zone-rechts {
    right: 0;
}

/* ==========================================================================
   6. BILDAUSSCHNITT-AUSWAHL IM ADMIN (Titelbild-Karten, Slider-Bilder, News-Bild)
   Umschalter zwischen einfachem Klick-Fokuspunkt und ziehbarem Ausschnitt-Rahmen.
   ========================================================================== */

.fs-fokuspunkt-umschalter {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.fs-fokuspunkt-umschalter button {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: var(--fs-text-muted);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
}

.fs-fokuspunkt-umschalter button.active {
    border-color: var(--fs-orange);
    color: var(--fs-orange);
}

.fs-fokuspunkt-anzeige {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #000;
}

/* Modus "Punkt": Klick irgendwo im Bild setzt den Fokuspunkt (Marker-Kreis) */
.fs-fokuspunkt-anzeige > img {
    cursor: crosshair;
}

.fs-fokuspunkt-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid var(--fs-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* Modus "Ausschnitt": ganzes Bild sichtbar, Rahmen zieh-/vergrößerbar (auch touch) */
.fs-ausschnitt-bildwrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.fs-ausschnitt-rahmen {
    position: absolute;
    border: 2px solid var(--fs-gold);
    background: rgba(255, 201, 60, 0.15);
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.55);
    cursor: move;
    touch-action: none;
}

.fs-ausschnitt-griff {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fs-gold);
    border: 2px solid #1a1210;
    cursor: nwse-resize;
    touch-action: none;
}

/* ==========================================================================
   7. INHALTS-MODULE (je ein Abschnitt pro Datei in modules/*.module.php)
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */
/* Bewusst keine eigene Hintergrundfarbe - ein Seiten-Hintergrundbild (falls gesetzt) soll immer
   durchscheinen, auch wenn das Hero-Modul selbst ein Bild zeigt. */
.fs-hero {
    position: relative;
    overflow: hidden;
}

.fs-hero-bild-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.18;
}

/* Breite kommt als Inline-Style aus $config['bild_groesse'] (Prozent, siehe hero.module.php) */
.fs-hero-bild {
    max-width: 100%;
    filter: blur(1px);
}

.fs-hero .container {
    position: relative;
    z-index: 1;
}

.fs-hero-titel {
    font-size: 3rem;
    font-weight: 800;
    background: var(--fs-verlauf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fs-hero-text {
    font-size: 1.25rem;
    color: var(--fs-text-muted);
}

/* --- Video-Hero ------------------------------------------------------------ */
.fs-video-hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    border-radius: 8px;
}

/* --- Slider ----------------------------------------------------------------- */
.fs-slider .carousel-inner {
    border-radius: 8px;
}

/* Schatten direkt am Bild statt am ganzen Slider-Rahmen, damit bei "Ganzes Bild"
   mit transparentem Hintergrund nur das sichtbare Foto einen Schatten wirft und
   nicht der (dann unsichtbare) Rand ringsherum. */
.fs-slider .carousel-item .fs-slider-bild {
    border-radius: 8px;
    filter: drop-shadow(var(--fs-bild-schatten));
}

/* --- Icon-Feature-Grid ------------------------------------------------------- */
.fs-icon-grid-item {
    background-color: var(--fs-hintergrund-hell);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

.fs-icon-grid-item:hover {
    transform: translateY(-4px);
    border-color: var(--fs-orange);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 140, 0, 0.25);
}

.fs-icon-grid-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.fs-icon-grid-bild {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.fs-icon-grid-item h5 {
    color: var(--fs-gold);
}

/* --- Kennzahlen/Stats -------------------------------------------------------- */
.fs-kennzahl-zahl {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: var(--fs-verlauf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fs-kennzahl-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Zitat/Testimonial -------------------------------------------------------- */
.fs-zitat-block {
    max-width: 700px;
}

.fs-zitat-marke {
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    background: var(--fs-verlauf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fs-zitat-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--fs-text);
}

.fs-zitat-autor {
    color: var(--fs-text-muted);
    font-size: 0.95rem;
}

.fs-zitat-eintrag {
    display: none;
}

.fs-zitat-eintrag.fs-zitat-aktiv {
    display: block;
    animation: fs-zitat-einblenden 0.6s ease;
}

@keyframes fs-zitat-einblenden {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Akkordeon/FAQ ------------------------------------------------------------ */
/* Bootstraps Standard-Styling ist auf hellen Hintergrund ausgelegt, hier auf das
   dunkle Feuer-Theme umgestellt. */
.fs-akkordeon .accordion-item {
    background-color: var(--fs-hintergrund-hell);
    border: 1px solid rgba(255, 140, 0, 0.25);
}

.fs-akkordeon .accordion-button {
    background-color: transparent;
    color: var(--fs-text);
    font-weight: 600;
}

.fs-akkordeon .accordion-button:not(.collapsed) {
    background-color: rgba(255, 140, 0, 0.12);
    color: var(--fs-gold);
    box-shadow: none;
}

.fs-akkordeon .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.fs-akkordeon .accordion-button::after {
    filter: invert(1) sepia(1) saturate(4) hue-rotate(360deg);
}

.fs-akkordeon .accordion-body {
    color: var(--fs-text-muted);
}

/* Sortier-Pfeile direkt an einer FAQ-Frage im Bearbeiten-Modus */
.fs-akkordeon-steuerung {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0 0.5rem;
    background: var(--fs-hintergrund-hell);
}

.fs-akkordeon-steuerung button {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--fs-text);
    border-radius: 4px;
    width: 26px;
    height: 22px;
    line-height: 1;
    font-size: 0.8rem;
    cursor: pointer;
}

.fs-akkordeon-steuerung button:hover:not(:disabled) {
    border-color: var(--fs-orange);
    color: var(--fs-orange);
}

.fs-akkordeon-steuerung button:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Mini-Rich-Text-Feld für die FAQ-Antwort im Zahnrad-Einstellungsfenster */
.fs-akkordeon-antwort-editor {
    min-height: 110px;
    max-height: 260px;
    overflow-y: auto;
}

/* --- News ---------------------------------------------------------------------- */
/* Schlanke Textliste statt Bild-Karten (bewusst anders als Berichte) */
.fs-news-liste {
    max-width: 800px;
}

.fs-news-titel {
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
}

.fs-news-titel a {
    color: var(--fs-text);
    text-decoration: none;
}

.fs-news-titel a:hover {
    color: var(--fs-gold);
}

.fs-news-datum {
    color: var(--fs-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.fs-news-teaser {
    color: var(--fs-text-muted);
}

.fs-news-weiterlesen {
    white-space: nowrap;
    text-decoration: none;
}

.fs-news-weiterlesen:hover {
    color: var(--fs-gold);
}

.fs-news-trenner {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 75%;
    margin: 1.5rem auto;
}

.fs-news-eintrag:last-of-type + .fs-news-trenner {
    display: none;
}

/* --- Call-to-Action-Banner ------------------------------------------------------- */
.fs-cta-box {
    background: linear-gradient(135deg, rgba(232, 50, 26, 0.15), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 140, 0, 0.35);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.fs-cta-box h3 {
    color: var(--fs-gold);
}

/* --- Trenner --------------------------------------------------------------------- */
.fs-trenner hr {
    border-top: 2px solid;
    border-image: var(--fs-verlauf) 1;
    opacity: 1;
}

/* --- PDF-Buch (durchblätterbare PDF, siehe pdf_buch.js) ---------------------------- */
.fs-pdf-buch-viewer {
    background-color: var(--fs-hintergrund-hell);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 8px;
}

/* Einzelne Buchseite (siehe pdf_buch.js) - weißer Hintergrund, da PDF-Seiten
   selbst meist weiß sind, bis die eigentliche Seite als <canvas> nachgeladen ist. */
.fs-pdf-buch-seite {
    width: 100%;
    height: 100%;
    background: #fff;
}

.fs-pdf-buch-canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Farbblock-Textmodule ---------------------------------------------------------- */
/* Farbige Fläche bündig mit dem Bildschirmrand, läuft als Verlauf über die gesamte
   Breite der nutzbaren Content-Spalte aus (nicht über einen unabhängigen Bildschirm-
   Prozentsatz) - links- und rechtsbündige Variante. Die mittlere Rasterspalte
   entspricht in etwa der Breite eines Bootstrap-Containers. */
.fs-farbblock {
    position: relative;
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) min(1140px, 100% - 3rem) minmax(1rem, 1fr);
    align-items: stretch;
    /* Symmetrisches Padding statt fester Mindesthöhe - bleibt bei jeder Textmenge
       gleichmäßig oben/unten, macht die Zentrierung sichtbar (~40px mehr Höhe
       insgesamt als vorher). */
    padding: 3rem 0;
}

.fs-farbblock-flaeche {
    grid-row: 1;
    align-self: stretch;
}

/* Der Farbverlauf selbst kommt als Inline-Style direkt aus dem Modul (siehe
   farbblock_links/rechts.module.php) - dort pro Modul einstellbar, statt hier fest. */
.fs-farbblock-links .fs-farbblock-flaeche {
    grid-column: 1 / 3;
    border-radius: 0 20px 20px 0;
}

.fs-farbblock-rechts .fs-farbblock-flaeche {
    grid-column: 2 / 4;
    border-radius: 20px 0 0 20px;
}

.fs-farbblock-inhalt {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: center;
    position: relative;
    z-index: 1;
    padding: 0.5rem 1.5rem;
    color: var(--fs-text);
}

@media (max-width: 767.98px) {
    .fs-farbblock {
        grid-template-columns: 1fr;
    }

    .fs-farbblock-links .fs-farbblock-flaeche,
    .fs-farbblock-rechts .fs-farbblock-flaeche {
        grid-column: 1 / 2;
        border-radius: 0;
    }

    .fs-farbblock-inhalt {
        grid-column: 1 / 2;
    }
}

/* --- Berichte-Liste: Master-Stern (Kategorie-Hauptbericht) -------------------------- */
.fs-master-badge {
    display: inline-block;
    color: var(--fs-gold);
    margin-left: 0.25rem;
    font-size: 1rem;
    vertical-align: middle;
}

.fs-artikel-master-stern {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.fs-artikel-master-stern:hover {
    border-color: var(--fs-gold);
    color: var(--fs-gold);
}

.fs-artikel-master-stern.ist-master {
    background: var(--fs-gold);
    border-color: var(--fs-gold);
    color: #1a1210;
}

/* ==========================================================================
   8. FRONTEND-EDITOR (nur im Bearbeitungsmodus, ?bearbeiten=1)
   ========================================================================== */

.fs-bearbeiten-modus .fs-modul-wrapper {
    position: relative;
    outline: 1px dashed rgba(255, 201, 60, 0.4);
    outline-offset: 4px;
    margin-bottom: 0.5rem;
}

.fs-bearbeiten-modus [contenteditable="true"] {
    outline: 1px dotted rgba(255, 140, 0, 0.5);
    cursor: text;
    min-height: 1.2em;
}

.fs-bearbeiten-modus [contenteditable="true"]:focus {
    outline: 2px solid var(--fs-orange);
}

.fs-gespeichert {
    outline: 2px solid #3cc26e !important;
    transition: outline-color 0.3s ease;
}

.fs-modul-controls {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 5;
    display: flex;
    gap: 4px;
    background: rgba(20, 16, 14, 0.85);
    border-radius: 6px;
    padding: 2px 4px;
}

.fs-modul-controls button {
    background: none;
    border: none;
    color: var(--fs-gold);
    font-size: 1rem;
    line-height: 1;
    padding: 4px 6px;
    cursor: pointer;
}

.fs-modul-controls button:hover {
    color: var(--fs-orange);
}

.fs-einfuegepunkt {
    text-align: center;
    margin: 0.25rem 0;
}

.fs-add-btn {
    background: var(--fs-hintergrund-hell);
    border: 1px dashed var(--fs-orange);
    color: var(--fs-gold);
}

/* Seitliches Einstellungsfenster (Modul-Einstellungen, Modul-Auswahl) */
.fs-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    background: var(--fs-hintergrund-hell);
    border-left: 2px solid var(--fs-orange);
    z-index: 1050;
    overflow-y: auto;
}

.fs-panel-inner {
    position: relative;
    padding: 2rem 1.5rem;
}

.fs-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    filter: invert(1);
}

/* Textfarben-Auswahl in der Editor-Werkzeugleiste (Berichte, Seiten, News) */
.fs-ft-farbe {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
}

.fs-ft-farbe:hover {
    border-color: var(--fs-orange);
}

/* ==========================================================================
   9. MEDIEN-PICKER (Bootstrap-Modal für Bild-/Video-Auswahl)
   ========================================================================== */

.fs-medien-modal-content {
    background: var(--fs-hintergrund-hell);
    color: var(--fs-text);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.fs-medien-picker-item {
    border: 1px solid rgba(255, 140, 0, 0.25);
    border-radius: 4px;
    padding: 4px;
}

.fs-medien-picker-item:hover {
    border-color: var(--fs-orange);
}

/* Platzhalter-Kachel für PDF-Dateien in der Mediathek-Auswahl (kein Thumbnail möglich) */
.fs-medien-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--fs-text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   10. SONSTIGES
   ========================================================================== */

/* Balken in der Statistik-Auswertung */
.fs-statistik-balken {
    height: 10px;
    min-width: 4px;
    border-radius: 5px;
    background: var(--fs-verlauf);
}

/* Nach-oben-Button: fest unten rechts, erst sichtbar nach etwas Scrollen (site.js) */
.fs-nach-oben-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--fs-verlauf);
    color: #1a1210;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    cursor: pointer;
}

.fs-nach-oben-btn.fs-sichtbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fs-nach-oben-btn:hover {
    filter: brightness(1.1);
}

/* Scroll-Reveal: Startzustand (unsichtbar/verschoben), wird per JS beim Einscrollen
   durch Hinzufügen von .fs-reveal-sichtbar aufgelöst (siehe site.js) */
.fs-reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fs-reveal-fade {
    transform: none;
}

.fs-reveal-links {
    transform: translateX(-40px);
}

.fs-reveal-rechts {
    transform: translateX(40px);
}

.fs-reveal-sichtbar {
    opacity: 1;
    transform: none;
}
