/* ============================================================
   0. LOKALE SCHRIFTART EINBINDEN & GLOBAL ERZWINGEN
   ============================================================ */

@font-face {
    font-family: 'MerriweatherLocal';
    src: url('Merriweather-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Erzwingt die Schriftart global für alle Elemente, Titel und TNG-Klassen,
   damit das Umspringen auf Bradley Hand verhindert wird */
body, *, .maintitle, .header, h1, h2, h3, h4, h5, h6, 
.font-broadway, .font-handwriting, .style1, .style11, .style4,
.dropdown-menu a, .topnav a, #tngnav a {
    font-family: 'MerriweatherLocal', serif !important;
}

/* ============================================================
   1. STANDARD TNG-ELEMENTE ABRUNDEN
   ============================================================ */

.navbar, #tngmenu, .tngmenu, .inner-container {
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    overflow: hidden;
}

footer, .footer, #tngfooter, .footer-container {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* ============================================================
   2. 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; }

/* ============================================================
   3. DROPDOWN-MENÜS
   ============================================================ */

.dropdown-container {
    display: inline-block;
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E4E4E4 !important;
    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; 
    padding: 1px 0 !important;
}

.dropdown-container:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #000000 !important;
    padding: 1px 8px !important;
    margin: 0 !important;
    text-decoration: none !important;
    display: block;
    font-size: 14px;
    line-height: 1.0 !important;
    border-bottom: 1px solid #d8d8d8;
    background-color: #E4E4E4 !important;
}

.dropdown-menu a:hover {
    background-color: #dcdcdc !important;
    color: #000000 !important;
}

/* ============================================================
   4. SCHRIFTARTEN & DESIGN-FINISH
   ============================================================ */

.font-broadway {
    font-size: x-large;
}

.font-handwriting, .style1 {
    font-size: 1.1rem;
    color: #000000 !important;
}

.style4 {
    text-decoration: none !important;
    color: #000000 !important;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #bbbbbb;
    border-radius: 10px;
}

.maintitle {
    font-size: 2.4rem !important;
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

/* ============================================================
   5. UNTERE MENÜ-BOX (STYLE28 - EXTRA FLACH & KOMPAKT)
   ============================================================ */

.style28 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.style28 td {
    vertical-align: top;
    padding: 4px 8px !important;
}

.style28 ul {
    margin: 2px 0 !important;
    padding-left: 18px !important;
}

.style28 li {
    margin-bottom: 1px !important;
    line-height: 1.3 !important;
}