/* Grundregeln für die gesamte Seite */
* {
    box-sizing: border-box;
}

body {
    background-image: url('Bilder/regenbogen.jpg');
    background-position: center +200px;
    background-repeat: repeat;
    background-size: 100% cover;
    background-attachment: fixed;
    font-family: "Computer Modern Serif", serif;
    margin: 0;
    padding: 12px;
    color: #002244;
    line-height: 1.6;
}

/* Haupt-Container */
.wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.38);
    padding: 27px;
    border-radius: 9px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
}

/* Header & Hinweistexte */
.highlight-text {
    color: #108300;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.highlight-text-sub {
    color: #108300;
    font-size: 1.1rem;
    margin-top: 3px;
    margin-bottom: 3px;
}

.banner-link {
    display: inline-block;
    max-width: 700px;
    width: 100%;
}

/* Menü-Grid (3 Spalten) */
.navigation-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 30px 0;
}

.navigation-grid a {
    display: inline-block;
    align-items: center;
    justify-content: center;
    padding: 3px 3px;
    background-color: #ffffff;
    border: 1px solid #06c000;
    color: #005500;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 500;
    box-shadow: 0 0 8px rgba(255, 255, 255, 1);
    transition: all 0.2s ease;
}

.navigation-grid a:hover {
    background-color: #10be00;
    color: #ffffff;
    outline: 2px solid #042400;
    box-shadow: 0 0 30px rgba(255,255,255,1);
}

.grid-left {
    grid-column: 1;
}

.grid-center {
    grid-column: 2;
}

/* Fußbereich */
.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.counter-box {
    margin: 20px 0;
}

.creator-link {
    color: #108300;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 25px;
}

/* Kontakt-Box */
.contact-info {
    max-width: 100%;
    color: #108300;
    font-size: 1rem;
    background-color: rgba(251, 71, 5, 0.04);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 1.0);
    margin-bottom: 30px;
}

/* Ausrichtung für Mail & XMPP nebeneinander */
.contact-graphics-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    flex: 1;
    min-width: 250px;
}

.contact-label {
    color: #108300;
    font-weight: bold;
    margin-bottom: 8px;
}

.text-link {
    color: #007070;
    font-weight: normal;
    margin-bottom: 8px;
}

.graphic-link {
    display: inline-block;
    transition: transform 0.2s;
}

.graphic-link:hover {
    transform: scale(1.04);
}

.contact-graphic {
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 4px;
}

/* Bilder - angepasst an die Breite des Wrappers */
.standard-image-box {
    max-width: 700px;
    width: 100%;
    margin: 25px auto;
    background-color: rgba(255, 255, 255, 0.35);
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 0px;
}
.standard-image-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.standard-image-box figcaption {
    font-size: 0.9rem;
    color: #108300;
    text-align: center;
    margin-top: 8px;
    padding: 5px;
}

/* Überbreites Bild: Erlaubt horizontales Scrollen/Wischen auf schmalen Bildschirmen */
.image-responsive {
    width: 100%;
    overflow-x: auto; /* Aktiviert das seitliche Scrollen */
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
    border: 1px solid rgba(6, 192, 0, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.35);
}
.image-responsive figure {
    margin: 0;
    padding: 0;
    /* Unveränderte Breite eines großen Bildes setzen (z.B. 1400px) */
    width: 1400px; 
}
.image-responsive img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}
.image-responsive figcaption {
    font-size: 0.9rem;
    color: #108300;
    text-align: center;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    /* Damit die Beschreibung beim Scrollen im sichtbaren Bereich stehen bleibt */
    position: sticky;
    left: 0;
    width: 100%; 
}

/* Impressum & Haftungsausschluss */
.legal-section {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.legal-nav {
    margin-bottom: 10px;
    color: #020070;
}

.legal-nav a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    padding: 0 5px;
}

.legal-nav a:hover {
    text-decoration: underline;
}

.legal-notice {
    color: #ff0000;
    text-align: justify;
    font-style: normal;
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Anpassung bei schmalen Displays */
@media (max-width: 600px) {
    .navigation-grid {
        grid-template-columns: 1fr; /* Menü auf 1 Spalte umschalten */
    }
    
    .grid-center {
        grid-column: auto;
    }
    
    .contact-graphics-container {
        flex-direction: column; /* Mail und XMPP untereinander stapeln */
    }
    
    .wrapper {
        padding: 15px;
    }
}

/* Styling für die Unterseiten */
.back-button-container {
    text-align: left;
    margin-top: 18px;
    margin-bottom: 18px;
    padding-bottom: 9px;
}
.btn-back {
    display: inline-block;
    padding: 5px 12px;
    background-color: #ffffff;
    border: 1px solid #06c000;
    color: #005500;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.btn-back:hover {
    background-color: #10be00;
    color: #ffffff;
    outline: 2px solid #042400;
    box-shadow: 0 0 30px rgba(255,255,255,1);
}

/* Optimierung für schmale Displays bei sehr breiten Tabellen */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Aktiviert horizontales Scrollen für die Tabelle */
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid rgba(6, 192, 0, 0.3);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.50);
    font-size: 0.9rem;
    white-space: nowrap; /* Verhindert unschöne Zeilenumbrüche in den Zellen */
}
.content-table th, .content-table td {
    padding: 8px 12px;
    border: 1px solid rgba(6, 192, 0, 0.25);
    text-align: center;
}
.content-table th {
    background-color: rgba(6, 192, 0, 0.15);
    color: #005500;
    font-weight: bold;
    position: sticky;
    top: 0;
}
/* Dezente Hervorhebung für Tabellenzeilen beim Drüberfahren */
.content-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

/* Untermenü-Anpassung */
.submenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}
@media (max-width: 600px) {
    .submenu-grid {
        grid-template-columns: 1fr;
    }
}

/* Wichtig für Text-Hüll-Muster */
.poetic-content {
    text-align: center;
    font-size: 1.15rem;
    color: #002244;
    white-space: pre-line;      /* Behält die manuellen Zeilenumbrüche exakt bei! */
    word-break: keep-all;       /* Verhindert, dass Wörter unschön getrennt werden */
    max-width: 650px;           /* Hält das Muster in einem harmonischen Rahmen */
    margin: 7px auto;
    padding: 0px;
}

.sub-footer {
    margin-top: 50px;
    font-size: 0.85rem;
    color: #002244;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
