/* Grundlayout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.top-bar {
    background-color: #eeeeee;
    padding: 8px 0;
    font-size: 0.80rem;
    border-bottom: 1px solid #ddd;
    width: 100%;
    display: block;
    position: relative;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
}

.top-bar a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: #003366;
    text-decoration: underline;
}

header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 2px solid #003366;
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 131px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header-placeholder {
    display: block;
    min-height: 150px;
}

html {
    scroll-behavior: smooth;
}

header h1 {
    color: #003366;
    margin: 0;
    font-size: 1.6rem; 
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-weight: bold; 
    font-variant: small-caps;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

header p {
    margin: 4px 0 15px 0;
    font-size: 0.9rem;
    font-family: 'Georgia', serif;
    color: #555;
    font-style: normal;
    font-weight: 400;
}

nav {
    display: flex;
    flex-wrap: wrap;      
    justify-content: center; 
    gap: 10px;           
    padding: 10px;
}

nav a {
    display: inline-block; 
    text-decoration: none;
    color: #003366;
    font-weight: 600;
    font-variant: small-caps; 
    letter-spacing: 0.5px;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding: 10px 15px;    
    border: 1px solid rgba(0, 51, 102, 0.15); 
    border-radius: 4px; 
    white-space: nowrap;  
}

nav a:hover {
    color: #0055aa;
    border-color: #0055aa; 
    background-color: rgba(0, 85, 170, 0.05); 
    transform: translateY(-1px); 
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #003366;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Bereich */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url(../eyecatcher3_eyecatcher.jpg) no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
}

