: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;
}