

/* ========================================
   DIAMANTEN WERKSTATT MODERN
   Kopfbereich und Gorilla-Logo
   ======================================== */

/* Weißer Kopfbereich */
.headerbar {
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 10px;
}

/* Logo mittig ausrichten */
.headerbar .inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

/* Logo-Bereich */
#site-description {
    float: none;
    width: 100%;
    text-align: center;
    margin: 0;
}

/* Gorilla-Logo als Bild */
#site-description .logo {
    display: block;
    float: none;
    width: 290px;
    height: 225px;
    margin: 0 auto;
    background: url("images/logo_gorilla_webseite_tranz.webp")
                center center / contain no-repeat;
}

/* Altes phpBB-Logo ausblenden */
#site-description .site_logo {
    display: none;
}

/* Boardname und Beschreibung ausblenden */
#site-description h1,
#site-description > p:not(.skiplink) {
    display: none;
}

/* Suchfeld rechts oben */
.headerbar .search-header {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Smartphone-Anpassung */
@media (max-width: 700px) {

    .headerbar {
        padding: 15px 5px;
    }

    .headerbar .inner {
        min-height: 230px;
    }

    #site-description .logo {
        width: 220px;
        height: 175px;
    }

    .headerbar .search-header {
        position: static;
    }
}


/* ========================================
   DIAMANTEN MODERN – NAVIGATION
   Weiß mit dezenter grauer Trennlinie
   ======================================== */

/* Hauptnavigation */
#page-header .navbar {
    background: #ffffff;
    border: none;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    padding: 10px 14px;
    color: #344054;
}

/* Navigationslinks */
#page-header .navbar a {
    color: #344054;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Links beim Darüberfahren */
#page-header .navbar a:hover,
#page-header .navbar a:focus-visible {
    color: #1688c5;
}

/* Navigationssymbole */
#page-header .navbar .icon {
    color: #526477;
}

/* Aktuelle Breadcrumb-Navigation */
#page-header .navbar .breadcrumbs a {
    color: #344054;
}

/* Trennlinien */
#page-header .navbar .inner {
    background: transparent;
}

/* Auf Smartphones kompakter */
@media (max-width: 700px) {
    #page-header .navbar {
        padding: 10px 8px;
    }
}


/* DIAMANTEN MODERN – FARBEN UND FORUMSKARTEN */

:root {
    --dw-bg: #ffffff;
    --dw-card: #ffffff;
    --dw-card-alt: #f7f9fc;
    --dw-text: #263445;
    --dw-muted: #66758a;
    --dw-border: #e3e8ee;
    --dw-gold: #e8bc48;
    --dw-blue: #1688c5;
}

/* Kategorie als elegante Karte */
.forabg,
.forumbg {
    background: var(--dw-card);
    border: 1px solid var(--dw-border);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(20, 35, 55, 0.05);
}

/* Kategorieüberschrift */
.forabg .header,
.forumbg .header {
    background: #fff8e8;
    border-bottom: 2px solid var(--dw-gold);
}

/* Überschriften lesbar */
.forabg .header a,
.forumbg .header a,
.forabg .header dt,
.forumbg .header dt,
.forabg .header dd,
.forumbg .header dd {
    color: #40351e;
}

/* Forumseinträge */
.forabg ul.topiclist li.row,
.forumbg ul.topiclist li.row {
    background: var(--dw-card);
    border-bottom: 1px solid var(--dw-border);
    transition: background-color 0.2s ease;
}

/* Abwechselnde Hintergrundfarbe */
.forabg ul.topiclist li.row:nth-child(even),
.forumbg ul.topiclist li.row:nth-child(even) {
    background: var(--dw-card-alt);
}

/* Hover */
.forabg ul.topiclist li.row:hover,
.forumbg ul.topiclist li.row:hover {
    background: #eef6fc;
}

/* Links und Beschreibungen */
.forabg a.forumtitle,
.forumbg a.topictitle {
    color: var(--dw-text);
}

.forabg a.forumtitle:hover,
.forumbg a.topictitle:hover {
    color: var(--dw-blue);
}

/* Abgerundete Karten auf Mobilgeräten */
@media (max-width: 700px) {
    .forabg,
    .forumbg {
        border-radius: 9px;
        margin-bottom: 12px;
    }
}
  

/* DIAMANTEN MODERN – KATEGORIEÜBERSCHRIFTEN */

.forabg ul.topiclist li.header dt,
.forabg ul.topiclist li.header dd,
.forumbg ul.topiclist li.header dt,
.forumbg ul.topiclist li.header dd {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Etwas mehr Platz für die Überschriften */
.forabg ul.topiclist li.header,
.forumbg ul.topiclist li.header {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Smartphone-Anpassung */
@media (max-width: 700px) {
    .forabg ul.topiclist li.header dt,
    .forumbg ul.topiclist li.header dt {
        font-size: 13px;
    }
}
  

/* =========================================
   DIAMANTEN MODERN – DUNKELMODUS
   Schritt 20: Farbgrundlage
   ========================================= */

/* Dunkle Farbpalette */
html.dw-dark {
    --dw-bg: #171b23;
    --dw-card: #252b36;
    --dw-card-alt: #2b3240;
    --dw-text: #f1f4f8;
    --dw-muted: #aeb8c7;
    --dw-border: #394252;
    --dw-gold: #e8bc48;
    --dw-blue: #7dc8f4;
}

/* Seitenhintergrund */
html.dw-dark body,
html.dw-dark #wrap {
    background: var(--dw-bg);
    color: var(--dw-text);
}

/* Kopfbereich */
html.dw-dark .headerbar,
html.dw-dark #page-header .navbar {
    background: var(--dw-bg);
    color: var(--dw-text);
    border-color: var(--dw-border);
}

/* Navigation */
html.dw-dark #page-header .navbar a,
html.dw-dark #page-header .navbar .icon {
    color: var(--dw-text);
}

/* Kategorie-Karten */
html.dw-dark .forabg,
html.dw-dark .forumbg {
    background: var(--dw-card);
    border-color: var(--dw-border);
}

/* Kategorieüberschriften */
html.dw-dark .forabg .header,
html.dw-dark .forumbg .header {
    background: #30291e;
    border-bottom-color: var(--dw-gold);
}

html.dw-dark .forabg .header dt,
html.dw-dark .forabg .header dd,
html.dw-dark .forumbg .header dt,
html.dw-dark .forumbg .header dd,
html.dw-dark .forabg .header a,
html.dw-dark .forumbg .header a {
    color: #f3d28a;
}

/* Forumseinträge */
html.dw-dark .forabg ul.topiclist li.row,
html.dw-dark .forumbg ul.topiclist li.row {
    background: var(--dw-card);
    border-color: var(--dw-border);
    color: var(--dw-text);
}

html.dw-dark .forabg ul.topiclist li.row:nth-child(even),
html.dw-dark .forumbg ul.topiclist li.row:nth-child(even) {
    background: var(--dw-card-alt);
}

/* Hover */
html.dw-dark .forabg ul.topiclist li.row:hover,
html.dw-dark .forumbg ul.topiclist li.row:hover {
    background: #354356;
}

/* Forentitel */
html.dw-dark .forabg a.forumtitle,
html.dw-dark .forumbg a.topictitle {
    color: var(--dw-text);
}

/* Allgemeine Textbereiche */
html.dw-dark .forumtitle,
html.dw-dark .topictitle,
html.dw-dark .forum-description,
html.dw-dark .responsive-hide {
    color: var(--dw-text);
}

/* Links */
html.dw-dark a:hover {
    color: var(--dw-blue);
}


/* =========================================
   DIAMANTEN MODERN – THEME-SCHALTER
   ========================================= */

.dw-theme-controls {
    display: flex;
    justify-content: flex-end;
    padding: 5px 15px;
    background: #ffffff;
}

.dw-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e3e8ee;
    border-radius: 50%;
    background: #f6f8fa;
    cursor: pointer;
    font-size: 19px;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.dw-theme-toggle:hover {
    background: #e9f3fa;
    transform: scale(1.06);
}

.dw-theme-toggle:focus-visible {
    outline: 2px solid #1688c5;
    outline-offset: 3px;
}

/* Dunkle Darstellung */
html.dw-dark .dw-theme-controls {
    background: #171b23;
}

html.dw-dark .dw-theme-toggle {
    background: #303848;
    border-color: #465163;
    color: #ffffff;
}

html.dw-dark .dw-theme-toggle:hover {
    background: #40516a;
}

/* Smartphone */
@media (max-width: 700px) {
    .dw-theme-controls {
        padding: 5px 10px;
    }
}


/* DIAMANTEN MODERN – DUNKELMODUS SCHRIFTFARBEN */

/* Standardlinks */
html.dw-dark #page-body a:link,
html.dw-dark #page-body a:visited {
    color: #82cfff;
}

/* Links beim Darüberfahren */
html.dw-dark #page-body a:hover,
html.dw-dark #page-body a:focus-visible {
    color: #f3cf75;
}

/* Forentitel */
html.dw-dark #page-body a.forumtitle,
html.dw-dark #page-body a.topictitle {
    color: #f1f4f8;
}

/* Letzte Beiträge */
html.dw-dark .lastpost a,
html.dw-dark .lastpost a:visited {
    color: #82cfff;
}

/* Allgemeine Beschreibungstexte */
html.dw-dark .forum-description,
html.dw-dark .responsive-hide,
html.dw-dark .lastpost,
html.dw-dark .lastpost span {
    color: #c2cbd7;
}

/* Benutzername – phpBB-Gruppenfarben erhalten */
html.dw-dark a.username,
html.dw-dark a.username-coloured {
    text-decoration-color: currentColor;
}

/* Foren als gelesen markieren */
html.dw-dark a.mark-read,
html.dw-dark .action-bar a {
    color: #82cfff;
}

/* Trennlinien dezenter */
html.dw-dark .forabg ul.topiclist li.row,
html.dw-dark .forumbg ul.topiclist li.row {
    border-color: #394252;
}
 

/* SCHRITT 25 – BEITRÄGE IM DUNKELMODUS */

/* Beitragskästen */
html.dw-dark .post,
html.dw-dark .post.bg1,
html.dw-dark .post.bg2,
html.dw-dark .post.bg3 {
    background-color: #252d39;
    color: #edf1f7;
    border: 1px solid #414c5d;
}

