/* ============================================================= */
/* 1. GRUNDLAGEN & VARIABLEN                   */
/* ============================================================= */

/* Grundlegende Resets und Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variablen für die Corporate Identity Farben */
:root {
    --accent-color: #D4AF37; /* Ein schönes Gold */
    --text-color-dark: #222; /* Dunkles Schwarz/Grau */
    --background-light: #fff; /* Reines Weiß */
    --background-subtle: #f8f8f8; /* Sehr dezentes Hellgrau für abwechselnde Sektionen */
    --background-dark: #1a1a1a; /* Dunkles Schwarz für Footer */

    /* Bootstrap-ähnliche Farben für Formulare */
    --form-border-color: #ced4da;
    --form-focus-border-color: #80bdff;
    --form-focus-shadow: rgba(0,123,255,0.25);
    --btn-primary-bg: #007bff;
    --btn-primary-hover-bg: #0056b3;
    --alert-success-bg: #d4edda;
    --alert-success-text: #155724;
    --alert-error-bg: #f8d7da;
    --alert-error-text: #721c24;
    --text-error-color: #dc3545;
}

/* Basis-Styling für den Body */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--background-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 90px; /* Abstand für den fixierten Header */
}

/* Allgemeine Styling für Container, um den Inhalt zu zentrieren und zu begrenzen */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================================= */
/* 2. LAYOUT & KOMPONENTEN                   */
/* ============================================================= */

