html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --dark-red: #990202;
    --beige: #94887c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

#header .container {
    max-width: none;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#account-icon-link {
    text-decoration: none;
}

#header .logo {
    height: 50px;
}

.hero {
    height: 100vh;
    background-image: url('Startseite.jpg'); /* Standard-Bild für Desktop */
    background-size: cover;
    background-position: center center; 
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: sticky;
    top: 0;
    padding-bottom: 25vh;
    z-index: 1;
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(59, 59, 59, 0.7);
    font-family: Times, Times New Roman, serif;
}

.hero-content h1 a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.menu-icon { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; cursor: pointer; }
.menu-icon span { display: block; height: 3px; width: 100%; background-color: white; border-radius: 3px; transition: all 0.3s ease-in-out; }
.account-icon { width: 35px; height: 35px; position: relative; cursor: pointer; }
.account-icon::before { content: ''; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border: 3px solid white; border-radius: 50%; box-sizing: border-box; }
.account-icon::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 11px; box-sizing: border-box; border: 3px solid white; border-bottom: none; border-radius: 20px 20px 0 0; }
.section-subtitle { font-size: 1em; color: var(--beige); margin-top: -30px; margin-bottom: 30px; font-weight: bold; }

.booking {
    background-color: #ffffff;
    padding: 60px 0;
    margin-top: -25vh; 
    position: relative;
    z-index: 10; 
    min-height: 100vh;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0em 0em 30px rgba(0,0,0,0.05);
    scroll-margin-top: -20px;
}

