/* USE THIS FILE TO ADD ANY ADDITIONS/MODIFICATIONS
---------------------------------------- */

.wrap {
    max-width: max-content;
}

@view-transition {
    navigation: auto;
}

/* ==========================================================================
   TYPOGRAFIE & BASIS
   ========================================================================== */
body {
    font-family: Georgia, "Times New Roman", serif; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.01);
    font-weight: 400; 
    font-size: 16px; 
    line-height: 1.6; /* Leicht erhöht für bessere Lesbarkeit */
    color: #333;
}

a {  
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease-in-out; 
}

a:focus, a:hover {
    color: #000;
    text-decoration: underline; 
}

.active:hover {
    color: #333 !important;
}

blockquote cite a {
    font-size: larger;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: black;
}    

.fs-1 {
    font-size: 3.5rem !important;
}

.text-pink {
    color: #d7939f;
}

/* ==========================================================================
   STRUKTUR & LAYOUT
   ========================================================================== */
.flex-grow-1 {
    padding: 0.15rem;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: lightgrey !important;
}

.bg-danger {
    background-color: #9D043C !important;
}

.headerbar {
    background-image: url(./images/dashboard.jpg) !important;
    background-repeat: no-repeat;
    background-position-y: top;
    background-position-x: right;
    background-size: cover;
    padding: 2rem 2rem 5rem 2rem;
    margin-bottom: -10px !important;
    margin-top: -16px;
}

#site-description h1.text-dark {
    font-size: clamp(20px, 3vw, 40px);
    word-wrap: break-word;
    margin-right: 12px;
    margin-left: 12px;
}

#site-description a:hover {
    text-decoration: inherit;
}

.site-description-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem !important;
    margin-bottom: 1rem;
    margin-top: -1rem;
    font-size: 0.9rem;
    color: #495057;
    text-align: center;
}

/* ==========================================================================
   DEKORATIONEN & ALERTS
   ========================================================================== */
.rocaille {
    width: 100px; 
    height: 100px;
    background-color: silver;
    position: absolute;
    clip-path: path('M50,0 C10,10 20,40 0,70 C20,100 80,100 100,70 C80,40 90,10 50,0 Z');
    z-index: 10;
}
.rocaille-top-left { top: 0; left: 0; }
.rocaille-top-right { top: 0; right: 0; }
.rocaille-bottom-left { bottom: 0; left: 0; transform: rotate(90deg); }
.rocaille-bottom-right { bottom: 0; right: 0; transform: rotate(-90deg); }

.rules {
    background-color: #f7d6db;
    background-image: linear-gradient(to right, #f7d6db, #e9b3bb);
    font-size: large;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08); /* Sanfterer Schatten */
    padding: 1rem !important;
    transition: all 0.3s ease-in-out;
}