/* Beitragsinhalt */
html.dw-dark .postbody,
html.dw-dark .postbody .content,
html.dw-dark .postbody .content p,
html.dw-dark .postbody .content li {
    color: #edf1f7;
}

/* Überschriften und Links */
html.dw-dark .postbody h3,
html.dw-dark .postbody h3 a,
html.dw-dark .postbody a {
    color: #82cfff;
}

/* Datum und Zusatzinformationen */
html.dw-dark .postbody .author,
html.dw-dark .postbody .author span,
html.dw-dark .postprofile,
html.dw-dark .postprofile dd {
    color: #b9c5d4;
}

/* Benutzerprofil rechts */
html.dw-dark .postprofile {
    border-color: #414c5d;
}

/* Trennlinien innerhalb von Beiträgen */
html.dw-dark .postbody hr,
html.dw-dark .post hr {
    border-color: #414c5d;
}

/* Zitate */
html.dw-dark blockquote {
    background-color: #303a49;
    border: 1px solid #526174;
    color: #edf1f7;
}

/* Codefelder */
html.dw-dark .codebox {
    background-color: #1b222d;
    border-color: #526174;
    color: #edf1f7;
}
html.dw-dark .codebox code {
    color: #edf1f7;
}
 

/* SCHRITT 26 – PROFILTEXT IM DUNKELMODUS */

html.dw-dark .postprofile,
html.dw-dark .postprofile dt,
html.dw-dark .postprofile dd,
html.dw-dark .postprofile strong,
html.dw-dark .postprofile span {
    color: #dce4ee;
}

/* Profilüberschrift und Benutzerrolle */
html.dw-dark .postprofile .rank {
    color: #b9c5d4;
}

/* Links im Profil */
html.dw-dark .postprofile a:not(.username-coloured) {
    color: #82cfff;
}

/* Benutzergruppenfarben bleiben erhalten */
html.dw-dark .postprofile a.username-coloured {
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* SCHRITT 28 – ANTWORTEDITOR IM DUNKELMODUS */

/* Formularbereiche */
html.dw-dark #postingbox,
html.dw-dark #postingbox .panel,
html.dw-dark #options-panel,
html.dw-dark #attach-panel,
html.dw-dark .panel.bg1,
html.dw-dark .panel.bg2,
html.dw-dark .panel.bg3 {
    background-color: #252d39;
    color: #edf1f7;
}

/* Überschriften und Beschriftungen */
html.dw-dark #postingbox h3,
html.dw-dark #postingbox label,
html.dw-dark #postingbox dt,
html.dw-dark #postingbox dd,
html.dw-dark #options-panel label,
html.dw-dark #attach-panel label {
    color: #edf1f7;
}

/* Großes Texteingabefeld */
html.dw-dark #message {
    background-color: #1b222d;
    color: #edf1f7;
    border: 1px solid #526174;
}

/* Betreff und andere Texteingaben */
html.dw-dark #postingbox input.inputbox,
html.dw-dark #postingbox textarea.inputbox {
    background-color: #303a49;
    color: #edf1f7;
    border: 1px solid #526174;
}

/* BBCode-Schaltflächen */
html.dw-dark #format-buttons input,
html.dw-dark #format-buttons select {
    background-color: #303a49;
    color: #edf1f7;
    border: 1px solid #526174;
}

/* Smileys und Hilfetexte */
html.dw-dark #smiley-box,
html.dw-dark #smiley-box strong,
html.dw-dark #smiley-box a,
html.dw-dark #message-box {
    color: #edf1f7;
}

/* Optionen und Dateianhänge */
html.dw-dark #options-panel,
html.dw-dark #attach-panel {
    border-color: #526174;
}

/* Vorschau und Absenden */
html.dw-dark .submit-buttons input.button1 {
    background: #e8bc48;
    color: #1b222d;
    border-color: #c99b29;
}

html.dw-dark .submit-buttons input.button2 {
    background: #303a49;
    color: #edf1f7;
    border-color: #526174;
}


/* SCHRITT 29 – REITER IM DUNKELMODUS */

html.dw-dark .tabs .tab > a {
    background: #303a49;
    color: #dce4ee;
    border: 1px solid #526174;
}

html.dw-dark .tabs .tab.activetab > a,
html.dw-dark .tabs .tab > a:hover {
    background: #e8bc48;
    color: #1b222d;
    border-color: #c99b29;
}

html.dw-dark .tabs .tab.activetab > a span {
    color: #1b222d;
}



/* SCHRITT 32 – DEUTLICHE FETTSCHRIFT */

html.dw-dark .postbody .content strong,
html.dw-dark .postbody .content b,
html.dw-dark #preview .content strong,
html.dw-dark #preview .content b {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    color: #f3cf75;
}


/* SCHRITT 34 – UNTERE FORUMSBEREICHE */

/* Wer ist online / Berechtigungen */
html.dw-dark .stat-block h3,
html.dw-dark .stat-block h3 a,
html.dw-dark .forumbg h3,
html.dw-dark #page-body .permissions h3 {
    color: #f3cf75;
}

/* Allgemeine kleine Überschriften */
html.dw-dark #page-body h3 {
    color: #f3cf75;
}

/* Gesperrt-Schaltfläche */
html.dw-dark .button.locked,
html.dw-dark .button-icon-only.locked,
html.dw-dark .button .icon.fa-lock {
    color: #526174;
}

/* Forum-Informationsbereiche */
html.dw-dark .stat-block p,
html.dw-dark .stat-block li {
    color: #dce4ee;
}


/* SCHRITT 35 – FORENTITEL IM DUNKELMODUS */

html.dw-dark #page-body a.forumtitle:link,
html.dw-dark #page-body a.forumtitle:visited {
    color: #82cfff;
    font-weight: 700;
}

html.dw-dark #page-body a.forumtitle:hover,
html.dw-dark #page-body a.forumtitle:focus-visible {
    color: #f3cf75;
    text-decoration: underline;
}


/* SCHRITT 36 – BENUTZERNAMEN IM DUNKELMODUS */

/* Farbige Benutzernamen besser hervorheben */
html.dw-dark a.username-coloured {
    filter: brightness(1.5);
    font-weight: 700;
}

/* Beim Darüberfahren */
html.dw-dark a.username-coloured:hover {
    filter: brightness(1.8);
    text-decoration: underline;
}


/* SCHRITT 37 – GESPERRTE FOREN IM DUNKELMODUS */

/* Gesperrt-Schaltfläche */
html.dw-dark #page-body .button.locked,
html.dw-dark #page-body .button .icon.fa-lock {
    color: #dce4ee;
}

html.dw-dark #page-body .button.locked {
    background: #303a49;
    border: 1px solid #526174;
    box-shadow: none;
}

/* Hinweis: Das Forum ist gesperrt */
html.dw-dark #page-body .rules {
    background: #252d39;
    border: 1px solid #414c5d;
    border-radius: 6px;
    color: #dce4ee;
}

/* Text innerhalb des Hinweises */
html.dw-dark #page-body .rules,
html.dw-dark #page-body .rules strong,
html.dw-dark #page-body .rules p {
    color: #dce4ee;
}


/* SCHRITT 37 – KORREKTUR GESPERRTE FOREN */

/* Hinweisbalken für gesperrte Foren */
html.dw-dark #page-body .panel,
html.dw-dark #page-body .rules {
    background-color: #252d39;
    color: #dce4ee;
    border-color: #414c5d;
}

/* Gesperrt-Schaltfläche */
html.dw-dark #page-body .button,
html.dw-dark #page-body .button-secondary {
    background-color: #303a49;
    background-image: none;
    color: #dce4ee;
    border-color: #526174;
}

/* Symbole und Beschriftungen */
html.dw-dark #page-body .button .icon {
    color: #dce4ee;
}


/* SCHRITT 39 – FORENTITEL IM HELLMODUS */

html:not(.dw-dark) #page-body a.forumtitle:link,
html:not(.dw-dark) #page-body a.forumtitle:visited {
    color: #176b9a;
    font-weight: 700;
}

html:not(.dw-dark) #page-body a.forumtitle:hover,
html:not(.dw-dark) #page-body a.forumtitle:focus-visible {
    color: #b58419;
    text-decoration: underline;
}


/* SCHRITT 40 – THEMENTITEL IM HELLMODUS */

/* Normale Thementitel */
html:not(.dw-dark) #page-body a.topictitle:link,
html:not(.dw-dark) #page-body a.topictitle:visited {
    color: #176b9a;
    font-weight: 700;
}

/* Gold beim Darüberfahren */
html:not(.dw-dark) #page-body a.topictitle:hover,
html:not(.dw-dark) #page-body a.topictitle:focus-visible {
    color: #b58419;
    text-decoration: underline;
}


/* SCHRITT 41 – NEUES THEMA BUTTON */

/* Schaltfläche im Hellmodus */
html:not(.dw-dark) #page-body a.button.button-icon-only,
html:not(.dw-dark) #page-body a.button.button-secondary {
    /* Andere Schaltflächen bleiben unverändert */
}

/* Neues Thema / Antworten */
html:not(.dw-dark) #page-body a.button.button1 {
    background: #f3cf75;
    border: 1px solid #d6ad43;
    color: #263445;
    font-weight: 700;
}

/* Beschriftung und Symbol */
html:not(.dw-dark) #page-body a.button.button1 span,
html:not(.dw-dark) #page-body a.button.button1 .icon {
    color: #263445;
}

/* Hover */
html:not(.dw-dark) #page-body a.button.button1:hover {
    background: #e8bc48;
    border-color: #b58419;
}


/* SCHRITT 41 – NEUES THEMA IN GOLD */


/* SCHRITT 42 – GOLDENE HAUPTAKTIONEN */

/* Nur der Hauptbutton in den Aktionsleisten */
html:not(.dw-dark) #page-body .action-bar
a.button[href*="posting.php"] {
    background: #f3cf75;
    background-image: none;
    border: 1px solid #d6ad43;
    border-radius: 6px;
    box-shadow: none;
    color: #263445;
}

/* Schrift und Stiftsymbol */
html:not(.dw-dark) #page-body .action-bar
a.button[href*="posting.php"] span,
html:not(.dw-dark) #page-body .action-bar
a.button[href*="posting.php"] .icon {
    color: #263445;
    font-weight: 700;
}

