/* Google Fonts für den fließenden Haupttext */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500&display=swap');

/* Catchye Schriftart (.woff2) einbinden */
@font-face {
    font-family: 'Catchye';
    src: url('Catchye.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Grundlayout */
body {
    margin: 0;
    padding: 0;
    background-color: #fdf8ed;
    font-family: 'Quicksand', sans-serif;
    color: #4a3e2e;
}

/* Navigation */
.navbar {
    background-color: #fce7c8;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #e29b38;
    font-weight: 500;
}

.navbar a:hover {
    color: #c88122;
}

/* Instagram-Blume oben rechts */
.instagram-nav {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar .instagram-flower {
    font-size: 1.5rem;
    color: #9e1818;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar .instagram-flower:hover {
    transform: scale(1.25);
    color: #381b6b;
    opacity: 0.8;
}

/* Header */
header {
    background: linear-gradient(135deg, #fce7c8, #f8d59d);
    text-align: center;
    padding: 60px 20px;
    color: #3d3120;
}

header h1 {
    font-family: 'Catchye', cursive, sans-serif;
    font-size: 3.5rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.header-points {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 15px;
    font-size: 1.2rem;
}

.header-points .icon {
    margin-left: 0.9em;
}

/* Intro */
.intro {
    text-align: center;
    padding: 40px 20px;
}

.intro h2 {
    font-family: 'Catchye', cursive, sans-serif;
    color: #e29b38;
    font-size: 2.4rem;
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 22px;
    text-align: center;
}

/* Allgemeine Kurs- und Inhaltsboxen */
.kurs {
    background: white;
    margin: 30px auto;
    padding: 30px;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.kurs h3 {
    font-family: 'Catchye', cursive, sans-serif;
    font-size: 2.2rem;
    color: #e29b38;
    text-align: center;
    margin: 0 0 15px 0;
}

.kurs-header {
    position: relative;
    text-align: center;
    padding: 10px 0;
}

.kurs-header .buchen-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.kurs p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

/* Symmetrische "Über mich" & "Über atelier L'art" Abschnitte */
.about-section {
    max-width: 950px;
    padding: 40px !important; /* Exakt 40px Abstand links, rechts, oben und unten */
    overflow: hidden;
}

.about-container {
    display: block;
    margin-top: 20px;
}

.about-image {
    float: right;
    width: 380px;
    margin-left: 30px;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}

.about-text {
    width: 100%;
    box-sizing: border-box;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left; /* Garantiert sauberen linken Rand ohne Blocksatz-Lücken */
    max-width: none;
}

/* Spezielles Styling für das untere Bild */
#unteres-bild {
    width: 250px;
    max-width: 45%;
}

#unteres-bild img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Galeriebilder in den Kursen */
.kurs-bilder {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.kurs-bilder img {
    width: auto;
    max-width: 30%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kurs > img {
    width: 500px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Kursort */
.kursort {
    background: white;
    margin: 40px auto;
    padding: 30px;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.kursort h2 {
    font-family: 'Catchye', cursive, sans-serif;
    color: #e29b38;
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.maps-link {
    display: inline-block;
    margin-top: 15px;
    background-color: #e29b38;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.maps-link:hover {
    background-color: #c88122;
}

/* Popups & Modals */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.close-btn {
    margin-top: 20px;
    background-color: #e29b38;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #c88122;
}

.buchen-btn {
    background-color: #e29b38;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.buchen-btn:hover {
    background-color: #c88122;
}

/* Galerie Grid */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.galerie-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox img {
    width: 65%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Dekorations-Elemente */
.scroll-blume {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    font-size: 2.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    line-height: 1;
    color: #e29b38;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.blumenranke {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 220px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.ranke-svg {
    height: 100%;
    width: auto;
    color: #e29b38;
    opacity: 0.55;
}

/* Floating Buchen Button */
.floating-booking-btn {
    position: fixed;
    bottom: 30px !important;
    right: 30px;
    z-index: 999;
    background-color: #903333;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-booking-btn:hover {
    transform: translateY(-3px);
    background-color: #c47061;
}

/* Booking Modal */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.booking-modal.active {
    display: flex;
}

.booking-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

.booking-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.modal-option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: border-color 0.2s, background-color 0.2s;
}

.modal-option-btn:hover {
    border-color: #d88373;
    background-color: #faf5f3;
}

.modal-option-btn .option-icon {
    font-size: 1.5rem;
}

/* Cookie-Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 80px;
    right: 170px;
    background: #fff8f5;
    border-top: 1px solid #ebd5cc;
    border-left: 1px solid #ebd5cc;
    border-right: 1px solid #ebd5cc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 8px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-sizing: border-box;
    gap: 10px;
}

.cookie-banner p {
    margin: 0;
    font-size: 12px;
    color: #5a4a42;
    line-height: 1.3;
}

.cookie-banner a {
    color: #8c5840;
    text-decoration: underline;
}

#acceptCookiesBtn {
    background: #8c5840;
    color: #fff;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

#acceptCookiesBtn:hover {
    background: #754833;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-section {
        padding: 25px 20px !important;
    }

    .about-image,
    #unteres-bild {
        float: none;
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 320px;
    }

    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-banner {
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 10px 15px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .kurs-bilder {
        flex-direction: column;
    }
    
    .kurs-bilder img {
        width: 80%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .galerie-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Mobile Optimierungen für Atelier L'art --- */
@media (max-width: 768px) {
  /* Navigation untereinander anordnen, damit sie nicht überläuft */
  .navbar ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
  }
  
  .instagram-nav {
    position: static;
    transform: none;
    margin-top: 5px;
  }

  /* Float komplett aufheben und Bilder zentrieren */
  .about-image,
  #unteres-bild {
    float: none !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 20px auto !important;
  }

  /* Texte linksbündig oder zentriert lesbar machen */
  .about-text p {
    text-align: left;
  }

  /* Dekorative Blumenranke auf Handys ausblenden, da sie den Inhalt verdeckt */
  .blumenranke {
    display: none;
  }

  /* Header-Abstände für Smartphones verringern */
  header {
    padding: 40px 15px;
  }
  
  header h1 {
    font-size: 2.8rem;
  }
}