:root {
    --primary: #063050; /* Hauptfarbe */
    --accent: #063069; /* Farbe in den Boxen */
    --light: #18ad92; /* Hintergrund Seite */
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    background: var(--light);
    color: #333;
}

header {
    background: var(--primary);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

nav {
    display: flex;
    justify-content: center;
    background: #063069; /* Farbe Navigation */
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    padding: 1rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 1rem;
}

section {
    background: white;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee; /* Dezente Trennlinie */

}

form {
    display: flex;
    flex-direction: column;
}

input, select, button {
    margin: 0.5rem 0;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.music-list {
    list-style: none;
    padding: 0;
}

.music-item {
    background: #eee;
    margin: 5px 0;
    padding: 10px;
    border-left: 4px solid var(--accent);
}

@media (max-width: 600px) {
    nav { flex-wrap: wrap; }
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild wird passend zugeschnitten */
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

.upload-zone {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

/* Versteckt das hässliche Standard-Input-Feld */
.btn-upload input[type="file"] {
    display: none;
}

.btn-upload {
	display: inline-block;    /* Lässt den Button nur so breit wie den Text sein */
    width: auto;              /* Hebt die volle Breite auf */
    min-width: 220px;         /* Verhindert, dass der Button zu schmal wird */
    max-width: 90%;           /* Sorgt dafür, dass er auf kleinen Handys nicht über den Rand geht */
    padding: 12px 25px;
    margin: 10px auto;        /* Zentriert den Button im Formular */
    border-radius: 50px;      /* Macht die Ecken schön rund (sieht moderner aus) */
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
}

.btn-upload:active {
    transform: scale(0.98);
}

.camera-btn {
    background: var(--primary);
    color: white;
    border: none;
}

.gallery-btn {
    background: #e9ecef;
    color: #333;
    border: 1px solid #ccc;
}

#cameraForm, #galleryForm {
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 1rem;
}


.header-content {
    display: flex; /* Ordnet die Elemente nebeneinander an */
    align-items: center; /* Zentriert sie vertikal */
    justify-content: center; /* Zentriert den gesamten Inhalt horizontal */
    gap: 15px; /* Abstand zwischen Bild und Text */
    flex-wrap: wrap; /* Damit es auf kleinen Bildschirmen umbricht */
}

.header-photo {
    width: 120px; /* Größe des Fotos */
    height: 120px;
    border-radius: 50%; /* Macht das Bild rund */
    object-fit: cover; /* Schneidet das Bild ggf. zu, damit es immer rund ist */
    border: 3px solid white; /* Weißer Rand ums Bild */
    box-shadow: 0 0 10px rgba(0,0,0,0.2); /* Leichter Schatten */
}

header h1 {
    margin: 0; /* Entfernt den oberen/unteren Standardabstand */
    font-size: 2.5rem; /* Etwas größer für den Titel */
}

header p {
    margin-top: 5px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9); /* Leichter Transparenz für den Untertitel */
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column; /* Auf kleinen Bildschirmen untereinander */
        text-align: center;
        gap: 10px;
    }
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    .header-photo {
        width: 100px;
        height: 100px;
    }
}



#welcome {
    background-color: #fff;
    border-left: 5px solid var(--primary); /* Ein Akzentstreifen links */
    line-height: 1.8;
}

#welcome h2 {
    color: var(--primary);
    margin-top: 0;
}

#welcome strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.checklist li {
    background: #fff;
    margin-bottom: 8px;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border: 1px solid #eee;
    user-select: none; /* Verhindert Textmarkierung beim Klicken */
}

.checklist li span {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    margin-right: 15px;
    display: inline-block;
    position: relative;
}

/* Wenn abgehakt */
.checklist li.checked {
    background-color: #f1f8f1;
    color: #888;
    text-decoration: line-through;
}

.checklist li.checked span {
    background-color: var(--primary);
}

.checklist li.checked span::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin: 25px 0;
    text-align: center;
}

.stat-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary);
}

.stat-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    font-weight: bold;
}

.omat-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.omat-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.omat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.omat-icon {
    font-size: 2rem;
}

.omat-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.omat-intro {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

/* Die Anzeige-Box (sieht jetzt aus wie der Button-Hintergrund) */
.challenge-text {
    background: #fdfdfd;
    border: 2px dashed #ddd; /* Etwas dezenter als der Button */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

/* Kleiner Animationseffekt beim Erscheinen */
.challenge-reveal {
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Der Button im exakten Stil von "Jetzt Foto machen" */
.btn-omat {
    display: inline-block;
    width: 100%; /* Volle Breite auf Mobile wie die anderen Buttons */
    background-color: var(--primary); /* Dein Lemur-Grün */
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px; /* Gleicher Radius wie Foto-Button */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-omat:hover {
    background-color: var(--primary-dark); /* Falls du ein dunkleres Grün hast, sonst weglassen */
    transform: translateY(-2px);
}

.btn-omat:active {
    transform: translateY(0);
}

        /* Galerie Layout */
        .gallery { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
            gap: 10px; 
            margin-top: 20px; 
        }
        .gallery-item { 
            position: relative; 
            border-radius: 12px; 
            overflow: hidden; 
            background: #eee; 
            aspect-ratio: 1 / 1; 
            cursor: pointer; 
        }
        .gallery-item img { 
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
            transition: transform 0.3s; 
        }
        .gallery-item:hover img { transform: scale(1.05); }
        
        .download-btn { 
            position: absolute; 
            bottom: 8px; 
            right: 8px; 
            background: rgba(0,0,0,0.5); 
            color: white; 
            text-decoration: none; 
            padding: 5px 10px; 
            font-size: 12px; 
            border-radius: 20px; 
            backdrop-filter: blur(4px);
        }

        /* Lightbox (Vollbild Ansicht) */
        #lightbox {
            display: none; 
            position: fixed; 
            z-index: 2000; 
            left: 0; top: 0; 
            width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.95); 
            align-items: center; 
            justify-content: center;
            touch-action: none; /* Verhindert Scrollen der Seite beim Swipen */
        }
        #lightbox-img { 
            max-width: 95%; 
            max-height: 85vh; 
            border-radius: 8px; 
            user-select: none;
            -webkit-user-drag: none;
        }

        /* Navigation Pfeile */
        .nav-arrow {
            position: absolute; 
            top: 50%; 
            transform: translateY(-50%);
            color: white; 
            font-size: 3rem; 
            text-decoration: none; 
            padding: 20px;
            z-index: 2100;
            user-select: none;
        }
        .prev { left: 10px; }
        .next { right: 10px; }
        .close-lightbox { 
            position: absolute; 
            top: 20px; 
            right: 25px; 
            color: white; 
            font-size: 45px; 
            text-decoration: none; 
            z-index: 2200;
        }

        @media (max-width: 600px) {
            .nav-arrow { display: none; } /* Auf Mobile nutzt man Swipe statt Pfeile */
            .gallery { grid-template-columns: repeat(3, 1fr); gap: 5px; }
        }
		
		.btn-back {
			            background-color: var(--primary);
            color: white !important;

            text-decoration: none;
			
				display: inline-block;    /* Lässt den Button nur so breit wie den Text sein */
    width: auto;              /* Hebt die volle Breite auf */
    min-width: 220px;         /* Verhindert, dass der Button zu schmal wird */
    max-width: 90%;           /* Sorgt dafür, dass er auf kleinen Handys nicht über den Rand geht */
    padding: 12px 25px;
    margin: 10px auto;        /* Zentriert den Button im Formular */
    border-radius: 50px;      /* Macht die Ecken schön rund (sieht moderner aus) */
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
        }