/* Gold beim Darüberfahren */
html:not(.dw-dark) #page-body .action-bar
a.button[href*="posting.php"]:hover {
    background: #e8bc48;
    border-color: #b58419;
}

/* Andere Aktionsbuttons wieder dezent */
html:not(.dw-dark) #page-body .action-bar
a.button:not([href*="posting.php"]) {
    background: #f7f9fc;
    background-image: none;
    border: 1px solid #d6dde6;
    color: #526174;
}

html:not(.dw-dark) #page-body .action-bar
a.button:not([href*="posting.php"]) .icon {
    color: #526174;
}


/* SCHRITT 46 – PARTNERBEREICH NAUNHOF */

.dw-partner {
    margin: 30px auto 20px;
    max-width: 650px;
}

.dw-partner-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #e3d5aa;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.dw-partner-link:hover {
    border-color: #d6ad43;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}

.dw-partner-logo {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.dw-partner-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dw-partner-text strong {
    color: #b58419;
    font-size: 17px;
}

.dw-partner-text span {
    color: #176b9a;
    font-size: 15px;
    font-weight: bold;
}

.dw-partner-text small {
    color: #64748b;
    font-size: 13px;
}

/* DUNKELMODUS */

html.dw-dark .dw-partner-link {
    background: #242d38;
    border-color: #66552b;
}

html.dw-dark .dw-partner-text strong {
    color: #f3cf75;
}

html.dw-dark .dw-partner-text span {
    color: #82cfff;
}

html.dw-dark .dw-partner-text small {
    color: #cbd5e1;
}

/* SMARTPHONE */

@media (max-width: 600px) {
    .dw-partner-link {
        flex-direction: column;
        text-align: center;
        padding: 18px 12px;
        gap: 12px;
    }

    .dw-partner-logo {
        width: 100px;
    }

    .dw-partner-text {
        align-items: center;
    }
}


/* SCHRITT 52 – SANFTES DASHBOARD */

/* Ruhiges Ein- und Ausblenden */
#sshg-dashboard {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0.45s ease;
}

/* Sanft geschlossener Zustand */
#sshg-dashboard.dw-dashboard-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -48%);
}

/* Auch der kleine Öffnen-Button */
#sshg-dashboard-oeffnen {
    transition:
        opacity 0.4s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

/* Rücksicht auf Menschen mit reduzierten Animationen */
@media (prefers-reduced-motion: reduce) {
    #sshg-dashboard,
    #sshg-dashboard-oeffnen {
        transition: none !important;
    }
}


/* SCHRITT 57 – DASHBOARD-LAYOUT REPARIEREN */

/* DASHBOARD – ERGÄNZENDE AUSRICHTUNG */

#sshg-dashboard {
    align-items: center;
    justify-content: center;
}

#sshg-dashboard .dashboard-buttons {
    justify-content: center;
    align-items: center;
}

#sshg-dashboard .dashboard-button {
    min-width: 75px;
    min-height: 75px;
    box-sizing: border-box;
}

/* DASHBOARD – HANDYANSICHT */

@media (max-width: 500px) {
    #sshg-dashboard .dashboard-buttons {
        grid-template-columns: repeat(3, 52px);
        gap: 12px;
    }

    #sshg-dashboard .dashboard-button {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
    }
}




/* SCHRITT 84 – GLEICHMÄSSIGE DASHBOARD-ANIMATION */

#sshg-dashboard {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

#sshg-dashboard.dw-dashboard-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #sshg-dashboard {
        transition: none !important;
    }
}


/* SCHRITT 106 – FOOTER IN CHAMPAGNER-GOLD */

html:not(.dw-dark) #page-footer .navbar {
    background: #fff8e8 !important;
    border: 1px solid #e7d7a5 !important;
    border-bottom: 2px solid #dfbf55 !important;
    border-radius: 10px !important;
}



/* SCHRITT 108 – BRONZE-GOLDENER FOOTER IM DARKMODUS */

html.dw-dark #page-footer .navbar {
    background: #30291d !important;
    border: 1px solid #66552b !important;
    border-bottom: 2px solid #dfbf55 !important;
    border-radius: 10px !important;
}

/* Helle Schrift für gute Lesbarkeit */

html.dw-dark #page-footer .navbar,
html.dw-dark #page-footer .navbar a,
html.dw-dark #page-footer .navbar .icon {
    color: #f3cf75 !important;
}

html.dw-dark #page-footer .navbar a:hover {
    color: #82cfff !important;
}


/* SCHRITT 111 – WHATSAPP UND TELEGRAM */

/* WhatsApp – Grün */
#sshg-dashboard .dashboard-button.whatsapp-button {
    background: #25D366 !important;
    color: #ffffff !important;
    border: 1px solid #1eae52 !important;
}

/* Telegram – Blau */
#sshg-dashboard .dashboard-button.telegram-button {
    background: #229ED9 !important;
    color: #ffffff !important;
    border: 1px solid #1686bc !important;
}

/* Weiße Symbole */
#sshg-dashboard .whatsapp-button .icon,
#sshg-dashboard .telegram-button .icon {
    color: #ffffff !important;
    font-size: 34px !important;
}

/* Dezenter Effekt beim Darüberfahren */
#sshg-dashboard .whatsapp-button:hover,
#sshg-dashboard .telegram-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}


/* SCHRITT 112 – WHATSAPP UND TELEGRAM ZENTRIEREN */

#sshg-dashboard .dashboard-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 15px !important;
}


/* SCHRITT 120 – BLOG-BUTTON IN GOLD */

#sshg-dashboard .dashboard-button.blog-button {
    background: #fff3d4 !important;
    border: 1px solid #d6ad43 !important;
    color: #b58419 !important;
}

#sshg-dashboard .dashboard-button.blog-button .icon {
    color: #b58419 !important;
    font-size: 34px !important;
}

#sshg-dashboard .dashboard-button.blog-button:hover {
    background: #ffe8a3 !important;
    box-shadow: 0 4px 12px rgba(181,132,25,0.25);
}

/* SCHRITT 133 – SUCHLEISTE NACH UNTEN RECHTS */

@media (min-width: 701px) {
    #page-header #search-box.search-header {
        position: relative !important;
        top: 185px !important;
        right: 90px !important;
        bottom: auto !important;
        z-index: 100 !important;
    }
}

/* SCHRITT 134 – SUCHLEISTE WAAGERECHT AUSRICHTEN */

@media (min-width: 701px) {
    #page-header #search-box.search-header {
        width: 210px !important;
        box-sizing: border-box !important;
    }

    #page-header #search-box.search-header form {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    #page-header #search-box.search-header fieldset {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    #page-header #search-box.search-header input.inputbox {
        width: 150px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
}

/* SCHRITT 139 – DIAMANTEN-SEITENMENÜ */

#dw-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999998;
    display: none;
}

#dw-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(380px, 85vw);
    height: 100vh;
    box-sizing: border-box;
    background: #ffffff;
    color: #24364a;
    z-index: 999999;
    overflow-y: auto;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
    padding: 30px 25px;
}

#dw-side-menu .dw-menu-logo {
    text-align: center;
    margin: 45px 0 30px;
}

#dw-side-menu .dw-menu-logo img {
    width: 100%;
    max-width: 290px;
    height: auto;
}

#dw-side-menu .dw-menu-links a {
    display: block;
    padding: 18px 15px;
    border-bottom: 1px solid #dddddd;
    color: #24364a;
    font-size: 20px;
    text-decoration: none;
}

#dw-side-menu #dw-menu-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    background: transparent;
    border: none;
    color: #24364a;
    cursor: pointer;
}

/* SCHRITT 140 – MENÜ ÖFFNEN */

#dw-side-menu.dw-menu-active {
    transform: translateX(0);
    visibility: visible;
}

/* SCHRITT 142 – HAMBURGER-SYMBOL IM FORUM POSITIONIEREN */

@media (min-width: 701px) {
    #dw-menu-open {
        position: relative !important;
        top: 390px !important;
        left: 5px !important;
        z-index: 100 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 8px !important;
        cursor: pointer;
        font-size: 24px !important;
        color: #24364a !important;
    }

    html.dw-dark #dw-menu-open {
        color: #f1f1f1 !important;
    }
}

/* SCHRITT 144 – HAMBURGER-MENÜ IM DIAMANTEN-STIL */

#dw-menu-open {
    background: #fff4d8 !important;
    border: 1px solid #d6ad43 !important;
    border-radius: 9px !important;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.10) !important;
    color: #8a6414 !important;
    padding: 3px 5px !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#dw-menu-open:hover {
    background: #ffe5a3 !important;
    box-shadow: 0 3px 10px rgba(181, 132, 25, 0.25) !important;
}

/* Passend zum Dunkelmodus */
html.dw-dark #dw-menu-open {
    background: #30291d !important;
    border-color: #b58a36 !important;
    color: #f3cf75 !important;
}

html.dw-dark #dw-menu-open:hover {
    background: #493b23 !important;
}

/* SCHRITT 149 – KONTAKTFORMULAR IM DUNKELMODUS */

html.dw-dark #page-body h2,
html.dw-dark #page-body .panel dt,
html.dw-dark #page-body .panel dt label,
html.dw-dark #page-body .panel .explain,
html.dw-dark #page-body .panel .explain *,
html.dw-dark #page-body .panel .checkbox {
    color: #e4eaf2 !important;
}
/* SCHRITT 150 – KONTAKTFORMULAR: RESTLICHE TEXTE */

html.dw-dark #page-body .panel dd,
html.dw-dark #page-body .panel dd label,
html.dw-dark #page-body .panel dd span {
    color: #e4eaf2 !important;
}

/* SCHRITT 151 – HAMBURGER-MENÜ AUF DEM HANDY */

@media (max-width: 700px) {
    #dw-menu-open {
        position: relative !important;
        top: 300px !important;
        left: 10px !important;
        z-index: 100 !important;
    }
}

/* SCHRITT 163 – GORILLA AM PC FEIN ZENTRIEREN */

@media (min-width: 701px) {
    #page-header #site-description a.logo {
        position: relative !important;
        left: 50px !important;
    }
}

/* SCHRITT 166 – SEITENMENÜ MIT GOLDENEM KLICK-EFFEKT */

/* Sanfte Animation */
#dw-side-menu a {
    display: block;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                box-shadow 0.2s ease;
    border-radius: 6px;
}