.booking h2 { font-size: 2.5rem; margin-bottom: 40px; color: #333; }
.service-list { display: flex; flex-direction: column; gap: 15px; }
.service-item { display: flex; align-items: center; justify-content: space-between; padding: 20px; border: 1px solid #eee; border-radius: 8px; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.service-item.is-visible { opacity: 1; transform: translateY(0); }
.service-item > div { flex: 1; }
.service-name { font-weight: 500; flex-grow: 3; }
.service-details, .service-price { color: #555; text-align: right; }
.service-price { font-weight: bold; }
.btn { background-color: var(--beige); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; margin-left: 20px; transition: background-color 0.3s; }
.btn:hover { background-color: #6c919c; }
#footer { padding: 40px 0; background-color: var(--beige); }
#menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.4s ease-in-out; }
#side-menu { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background-color: white; z-index: 1600; padding: 100px 40px; box-sizing: border-box; border-top-right-radius: 20px; border-bottom-right-radius: 20px; transform: translateX(-100%); transition: transform 0.4s ease-in-out; }
#side-menu ul { list-style: none; padding: 0; margin: 0; }
#side-menu li { margin-bottom: 40px; }
#side-menu a { text-decoration: none; font-size: 1.2rem; color: #333; font-weight: 500; }
body.menu-open #side-menu { transform: translateX(0); }
body.menu-open #menu-overlay { opacity: 1; pointer-events: auto; }
body.menu-open .menu-icon span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
body.menu-open .menu-icon span:nth-child(2) { opacity: 0; }
body.menu-open .menu-icon span:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }
.btn-back { background: none; border: none; color: var(--beige); font-weight: bold; cursor: pointer; font-size: 1em; margin-bottom: 20px; padding: 0; }
.selected-service { background-color: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 20px; margin-top: -20px; margin-bottom: 40px; }
.selected-service h4 { margin: 0 0 10px 0; font-size: 1.2em; }
.selected-service p { margin: 0; color: #555; }
.calendar-container { margin-bottom: 40px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-header h3 { margin: 0; color: #333; }
.calendar-nav { background: #f0f0f0; border: 1px solid #ddd; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5em; cursor: pointer; }
.calendar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.day-column { border: 1px solid #eee; border-radius: 8px; padding: 8px; text-align: center; }
.day-header { font-weight: bold; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.time-slot { padding: 10px 5px; border-radius: 5px; margin-bottom: 8px; cursor: pointer; background-color: var(--beige); color: white; font-weight: 500; transition: transform 0.2s, background-color 0.2s; }
.time-slot:hover { transform: scale(1.05); }
.time-slot.unavailable { background-color: #e0e0e0; color: #aaa; cursor: not-allowed; text-decoration: line-through; }
.time-slot.selected { background-color: var(--dark-red); color: white; }
.customer-details-form { margin-top: 40px; padding: 25px; background-color: #f9f9f9; border: 1px solid #eee; border-radius: 8px; }
.customer-details-form h4 { margin: 0 0 5px 0; font-size: 1.2em; }
.form-hint { font-size: 0.9em; color: #777; margin: 0 0 20px 0; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-size: 1em; }
.btn-confirm { display: block; width: 50%; max-width: 350px; min-width: 250px; margin: 40px auto 0; padding: 15px; font-size: 1.2em; background-color: var(--dark-red); color: white; border: none; border-radius: 8px; cursor: pointer; text-align: center; transition: background-color 0.3s ease, opacity 0.3s ease; }
.btn-confirm.disabled { background-color: #cccccc; opacity: 0.7; cursor: not-allowed; }
.fade-in-item { opacity: 0; animation: fadeInUp 0.5s ease-out forwards; }
#calendar-view > .fade-in-item:nth-child(1) { animation-delay: 0.1s; } #calendar-view > .fade-in-item:nth-child(2) { animation-delay: 0.2s; } #calendar-view > .fade-in-item:nth-child(3) { animation-delay: 0.3s; } #calendar-view > .fade-in-item:nth-child(4) { animation-delay: 0.4s; } #calendar-view > .fade-in-item:nth-child(5) { animation-delay: 0.5s; } #calendar-view > .fade-in-item:nth-child(6) { animation-delay: 0.6s; } #calendar-view > .fade-in-item:nth-child(7) { animation-delay: 0.7s; }

.location-map-container { margin-top: 40px; text-align: center; }
.map-responsive { position: relative; overflow: hidden; padding-bottom: 56.25%; height: 0; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.map-responsive iframe { position: absolute; left: 0; top: 0; height: 100%; width: 100%; }
.coming-soon { text-align: center; font-size: 1.5rem; color: #999; padding: 80px 0; font-style: italic; animation: fadeInUp 0.5s ease-out; }

.location-details { text-align: center; margin: 40px 0; }
.location-details h3 { font-size: 1.5rem; margin-bottom: 5px; color: #333; font-weight: 600; }
.location-details p { font-size: 1.1rem; color: #666; line-height: 1.6; margin: 0; }

#standort-view > * { opacity: 0; animation: fadeInUp 0.6s ease-out forwards; }
#standort-view h2 { animation-delay: 0.1s; }
#standort-view .section-subtitle { animation-delay: 0.2s; }
#standort-view .location-details { animation-delay: 0.3s; }
#standort-view .location-map-container { animation-delay: 0.4s; }

.content-view:not(#calendar-view):not(#standort-view) h2,
.content-view:not(#calendar-view):not(#standort-view) .section-subtitle {
    opacity: 0; 
    animation: fadeInUp 0.5s ease-out forwards;
}

.content-view:not(#calendar-view):not(#standort-view) h2 {
    animation-delay: 0.1s;
}

.content-view:not(#calendar-view):not(#standort-view) .section-subtitle {
    animation-delay: 0.2s;
}

.confirmation-message {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin: 50px 0 30px 0;
}

.booking-details-container {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.booking-details-container h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #333;
}

#booking-confirmation-details p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #555;
}

#booking-confirmation-details p:last-child {
    margin-bottom: 0;
}

#booking-confirmation-details strong {
    color: #333;
}

/* --- HIER IST DIE EINZIGE ÄNDERUNG --- */
@media (max-width: 768px) {
    /* Ändert das Hintergrundbild für mobile Geräte */
    .hero {
        background-image: url('Startseite768.jpg');
    }

    /* Deine bestehenden Regeln für den scrollbaren Kalender */
    .calendar-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 15px; 
    }
    .calendar-grid {
        min-width: 500px; 
    }
}

/* --- FOOTER STYLES --- */
#footer {
    background-color: var(--beige); /* Ein helles Grau, passt gut zu Weiß */
    color: #ffffff;           /* Ein weicheres Grau für den Text */
    padding: 40px 20px;
    border-top: 1px solid #e7e7e7;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Sorgt für den Umbruch auf kleinen Bildschirmen */
}

.footer-column {
    flex: 1;
    min-width: 250px; /* Verhindert, dass die Spalten zu schmal werden */
    padding: 10px;
}

/* Linke Spalte: Social Media */
.footer-column:first-child {
    text-align: left;
}

/* Mittlere Spalte: Links */
.footer-column:nth-child(2) {
    text-align: center;
}

/* Rechte Spalte: Copyright */
.footer-column:last-child {
    text-align: right;
}

.footer-column a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #6c919c; /* Deine Haupt-Akzentfarbe */
}

.footer-column p {
    margin: 0;
}

/* Styles für die Social Media Icons */
.social-icon-link {
    display: inline-block;
    margin: 0 10px;
}

.location-icon {
    /* Verkleinert das Icon auf 90% seiner Größe, ohne den Platz zu verändern */
    transform: scale(0.9); 
    
    /* Hebt das Icon 1px an, um es vertikal perfekt zu zentrieren */
    position: relative;
    top: -1px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff; /* Startfarbe */
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-icon-link:hover .social-icon {
    fill: #6c919c;
    transform: scale(1.1);
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-column,
    .footer-column:first-child,
    .footer-column:nth-child(2),
    .footer-column:last-child {
        text-align: center;
        flex-basis: 100%; /* Jede Spalte nimmt die volle Breite ein */
    }
}