/* GRUNDLAGEN */
body {
    font-family: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
    color: #333;
    background-color: #e9ecef;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- PHORUM FORMULARE & EINGABEFELDER --- */
input[type="text"], 
input[type="password"], 
select, 
textarea {
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px; /* Macht die Felder etwas moderner */
}

/* Der Menü-Button (Standardmäßig unsichtbar auf PC) */
.menu-toggle {
    display: none; /* Auf dem Desktop ausblenden */
    width: 100%;
    background-color: #FF6600; /* Autobahn-Orange */
    color: white;
    padding: 10px;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background-color: #cc5200;
}

/* DER ZENTRALE CONTAINER */
.layout-container {
    max-width: 1150px; /* Breite von 1000px auf 1250px erhöht für mehr Platz! */
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* overflow: hidden;  <-- Diese Zeile haben wir komplett gelöscht! */
    display: flex;
    flex-direction: column; 
}

/* HEADER (KOPFZEILE MIT SCHILD) */
.site-header {
    background-color: #003399;
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
}

.site-header img {
    height: 60px;
    margin-right: 20px;
}

.site-header h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 1px;
}

/* HAUPTBEREICH (Navigation + Text nebeneinander) */
.main-content {
    display: flex;
    padding: 25px;
}

/* LINKE NAVIGATION */
.main-nav {
    width: 220px;
    flex-shrink: 0;
    margin-right: 35px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li a {
    display: block;
    background-color: #f4f4f4;
    color: #003399;
    padding: 12px 15px;
    margin-bottom: 5px;
    text-decoration: none;
    border-left: 4px solid transparent;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-nav li a:hover, .main-nav li a.active {
    background-color: #e9ecef;
    border-left: 4px solid #FF6600;
    color: #FF6600;
}

/* RECHTER INHALT */
.content-area {
    flex-grow: 1;
}

.breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #003399;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #003399; /* Bleibt Blau */
    text-decoration: underline;
}

h2 {
    color: #003399;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 5px;
    display: inline-block;
    margin-top: 0;
}

.content-area ul {
    list-style-type: square;
    padding-left: 20px;
}

.content-area li {
    margin-bottom: 6px;
}

.content-area a {
    color: #003399;
    text-decoration: none;
    font-weight: bold;
}

.content-area a:hover {
    color: #003399; /* Bleibt Blau */
    text-decoration: underline;
}

/* FUSSZEILE */
.site-footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE: Handy-Ansicht (unter 768px) */
@media (max-width: 768px) {
    /* Container passt sich der Bildschirmbreite an */
    .layout-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Menü und Inhalt untereinander stapeln */
    .main-content {
        flex-direction: column;
        padding: 10px;
    }

    /* Menü nimmt volle Breite ein */
    .main-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    /* Der Button wird sichtbar! */
    .menu-toggle {
        display: block;
    }

    /* Die Menü-Liste ist STANDARDMÄSSIG VERSTECKT */
    .main-nav ul {
        display: none; /* Klappt das Menü zu */
    }

    /* Header passt sich an */
    .site-header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .site-header img {
        margin-right: 0;
        margin-bottom: 10px;
        height: 50px; /* Logo etwas kleiner auf Handy */
    }

    .site-header h1 {
        font-size: 22px; /* Schrift etwas kleiner */
    }

    /* Verhindert seitliches Scrollen bei langen Wörtern/Links */
    .content-area {
        width: 100%;
        overflow-wrap: break-word; /* WICHTIG gegen das "Verschwimmen" */
        word-wrap: break-word;
    }
/* Formulare auf dem Handy untereinander stapeln (Suche & Profil) */
    table.PhorumFormTable, 
    table.PhorumFormTable tbody, 
    table.PhorumFormTable tr, 
    table.PhorumFormTable td {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }
    
    table.PhorumFormTable td {
        padding: 5px 0 !important;
    }
    
    /* Buttons auf dem Handy etwas größer machen, damit man sie gut tippen kann */
    input[type="submit"], 
    .PhorumSubmit {
        width: 100%;
        padding: 10px !important;
        margin-top: 10px;
        font-size: 16px !important;
    }
}

/* Phorum Sicherheits-Regeln (Alle Kästen exakt bündig machen) */
.PhorumStdBlock, 
.PhorumStdBlockHeader, 
.PhorumNavBlock,
.PhorumRowBlock,
.PhorumRowBlockAlt,
.PhorumStdTable, 
table.PhorumStdTable,
div.PhorumStdBlock {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Falls Phorum den rechten Rahmen vergisst, malen wir ihn nach */
.PhorumStdBlock, 
.PhorumStdTable, 
table.PhorumStdTable {
    border-right: 1px solid #808080 !important;
}

/* --- TABELLEN UND PSEUDO-TABELLEN WISCHBAR MACHEN --- */
    
    /* Der Kasten um alles wird wischbar */
    .PDDiv, .content-area {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        display: block !important;
    }

    /* FIX 1: Für ECHTE Tabellen (z.B. innerhalb eines Themas) */
    table.PhorumStdTable {
        display: table !important; 
        min-width: 700px !important; 
        max-width: none !important; 
    }
    table.PhorumStdTable td, 
    table.PhorumStdTable th {
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* FIX 2: Für PSEUDO-Tabellen (Die Startseite des Forums!) */
    .PhorumRowBlock, 
    .PhorumRowBlockAlt, 
    .PhorumStdBlockHeader {
        min-width: 750px !important; /* Zwingt die Forenzeilen, extrem breit zu sein */
        max-width: none !important;  /* Hebt unsere alte 100%-Sperre auf */
        display: block !important;
    }
    
    /* Den Buchstabensalat im Foren-Titel endgültig stoppen */
    .PhorumLargeFont, 
    .PhorumFloatingText,
    .PhorumLargeFont a {
        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
    }

/* --- PHORUM LINK-FARBEN KORRIGIEREN --- */
/* Überschreibt das interne Orange (#FF6600) des Forums */

/* 1. Normale Links im Forum (Thread-Titel, Links in Beiträgen, Autoren) */
.PDDiv a:hover,
.PhorumStdBlock a:hover,
.PhorumReadBodyText a:hover,
.PhorumLargeFont a:hover {
    color: #003399 !important; /* Zwingend Blau bleiben */
    text-decoration: underline !important;
}

/* 2. Die Buttons im Forum (Antworten, Zitieren, Melden etc.) */
a.PhorumNavLink:hover {
    color: #003399 !important;
    border-color: #003399 !important; /* Auch der Rahmen soll blau werden */
    background-color: #e9ecef !important; /* Leichter grauer Hintergrund statt Orange */
    text-decoration: none !important; /* Buttons unterstreicht man meist nicht */
}