/* Maus darüber */
#dw-side-menu a:hover {
    background-color: #fff3d4 !important;
    color: #8b6412 !important;
    box-shadow: inset 3px 0 0 #d6ad43;
}

/* Beim Anklicken oder Berühren */
#dw-side-menu a:active {
    background-color: #f2d27c !important;
    color: #503900 !important;
    box-shadow: inset 4px 0 0 #b58419;
}

/* Tastaturbedienung */
#dw-side-menu a:focus-visible {
    outline: 2px solid #d6ad43;
    outline-offset: 2px;
}

/* SCHRITT 167 – DATUMS- UND UHRZEITSTREIFEN */

#dw-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    margin-bottom: 10px;
    background: #fff3d4;
    color: #755314;
    border-bottom: 2px solid #dfbf55;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

#dw-topbar .icon {
    color: #b58419;
    margin-right: 5px;
}

/* Dunkelmodus */
html.dw-dark #dw-topbar {
    background: #30291d;
    color: #f3cf75;
    border-bottom-color: #dfbf55;
}

html.dw-dark #dw-topbar .icon {
    color: #f3cf75;
}

/* Smartphone */
@media (max-width: 700px) {
    #dw-topbar {
        gap: 12px;
        padding: 10px 12px;
        font-size: 12px;
        flex-wrap: wrap;
    }
}


/* ==========================================
   DW – NEUE FORENÜBERSICHT 2026
   Blau-Gold-Design
   ========================================== */

/* Kategorie als goldumrandete Karte */
#page-body .forabg {
    border: 2px solid #e2b83f;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 22px;
    background: #f7faff;
    box-shadow: 0 4px 16px rgba(12, 38, 78, 0.12);
}

/* Dunkelblauer Kategorie-Kopf */
#page-body .forabg .topiclist > li.header {
    background: linear-gradient(
        110deg,
        #061b3c 0%,
        #07539a 55%,
        #061b3c 100%
    );
    border-bottom: 2px solid #e2b83f;
    padding: 10px 12px;
}

/* Weiße Überschriften */
#page-body .forabg .topiclist > li.header dt,
#page-body .forabg .topiclist > li.header dd,
#page-body .forabg .topiclist > li.header a {
    color: #ffffff;
    font-weight: 700;
}

/* Einzelne Forumszeilen */
#page-body .forabg ul.topiclist.forums {
    padding: 7px;
}

#page-body .forabg ul.topiclist.forums > li.row {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #edf4fc 100%
    );
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    margin: 5px 0 9px;
    padding: 8px 5px;
    box-shadow: 0 2px 5px rgba(15, 45, 80, 0.05);
    transition: background 0.2s, box-shadow 0.2s;
}

#page-body .forabg ul.topiclist.forums > li.row:hover {
    background: #e7f2ff;
    box-shadow: 0 3px 10px rgba(15, 45, 80, 0.12);
}

/* Forentitel */
#page-body .forabg a.forumtitle {
    font-weight: 700;
    font-size: 1.08em;
}

/* Dunkelmodus */
html.dw-dark #page-body .forabg {
    background: #202a39;
    border-color: #b58a36;
}

html.dw-dark #page-body .forabg ul.topiclist.forums > li.row {
    background: #293547;
    border-color: #46566c;
    color: #e8eef8;
}

html.dw-dark #page-body .forabg ul.topiclist.forums > li.row:hover {
    background: #34465e;
}

/* Smartphone */
@media (max-width: 700px) {
    #page-body .forabg {
        border-radius: 13px;
        margin-bottom: 15px;
    }

    #page-body .forabg ul.topiclist.forums {
        padding: 5px;
    }

    #page-body .forabg ul.topiclist.forums > li.row {
        border-radius: 9px;
        padding: 8px 4px;
    }
}


/* ==========================================
   DW – INDIVIDUELLE FOREN-ICONS 2026
   ========================================== */

/* Standard-Forensymbole optisch ersetzen */
#page-body .forabg ul.topiclist.forums
dl.row-item {
    position: relative;
    background-image: none !important;
}

/* Einheitlicher Icon-Kreis */
#page-body .forabg ul.topiclist.forums
dl.row-item > dt::before {
    content: "💎";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid #d6ad43;
    border-radius: 50%;
    background: #edf5ff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    pointer-events: none;
}

/* Platz für die Icons */
#page-body .forabg ul.topiclist.forums
dl.row-item > dt .list-inner {
    padding-left: 70px;
}

/* NEWS */
#page-body .forabg
dl.row-item:has(a[href*="f=106"]) > dt::before {
    content: "📰";
}

/* VERANSTALTUNGEN */
#page-body .forabg
dl.row-item:has(a[href*="f=151"]) > dt::before {
    content: "📅";
}

/* WIKKI KLÄRT AUF */
/* ID bei Bedarf später ergänzen */

/* THEMA DES TAGES */
#page-body .forabg
dl.row-item:has(a[href*="f=147"]) > dt::before {
    content: "💬";
}

/* WISSENSBIBLIOTHEK */
#page-body .forabg
dl.row-item:has(a[href*="f=146"]) > dt::before {
    content: "📚";
}

/* Dunkelmodus */
html.dw-dark #page-body .forabg
ul.topiclist.forums dl.row-item > dt::before {
    background: #26384d;
    border-color: #d6ad43;
}

/* Smartphone */
@media (max-width: 700px) {
    #page-body .forabg ul.topiclist.forums
    dl.row-item > dt::before {
        width: 36px;
        height: 36px;
        left: 7px;
        font-size: 19px;
    }

    #page-body .forabg ul.topiclist.forums
    dl.row-item > dt .list-inner {
        padding-left: 58px;
    }
}


/* ==========================================
   DW – INDIVIDUELLE RUBRIK-ICONS
   ========================================== */

/* News */
#page-body .dw-forum-106 > dt::before {
    content: "📰";
}

/* Veranstaltungen */
#page-body .dw-forum-151 > dt::before {
    content: "📅";
}

/* Thema des Tages */
#page-body .dw-forum-147 > dt::before {
    content: "💬";
}

/* Wissensbibliothek */
#page-body .dw-forum-146 > dt::before {
    content: "📚";
}


/* ==========================================
   DW – RUBRIK-ICONS: KORRIGIERTE ZUORDNUNG
   ========================================== */

/* News */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-106 > dt::before {
    content: "📰";
}

/* Veranstaltungen */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-151 > dt::before {
    content: "📅";
}

/* Thema des Tages */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-147 > dt::before {
    content: "💬";
}

/* Wissensbibliothek */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-146 > dt::before {
    content: "📚";
}


/* DW – Diamanten-Talk */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-150 > dt::before {
    content: "💬";
}


/* DW – Wikki klärt auf */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-107 > dt::before {
    content: "🧠";
}


/* DW – Hinter der Maske */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-148 > dt::before {
    content: "🎭";
}


/* DW – Sucht Selbsthilfe: Aktuelle Themen */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-134 > dt::before {
    content: "👥";
}



/* Blog-News */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-132 > dt::before {
    content: "📖";
}

/* Forum-News */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-12 > dt::before {
    content: "📢";
}

/* Hilfe & Feedback */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-15 > dt::before {
    content: "🛠️";
}


/* ==========================================
   DW – CHAMPAGNER-GOLDENE ICON-INNENFLÄCHEN
   ========================================== */

/* Helle Ansicht */
html:not(.dw-dark) #page-body .forabg
ul.topiclist.forums dl.row-item > dt::before {
    background: linear-gradient(
        145deg,
        #fff9e9 0%,
        #f8e8bb 100%
    ) !important;

    border: 1.5px solid #d6ad43;
    box-shadow: 0 2px 7px rgba(181, 132, 25, 0.18);
}

/* Dunkelmodus – dezentes Bronze-Gold */
html.dw-dark #page-body .forabg
ul.topiclist.forums dl.row-item > dt::before {
    background: linear-gradient(
        145deg,
        #493c27 0%,
        #30291d 100%
    ) !important;

    border-color: #d6ad43;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
}


/* ==========================================
   DW – THEMENÜBERSICHT IM BLAU-GOLD-STIL
   ========================================== */

/* Äußerer Rahmen der Themenübersicht */
#page-body .forumbg {
    background: #f7faff;
    border: 2px solid #e2b83f;
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 16px rgba(12, 38, 78, 0.12);
}

/* Dunkelblauer Kopfbereich */
#page-body .forumbg ul.topiclist > li.header {
    background: linear-gradient(
        110deg,
        #061b3c 0%,
        #07539a 55%,
        #061b3c 100%
    );
    border-bottom: 2px solid #e2b83f;
    padding: 10px 12px;
}

/* Weiße Spaltenüberschriften */
#page-body .forumbg ul.topiclist > li.header dt,
#page-body .forumbg ul.topiclist > li.header dd,
#page-body .forumbg ul.topiclist > li.header a {
    color: #ffffff !important;
    font-weight: 700;
}

/* Themenliste bleibt kompakt */
#page-body .forumbg ul.topiclist.topics {
    margin: 0;
    padding: 0;
}

/* Dunkelmodus */
html.dw-dark #page-body .forumbg {
    background: #202a39;
    border-color: #b58a36;
}

/* Smartphone */
@media (max-width: 700px) {
    #page-body .forumbg {
        border-radius: 13px;
    }
}


/* ==========================================
   DW – FÜNF SCHNELLZUGRIFF-KACHELN 2026
   ========================================== */

#page-body .dw-quicknav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 26px;
}

#page-body .dw-quicknav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 125px;
    padding: 18px 12px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #ffffff, #edf5ff);
    border: 1.5px solid #d6ad43;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(12, 38, 78, 0.08);
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page-body .dw-quicknav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(12, 38, 78, 0.16);
}

#page-body .dw-quicknav-card:focus-visible {
    outline: 3px solid #1688c5;
    outline-offset: 3px;
}

#page-body .dw-quicknav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid #d6ad43;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff9e9, #f8e8bb);
    font-size: 25px;
    line-height: 1;
}

#page-body .dw-quicknav-card .dw-quicknav-title {
    color: #123e70;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

#page-body .dw-quicknav-card .dw-quicknav-desc {
    color: #526477;
    font-size: 13px;
    line-height: 1.4;
}


/* Dunkelmodus */
html.dw-dark #page-body .dw-quicknav-card {
    background: linear-gradient(145deg, #293547, #202a39);
    border-color: #b58a36;
}

