/* 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 */
    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) mit dynamischem Hover-Effekt */
.avatar {
    border-radius: 50% !important;
    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(-5px) !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 */
}