/* Grundlegende Einstellungen */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0; 
    background-color: #e8f5e9;
    color: #4a4a4a;
}

/* Stil für die Kopfzeile */
header {
    background-color: #a5d6a7;
    color: #1b5e20;
    padding: 30px;
    text-align: center;
    border-bottom: 8px solid #4caf50;
}

h1 {
    font-size: 2.5em; 
    margin-top: 0;
}

/* Stil für den Hauptinhaltsbereich */
main {
    padding: 20px;
    max-width: 900px;
    margin: 30px auto;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section {
    margin-bottom: 10px; 
    padding-bottom: 15px;
    border-bottom: 1px dashed #cccccc;
}

/* Stil für den Button */
#toggle-anleitung {
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
}

#toggle-anleitung:hover {
    background-color: #fb8c00;
}

/* --- Bild und Bauanleitung --- */

/* WICHTIG: Versteckt die Bauanleitung am Anfang */
#bauanleitung {
    display: none; 
}

#bauanleitung figure {
    width: 100%;
    margin: 0; 
    padding: 0;
}

.kaefig-bild {
    max-width: 100%; 
    width: 100%; 
    height: auto;
    display: block; 
    margin: 20px 0 0 0; 
    border-radius: 8px;
    border: 6px solid #1b5e20; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); 
}

figcaption {
    text-align: center;
    font-style: italic;
    color: #666;
    /* KORREKTUR: Negativen Abstand reduziert (von -10px auf -3px), um Überlappung zu beheben */
    margin-top: -3px; 
    margin-bottom: 5px; 
}

/* Abstand nach der Tabelle/vor den Bauhinweisen reduzieren */
#bauanleitung h3 {
    margin-top: -5px; 
    margin-bottom: 5px; 
}

/* --- Tabellen-Layout --- */

#bauanleitung table {
    margin-top: 0; 
    width: 100%; 
    border-collapse: collapse; 
    table-layout: fixed;
    word-break: break-word;
}

#bauanleitung th {
    background-color: #a5d6a7; 
    color: #1b5e20;
    padding: 8px; 
    text-align: left;
    border: 1px solid #cccccc;
    /* SCHRIFTGRÖSSE AUF 0.1EM GESETZT */
    font-size: 1.0em; 
    width: 15%; 
}

#bauanleitung td {
    padding: 8px; 
    border: 1px solid #cccccc;
    word-wrap: break-word;
    /* SCHRIFTGRÖSSE AUF 0.1EM GESETZT */
    font-size: 1.0em; 
}

#bauanleitung tfoot td {
    /* SCHRIFTGRÖSSE AUF 0.1EM GESETZT */
    font-size: 1.0em;
}

/* Spaltenbreiten */
#bauanleitung th:nth-child(1),
#bauanleitung td:nth-child(1) {
    width: 20%; 
}

#bauanleitung th:nth-child(2),
#bauanleitung td:nth-child(2) {
    width: 45%; 
}

#bauanleitung th:nth-child(n+3),
#bauanleitung td:nth-child(n+3) {
    width: 11.66%; 
}