html.dw-dark #page-body .dw-quicknav-icon {
    background: linear-gradient(145deg, #493c27, #30291d);
    border-color: #d6ad43;
}

html.dw-dark #page-body .dw-quicknav-card .dw-quicknav-title {
    color: #f3cf75;
}

html.dw-dark #page-body .dw-quicknav-card .dw-quicknav-desc {
    color: #dce4ee;
}

/* Smartphone: alle Kacheln untereinander */
@media (max-width: 700px) {
    #page-body .dw-quicknav {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin: 12px 0 20px;
    }

    #page-body .dw-quicknav-card {
        min-height: 90px;
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-body .dw-quicknav-card {
        transition: none;
    }
}


/* ==========================================
   DW – FOTOMOTIVE IN DEN SCHNELLZUGRIFFEN
   ========================================== */
#page-body .dw-quicknav-card {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 18px;
    padding: 16px 22px;
    min-height: 130px;
}
#page-body .dw-quicknav-card .dw-quicknav-icon {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    flex: 0 0 100px;
}
#page-body .dw-quicknav-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
html.dw-dark #page-body .dw-quicknav-card .dw-quicknav-icon {
    background: transparent;
    border: 0;
}
@media (max-width: 700px) {
    #page-body .dw-quicknav-card {
        gap: 12px;
        padding: 12px;
        min-height: 100px;
    }
    #page-body .dw-quicknav-card .dw-quicknav-icon {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}

/* ==========================================
   DW – DEIN MOMENT DER RUHE (KOMPAKT)
   ========================================== */
#page-body .dw-ruhe {
    margin: 16px 0 22px;
    padding: 7px 12px 9px;
    text-align: center;
    color: #123e70;
}
#page-body .dw-ruhe h2 {
    margin: 0 0 3px;
    color: #123e70;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
#page-body .dw-ruhe-wave {
    width: min(100%, 560px);
    height: 43px;
    margin: 0 auto 1px;
    overflow: hidden;
}
#page-body .dw-ruhe-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}
#page-body .dw-ruhe-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    animation: dw-ruhe-flow 16s linear infinite alternate;
}
#page-body .dw-ruhe-line-gold { stroke: #d6ad43; opacity: .9; }
#page-body .dw-ruhe-line-blue {
    stroke: #1688c5;
    opacity: .55;
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}
@keyframes dw-ruhe-flow {
    from { transform: translateX(-12%); }
    to { transform: translateX(12%); }
}
#page-body .dw-ruhe-timer {
    display: inline-block;
    margin: 0;
    padding: 4px 13px;
    border: 1px solid #d6ad43;
    border-radius: 20px;
    background: #fff8e8;
    color: #123e70;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
html.dw-dark #page-body .dw-ruhe,
html.dw-dark #page-body .dw-ruhe h2 { color: #f3cf75; }
html.dw-dark #page-body .dw-ruhe-timer {
    background: #30291d;
    color: #f3cf75;
    border-color: #b58a36;
}
@media (max-width: 700px) {
    #page-body .dw-ruhe { margin: 14px 0 20px; padding: 6px 8px 8px; }
    #page-body .dw-ruhe h2 { font-size: 15px; }
    #page-body .dw-ruhe-wave { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    #page-body .dw-ruhe-line { animation: none; }
}


/* ==========================================
   DW – NEUE KOMPAKTE NAVIGATION 15.11.2026
   Desktop und Smartphone, bestehende Menüs
   ========================================== */

/* Alte phpBB-Kopfnavigation bleibt im Quelltext für Erweiterungen erhalten,
   wird aber visuell durch die DW-Navigation ersetzt. */
#page-header > .navbar { display: none !important; }

/* Suche über das Seitenmenü statt rechts neben dem Logo. */
#page-header .headerbar #search-box.search-header { display: none !important; }

#page-header .dw-main-toolbar {
    display: grid;
    grid-template-columns: minmax(48px, 1fr) minmax(0, 2fr) minmax(48px, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 60px;
    padding: 8px 16px;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 2px solid #d6ad43;
    position: relative;
    z-index: 101;
}

/* Bestehenden Hamburger aus der alten verschobenen Position lösen. */
#wrap #page-header .dw-main-toolbar #dw-menu-open {
    position: static !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    justify-self: start;
    width: 40px;
    min-height: 38px;
    padding: 5px 8px !important;
    font-size: 23px !important;
    line-height: 1.1;
}
#page-header .dw-main-toolbar .dw-account-center {
    min-width: 0;
    display: flex;
    justify-content: center;
    position: relative;
}
#page-header .dw-account-menu { position: relative; min-width: 0; max-width: 100%; }
#page-header .dw-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    padding: 6px 12px;
    border: 1px solid #d6ad43;
    border-radius: 20px;
    background: #fff8e8;
    color: #17466e;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}
#page-header .dw-account-trigger::-webkit-details-marker { display: none; }
#page-header .dw-account-trigger::marker { content: ''; }
#page-header .dw-account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(38vw, 260px);
}
#page-header .dw-account-chevron { font-size: 10px; }
#page-header .dw-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 190px;
    max-width: min(85vw, 300px);
    padding: 7px;
    border: 1px solid #d6ad43;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
    z-index: 2000;
}
#page-header .dw-account-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #17466e;
    text-decoration: none;
    font-size: 14px;
}
#page-header .dw-account-dropdown a:hover,
#page-header .dw-account-dropdown a:focus-visible { background: #fff3d4; }
#page-header .dw-main-toolbar .dw-theme-controls {
    justify-self: end;
    padding: 0;
    background: transparent;
}
#dw-side-menu .dw-menu-section-title {
    margin: 16px 0 4px;
    padding: 10px 14px 5px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a6414;
}
html.dw-dark #page-header .dw-main-toolbar {
    background: #171b23;
    border-bottom-color: #b58a36;
}
html.dw-dark #page-header .dw-account-trigger {
    background: #30291d;
    border-color: #b58a36;
    color: #f3cf75;
}
html.dw-dark #page-header .dw-account-dropdown {
    background: #252b36;
    border-color: #b58a36;
}
html.dw-dark #page-header .dw-account-dropdown a { color: #f1f4f8; }
html.dw-dark #page-header .dw-account-dropdown a:hover,
html.dw-dark #page-header .dw-account-dropdown a:focus-visible { background: #493b23; }
@media (max-width: 700px) {
    #page-header .dw-main-toolbar { padding: 7px 12px; gap: 5px; }
    #page-header .dw-account-trigger { padding: 6px 9px; font-size: 14px; }
    #page-header .dw-account-name { max-width: 37vw; }
    #page-header .dw-account-dropdown { min-width: 180px; }
}


/* ==========================================
   DW – DESKTOP-SUCHE WIEDERHERSTELLEN
   15.11.2026: neben dem Hell-/Dunkel-Schalter
   ========================================== */
@media (min-width: 701px) {
    #page-header .dw-main-toolbar {
        grid-template-columns: minmax(48px, 1fr) minmax(0, 2fr) 48px minmax(195px, 230px);
        column-gap: 12px;
    }
    #page-header .dw-main-toolbar .dw-desktop-search {
        justify-self: end;
        width: 100%;
        min-width: 0;
    }
    #page-header .dw-main-toolbar #search-box.search-header {
        display: block !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin: 0 !important;
        z-index: auto !important;
        float: none !important;
        box-sizing: border-box;
    }
    #page-header .dw-main-toolbar #search-box.search-header form,
    #page-header .dw-main-toolbar #search-box.search-header fieldset {
        width: 100% !important;
        box-sizing: border-box;
        margin: 0;
    }
    #page-header .dw-main-toolbar #search-box.search-header input.inputbox {
        width: 100% !important;
        min-width: 0 !important;
    }
}
@media (max-width: 700px) {
    #page-header .dw-main-toolbar .dw-desktop-search { display: none !important; }
}


/* ==============================================
   DW DISKRETMODUS – 15.11.2026
   Neutrale Darstellung, kein Datenschutz-Ersatz
   ============================================== */
#page-header .dw-main-toolbar {
    grid-template-columns: minmax(48px, 1fr) minmax(0, 2fr) minmax(96px, 1fr);
}
#page-header .dw-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
}
#page-header .dw-toolbar-actions .dw-theme-controls { flex: 0 0 auto; }
#page-header .dw-discreet-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d6dde6;
    border-radius: 50%;
    background: #f6f8fa;
    color: #64748b;
    font-size: 19px;
    cursor: pointer;
}
#page-header .dw-discreet-toggle:hover { background: #e9f3fa; }
#page-header .dw-discreet-toggle:focus-visible { outline: 2px solid #1688c5; outline-offset: 3px; }
#page-header .dw-desktop-search { display: none; }
@media (min-width: 701px) {
    #page-header .dw-main-toolbar {
        grid-template-columns: minmax(48px, 1fr) minmax(0, 2fr) minmax(295px, 1fr);
        column-gap: 12px;
    }
    #page-header .dw-toolbar-actions .dw-desktop-search {
        display: block;
        width: clamp(165px, 17vw, 230px);
        flex: 0 1 230px;
        min-width: 155px;
    }
}
@media (max-width: 700px) {
    #page-header .dw-main-toolbar { grid-template-columns: 48px minmax(0, 1fr) 96px; }
    #page-header .dw-toolbar-actions { gap: 6px; }
    #page-header .dw-discreet-toggle,
    #page-header .dw-toolbar-actions .dw-theme-toggle { width: 36px; height: 36px; }
}
.dw-discreet-notice:not([hidden]) {
    position: fixed;
    z-index: 1000001;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 16px;
    border-radius: 8px;
    background: #303846;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    pointer-events: none;
}
html.dw-dark #page-header .dw-discreet-toggle { background: #303848; border-color: #465163; color: #d0d9e6; }

