/* --- 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 MENÜ SYSTEM
   ============================================================ */

#nav_box { position: relative; z-index: 1000; }
#nav_box ul.root { list-style: none; margin: 0; padding: 0; }

/* WICHTIG: Kein !important hier, sonst kann JS nicht öffnen! */
#nav_box .category { display: none; } 

/* --- 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; }

    #nav_box ul.root > li > a {
        display: block; padding: 18px 20px; color: #333;
        font-weight: bold; text-decoration: none; text-transform: uppercase;
    }

    /* Hover am PC */
    #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;
    }

    .scontainer-3 { display: flex !important; width: 800px; gap: 30px; background: #fff !important; }
    .scol { flex: 1; width: 33% !important; }

@media (min-width: 1000px) {
    /* ... deine bisherigen Desktop-Styles ... */

    /* Zeilenhöhe der Untermenü-Einträge am PC verringern */
    #sdHeader #nav #nav_box ul.megaMenu li.item a {
        padding: 6px 10px !important;  /* Viel flacher am PC */
        line-height: 18px !important;  /* Kompakter Text */
        background-position: left bottom !important;
    }

    #sdHeader #nav #nav_box ul.megaMenu li.item a span {
        line-height: 18px !important;  /* Auch den Span-Text anpassen */
        font-size: 13px !important;
    }
}



}

/* --- 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;
    }

    .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; width: 100%; clear: both;
        background: #fff; border-top: 2px solid #990e1d;
    }

    #nav_box ul.root > li > a {
        border-bottom: 1px solid #eee; padding: 15px 20px;
        color: #000; font-weight: bold; line-height: 24px; display: block;
    }

    /* Untermenüs mobil */
    #nav_box .category {
        position: static; width: 100% !important; padding: 10px 20px;
        background: #f9f9f9; border: none;
    }

    /* Der Pfeil (Touch-Bereich) */
   /* Den Pfeil-Container (das <i> Tag) als klickbaren Button stylen */
.navarrow {
    display: block !important;
    float: right;
    width: 60px;          /* Breite Klickfläche für den Daumen */
    height: 54px;         /* Gleiche Höhe wie der Menüpunkt */
    line-height: 54px;    /* Zentriert das Symbol vertikal */
    text-align: center;
    cursor: pointer;
    position: absolute;   /* Absolute statt Relative! */
    right: 0;             /* Ganz nach rechts an den Rand */
    top: 0;               /* Ganz nach oben im <li> */
    z-index: 100;         /* Liegt ÜBER dem Link <a> */
    color: #000;
    background: rgba(0,0,0,0.03); /* Optional: ganz leichter Schimmer zum Testen */
}

/* Das eigentliche Symbol im Pfeil */
.navarrow::before {
    content: '▼';
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-style: normal;  /* Wichtig, da <i> sonst kursiv ist */
    display: inline-block;
    transition: transform 0.3s ease;
}

    .navarrow2::before { transform: rotate(180deg); }

    .scontainer-3 { display: block !important; width: 100% !important; }
    .scol { width: 100% !important; margin-bottom: 15px; }
}

/* --- RESET & FORMATIERUNG (Überschreibt Portal.css) --- */
#sdHeader #nav #nav_box ul.megaMenu li {
    list-style: none !important; background-image: none !important;
    padding: 0 !important; margin: 0 !important;
}

#sdHeader #nav #nav_box ul.megaMenu li a {
    border: none !important; padding: 10px 20px !important;
    background: url(../images/mega_sub_bottom.png) no-repeat left bottom !important;
    display: block !important; text-decoration: none !important;
}

#sdHeader #nav #nav_box ul.megaMenu li a span {
    font-size: 13px !important; color: #535353 !important;
    font-weight: bold !important; line-height: 16px !important;
}

#sdHeader #nav #nav_box ul.megaMenu li a:hover {
    background-color: #f5f5f5 !important;
}
