/* ==========================================================================
   1. CSS-VARIABLEN & GLOBALE EINSTELLUNGEN
   ========================================================================== */
:root {
    --bg-color: #F9F8F6;      /* Helles Off-White / Elfenbein */
    --text-color: #A8A09B;     /* Sanftes Mittelgrau für Fließtext & Untertitel */
    --heading-color: var(--text-color); /* Überschriften in gleicher Farbe wie Fließtext */
    --button-bg: #4A4A4A;     /* Anthrazit für Buttons */
    --footer-bg: #BFB9B4;     /* Warmes Taupe / Greige für den Footer */
    --footer-text: #FFFFFF;    /* Weißer Text auf Taupe-Hintergrund */

    /* Schriftarten */
    --font-logo: 'Megrim', sans-serif;
    --font-headings: 'Megrim', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

/* RESET & BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: 
        linear-gradient(rgba(249, 248, 246, 0.85), rgba(249, 248, 246, 0.8)),
        url('picture/marmormuster.jpg');
    background-repeat: repeat;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    max-width: 1500px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* ÜBERSCHRIFTEN (Standard / Globale Megrim-Schrift) */
h1, h2, h3 {
    color: var(--heading-color);
    font-family: var(--font-headings);
    line-height: 1.2;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2.0rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

/* ==========================================================================
   2. BUTTON STYLES
   ========================================================================== */
.btn {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-dark {
    background-color: var(--button-bg);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
}

.btn-dark:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 0px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--button-bg);
    border: 2px solid var(--button-bg);
    border-radius: 4px;
}

.btn-outline-dark:hover {
    background-color: var(--button-bg);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. HEADER & NAVIGATION (DESKTOP & MOBIL)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1500px;
    z-index: 1000;
    padding: 1.2rem 2.5rem;
    background-color: rgba(249, 248, 246, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(191, 185, 180, 0.3);
    box-sizing: border-box;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-container::before {
    content: "";
    display: block;
}

.logo {
    grid-column: 2;
    text-align: center;
}

.logo a {
    text-decoration: none;
    display: inline-block;
    color: inherit;
}

.logo h1 {
    font-family: var(--font-logo) !important;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--text-color);
    letter-spacing: 1.5px;
    margin: 0;
    font-weight: 700;
}

nav {
    grid-column: 3;
    justify-self: end;
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
}

nav a,
nav a:visited {
    text-decoration: none;
    color: var(--heading-color) !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

nav a:hover,
nav a:active {
    color: var(--text-color) !important;
}

nav ul li {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(249, 248, 246, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 0.5rem 0;
    list-style: none;
    min-width: 140px;
    z-index: 1005;
    text-align: center;
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-size: 0.88rem;
}

.has-dropdown:hover .dropdown {
    display: block;
}

/* ==========================================================================
   SANDWICH BUTTON & ANIMATION
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--heading-color);
    border-radius: 2px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: center;
}

/* PERFEKTES "X" BEIM ÖFFNEN */
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg);
}

/* ==========================================================================
   4. SEKTIONEN (HERO, MAIN & DIVERSE BILDER/ELEMENTE)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(rgba(74, 74, 74, 0.5), rgba(74, 74, 74, 0.5)), 
                url('picture/salon0.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    color: #FFFFFF;
    z-index: 1;
}

.hero-content h2 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.hero-content p {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 1.5rem 2rem 1.5rem;
}

/* CONTAINER-STILE & ABSTÄNDE */
.salon-block {
    background-color: transparent;
    padding: 1rem 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Container-Überschriften in Raleway und Fließtext-Farbe */
.salon-block h3 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.salon-block p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

details.salon-details summary {
    list-style: none;
    display: inline-block;
}

details.salon-details summary::-webkit-details-marker {
    display: none;
}

.expandable-content {
    margin-top: 0.5rem;
    animation: fadeIn 0.4s ease-in-out;
}

.image-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.image-grid img {
    width: 50%;
    height: 350px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--button-bg);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--button-bg);
    opacity: 0.85;
    transform: translateY(-3px);
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

footer nav ul {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1.5rem;
    list-style: none;
}

footer a,
footer a:visited,
footer a:hover,
footer a:active {
    color: var(--footer-text) !important;
    text-decoration: underline;
}

/* ==========================================================================
   6. RESPONSIVE ANPASSUNGEN (TABLETS & SMARTPHONES)
   ========================================================================== */
@media (max-width: 1350px) {
    header {
        padding: 1rem 1.5rem;
    }

    .header-container {
        grid-template-columns: 1fr auto 1fr;
        width: 100%;
    }

    .logo {
        grid-column: 2;
        text-align: center;
        margin: 0;
    }

    .menu-toggle {
        display: flex;
        grid-column: 3;
        justify-self: end;
        margin: 0;
    }

    header nav {
        grid-column: 1 / -1;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(249, 248, 246, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(191, 185, 180, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    header nav.open {
        max-height: 500px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.2rem;
        width: 100%;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
    }

    .dropdown {
        position: static;
        transform: none;
        display: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0.5rem 0 0 0;
        text-align: center;
        width: 100%;
    }
    
    header nav.open .dropdown,
    .has-dropdown:hover .dropdown {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }

    .dropdown a {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    main {
        padding: 5rem 1rem 2rem 1rem;
    }

    .salon-block {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }

    .image-grid {
        flex-direction: column;
    }

    .image-grid img {
        width: 100%;
        height: 300px;
    }
}

/* --- Desktop & größere Bildschirme (ab 768px Breite) --- */
@media screen and (min-width: 768px) {
    #salon {
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px 20px;
    }

    .salon-block {
        padding: 20px 30px;
        margin-bottom: 25px;
        text-align: center;
    }

    .salon-block h3 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .salon-block p {
        font-size: 1.2rem;
        line-height: 1.7;
        max-width: 800px;
        margin: 0 auto 20px auto;
    }

    .salon-block .image-grid img {
        width: 100%;
        height: 550px;
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
    }
}

/* --- Öffnungszeiten-Feld --- */
.opening-hours-block {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Öffnungszeiten Container-Überschrift */
.opening-hours-block h3 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 2.0rem;
    color: var(--heading-color);
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 15px auto;
    max-width: 400px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.hours-list li span:first-child {
    text-align: left;
}

.hours-list li span:last-child {
    text-align: right;
    white-space: nowrap;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-note {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

@media screen and (min-width: 768px) {
    .opening-hours-block {
        padding: 30px 40px;
        margin-bottom: 25px;
    }

    .opening-hours-block h3 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .hours-list {
        max-width: 500px;
        font-size: 1.2rem;
    }

    .hours-list li {
        padding: 12px 0;
    }

    .hours-note {
        font-size: 1.1rem;
        margin-top: 10px;
    }
}

/* --- SLIDER LAYOUT & DESIGN --- */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 15px 0 25px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .slide img {
        height: 340px;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}