/* Branding und auffällige Zusatzelemente neutralisieren; Beiträge bleiben lesbar. */
html.dw-discreet #site-description .logo,
html.dw-discreet #dw-side-menu .dw-menu-logo,
html.dw-discreet #sshg-dashboard,
html.dw-discreet #sshg-dashboard-oeffnen,
html.dw-discreet .dw-partner,
html.dw-discreet .dw-quicknav,
html.dw-discreet #dw-topbar { display: none !important; }
html.dw-discreet #page-header .headerbar { padding: 0 !important; background: transparent !important; }
html.dw-discreet #page-header .headerbar .inner { min-height: 0 !important; height: 0 !important; padding: 0 !important; }
html.dw-discreet #page-header .dw-main-toolbar {
    background: #f7f8fa !important;
    border-bottom: 1px solid #d6dbe2 !important;
}
html.dw-discreet #page-header .dw-account-trigger,
html.dw-discreet #page-header .dw-discreet-toggle,
html.dw-discreet #page-header .dw-theme-toggle,
html.dw-discreet #wrap #page-header .dw-main-toolbar #dw-menu-open {
    background: #f1f3f5 !important;
    border: 1px solid #cbd2da !important;
    color: #374151 !important;
    box-shadow: none !important;
}
html.dw-discreet #page-header .dw-main-toolbar .dw-discreet-toggle { background: #dfe5ec !important; }
html.dw-discreet .forabg,
html.dw-discreet .forumbg,
html.dw-discreet #page-body .panel,
html.dw-discreet #page-body .post {
    border-color: #d6dbe2 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}
html.dw-discreet .forabg .header,
html.dw-discreet .forumbg .header,
html.dw-discreet #page-footer .navbar {
    background: #eef0f3 !important;
    border-color: #d6dbe2 !important;
}
html.dw-discreet .forabg .header *,
html.dw-discreet .forumbg .header * { color: #334155 !important; }
html.dw-discreet #page-body a.forumtitle,
html.dw-discreet #page-body a.topictitle { color: #334155 !important; }
html.dw-discreet #dw-side-menu { background: #f7f8fa !important; }
html.dw-discreet #dw-side-menu .dw-menu-links a { color: #334155 !important; }
html.dw-discreet #page-body a.button[href*="posting.php"] { background: #e8eaee !important; border-color: #cbd2da !important; color: #334155 !important; }
html.dw-discreet #page-body a.button[href*="posting.php"] .icon { color: #334155 !important; }
/* Dunkelmodus bleibt auch in der neutralen Ansicht nutzbar. */
html.dw-discreet.dw-dark #page-header .dw-main-toolbar,
html.dw-discreet.dw-dark #dw-side-menu { background: #20252d !important; border-color: #48515e !important; }
html.dw-discreet.dw-dark #page-header .dw-account-trigger,
html.dw-discreet.dw-dark #page-header .dw-discreet-toggle,
html.dw-discreet.dw-dark #page-header .dw-theme-toggle,
html.dw-discreet.dw-dark #wrap #page-header .dw-main-toolbar #dw-menu-open {
    background: #303741 !important; border-color: #535e6b !important; color: #e4e8ed !important;
}
html.dw-discreet.dw-dark .forabg .header,
html.dw-discreet.dw-dark .forumbg .header,
html.dw-discreet.dw-dark #page-footer .navbar { background: #303741 !important; border-color: #535e6b !important; }
html.dw-discreet.dw-dark .forabg .header *,
html.dw-discreet.dw-dark .forumbg .header *,
html.dw-discreet.dw-dark #page-body a.forumtitle,
html.dw-discreet.dw-dark #page-body a.topictitle { color: #e4e8ed !important; }
html.dw-discreet.dw-dark #dw-side-menu .dw-menu-links a { color: #e4e8ed !important; }

/* DW-Diskretmodus: Startseiten-Galerie und Besucherstatistik ausblenden. */
html.dw-discreet .dw-blog-gallery-region,
html.dw-discreet #page-body .stat-block.online-list {
    display: none !important;
}

/* DW-Diskretmodus v3: tatsächlicher Container der eigenen Bloggalerie.
   Zusätzlich Geburtstage und Statistik nur in der neutralen Ansicht verbergen. */
html.dw-discreet #page-body .dw-blog-gallery,
html.dw-discreet #page-body .stat-block.birthday-list,
html.dw-discreet #page-body .stat-block.statistics {
    display: none !important;
}


/* DW-Milchglas-Sichtschutz v5: einzelne Kategorienüberschriften und Forenzeilen.
   Nur Startseite, Auge-Button steuert html.dw-discreet. */
@supports selector(body:has(.dw-ruhe)) {
  body:has(.dw-ruhe) #page-body .forabg .header,
  body:has(.dw-ruhe) #page-body .forabg li.row {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  body:has(.dw-ruhe) #page-body .forabg .header::after,
  body:has(.dw-ruhe) #page-body .forabg li.row::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 50;
    border-radius: 5px;
    background: linear-gradient(110deg, #e9edf1 0%, #dce3e9 55%, #e7ebef 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s;
  }
  html.dw-discreet body:has(.dw-ruhe) #page-body .forabg .header::after,
  html.dw-discreet body:has(.dw-ruhe) #page-body .forabg li.row::after {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s;
  }
  html.dw-discreet.dw-dark body:has(.dw-ruhe) #page-body .forabg .header::after,
  html.dw-discreet.dw-dark body:has(.dw-ruhe) #page-body .forabg li.row::after {
    background: linear-gradient(110deg, #343c46, #2d3640 55%, #3a424d);
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.dw-ruhe) #page-body .forabg .header::after,
  body:has(.dw-ruhe) #page-body .forabg li.row::after { transition: none !important; }
}


/* DW-Milchglas v6 – auch Themenlisten innerhalb eines Forums.
   Der bestehende Auge-Schalter setzt html.dw-discreet.
   Die Startseiten-Regeln aus v5 bleiben unverändert. */
#page-body .forumbg ul.topiclist > li.header,
#page-body .forumbg ul.topiclist.topics > li.row {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
#page-body .forumbg ul.topiclist > li.header::after,
#page-body .forumbg ul.topiclist.topics > li.row::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 50;
    border-radius: 3px;
    background: linear-gradient(110deg, #e9edf1 0%, #dce3e9 55%, #e7ebef 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s;
}
html.dw-discreet #page-body .forumbg ul.topiclist > li.header::after,
html.dw-discreet #page-body .forumbg ul.topiclist.topics > li.row::after {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s;
}
html.dw-discreet.dw-dark #page-body .forumbg ul.topiclist > li.header::after,
html.dw-discreet.dw-dark #page-body .forumbg ul.topiclist.topics > li.row::after {
    background: linear-gradient(110deg, #343c46, #2d3640 55%, #3a424d);
}
@media (prefers-reduced-motion: reduce) {
    #page-body .forumbg ul.topiclist > li.header::after,
    #page-body .forumbg ul.topiclist.topics > li.row::after {
        transition: none !important;
    }
}


/* DW-Milchglas v7 – rechte Spalten der Forenstartseite separat schützen.
   Themen/Beiträge/Letzter Beitrag: jede Zelle erhält denselben Vorhang.
   Nur auf der Startseite (dw-ruhe), nicht in Beitragstexten. */
@supports selector(body:has(.dw-ruhe)) {
  body:has(.dw-ruhe) #page-body .forabg ul.topiclist.forums > li.row dd {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  body:has(.dw-ruhe) #page-body .forabg ul.topiclist.forums > li.row dd::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 999;
    display: block;
    border-radius: 3px;
    background: linear-gradient(110deg, #e9edf1, #dce3e9 55%, #e7ebef);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s;
  }
  html.dw-discreet body:has(.dw-ruhe) #page-body .forabg ul.topiclist.forums > li.row dd::after {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s;
  }
  html.dw-discreet.dw-dark body:has(.dw-ruhe) #page-body .forabg ul.topiclist.forums > li.row dd::after {
    background: linear-gradient(110deg, #343c46, #2d3640 55%, #3a424d);
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.dw-ruhe) #page-body .forabg ul.topiclist.forums > li.row dd::after {
    transition: none !important;
  }
}


/* DW-Milchglas v8 – rechte Zellen in Themenlisten (viewforum.php).
   Die bereits funktionierenden Startseitenregeln bleiben unverändert. */
#page-body .forumbg ul.topiclist li.row dd,
#page-body .forabg ul.topiclist.topics li.row dd {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
#page-body .forumbg ul.topiclist li.row dd::after,
#page-body .forabg ul.topiclist.topics li.row dd::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 100;
    display: block;
    border-radius: 3px;
    background: linear-gradient(110deg, #e9edf1, #dce3e9 55%, #e7ebef);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s;
}
html.dw-discreet #page-body .forumbg ul.topiclist li.row dd::after,
html.dw-discreet #page-body .forabg ul.topiclist.topics li.row dd::after {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s;
}
html.dw-discreet.dw-dark #page-body .forumbg ul.topiclist li.row dd::after,
html.dw-discreet.dw-dark #page-body .forabg ul.topiclist.topics li.row dd::after {
    background: linear-gradient(110deg, #343c46, #2d3640 55%, #3a424d);
}
@media (prefers-reduced-motion: reduce) {
    #page-body .forumbg ul.topiclist li.row dd::after,
    #page-body .forabg ul.topiclist.topics li.row dd::after { transition: none !important; }
}


/* DW Lesefokus v9 – jeweils eine Forenzeile bewusst freigeben. */
html.dw-discreet #page-body li.row.dw-lesefokus-offen::after,
html.dw-discreet #page-body li.row.dw-lesefokus-offen dd::after,
html.dw-discreet #page-body li.header.dw-lesefokus-offen::after {
    transform: translateX(102%) !important;
    pointer-events: none !important;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s !important;
}
html.dw-discreet #page-body li.row.dw-lesefokus-offen,
html.dw-discreet #page-body li.header.dw-lesefokus-offen { outline: 1px solid rgba(100,130,155,.35); outline-offset: -1px; }
/* Eine kleine, diskrete Schließen-Taste, ohne phpBB-Links zu verändern. */
#page-body .dw-lesefokus-schliessen {
    display: none; position: absolute; top: 5px; right: 6px; z-index: 1200;
    width: 27px; height: 27px; padding: 0; border-radius: 50%;
    border: 1px solid #aab8c4; background: #f6f8fa; color: #334155;
    font-size: 15px; line-height: 1; cursor: pointer;
}
html.dw-discreet #page-body .dw-lesefokus-offen > .dw-lesefokus-schliessen { display: block; }
html.dw-discreet.dw-dark #page-body .dw-lesefokus-schliessen { background:#303741; color:#f1f5f9; }
@media (prefers-reduced-motion: reduce) {
 html.dw-discreet #page-body li.row.dw-lesefokus-offen::after,
 html.dw-discreet #page-body li.row.dw-lesefokus-offen dd::after { transition:none !important; }
}