.rules:hover {
    background-image: linear-gradient(to right, #e9b3bb, #d9909c);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15); /* Eleganter Schwebemoment */
    transform: translateY(-1px);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: medium;
}

.alert-info {
    color: #333333;
    border: none !important;
    background: linear-gradient(to right, #FFE5E7 3%, #f9c7cb  90%);
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    color: inherit;
}

/* ==========================================================================
   NAVIGATION & TABS
   ========================================================================== */
.nav {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: 400; /* Wert ergänzt */
    --bs-nav-link-color: #333;
    --bs-nav-link-hover-color: #000;
    --bs-nav-link-disabled-color: #999;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav {
    padding-left: 0.5rem;
}

.tab-content {
    padding-bottom: 15px;
    padding-top: 15px;
}

.dropdown-menu {
    font-size: 15px;
    line-height: 3;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; 
    color: #6c757d !important; 
    border-radius: 6px;
}

.dropdown-menu a {
    color: #444 !important; 
    font-weight: 400;
}

.dropdown-menu a:hover {
    background: #ebebeb !important; 
    color: #333 !important; 
    transition: all 0.2s ease-in-out; 
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;  
    font-size: medium;
}

/* ==========================================================================
   PAGINATION (SEITENZÄHLUNG)
   ========================================================================== */
.pagination-lg .page-link {
    padding: 0.75rem 0.95rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #333;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

.pagination > .active > a, 
.pagination > .active > a:focus, 
.pagination > .active > a:hover, 
.pagination > .active > span, 
.pagination > .active > span:focus, 
.pagination > .active > span:hover,
.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: #9D043C;
    border-color: #9D043C;
}

.page-link:hover {
    z-index: 2;
    color: #333;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    border: none;
    padding: 0.8rem 1.0rem;
    cursor: pointer;
    transition: all 0.3s ease; /* Einheitlicher Übergang für alle Buttons */
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn:focus, .btn:active {
    outline: none !important;
}

.btn-primary, .btn-secondary {
    border-radius: 50rem !important;
}

.button-icon-only, .post-buttons .btn-sm {  
    border-radius: 50%;
}

.post-buttons .post-reputation {  
    padding: 0.8rem 1.25rem;
    border-radius: 50%;
}

.btn-rund {
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    background: #fff;
    color: #000;
    min-height: 32px;
    min-width: 32px;
    opacity: 0.9;
}

.btn-primary {
    color: #ffffff;
    background-color: #0489FB;
    background-image: linear-gradient(to bottom, #B5DCFD 0%, #0489FB 100%); 
}
.btn-primary:hover, .btn-primary:focus, .btn-primary.active {
    color: #0B3559;
    background-image: linear-gradient(to bottom, #64ABE6 0%, #4272A6 100%);
}

.btn-default {
    color: #333333;
    background-color: #ffffff;
    background-image: linear-gradient(to bottom, #fff 0%, #d6d6d6 100%);
}
.btn-default:hover, .btn-default:focus, .btn-default:active {
    color: #ffffff;
    background-color: #ebebeb;
    background-image: linear-gradient(to bottom, #ebebeb 0%, #868686 100%);
}

.btn-success {
    color: #333333;
    background-color: #ffffff;
    background-image: linear-gradient(to bottom, #fff 0%, #d6d6d6 100%);
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
    color: #ffffff;
    background-image: linear-gradient(to bottom, #990033 0%, #9D043C 100%);
}
.btn-success:focus, .btn-success.focus {
    box-shadow: 0 0 0 0.2rem rgb(219, 109, 146);
}

.btn-info, .btn-light {
    color: #ffffff;
    background-color: #ebebeb;
    background-image: linear-gradient(to bottom, #ebebeb 0%, #333333 100%);
}
.btn-info:hover, .btn-info:focus, .btn-info:active,
.btn-light:hover, .btn-light:focus, .btn-light:active {
    color: #333;
    background-color: #ffffff;
    background-image: linear-gradient(to bottom, #868686 0%, #ebebeb 100%);
}
.btn-info:focus, .btn-info.focus {
    box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);
}

.btn-light2 {
    color: #ffffff;
    background-color: #ebebeb;
    background-image: linear-gradient(to bottom, #ebebeb 0%, #333333 100%);
    border-radius: 50%;
}
.btn-light2:hover, .btn-light2:focus, .btn-light2:active {
    color: #333;
    background-color: #ffffff;
    background-image: linear-gradient(to bottom, #868686 0%, #ebebeb 100%);
}

.btn-warning {
    color: #333;
    background-color: #333;
    background-image: linear-gradient(to bottom, #FCC77B 0%, #F0AD4E 100%);
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
    color: #ffffff;
    background-color: #ffffff;
    background-image: linear-gradient(to bottom, #EC971F 0%, #C77F19 100%);
}

.btn-danger {
    color: #ffffff;
    background-color: #C9302C;
    background-image: linear-gradient(to bottom, #FD3D38 0%, #C9302C 100%);
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    color: #333;
    background-color: #D9534F;
    background-image: linear-gradient(to bottom, #F48884 0%, #D9534F 100%);
}

.btn-group, .btn-group-vertical {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    float: right;
    margin-right: -12px;
}

.btn-link {
    font-weight: 400;
    color: #333;
    text-decoration: none;
}
.btn-link:hover {
    color: #333;
}

.badge-danger {
    color: #fff;
    background-color: #f00;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: transparent;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #333333;
    background: #ebebeb !important;
    border-color: transparent;
    transition: all 0.2s ease-in-out; 
    outline: none !important;
}

/* ==========================================================================
   FLOATING BUTTONS (Shop, Kontakt, Quiz zusammengefasst)
   ========================================================================== */
#fltshop, #fltkontakt, #fltquiz {
    position: fixed;
    right: -35px;
    z-index: 5;
    transform: rotate(-90deg);
}

#fltshop { bottom: 196px; }
#fltquiz { bottom: 300px; }
#fltkontakt { bottom: 404px; }

#fltshop a, #fltkontakt a, #fltquiz a {
    line-height: 1.2;
    display: block;
    height: 30px;
    width: 100px;
    padding: 3px 8px 8px 8px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: normal;
    text-decoration: none;
    text-align: center;
    border-radius: 6px 6px 0px 0px;
    box-shadow: -4px 6px 5px -3px rgba(0,0,0,0.4); /* Weicherer Schatten */
    transition: all 0.2s ease-in-out;
}

#fltshop a:hover, #fltkontakt a:hover, #fltquiz a:hover {
    transform: scale(1.08); /* Minimal elegantere Skalierung */
    z-index: 10;
}

/* Individuelle Farben für Floating Buttons */
#fltshop a { background: #9D043C; }
#fltshop a:hover { background: #aa0000; }

#fltkontakt a { background: #005cc5; }
#fltkontakt a:hover { background: #007bff; }

#fltquiz a { background: #19662b; }
#fltquiz a:hover { background: #218838; }

/* ==========================================================================
   FOREN-LISTEN & HOVER EFFEKTE
   ========================================================================== */
.bg1, .bg2 {
    transition: background-color 0.3s ease; 
}

/* Zusammenfassung aller Listen-Hover für sauberen Code */
.topiclist.forums li.row:hover,
.topiclist.topics li.row:hover,
.posts .post:hover,
.topiclist.pms li.row:hover,
table.table1 tbody tr:hover,
.search .topiclist.forums li.row:hover,
.search .topiclist.topics li.row:hover {
    background-color: #e6e6e6; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
}

li.bg1:hover, li.bg2:hover,
#recenttopics-box .collapsible li:hover,
#recenttopics-box .collapsible li.active:hover,
.forabg ul.topiclist li:hover {
    background-color: #e9ecef !important;
    transition: background-color 0.3s ease;
}

.bg1.active li, .bg2.active li {
    background-color: #e9ecef !important; 
}

.forabg .header:hover {
    background-color: #c6d2d9 !important; 
    transition: background-color 0.3s ease;
}

.sticky, .announce {
    background-color: #f2eded;
    transition: background-color 0.3s ease;
}

.sticky:hover, .announce:hover {
    background-color: #e3dcdc !important;
}

.unread:hover {
    background-color: #d9e2e6 !important;
}

/* ==========================================================================
   FORMULARE & WEITERE KOMPONENTEN
   ========================================================================== */
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #dddfe1;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVES DESIGN)
   ========================================================================== */
@media (min-width: 768px) {
    #page-header {
        margin-right: -1rem !important;
        margin-left: -1rem !important;
    }
    
    .bg1.active ul, .bg2.active ul {
        padding: 0.3rem;
        background-color: #e9ecef;
        transform: scale(1.01); 
        border: 1px solid #cecece !important; 
        border-radius: 0.375rem !important; 
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important; /* Etwas weicherer Schatten */
        transition: all 0.3s ease;
    }
}

@media (min-width: 993px) {
    /* Platzhalter für Desktop-Anpassungen */
}

@media (max-width: 1290px) {
    #site-description h1.text-dark {
        font-size: clamp(18px, 4vw, 35px); 
    }
    .fs-1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 767px) { 
    .row {
        margin-left: -1px;
        margin-right: -1px;
    }
}

@media (max-width: 576px) {
    #site-description h1.text-dark {
        font-size: clamp(16px, 5vw, 30px); 
        margin-right: 0px;
        margin-left: -25px;
    }
}

@media (max-width: 566px) { 
    #HeaderNavigation  {
        margin-top: -85px !important;
        --bs-bg-opacity: 0 !important;
    }
    .navbar-toggler {
        margin-bottom: 1rem !important;
        background: white;    
    }
    .cm-header-menu-navbar {
        margin-top: -5px;
    }
    .responsive-menu .nav-link,
    .navbar-collapse .nav-link    {
        color: #333;
        font-weight: 500;
        transition: all 0.3s ease;
        font-size: large;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05); /* Etwas dezenter */
        padding: 1.5rem !important;
        margin-left: -8px;
    }
    
    #fltshop, #fltquiz, #fltkontakt { 
        right: -42px;
    }
}

.btn-outline-secondary:not(:disabled):not(.disabled):active:focus, 
.btn-outline-secondary:not(:disabled):not(.disabled).active:focus, 
.show > .btn-outline-secondary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem #ebebeb;
}

/* Maßgeschneiderte, elegante Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f8f9fa; 
}
::-webkit-scrollbar-thumb {
    background: #c6d2d9; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9D043C; /* Dein Rot aus den Buttons */
}

/* Sticky Navigation mit Milchglas-Effekt */
.navbar { 
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85) !important; /* Leicht transparent */
    backdrop-filter: blur(8px); /* Der Unschärfe-Effekt */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Sanfter Zoom für hochgeladene Bilder in den Beiträgen */
.postbody img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 4px;
}

.postbody img:hover {
    /* transform: scale(1.02); /* Minimaler Zoom */
	transform: translateY(-1px) !important; /* Hebt sich jetzt deutlich ab */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Weicher Schatten */
    cursor: zoom-in; /* Zeigt an, dass man das Bild anklicken kann */
}

/* Elegante Trennlinien zwischen den Beiträgen */
.post {
    border-bottom: 1px solid;
    /* Linie fadet nach links und rechts aus */
    border-image: linear-gradient(to right, transparent, #dee2e6, transparent) 1; 
}

/* Pulsierender Effekt für rote Badges / Benachrichtigungen */
@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(157, 4, 60, 0.7); } /* RGB-Werte von deinem #9D043C */
    70% { box-shadow: 0 0 0 6px rgba(157, 4, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(157, 4, 60, 0); }
}

.badge.bg-danger {
    animation: pulse-badge 2s infinite;
}

/* ==========================================================================
   MEHR WUMMS: Sichtbare Layout-Änderungen (ohne Farbänderung)
   ========================================================================== */

/* 1. Runde, moderne Profilbilder (Avatare) - GARANTIERT KREISRUND */
.avatar {
    aspect-ratio: 1 / 1 !important; /* Zwingt das Bild in ein exaktes Quadrat */
    object-fit: cover !important;   /* Schneidet überstehende Ränder ab, statt das Bild zu quetschen */
    border-radius: 50% !important;  /* Macht aus dem Quadrat einen perfekten Kreis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.avatar:hover {
    transform: scale(1.08) rotate(3deg) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* 2. Beiträge als deutliche, schwebende "Karten" (Card-Layout) */
.post {
    background-color: #ffffff !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.post:hover {
    transform: translateY(-1px) !important; /* Hebt sich jetzt deutlich ab */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* 3. Foren- und Thementitel elegant hervorheben (dezent) */
a.forumtitle, a.topictitle {
    font-size: 1.15rem !important;
    font-weight: 600 !important; 
    letter-spacing: normal; 
}

/* 4. Die Regel-Box knalliger machen (mit einem dicken seitlichen Balken) */
.rules {
    border-left: 8px solid #9D043C !important; /* Dein Foren-Rot als Signal-Balken */
    border-radius: 8px !important;
}

/* 5. Foren-Zeilen (Übersicht) beim Hovern physisch vergrößern und markieren */
.topiclist.forums li.row,
.topiclist.topics li.row {
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent; /* Platzhalter, damit nichts ruckelt */
}

.topiclist.forums li.row:hover,
.topiclist.topics li.row:hover {
    background-color: #f0f0f0 !important;
    transform: scale(1.015);
    border-left: 4px solid #c6d2d9 !important; /* Blaugrauer Akzent an der linken Kante */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    z-index: 2; /* Hebt die Zeile über die anderen */
}


/* ==========================================================================
   CSI: SCHATZKISTE MASTER-SUITE (V25 - Fixer Close-Button & Layout)
   ========================================================================== */
.lb-outerContainer, .lb-container {
    background-color: transparent !important;
    border: none !important; border-radius: 0 !important;
    box-shadow: none !important; overflow: visible !important;
}

.lb-image {
    will-change: transform; box-shadow: 0 0 40px rgba(0,0,0,0.5);
    --lb-inv: invert(0); --lb-gray: grayscale(0);
    --lb-mag-b: brightness(1); --lb-mag-c: contrast(1); --lb-mag-s: saturate(1);
    --lb-sharp: blur(0); 
    filter: var(--lb-inv) var(--lb-gray) var(--lb-mag-b) var(--lb-mag-c) var(--lb-mag-s) var(--lb-sharp) !important;
    touch-action: none !important;
}

.lb-filter-invert { --lb-inv: invert(1); }
.lb-filter-gray { --lb-gray: grayscale(1); }
.lb-filter-magic { --lb-mag-b: brightness(1.4); --lb-mag-c: contrast(1.6); --lb-mag-s: saturate(1.2); }
.lb-filter-sharpen { --lb-sharp: url(#lb-sharpen-filter); }

.lb-compare-mode {
    --lb-inv: invert(0) !important; --lb-gray: grayscale(0) !important;
    --lb-mag-b: brightness(1) !important; --lb-mag-c: contrast(1) !important; --lb-mag-s: saturate(1) !important;
    --lb-sharp: blur(0) !important;
}

.lb-nav { z-index: 10005 !important; touch-action: none !important; }
.lb-dataContainer { z-index: 10006 !important; background-color: transparent !important; }

/* Originalen Lightbox-Schließen-Button verstecken */
.lb-closeContainer, .lb-close { display: none !important; }

/* Verhindert das native Zoomen der ganzen Webseite am Handy */
#lightbox, #lightboxOverlay, .lb-image, .lb-draw-canvas, .lb-nav, #lb-minimap {
    touch-action: none !important;
}

/* NEU: Unser eigener, absolut fixer Schließen-Button */
#lb-close-fixed {
    position: fixed; top: 20px; right: 20px; z-index: 10025 !important;
    background-color: rgba(157, 4, 60, 0.9); /* Auffälliges Schatzkisten-Rot */
    color: #ffffff; width: 42px; height: 42px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transform: translateZ(0); /* Hardware-Beschleunigung gegen Wackeln am Handy */
    touch-action: none !important;
}
#lb-close-fixed:hover { transform: scale(1.1) translateZ(0); background-color: #ff0000; }

.lb-toolbar {
    position: fixed; top: 20px; left: 20px; z-index: 10015 !important;
    display: none; gap: 8px; flex-wrap: wrap; max-width: 500px;
}
.lb-btn {
    background-color: rgba(0, 0, 0, 0.6); color: #ffffff;
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); user-select: none;
}
.lb-btn:hover, .lb-btn.active { background-color: rgba(157, 4, 60, 0.9); transform: scale(1.1); }
.lb-divider { width: 2px; background: rgba(255,255,255,0.2); margin: 5px 2px; }

.lb-color-picker {
    display: none; gap: 6px; align-items: center;
    margin-left: 5px; padding-left: 10px; border-left: 2px solid rgba(255,255,255,0.2);
}
.lb-color-dot {
    width: 24px; height: 24px; border-radius: 50%;
    cursor: pointer; border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); transition: transform 0.1s, border-color 0.1s;
}
.lb-color-dot:hover { transform: scale(1.2); }
.lb-color-dot.active { transform: scale(1.3); border-color: #fff; border-width: 3px; }

/* ANGEPASST: Zoom-Indikator rutscht nach unten und wackelt nicht mehr */
.lb-zoom-indicator {
    position: fixed; top: 75px; right: 20px; z-index: 10015 !important;
    background-color: rgba(0, 0, 0, 0.6); color: #fff;
    padding: 6px 15px; border-radius: 20px; font-weight: bold;
    font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); display: none;
    transform: translateZ(0); /* Hardware-Beschleunigung gegen Wackeln am Handy */
    touch-action: none !important;
}

#lb-minimap {
    position: fixed; bottom: 20px; right: 20px; z-index: 10015 !important;
    width: 150px; background: rgba(0,0,0,0.7); border: 2px solid rgba(255,255,255,0.4);
    border-radius: 5px; overflow: hidden; display: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    cursor: move; touch-action: none !important;
}
#lb-minimap-img { width: 100%; display: block; opacity: 0.8; pointer-events: none; }
#lb-minimap-box { position: absolute; border: 2px solid #ff0000; box-sizing: border-box; background: rgba(255,0,0,0.1); pointer-events: none; }

.lb-grid-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10010; pointer-events: none; display: none;
    background-image: linear-gradient(to right, rgba(0, 255, 255, 0.4) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
}

.lb-crop-box { position: fixed; border: 2px dashed #00ff00; background-color: rgba(0, 255, 0, 0.1); z-index: 10020; pointer-events: none; }
.lb-action-cursor { cursor: crosshair !important; }

.lb-draw-canvas { position: absolute; z-index: 10001; pointer-events: none; will-change: transform; touch-action: none !important; }
.lb-draw-canvas.active { pointer-events: auto !important; cursor: crosshair !important; }

/* Mobile Optimierung: Werkzeuge verbergen */
@media (max-width: 900px) {
    #lb-pen, .lb-color-picker, #lb-minimap { display: none !important; }
}

/* Sanfte vertikale Zentrierung fürs Handy */
@media (max-width: 900px) {
    #lightbox {
        position: fixed !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}



/* ==========================================================================
   CSI: SCHATZKISTE - PREMIUM TOPIC PREVIEW KARTEN (KOMPAKT & SICHER)
   ========================================================================== */

/* Den Haupt-Kasten der Erweiterung begrenzen */
.topic_preview_container {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    padding: 0 !important; 
    z-index: 99999 !important; 
    

    
    /* NEU: Scrollbalken rigoros abschalten */
    overflow: hidden !important; 
}

/* Innenabstand der Karte (Kompakter) */
.schatz-preview-wrap {
    padding: 15px; 
}

/* Die Badges (kompakter) */
.schatz-preview-badge {
    display: inline-block;
    background: #f4f4f4;
    color: #666;
    font-size: 12px; /* <-- Hier von 11px auf 12px vergrößert */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #eaeaea;
}

/* Layout: Avatar links, Content rechts daneben */
.schatz-preview-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Der Avatar */
.topic_preview_avatar {
    flex-shrink: 0;
    margin: 0 !important; 
}

/* Der Textbereich */
.schatz-preview-text {
    font-size: 14px; /* <-- Hier von 13px auf 14px vergrößert */
    line-height: 1.5;
    color: #444;
    flex-grow: 1;
    word-wrap: break-word; 
}

/* Das Vorschaubild (jetzt platzsparender) */
.schatz-preview-image {
    float: left;
    margin-right: 12px;
    margin-bottom: 5px;
    width: 100px; /* Kleiner, damit mehr Platz für den Text bleibt */
}

.schatz-preview-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

/* Die Trennlinie zwischen erstem und letztem Beitrag */
.schatz-preview-divider {
    height: 1px;
    background: #eeeeee;
    margin: 15px 0;
    border: none;
}

/* Die Filmstreifen-Galerie (Waagerecht unter dem Text) */
.schatz-preview-gallery {
    display: flex;
    flex-direction: row; /* Ordnet die Bilder nebeneinander an */
    gap: 10px; /* Abstand zwischen den Bildern */
    margin-top: 15px; /* Abstand zum Text darüber */
    margin-bottom: 5px;
    clear: both; /* Sorgt dafür, dass die Galerie immer unter dem Text/Avatar startet */
    width: 100%;
}

.schatz-preview-gallery img {
    flex: 1 1 0; /* Alle Bilder teilen sich den verfügbaren Platz exakt gleich auf */
    min-width: 0; /* Verhindert, dass breite Bilder die Box sprengen */
    height: 150px; /* Einheitliche Höhe für den perfekten Filmstreifen-Look */
    object-fit: cover; /* Schneidet die Bilder optisch passend zu, ohne sie zu verzerren */
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    transition: transform 0.2s; /* Kleiner Bonus: Sanftes Vergrößern beim Drüberfahren */
}

.schatz-preview-gallery img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   CSI: SCHATZKISTE - MOBILE MENU CLEAN RESET (FINAL)
   ========================================================================== */
@media (max-width: 900px) {
    
    /* 1. Alle Kacheln (Listenelemente) auf 100% Breite zwingen und Floats löschen */
    #MainNavigationCollapse .nav-item {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
    }

    /* 2. Den Buttons sagen, dass sie den gesamten Platz nutzen sollen */
    #MainNavigationCollapse button.nav-link {
        width: 100% !important;
        text-align: left !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        
        /* DER EINZIGE NEUE BEFEHL: Zwingt den Button auf exakt 100% inklusive Rahmen */
        box-sizing: border-box !important;
    }

    /* 3. Das Aufklapp-Menü in die Liste einbetten (nicht schweben lassen) */
    #MainNavigationCollapse .dropdown-menu {
        position: static !important;
        width: 100% !important;
        float: none !important;
    }
}

/* ==========================================================================
   CSI: SCHATZKISTE - IN-POST HOVER ZOOM (MIT HINWEIS & VERZÖGERUNG)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
    
    /* Der Kasten, der das Bild gefangen hält */
    dt.attach-image {
        overflow: hidden !important; 
        display: inline-block !important; 
        position: relative;
        border-radius: 6px;
    }

    /* Das Bild im Normalzustand */
    dt.attach-image img.postimage {
        transition: transform 0.15s linear, filter 0.15s linear !important; 
        cursor: zoom-in !important;
        transform-origin: center center; 
        filter: contrast(100%) brightness(100%) !important; 
    }

    /* Der Hover-Zustand (Maus drüber) mit 0.3s Delay */
    dt.attach-image img.postimage:hover {
        transform: scale(2.5) !important;
        filter: contrast(130%) brightness(110%) !important; 
        transition: transform 0.15s linear 0.3s, filter 0.15s linear 0.3s !important; 
    }

    /* ======================================================================
       NEU: DER VISUELLE HINWEIS (Lupen-Icon unten rechts)
       ====================================================================== */
    dt.attach-image::after {
        content: '\f00e'; /* Das ist der Code für die FontAwesome Lupe mit dem '+' */
        font-family: "FontAwesome";
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6); /* Leicht transparenter, dunkler Hintergrund */
        color: rgba(255, 255, 255, 0.9); /* Weißes Icon */
        padding: 4px 7px;
        border-radius: 4px;
        font-size: 14px;
        pointer-events: none; /* Absolut wichtig: Die Lupe blockiert den Mauszeiger nicht! */
        transition: opacity 0.2s ease;
        z-index: 5;
    }

    /* Sobald die Maus über dem Bild schwebt, blenden wir den Hinweis sanft aus */
    dt.attach-image:hover::after {
        opacity: 0;
    }
}

/* ==========================================================================
   CSI: SCHATZKISTE - UPLOAD WORKFLOW OPTIMIERUNG
   ========================================================================== */

/* Versteckt den manuellen "Speichern"-Button beim Bild-Upload (passiert jetzt automatisch) */
.imcger-iupl-button .save-image {
    display: none !important;
}

/* Versteckt den alten roten Hinweistext beim Bilder-Upload */
#attach-panel .alert.btn-danger.rules {
    display: none !important;
}