/* --- BASIS STYLES --- */
body {
    margin:0px; font-family: Arial, Verdana, Helvetica; font-size: 14px; line-height: 20px; 
}

/* ... (Hier kannst du deine .PageMaster, .HeaderTab, .Logo etc. lassen) ... */
.PageMaster
{
font-family: Arial,Verdana,Helvetica;
height: 100%;
width: 800px;
background-color: #ffffff;
}

/* Control Panel Colors */

.controlpanel
{
background-color: #EAEAEA;
}


/* --  Classes for the top of the montage & to allow everything
   to line up nicely when not logged in  -- */

.HeaderTab
{
background-image: url(Pix/FrontPaneTopNew.jpg);
width: 100%;
height: 90px;
background-repeat: no-repeat;
}

.MenuTab
{
background-color: #808080;
width: 100%;
height: 12px;
margin-left: 15px;
padding-left: 15px;
border-left: 15px;
background-repeat: no-repeat;
}

.IntroPane
{
background-image: url(Pix/FrontPaneIntroPaneLeft.jpg);
width: 365px;
height: 100px;
background-repeat: no-repeat;
}

.TopPane
{
margin-top: 4px;
margin-left: 2px;
}

.LeftPane
{ white-space:nowrap; }

.TopIntroPane
{
width: 350px;
margin-top: 4px;
margin-left: 2px;
}

.Intro
{
width: 365px;
height: 150px;
padding-top: 95px;
padding-left: 2px;
}

.Logo
{
padding-top: 5px;
padding-left: 5px;
}

 
.SiteHeaderTab
{
background-image: url(Pix/PortalSiteBanner.png);
width: 100%;
height: 130px;
background-repeat: no-repeat;

}
.SiteHeaderTab12
{
width: 100%;
height: 100px;
}
 
.Panes
{
padding: 10px 2px 2px 2px;
font-size:  26px;
}
 

.Head
{

font-size:  12px;
font-weight: bold;
color: #333333;
}
 
.Breadcrumbs
{
color: #000000;
}

.Block
{
width: 13px;
}

.Login
{
color: #333333; 

font-size: 9px; 
font-weight: bold; 
font-style: normal;
height: 30px;
color: #000000;
text-align: left;
}

#sdmenue { display:block; z-index:100; width:100%; min-height:54px; background-color:#ffffff; }

.sdContent-Width { width: 100%; max-width: 980px; margin: 0 auto; }
.sdClr { clear: both; }
.RahmenUnten { border-bottom: 1px solid #666; margin-bottom: 35px; }

/* ============================================================
   NEUES BEREINIGTES MENÜ (KOMPLETT-ERSATZ)
   ============================================================ */

/* Grundzustand (alles geschlossen) */
#nav_box { position: relative; z-index: 1000; }
#nav_box ul.root { list-style: none; margin: 0; padding: 0; }
#nav_box .category { display: none !important; }

/* --- DESKTOP (ab 1000px) --- */
@media (min-width: 1000px) {

    .mobile_display { display: none !important; }

    #nav_box { display: block !important; }

    #nav_box ul.root {
        display: flex;
        justify-content: flex-start;
    }

    #nav_box ul.root > li {
        position: relative;
        list-style: none;
    }

    /* Hauptmenü Links */
    #nav_box ul.root > li > a {
        display: block;
        padding: 18px 20px;
        color: #333;
        font-weight: bold;
        text-decoration: none;
        text-transform: uppercase;
    }

    /* Untermenü Hover */
    #nav_box ul.root > li:hover > .category {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 1100;
        min-width: 250px;
    }

    /* 3-Spalten Layout Mega-Menü */
    .scontainer-3 {
        display: flex !important;
        width: 800px;
        gap: 30px;
        background: #fff !important;
    }

    .scol {
        flex: 1;
        width: 33% !important;
        float: none !important;
    }

    .scol h5 {
        color: #990e1d;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        margin: 0 0 10px 0;
        font-size: 14px;
    }

    .scol ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .scol ul li a {
        display: block;
        padding: 4px 0;
        font-size: 13px;
        color: #666 !important;
        font-weight: normal;
        text-transform: none;
    }
}

/* --- MOBILE (bis 999px) --- */
@media (max-width: 999px) {

    .mobile_display { 
        display: block !important;
        float: right;
        background: #990e1d;
        padding: 10px 15px;
        border-radius: 4px;
        margin: 8px 10px 0 0;
        cursor: pointer;
        border: none;
    }

    /* Hamburger (3 Striche) */
    .click_img {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        position: relative;
        margin: 8px 0;
    }

    .click_img::before,
    .click_img::after {
        content: "";
        position: absolute;
        width: 22px;
        height: 2px;
        background: #fff;
        left: 0;
    }

    .click_img::before { top: -7px; }
    .click_img::after { bottom: -7px; }

    #nav_box {
        display: none; /* JS öffnet es */
        width: 100%;
        clear: both;
        background: #fff;
        border-top: 2px solid #990e1d;
    }

    #nav_box ul.root { display: block; }

    #nav_box ul.root > li > a {
        border-bottom: 1px solid #eee;
        padding: 15px;
        color: #000;
        font-weight: bold;
    }

    /* Untermenüs mobil untereinander */
    #nav_box .category {
        position: static;
        width: 100% !important;
        padding: 10px 20px;
        border: none;
        background: #f9f9f9;
        display: none !important; /* JS toggle */
    }

    #nav_box .category.open { display: block !important; }

    /* Mega-Menü Spalten stapeln */
    .scontainer-3 { display: block !important; width: 100% !important; }
    .scol { width: 100% !important; margin-bottom: 15px; }
}

/* --- MASSIVER RESET GEGEN PORTAL.CSS --- */

/* Wir greifen JEDES li innerhalb deines Nav-Bereichs an */
#sdHeader #nav #nav_box ul.megaMenu li,
#sdHeader #nav #nav_box ul.megaMenu li.item,
#sdHeader #nav #nav_box ul.megaMenu li.haschild {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
}

/* Die Formatierung der Links, damit sie wie bei "Modelle" aussehen */
#sdHeader #nav #nav_box ul.megaMenu li a {
    border: none !important;
    padding: 0 10px !important;
    background: url(../images/mega_sub_bottom.png) no-repeat left bottom !important;
    white-space: normal !important;
    display: block !important;
    text-decoration: none !important;
}

/* Die Span-Texte darin */
#sdHeader #nav #nav_box ul.megaMenu li a span {
    display: block !important;
    background: none !important;
    font-size: 13px !important;
    color: #535353 !important;
    font-weight: bold !important;
    line-height: 26px !important;
}
