/* ============================================================
   1. STANDARD TNG-ELEMENTE (BLAUE LEISTEN) ABRUNDEN
   ============================================================ */

/* Menüzeile oben: Untere Ecken abrunden */
.navbar, #tngmenu, .tngmenu, .inner-container {
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    overflow: hidden;
}

/* Footer ganz unten: Obere Ecken abrunden */
footer, .footer, #tngfooter, .footer-container {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* ============================================================
   2. DEINE NEUE GRAUE LEISTE (CUSTOM-TABLE)
   ============================================================ */

.custom-table {
    width: 100%;
    border-collapse: separate; /* Notwendig für Rundungen */
    border-spacing: 0;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: 0 !important;
}

.custom-table td {
    border: 2px solid transparent;
    padding: 10px;
    vertical-align: middle;
    overflow: visible !important;
}

/* Hintergrundfarbe der neuen Leiste */
.bg-gray {
    background-color: #E4E4E4 !important;
}

/* Äußere Ecken der grauen Leiste abrunden */
.custom-table tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}
.custom-table tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
}

/* ============================================================
   3. BILDER & HOVER-EFFEKT
   ============================================================ */

.img-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    transition: opacity 0.3s ease-in-out;
}

.hover-img { opacity: 0; z-index: 2; }
.main-img { opacity: 1; z-index: 1; }
.img-container:hover .hover-img { opacity: 1; }

/* ============================================================
   4. DROPDOWN-MENÜS (GRAU & SCROLLBAR)
   ============================================================ */

.dropdown-container {
    display: inline-block;
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E4E4E4 !important; /* Passend zur Leiste */
    min-width: 200px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    z-index: 999999 !important;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    max-height: 280px; 
    overflow-y: auto; 
}

.dropdown-container:hover .dropdown-menu {
    display: block;
}

/* Links im Dropdown */
.dropdown-menu a {
    color: #000000 !important; /* Schwarze Schrift */
    padding: 12px 15px;
    text-decoration: none !important;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #d0d0d0;
    background-color: #E4E4E4 !important;
}

.dropdown-menu a:hover {
    background-color: #dcdcdc !important; /* Dunkleres Grau beim Hover */
    color: #000000 !important;
}

/* ============================================================
   5. SCHRIFTARTEN & DESIGN-FINISH
   ============================================================ */

.font-broadway {
    font-family: "Broadway", serif;
    font-size: x-large;
}

.font-handwriting, .style1 {
    font-family: "Bradley Hand ITC", cursive;
    font-size: 1.1rem;
    color: #000000 !important;
}

.style4 {
    text-decoration: none !important;
    color: #000000 !important;
}

/* Dezentere Scrollbalken für die Menüs */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #bbbbbb;
    border-radius: 10px;
}