/* DW-Lesefokus v10: neutrale Beschriftungen; v12 setzt die vollständige Abdeckung. */

/* DW-Lesefokus v11 – einzelne Beiträge in viewtopic.php.
   Nur der Beitragstext, nicht die Navigation, wird abgedeckt. */
#page-body .post .postbody .content.dw-beitrag-geschuetzt {
    position: relative;
    isolation: isolate;
    min-height: 110px;
}
#page-body .post .postbody .content.dw-beitrag-geschuetzt::after {
    content: "Beitrag lesen";
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 6px;
    background: linear-gradient(110deg, #e9edf1, #dce3e9 55%, #e7ebef);
    color: #30465a;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s;
}
html.dw-discreet #page-body .post .postbody .content.dw-beitrag-geschuetzt:not(.dw-beitrag-offen)::after {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s;
}
html.dw-discreet.dw-dark #page-body .post .postbody .content.dw-beitrag-geschuetzt::after {
    background: linear-gradient(110deg, #343c46, #2d3640 55%, #3a424d);
    color: #f0f3f6;
}
#page-body .dw-beitrag-schliessen {
    display: none;
    position: absolute;
    right: 8px;
    top: 7px;
    z-index: 35;
    border: 1px solid #aab8c4;
    border-radius: 16px;
    padding: 5px 10px;
    background: #f6f8fa;
    color: #334155;
    cursor: pointer;
    font-size: 12px;
}
html.dw-discreet #page-body .dw-beitrag-offen > .dw-beitrag-schliessen { display: block; }
html.dw-discreet.dw-dark #page-body .dw-beitrag-schliessen {
    background: #303741;
    color: #f1f5f9;
}
@media (prefers-reduced-motion: reduce) {
    #page-body .post .postbody .content.dw-beitrag-geschuetzt::after { transition: none !important; }
}


/* DW-Lesefokus v11.1 – Seitenüberschrift im Diskretmodus neutral anzeigen.
   Der echte Titel bleibt für Navigation und Normalmodus unverändert. */
html.dw-discreet #page-body h2.dw-diskret-seitentitel {
    position: relative;
    isolation: isolate;
    min-height: 36px;
}
html.dw-discreet #page-body h2.dw-diskret-seitentitel::after {
    content: attr(data-dw-seitentitel);
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    padding: 3px 0;
    background: #ffffff;
    color: #30465a;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
}
html.dw-discreet.dw-dark #page-body h2.dw-diskret-seitentitel::after {
    background: #171b23;
    color: #f0f3f6;
}

/* DW-Lesefokus v12 – Unterforen auch innerhalb von viewforum.php.
   Die vollständige Zeile wird abgedeckt, nicht nur die rechte Spalte. */
#page-body .forabg ul.topiclist.forums > li.row[data-dw-neutral] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
#page-body .forabg ul.topiclist.forums > li.row[data-dw-neutral]::after {
    content: attr(data-dw-neutral);
    position: absolute;
    inset: 0;
    z-index: 1100;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 7px;
    background: linear-gradient(110deg, #e9edf1 0%, #dce3e9 55%, #e7ebef 100%);
    color: #253e52;
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 700;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s;
}
html.dw-discreet #page-body .forabg ul.topiclist.forums > li.row[data-dw-neutral]:not(.dw-lesefokus-offen)::after {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s;
}
html.dw-discreet #page-body .forabg ul.topiclist.forums > li.row.dw-lesefokus-offen::after {
    transform: translateX(102%) !important;
    visibility: hidden;
    pointer-events: none !important;
}
html.dw-discreet.dw-dark #page-body .forabg ul.topiclist.forums > li.row[data-dw-neutral]::after {
    background: linear-gradient(110deg, #343c46, #2d3640 55%, #3a424d);
    color: #f0f3f6;
}
@media (prefers-reduced-motion: reduce) {
    #page-body .forabg ul.topiclist.forums > li.row[data-dw-neutral]::after { transition: none !important; }
}

/* DW-Lesefokus v13: 118 eindeutige Foren-Tarnnamen kommen aus der Foren-ID-Tabelle im overall_header. */


/* DW-Lesefokus v13.1 – Vollständiger Sichtschutz auch bei Themenlisten
   innerhalb einer .forabg (nicht nur .forumbg). Deckt Titel, Autor und
   Metadaten gemeinsam ab; die bewusst geöffnete Zeile bleibt lesbar. */
#page-body .forabg ul.topiclist.topics > li.row[data-dw-neutral],
#page-body .forumbg ul.topiclist.topics > li.row[data-dw-neutral] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
#page-body .forabg ul.topiclist.topics > li.row[data-dw-neutral]::after,
#page-body .forumbg ul.topiclist.topics > li.row[data-dw-neutral]::after {
    content: attr(data-dw-neutral);
    position: absolute;
    inset: 0;
    z-index: 1100;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 4px;
    background: linear-gradient(110deg,#e9edf1 0%,#dce3e9 55%,#e7ebef 100%);
    color: #253e52;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s linear 1.5s;
}
html.dw-discreet #page-body .forabg ul.topiclist.topics > li.row[data-dw-neutral]:not(.dw-lesefokus-offen)::after,
html.dw-discreet #page-body .forumbg ul.topiclist.topics > li.row[data-dw-neutral]:not(.dw-lesefokus-offen)::after {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 1.5s cubic-bezier(.25,.8,.25,1), visibility 0s;
}
html.dw-discreet #page-body .forabg ul.topiclist.topics > li.row.dw-lesefokus-offen::after,
html.dw-discreet #page-body .forumbg ul.topiclist.topics > li.row.dw-lesefokus-offen::after {
    transform: translateX(102%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
html.dw-discreet.dw-dark #page-body .forabg ul.topiclist.topics > li.row[data-dw-neutral]::after,
html.dw-discreet.dw-dark #page-body .forumbg ul.topiclist.topics > li.row[data-dw-neutral]::after {
    background: linear-gradient(110deg,#343c46,#2d3640 55%,#3a424d);
    color: #f0f3f6;
}
@media (prefers-reduced-motion: reduce) {
    #page-body .forabg ul.topiclist.topics > li.row[data-dw-neutral]::after,
    #page-body .forumbg ul.topiclist.topics > li.row[data-dw-neutral]::after {
        transition: none !important;
    }
}

/* DW Lesefokus v13.2 – unaufdringliche Statusmeldung beim Augen-Button */
.dw-discreet-notice:not([hidden]) {
    position: fixed;
    inset: auto auto auto auto;
    top: 50%; left: 50%; bottom: auto;
    transform: translate(-50%, -46%) scale(.98);
    z-index: 1000001;
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    width: max-content; max-width: min(92vw, 380px);
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(39,49,63,.96);
    color: #fff;
    box-shadow: 0 10px 32px rgba(0,0,0,.20);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
    pointer-events: none;
    text-align: left;
}
.dw-discreet-notice.dw-notice-visible:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.dw-discreet-notice .dw-notice-icon { font-size: 23px; line-height: 1; flex: none; }
.dw-discreet-notice .dw-notice-text { display: flex; flex-direction: column; gap: 4px; }
.dw-discreet-notice strong { color: #fff; font-size: 15px; font-weight: 700; }
.dw-discreet-notice small { color: #dbe3ee; font-size: 12px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
    .dw-discreet-notice:not([hidden]) { transition: none; }
}


/* DW-Lesefokus v13.3 – mobile Beitragsüberschriften und Tipp-zum-Umschalten. */
/* Die Überschrift wird unabhängig vom nachträglichen JavaScript abgedeckt. */
html.dw-discreet #page-body .post .postbody h3 {
    position: relative;
    isolation: isolate;
    min-height: 42px;
}
html.dw-discreet #page-body .post .postbody h3::after {
    content: "Beitrag lesen";
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    box-sizing: border-box;
    background: linear-gradient(110deg, #e9edf1, #dce3e9 55%, #e7ebef);
    color: #30465a;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
html.dw-discreet #page-body .post .postbody.dw-beitrag-offen h3::after { display: none; }
html.dw-discreet.dw-dark #page-body .post .postbody h3::after {
    background: linear-gradient(110deg, #343c46, #2d3640 55%, #3a424d);
    color: #f0f3f6;
}
/* Bei langen Beiträgen den Öffnen-Hinweis oben statt mittig platzieren. */
html.dw-discreet #page-body .post .postbody .content.dw-beitrag-geschuetzt:not(.dw-beitrag-offen)::after {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 14px 16px;
    transform: none;
    transition: none;
    cursor: pointer;
}
html.dw-discreet #page-body .post .postbody .content.dw-beitrag-geschuetzt::after {
    transform: none;
    transition: none;
}
/* Der bisherige Schließen-Button entfällt vollständig. */
#page-body .dw-beitrag-schliessen { display: none !important; }
html.dw-discreet #page-body .post .postbody.dw-beitrag-offen .content { cursor: pointer; }


/* DW v13.4 – sticky Navigation eine Forumsebene zurück */
#page-body .dw-ebene-nav {
    position: sticky;
    top: 8px;
    z-index: 1200;
    width: max-content;
    max-width: 100%;
    margin: 8px 0 14px;
}
#page-body .dw-ebene-zurueck {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid #bdc9d3;
    border-radius: 9px;
    background: #edf1f5;
    color: #263d50;
    box-shadow: 0 2px 9px rgba(17, 40, 58, .10);
    font-weight: 650;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
}
#page-body .dw-ebene-zurueck:hover,
#page-body .dw-ebene-zurueck:focus-visible {
    background: #dce7ef;
    color: #19374d;
    outline-offset: 2px;
}
html.dw-dark #page-body .dw-ebene-zurueck {
    background: #303943;
    color: #f0f4f7;
    border-color: #5b6875;
}
@media (max-width: 700px) {
    #page-body .dw-ebene-nav { top: 5px; margin: 6px 0 10px; }
    #page-body .dw-ebene-zurueck { padding: 10px 12px; font-size: 13px; }
}


/* ================================================================
   DW-Lesefokus v13.5 – Seitenwechsel ohne kurzes Aufblitzen.
   Die Animation beim bewussten Umschalten per Auge bleibt unverändert.
   ================================================================ */