.hero-text {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 30px 40px;
    border-left: 8px solid #003366;
    max-width: 475px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

.hero-text h2 {
    font-size: 2.2rem;
    color: #003366;
    margin: 0;
    line-height: 1.2;
    text-shadow: none;
    font-variant: small-caps;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: normal;
}

/* Hauptinhalt */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h2, h3 {
    color: #003366;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: normal;
    margin-bottom: 15px;
}

.fachgebiete {
    display: grid;
    grid-template-columns: auto 1fr; 
    gap: 15px 15px; 
    margin-top: 20px;
    align-items: start;
}

.nummer {
    font-weight: bold;
    color: #003366;
}

/* Footer */
footer {
    background-color: #B5BAC0;
    color: #003366;
    padding: 0;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid #003366;
}

.footer-info {
    font-size: 0.85rem;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 600;
    padding: 8px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;    
    gap: 15px;          
    min-height: 35px; 
}

.footer-info span {
    white-space: nowrap;
}

.footer-links {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 35px; 
}

.footer-links a {
    color: #003366;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: normal;
    margin: 0 15px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 0.7;
}

/* Unterseiten-Module */
.ablauf-schritt {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ablauf-schritt h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ablauf-schritt:last-child {
    border-bottom: none;
}

main.container p {
    margin-bottom: 15px;
    text-align: justify;
}

.mitglied-box {
    background-color: #ffffff;
    border-left: 5px solid #003366;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.mitglied-box:hover {
    transform: translateX(5px);
}

.mitglied-box h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #003366;
}

.mitglied-box p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.mitglied-link {
    display: inline-block;
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #003366;
    padding: 6px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mitglied-link:hover {
    background-color: #003366;
    color: #ffffff;
}

.mitgliedschaften-container {
    margin-top: 60px;
    display: block;
}

.step-box {
    position: relative;
    padding-left: 65px !important;
    min-height: 60px;
}

.step-box.wide-step {
    padding-left: 145px !important; 
}

.step-box.wide-step .step-number {
    width: 120px; 
}

.step-number {
    position: absolute;
    left: 15px;
    top: 22px;
    font-size: 1.1rem; 
    font-weight: 700;
    color: #B5BAC0;
    font-family: sans-serif;
    text-align: left;
}

.gutachten-details {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.gutachten-details li {
    padding: 5px 0;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

.gutachten-details li strong {
    color: #003366;
    display: inline-block;
    width: 80px;
}

.sub-step {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

.sub-step strong {
    color: #003366;
    display: block;
    margin-bottom: 5px;
}

.einfache-box {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: none;
}

.eid-zitat {
    font-style: italic;
    font-size: 1.1rem;
    color: #003366;
    border-left: 3px solid #B5BAC0;
    margin: 25px 0;
    padding: 10px 0 10px 30px;
    line-height: 1.6;
    background-color: rgba(181, 186, 192, 0.05);
}

.sachfragen-liste {
    list-style-type: none;
    padding-left: 20px;
    margin: 20px 0;
}

.sachfragen-liste li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.sachfragen-liste li:last-child {
    border-bottom: none;
}

.sachfragen-liste li::before {
    content: '■';
    color: #003366;
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    /* 1. Header: Radikale Zentrierung erzwingen */
    header {
        position: static !important;  
        min-height: 0 !important;     
        height: auto !important;
        padding: 15px 10px !important; 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;     /* Zentriert Kinder horizontal */
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        float: none !important;             /* Löscht eventuelle Floats */
    }

    header h1, 
    header p {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
        display: block !important;
        align-self: center !important;      /* Erzwingt Zentrierung im Flex-Layout */
    }

    header h1 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }

    header p {
        font-size: 0.75rem !important;
        margin-top: 4px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }

    /* 2. Navigation: Flachere Buttons */
    nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px !important; /* Engerer Abstand zwischen Buttons */
        padding: 0 10px 10px 10px !important; /* Weniger Außenabstand */
        width: 100% !important;
    }

    nav a {
        text-align: center !important;
        padding: 6px 4px !important; /* Sehr flache Buttons */
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        background-color: #ffffff; 
        border: 1px solid rgba(0, 51, 102, 0.2) !important;
        border-radius: 4px !important;
        white-space: normal !important; /* Erlaubt Umbruch, falls Text zu lang */
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 35px; /* Mindesthöhe für Finger-Bedienbarkeit */
    }

    /* 2. Inhalts-Container */
    .container {
        padding: 20px 15px !important; 
        margin: 10px auto !important;
        width: 95% !important;
    }

    /* 3. Boxen & Striche (Die Basis für den Abstand) */
    .mitglied-box, 
    .eid-zitat, 
    .sub-step, 
    .hero-text,
    .step-box,
    .ablauf-schritt,
    .einfache-box {
        padding-left: 20px !important; 
        padding-right: 15px !important;
        margin-left: 0 !important;
        border-left-width: 5px !important;
        display: block !important;
    }

    /* 4. Listen-Korrektur: Radikal vereinfacht */
    .container ul, 
    .container ol,
    .sachfragen-liste {
        list-style-type: square !important; /* Nutzt den Browser-Standard (Quadrat) */
        list-style-position: outside !important; 
        
        /* Wir rücken die GESAMTE Liste weit nach rechts, 
           damit die Punkte Platz zum Strich haben */
        margin-left: 22px !important; 
        padding-left: 0 !important;
    }

    /* Wir löschen deine bisherigen Quadrat-Basteleien für Mobil, 
       damit sie nichts mehr überlagern können */
    .sachfragen-liste li::before,
    .container ul li::before {
        content: none !important; 
        display: none !important;
    }

    .container li,
    .sachfragen-liste li {
        display: list-item !important; /* Zurück zum Standard-Verhalten */
        text-align: left !important;
        margin-bottom: 10px !important;
        padding-left: 8px !important; /* Kleiner Abstand vom Punkt zum Text */
    }

    /* 5. Ablaufschritte (Steps) */
    .step-box, .step-box.wide-step {
        display: block !important;           
        padding-left: 20px !important; 
        margin-bottom: 30px !important;
    }

    .step-number { 
        position: static !important; 
        font-size: 1.3rem !important;
        margin-bottom: 8px !important;
        display: block !important;
        color: #003366 !important;
    }

    /* 6. Footer: Kompakt & ohne Trennstriche */
    .footer-info {
        display: flex !important;
        flex-direction: column !important; 
        gap: 4px !important;            /* Abstand zwischen den Zeilen */
        padding: 20px 15px !important;
        height: auto !important;
        
        /* Dieser Befehl lässt die Bindestriche im HTML verschwinden */
        font-size: 0 !important;        
    }

    .footer-info span {
        display: block !important;
        width: 100% !important;
        /* Hier geben wir dem sichtbaren Text seine Größe zurück */
        font-size: 0.85rem !important; 
        text-align: center !important;
        color: #003366 !important;
        white-space: normal !important;
    }
    
    p {
        text-align: left !important;
        hyphens: auto;
    }
}