/* --- Header Styling --- */
.main-header {
    background-color: var(--background-light);
    color: var(--text-color-dark);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: flex-end; /* Navigation nach rechts */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fixed Logo (ausserhalb des Headers, scrollt mit) */
.fixed-logo {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001; /* Liegt über dem Header */
    transition: transform 0.3s ease-in-out;
}

.fixed-logo img {
    height: 100%; /* Prominente Größe */
    width: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: block;
    border-radius: 8px;
}

/* Versteckt das Logo im Header, da wir ein fixiertes haben */
.main-header .logo {
    display: none;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

.main-nav ul li a.active {
    color: var(--accent-color);
}

/* --- Footer Styling --- */
.main-footer {
    background-color: var(--background-dark);
    color: var(--background-light);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto; /* Pusht den Footer nach unten */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-icons a {
    color: var(--accent-color);
    font-size: 2em;
    margin: 0 15px;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--background-light);
    transform: scale(1.1);
}

.footer-links a {
    color: var(--background-light);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9em;
    transition: color 0.3s ease-in-out;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ============================================================= */
/* 3. SEKTIONEN STYLING                      */
/* ============================================================= */

/* --- Hero Section (Startseite) --- */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: var(--background-light);
}

.hero-section .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-section .hero-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.hero-section .slogan-box {
    display: inline-block;
    background-color: var(--background-light);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 50px;
}

.hero-section .slogan-box h1 {
    font-size: 3em;
    color: var(--accent-color);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

/* --- Willkommenssektion --- */
.welcome-section {
    padding: 60px 20px;
    text-align: center;
    background: var(--background-subtle);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.welcome-section .welcome-text {
    font-size: 1.5em;
    color: var(--text-color-dark);
    line-height: 1.8;
}

.welcome-section .welcome-text i {
    color: var(--accent-color);
    font-style: italic;
    font-weight: 700;
}

/* --- Allgemeine Textsektionen --- */
.text-block-section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.text-block-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

/* Zentrierter Textblock für Seiteninhalte */
.centered-text-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: var(--text-color-dark);
}

.centered-text-block p {
    margin-bottom: 1em;
}

/* ============================================================= */
/* 4. INHALTSBOXEN                         */
/* ============================================================= */

/* --- Content Box (für Impressum, Datenschutz, etc.) --- */
.content-box {
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin: 50px auto;
    max-width: 900px;
}

.content-box h1,
.content-box h2,
.content-box h3,
.content-box p,
.content-box ul {
    color: var(--text-color-dark);
}

.content-box h1 {
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

.content-box h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: 700;
}

.content-box h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.content-box p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-box ul {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 20px;
    list-style: disc;
}

.content-box ul li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.slogan-box {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================================= */
/* 5. FORMULAR-STYLING                     */
/* ============================================================= */

/* --- Formular-Container --- */
.form-container-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    background-color: var(--background-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.form-container-box h1.form-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.form-container-box p.form-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* --- Formular-Gruppen und Felder --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--form-border-color);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--form-focus-border-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--form-focus-shadow);
}

.form-grid-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- Radio und Checkboxen --- */
.form-checkbox-label,
.form-radio-label {
    display: inline-flex;
    align-items: center;
    color: #4a5568;
    margin-right: 1.5rem;
}

.form-checkbox,
.form-radio {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    appearance: none;
    border: 1px solid var(--form-border-color);
    border-radius: 0.25em;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-radio {
    border-radius: 50%;
}

.form-checkbox:checked,
.form-radio:checked {
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}

.form-checkbox:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.form-radio:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle fill='%23fff' cx='10' cy='10' r='5'/%3e%3c/svg%3e");
    background-size: 50% 50%;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Button-Styling --- */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-bg);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* --- Warnmeldungen --- */
.text-error {
    color: var(--text-error-color);
    font-size: 0.875em;
    display: block;
    margin-top: 0.25rem;
}

/* --- Alert-Nachrichten --- */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    text-align: left;
}

.alert.success-alert {
    color: var(--alert-success-text);
    background-color: var(--alert-success-bg);
    border-color: var(--alert-success-bg);
}

.alert.error-alert {
    color: var(--alert-error-text);
    background-color: var(--alert-error-bg);
    border-color: var(--alert-error-bg);
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* ============================================================= */
/* 6. SPEZIFISCHE KOMPONENTEN                  */
/* ============================================================= */

/* --- Spezifische Anpassungen für Kontaktseite --- */
.contact-form-page-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-form-page-container h1,
.contact-form-page-container p {
    text-align: center;
}

.contact-form-page-container h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-form-page-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-form-page-container form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    background-color: #fcfcfc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    text-align: left;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-dark);
    color: var(--background-light);
    padding: 20px 30px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    font-size: 1rem;
    line-height: 1.5;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner .cookie-content {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    color: var(--background-light);
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-accept-btn {
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cookie-accept-btn:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* --- Responsive Iframe-Container --- */
.responsive-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Allgemeine Bild-Regeln --- */
.hero-logo,
.musikerin-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- Bildergalerie CSS --- */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.image-box {
    flex: 0 0 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    height: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.image-box:hover {
    transform: translateY(-5px);
}

.image-box img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

/* --- Bild-Link-Container --- */
.bild-container-haupt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bild-link-einzel {
    flex: 1;
    min-width: 0;
}

.bild-link-einzel img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================= */
/* 7. RESPONSIVE DESIGN                        */
/* ============================================================= */

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    .fixed-logo {
        height: 80px;
        top: 10px;
        left: 10px;
    }
    .fixed-logo img {
        height: 80px;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 10px 15px;
    }
    .hero-section .hero-logo {
        max-width: 300px;
    }
    .hero-section .slogan-box {
        padding: 10px 20px;
    }
    .hero-section .slogan-box h1 {
        font-size: 2em;
    }
    .welcome-section .welcome-text {
        font-size: 1.2em;
    }
    .social-icons a {
        font-size: 1.5em;
        margin: 0 10px;
    }
    .form-grid-columns {
        grid-template-columns: 1fr;
    }
    .image-box {
        flex: 1 1 100%;
        max-width: 100%;
        height: auto;
    }
    .image-box img {
        height: auto !important;
    }
    .cookie-banner {
        padding: 15px 20px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .cookie-banner .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    .cookie-banner p {
        font-size: 0.9rem;
    }
    .cookie-accept-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .bild-container-haupt {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .fixed-logo img {
        height: 60px;
    }
    .hero-section {
        padding: 50px 15px;
    }
    .hero-section .hero-logo {
        max-width: 250px;
    }
    .hero-section .slogan-box {
        padding: 8px 15px;
    }
    .hero-section .slogan-box h1 {
        font-size: 1.6em;
    }
    .welcome-section {
        padding: 40px 15px;
    }
    .welcome-section .welcome-text {
        font-size: 1em;
    }
}