html.dw-discreet.dw-diskret-start #page-body .forabg .header::after,
html.dw-discreet.dw-diskret-start #page-body .forabg li.row::after,
html.dw-discreet.dw-diskret-start #page-body .forumbg li.header::after,
html.dw-discreet.dw-diskret-start #page-body .forumbg li.row::after,
html.dw-discreet.dw-diskret-start #page-body .forabg li.row dd::after,
html.dw-discreet.dw-diskret-start #page-body .forumbg li.row dd::after,
html.dw-discreet.dw-diskret-start #page-body .post .postbody .content::after {
    transition: none !important;
}
/* Die geschlossenen Abdeckungen stehen vor der ersten sichtbaren Darstellung
   bereits an ihrem endgültigen Platz – ohne Einschub von rechts. */
html.dw-discreet.dw-diskret-start #page-body .forabg .header::after,
html.dw-discreet.dw-diskret-start #page-body .forabg li.row:not(.dw-lesefokus-offen)::after,
html.dw-discreet.dw-diskret-start #page-body .forumbg li.header::after,
html.dw-discreet.dw-diskret-start #page-body .forumbg li.row:not(.dw-lesefokus-offen)::after,
html.dw-discreet.dw-diskret-start #page-body .forabg li.row:not(.dw-lesefokus-offen) dd::after,
html.dw-discreet.dw-diskret-start #page-body .forumbg li.row:not(.dw-lesefokus-offen) dd::after,
html.dw-discreet.dw-diskret-start #page-body .post .postbody .content.dw-beitrag-geschuetzt:not(.dw-beitrag-offen)::after {
    transform: translateX(0) !important;
    visibility: visible !important;
}

/* v13.5.1: Startmodus bleibt nach dem Freigeben bestehen.
   Dadurch startet beim ersten Anzeigen kein nachtraeglicher Milchglas-Slide.
   Beim manuellen Auge-Klick entfernt JS die Klasse: Animation bleibt erhalten. */

/* DW 13.5.3: Goldener Zurueck-Button im Normalmodus, neutral im Lesefokus. */
html:not(.dw-discreet):not(.dw-dark) #page-body .dw-ebene-zurueck {
    background: linear-gradient(180deg, #fff2ba 0%, #f4cd62 100%);
    border-color: #c59a25;
    color: #3b2b0c;
    box-shadow: 0 2px 9px rgba(138, 97, 12, .16);
}
html:not(.dw-discreet):not(.dw-dark) #page-body .dw-ebene-zurueck:hover,
html:not(.dw-discreet):not(.dw-dark) #page-body .dw-ebene-zurueck:focus-visible {
    background: linear-gradient(180deg, #ffe79b 0%, #eab83d 100%);
    border-color: #ac8016;
    color: #302104;
}

/* DW 13.5.4: Zurueck-Button kompakt wie „Neues Thema“, in beiden Modi. */
#page-body .dw-ebene-zurueck {
    padding: 3px 10px;
    min-height: 23px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.25;
    border-radius: 6px;
    gap: 5px;
}
@media (max-width: 700px) {
    #page-body .dw-ebene-zurueck { padding: 3px 10px; font-size: 12px; }
}


/* DW – Dauerhafte Kanalwerbung auf der Startseite */
#page-body .dw-startkanaele { clear:both; box-sizing:border-box; margin:14px auto 0; padding:12px; max-width:760px; border:1px solid #d6ad43; border-radius:12px; background:#fff8e8; text-align:center; }
#page-body .dw-startkanaele h2 { margin:0 0 6px; font-size:16px; line-height:1.35; color:#795811; border:0; }
#page-body .dw-startkanaele p { margin:0 0 10px; font-size:13px; line-height:1.4; color:#526477; }
#page-body .dw-startkanaele-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
#page-body .dw-startkanaele-links a { display:flex; align-items:center; justify-content:center; gap:5px; min-height:40px; box-sizing:border-box; padding:8px 4px; border-radius:8px; font-size:14px; font-weight:700; color:#fff !important; text-decoration:none; }
#page-body .dw-startkanaele-wa { background:#187c43; }
#page-body .dw-startkanaele-tg { background:#167caf; }
#page-body .dw-startkanaele-jugend { display:flex; flex-direction:column; gap:4px; margin-top:8px; padding:9px 5px; border:1px solid #d6ad43; border-radius:8px; background:#fff; color:#263445; font-size:13px; text-decoration:none; }
#page-body .dw-startkanaele-jugend span { color:#187c43; font-size:12px; }
#page-body .dw-startkanaele > small { display:block; margin-top:8px; color:#526477; font-size:11px; }
#page-body .dw-startkanaele a:hover { text-decoration:underline; }
#page-body .dw-startkanaele a:focus-visible { outline:2px solid #1688c5; outline-offset:2px; }
html.dw-dark #page-body .dw-startkanaele { background:#30291d; border-color:#b58a36; }
html.dw-dark #page-body .dw-startkanaele h2 { color:#f3cf75; }
html.dw-dark #page-body .dw-startkanaele p, html.dw-dark #page-body .dw-startkanaele > small { color:#cbd5e1; }
html.dw-dark #page-body .dw-startkanaele-jugend { background:#252b36; color:#f1f4f8; }
html.dw-dark #page-body .dw-startkanaele-jugend span { color:#91e6ae; }
html.dw-discreet #page-body .dw-startkanaele { display:none !important; }

/* DW – Schritt 3.1: aufklappbare News-Kachel */
#page-body .dw-news-klappkarte { min-width:0; align-self:start; }
#page-body .dw-quicknav:has(.dw-news-klappkarte[open]) { align-items:start; }
#page-body .dw-news-klappkarte > summary { cursor:pointer; list-style:none; }
#page-body .dw-news-klappkarte > summary::-webkit-details-marker { display:none; }
#page-body .dw-news-klappkarte > summary::marker { content:''; }
#page-body .dw-news-chevron { margin-left:auto; flex-shrink:0; color:#b58419; }
#page-body .dw-news-klappkarte[open] > summary { border-radius:14px 14px 0 0; transform:none; }
#page-body .dw-news-klappkarte[open] .dw-news-chevron { transform:rotate(180deg); }
#page-body .dw-news-klappinhalt { border:1.5px solid #d6ad43; border-top:0; border-radius:0 0 14px 14px; padding:12px 16px; background:var(--dw-card); color:var(--dw-text); }
#page-body .dw-news-klappstatus { color:var(--dw-muted); font-size:12px; margin:0 0 8px; }
#page-body .dw-news-klappliste { list-style:none; margin:0; padding:0; }
#page-body .dw-news-klappliste li { padding:9px 0; border-bottom:1px solid var(--dw-border); overflow-wrap:anywhere; }
#page-body .dw-news-klappliste a, #page-body .dw-news-alle { color:var(--dw-blue); font-size:13px; font-weight:600; }
#page-body .dw-news-alle { display:block; padding-top:12px; text-align:center; }
html.dw-dark #page-body .dw-news-chevron { color:#f3cf75; }

#page-body .dw-news-datum { display:block; margin-top:4px; font-size:11px; font-weight:normal; color:var(--dw-muted); }
#page-body .dw-news-klappstatus:empty { display:none; }



/* DW – Weitere individuelle Rubrik-Icons */

/* Rueckfallpraevention */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-159 > dt::before {
    content: "🛡️";
}

/* Kinder und Jugend */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-165 > dt::before {
    content: "🧩";
}

/* Fuer Kinder */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-166 > dt::before {
    content: "🌍";
}

/* Fuer Jugendliche */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-167 > dt::before {
    content: "💬";
}

/* Diamanten-Akte */
#page-body .forabg ul.topiclist.forums
dl.row-item.dw-forum-158 > dt::before {
    content: "🔎";
}

/* DW – Dashboard V44: Hintergrund bleibt beim geöffneten Kontrollzentrum ruhig. */
html:not(.dw-discreet):has(#sshg-dashboard.dw-dashboard-open:not(.dw-dashboard-hidden)) { overflow:hidden; }


/* V44.1 - Scrollleistenplatz beim Dashboard stabil halten */
html { scrollbar-gutter: stable; }

/* DW – NEWS-TICKER */
#page-body .dw-ticker {display:flex;align-items:center;gap:12px;box-sizing:border-box;margin:16px 0;padding:9px;border:1px solid #d6ad43;border-radius:12px;background:#f2f7fc;min-width:0;}
#page-body .dw-ticker[hidden],html.dw-discreet #page-body .dw-ticker {display:none!important;}
#page-body .dw-ticker-label {flex:none;background:#23465b;color:#ffdf89;border-radius:8px;padding:18px 12px;font-size:14px;}
#page-body .dw-ticker-window {flex:1;min-width:0;overflow:auto;scrollbar-width:none;}
#page-body .dw-ticker-window::-webkit-scrollbar {display:none;}
#page-body .dw-ticker-track {display:flex;gap:12px;width:max-content;}
#page-body .dw-ticker-item {display:flex;align-items:center;gap:9px;width:290px;min-height:60px;box-sizing:border-box;padding:4px;color:#102e50;text-decoration:none;}
#page-body .dw-ticker-icon {width:44px;height:44px;flex:none;border-radius:50%;object-fit:contain;display:grid;place-items:center;font-size:25px;}
#page-body .dw-ticker-item time {display:block;font-size:11px;color:#526477;margin-bottom:3px;}
#page-body .dw-ticker-item strong {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.35;}
#page-body .dw-ticker-item:hover strong {text-decoration:underline;}
#page-body .dw-ticker-controls {display:flex;gap:4px;flex:none;}
#page-body .dw-ticker-controls button {width:32px;height:36px;border:1px solid #d6ad43;border-radius:7px;background:#fff8e8;color:#23465b;cursor:pointer;font-size:19px;}
#page-body .dw-ticker :focus-visible {outline:2px solid #1688c5;outline-offset:-2px;}
html.dw-dark #page-body .dw-ticker {background:#252b36;border-color:#b58a36;}
html.dw-dark #page-body .dw-ticker-item,html.dw-dark #page-body .dw-ticker-item time {color:#dce4ee;}
html.dw-dark #page-body .dw-ticker-controls button {background:#303848;color:#f3cf75;}
@media(max-width:700px){#page-body .dw-ticker {flex-wrap:wrap;gap:7px;}#page-body .dw-ticker-label {padding:8px 10px;flex:1;}#page-body .dw-ticker-window {order:3;flex:0 0 100%;}#page-body .dw-ticker-item {width:min(290px,75vw);}}
