/* 1. Grundeinstellungen */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* 2. Der Header (Kopfbereich) */
.main-header {
    background-color: #ffffff;
    padding: 20px 0 0 0;
    text-align: center;
    border-bottom: 3px solid #8b0000;
    margin-bottom: 5px;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.header-wappen {
    width: 80px;
    height: auto;
}

.welcome-text {
    color: #8b0000;
    font-size: 40px;
    font-family: Georgia, serif; 
    margin: 0;
    font-weight: normal; 
    text-transform: uppercase;
}

.main-logo-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* 3. Die Navigation */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #8b0000;
    font-size: 22px;
    font-weight: normal;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #000;
}

.main-nav a.active {
    font-style: italic !important;
    color: #000 !important;
}

/* 4. Der Hauptinhalt */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

main h1 {
    font-size: 32px;
    color: #8b0000;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: Georgia, serif;
    text-align: center;
}

main p {
    font-size: 24px;
    text-align: justify;
    hyphens: auto;
    margin-bottom: 20px;
}

/* --- NEU: Styling für den direkten Text-Import (PHP) --- */
.external-content {
    margin: 20px auto;
    padding: 0;
    background-color: transparent; /* Kein weißer Kasten mehr */
    border: none;
    width: 100%;
    max-width: 1000px;
}

.external-content h2 {
    font-family: Georgia, serif;
    color: #8b0000;
    margin-top: 0;
    text-align: center;
}

.text-datei-inhalt {
    font-size: 24px;
    color: #333;
    text-align: center; /* Zentriert für bessere Lesbarkeit auf Displays */
    white-space: pre-wrap; /* WICHTIG: Erhält Zeilenumbrüche aus der .txt Datei */
    padding: 10px;
}

/* --- EFFEKTE & ANIMATIONEN --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

main p, main h1, .external-content {
    animation: fadeIn 3s ease-out;
}

.hero-title {
    font-size: 24px; /* Extra groß */
    line-height: 1.2;
    color: #8b0000;
}