/* ==========================================================================
   Auktionshaus Schwerin - Komplettes Template-CSS (Joomla 6 ready)
   ========================================================================== */

/* --- 1. Grundgerüst & Seitenhintergrund --- */
html, body {
    margin: 0;
    padding: 0;
    background-color: #e1e1e1; /* Das originale Hellgrau außen */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333333;
}

/* Die seitlichen Hintergrund-Streifen aus deinem originalen Template */
.left_bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background: transparent;
}

.right_bg {
    position: fixed;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background: transparent;
}

/* --- 2. Der Wrapper (Zentraler Kasten) --- */
#wrapper {
    width: 100%;
    max-width: 1200px; /* Begrenzt die maximale Breite wie damals */
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* --- 3. Header & Zufallsbild (Position: head) --- */
header, #wrapper header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 150px;
    background-color: transparent !important;
    margin: 0;
    padding: 10px 0 0 0;
}

header .mod-randomimage,
header img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* --- 4. Alert / Systemnachrichten (Position: allert) --- */
#allertposition {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* --- 5. Das Navigationsmenü (Position: navi) --- */
#navigationsleiste {
    background-color: #2b303b !important; /* Original Dunkelblau-Grau */
    width: 100% !important;
    display: block !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    clear: both !important;
}

/* Zwingt das Joomla-HTML (nav, ul) in eine strikte, zentrierte Reihe */
#navigationsleiste nav,
#navigationsleiste ul {
    display: flex !important;
    flex-direction: row !important; /* Reihe statt Spalte */
    flex-wrap: wrap !important;     /* Erlaubt Umbruch auf Mobilgeräten */
    justify-content: center !important; /* Zentriert die Menüpunkte */
    list-style: none !important;    /* Entfernt die Aufzählungspunkte */
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

/* Entfernt jegliche Rest-Formatierung von Listenpunkten */
#navigationsleiste li {
    display: block !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* Die eigentlichen Menü-Links */
#navigationsleiste a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: block !important;
    padding: 12px 20px !important; /* Klickbereich und Abstand */
    font-size: 14px !important;
    font-weight: bold !important;
    white-space: nowrap !important; /* Kein Zeilenumbruch mitten im Wort */
    transition: background-color 0.2s ease;
}

/* Hover-Effekt (Maus drüber) */
#navigationsleiste a:hover {
    background-color: #4f5b66 !important; /* Helleres Grau */
    color: #ffffff !important;
}

/* Aktiver / Ausgewählter Menüpunkt */
#navigationsleiste .active > a,
#navigationsleiste .current > a,
#navigationsleiste li.active a,
#navigationsleiste li.current a {
    background-color: #4f5b66 !important;
    color: #ffffff !important;
}

/* --- 6. Der Inhaltsbereich (Contentwrapper) --- */
#contentwrapper {
    width: 100% !important;
    margin: 15px 0 30px 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Die weiße Inhaltsbox mit knallharte SCHWARZER KONTURLINIE */
#content {
    background-color: #ffffff !important;
    border: 1px solid #000000 !important; /* Deine gewünschte Konturlinie */
    padding: 30px !important; /* Abstand vom Text zur schwarzen Linie */
    box-sizing: border-box;
}

#artikeltext {
    display: block;
    width: 100%;
}

/* Typografie-Korrekturen für sauberen Text */
#artikeltext h1 {
    font-size: 22px;
    margin-top: 0;
    color: #111111;
}

#artikeltext p {
    line-height: 1.6;
    margin-bottom: 15px;
}

#artikeltext hr {
    border: 0;
    height: 1px;
    background: #cccccc;
    margin: 20px 0;
}

#artikeltext ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

#artikeltext li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* --- 7. Der Footer --- */
footer {
    width: 100%;
    clear: both;
    background-color: #2b303b; /* Gleiches Dunkelblau-Grau */
    padding: 20px;
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    box-sizing: border-box;
    margin-bottom: 20px;
}

footer a {
    color: #ffffff !important;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}

/* --- Styling für die Sondermeldung (Position: allert) --- */
#allertposition {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 0 0; /* Abstand nach oben zum Header */
    padding: 0;
}

/* Wenn das Modul Inhalt hat, stylen wir den inneren Kasten */
#allertposition .custom {
    background-color: #fff3cd !important; /* Dezentes Warn-Gelb */
    color: #856404 !important;            /* Dunkelbrauner/Gelber Text */
    border: 1px solid #ffeeba !important; /* Passender Rahmen */
    padding: 12px 20px !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 15px !important;
}

/* Optional: Falls du einen roten Alarm-Balken bevorzugst, nimm diese Werte: */
/*
#allertposition .custom {
    background-color: #f8d7da !important; 
    color: #721c24 !important;            
    border: 1px solid #f5c6cb !important; 
}
*/