/* ======= Basis Styles ======= */
@font-face {
    font-family: 'Lovely May';
    src: url('../fonts/font.woff2') format('woff2'),
         url('../fonts/font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Angella White';
    src: url('../fonts/angella-white.woff2') format('woff2'),
         url('../fonts/angella-white.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EvianFont';
    src: url('../fonts/evian.woff2') format('woff2'),
         url('../fonts/evian.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AdamiyaFont';
    src: url('../fonts/adamiya.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --background-color: #ffddf5;
    --primary-color: #011632;
    --accent-color: #c4aead;
}

body {
    background-image: url('../images/Hintergrundkleiner.jpg');
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: "Cormorant Garamond", serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* ======= Navbar Styles ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--background-color);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

.navbar.hidden {
    top: -60px;
}

.navbar-logo {
    height: 50px;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
}

.navbar-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Lovely May', serif;
    font-size: clamp(14px, 1.5vw, 16px);
    transition: color 0.3s ease-in-out;
}

.navbar-menu a:hover {
    color: var(--accent-color);
}

.navbar-rsvp {
    background: none;
    color: var(--primary-color);
    padding: 8px 10px;
    text-decoration: none;
    font-family: 'Lovely May', serif;
    font-size: clamp(14px, 2vw, 18px);
    transition: all 0.3s ease-in-out;
    margin-left: auto;
}

.navbar-rsvp:hover {
    background: #a38f85;
}

/* ======= Mobile Navigation ======= */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .burger-menu {
        position: fixed;
        top: 15px;
        left: 15px;
        font-size: clamp(20px, 3vw, 24px);
        cursor: pointer;
        z-index: 1003;
        background: none;
        border: none;
        color: var(--primary-color);
        padding: 5px 8px; /* Weniger Padding für eine bessere Höhe */
        height: 35px; /* Sicherstellen, dass der Button kleiner ist als die Navbar */
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .mobile-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100vw;
        background: var(--background-color);
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: left 0.3s ease-in-out;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 15px;
        text-align: center;
        color: var(--primary-color);
        text-decoration: none;
        font-family: 'Lovely May', serif;
    }

    .mobile-menu a:hover {
        background: var(--accent-color);
        color: var(--background-color);
    }
    
    .navbar-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ======= Hero ======= */
.hero {
    height: 100vh;
    background: url('../images/heroklein.jpg') center center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* Verhindert, dass das Bild Ã¼bersteht */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #644f44;
}

.hero h1 {
    font-family: 'Lovely May', serif;
    font-size: clamp(4rem, 9vw, 6.5rem);
    margin-bottom: 10px;
    font-weight: 200; /* Oder: 300, 400, je nach Schriftart */
}

.hero p {
    font-size: clamp(2rem, 7.5vw, 3rem);
    font-family: 'AdamiyaFont', cursive; 
    font-weight: 300; /* Oder: 300, 400, je nach Schriftart */
}

/* Allgemeine Sektionen */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    padding: 50px;
}


/* ======= Hochzeits Details ======= */
#zeit-und-ort {
    display: flex;
    align-items: center; /* Zentriert den Titel vertikal */
    max-width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    position: relative;
    min-height: 100vh; /* Damit der Abschnitt mindestens die Viewporthöhe hat */
    height: auto;
    color: white;
    padding: 0;
}
#zeit-und-ort-background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    background: #011632;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

#wedding-content {
    width: 90%; /* Nutzt 90% der Bildschirmbreite für besseren Flow */
    max-width: clamp(800px, 90%, 1200px); /* Zwischen 800px und 1200px flexibel */
    margin: 0 auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Linke Spalte (fixiert auf Desktop) */
.left-panel {
    width: 40%;
    position: sticky;
    top: 10vh;
    height: fit-content;
    background:none;
    padding: 20px;
    border-radius: 10px;
    box-shadow: none;
    margin-top: -100px; /* Schiebt es nach oben */
    left: 3rem;
    transform: none;
    z-index: 2; /* Über den blauen Hintergrund */
    font-size: clamp(2rem, 5vw, 4rem);
    text-align: left;
    max-width: 40%;
}

/* Hochzeitsdetails Styling */
.left-panel h2 {
    font-family: 'Lovely May', cursive;
    font-size: clamp(36px, 6vw, 82px);
    font-weight: 300;
    text-align: center;
    color: white !important; /* Titel in Weiß */
    margin-bottom: 10px;
}

/* Ort unter dem Titel */
.left-panel p {
    font-family: 'AdamiyaFont', cursive; 
    font-size: clamp(20px, 4vw, 52px);
    text-align: center;
    color: white ;
    margin-bottom: 30px;
}

/* Rechte Spalte (scrollbar) */
.right-panel {
    width: 55%;
    padding-left: none;
    position: relative;
    width: 50%; /* Breiter machen */
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow-y: visible;
    z-index: 2;
}

/* Jedes Event soll beim Scrollen über das vorherige geschoben werden */
.event {
    position: sticky;
    top: 0;
    background: #011632; /* Hintergrundfarbe, damit die Texte sich überlagern */
    padding: 40px;
    margin-bottom: 100px;
    z-index: 1;
    padding: 30px;

}
.event h3 {
    font-family: 'Lovely May', cursive; /* Elegante Schriftart */
    font-size: clamp(28px, 5vw, 48px);
    color: #ffffff; /* Weiß für Kontrast */
    text-align: center; /* Falls es nicht schon zentriert ist */
    margin-bottom: 10px;
}
.event p {
    font-family: 'Cormorant Garamond', serif; /* Elegante Serifenschrift */
    font-size: clamp(16px, 3vw, 24px);
    color: #ffffff; /* Weiß für Kontrast */
    text-align: center; /* Falls nötig */
    margin-bottom: 10px;
}

/* Mobile Anpassung */
@media screen and (max-width: 768px) {
    #zeit-und-ort {
        display: flex;
        flex-direction: column;
        align-items: center; /* Alles in die Mitte setzen */
        justify-content: center;
        width: 100vw; /* Volle Bildschirmbreite nutzen */
        padding: 0 20px; /* Abstand links & rechts */
        box-sizing: border-box; /* Verhindert Überlaufprobleme */
    }
    /* Neuer zentrierter Container für Inhalt */
    .wedding-container {
        width: 90%; /* Einheitliche Breite */
        max-width: 400px; 
        text-align: center; /* Text immer mittig */
    }
    .left-panel {
        position: sticky;
        top: 0;
        background: none;
        padding: 20;
        z-index: 1;
        display: block !important;
        flex-direction: column;
        text-align: center !important; /* Zentriert alle Inhalte */
        margin: 0 auto !important;
        justify-content: center !important;
        align-items: center !important;
        width: 80% !important;  /* Macht die Boxen schmaler */
        max-width: 300px !important;
        padding: 20px !important;  /* Weniger Innenabstand */
    }

    .right-panel {
        position: sticky;
        top: 0;
        background: none;
        padding: 20px;
        z-index: 2;
        display: block !important;
        flex-direction: column;
        text-align: center !important; /* Zentriert alle Inhalte */
        text-align: center; /* Sicherstellen, dass der Text auch zentriert ist */
        width: 100% !important;
        max-width: 400px;
    }
     /* Panels innerhalb des Containers */
    .left-panel, .event {
        width: 100%; /* Damit alles gleichmäßig skaliert */
        text-align: center;
        margin: 0 auto;
    }
   .event {
        position: sticky;
        top: 0;
        background:#011632;
        padding: 40px;
        z-index: 2;
        width: 80% !important;  /* Macht die Boxen schmaler */
        max-width: 300px !important; 
        padding: 20px !important;  /* Weniger Innenabstand */
    }
    
     .event h3 {
        font-size: 32px !important; /* Titel kleiner */
    }
       .event p {
        font-size: 16px !important; /* Beschreibung kleiner */
    }
    .left-panel h2 {
        font-size: 36px; /* Deutlich kleiner für Mobile */
        text-align: center !important;
        justify-content: center;
        display: block; /* Falls Flexbox-Probleme bestehen */
        width: 100%; 
        max-width: 100%; /* Falls es irgendwo eine Begrenzung gibt */
        margin: 0 auto;
        margin-bottom: 10px; /* Reduzierter Abstand zum Text darunter */
        line-height: 1.2; /* Verbessert die Lesbarkeit */
        word-wrap: break-word; /* Verhindert, dass Text überläuft */
    }
    .left-panel p {
        font-size: 22px; /* Passend reduziert */
    }
    .right-panel h2 {
        text-align: center !important;
        justify-content: center;
        display: block; /* Falls Flexbox-Probleme bestehen */
        width: 100%; 
        max-width: 100%; /* Falls es irgendwo eine Begrenzung gibt */
        margin: 0 auto;
        margin-bottom: 10px; /* Reduzierter Abstand zum Text darunter */
        line-height: 1.2; /* Verbessert die Lesbarkeit */
        word-wrap: break-word; /* Verhindert, dass Text überläuft */
    }
    .right-panel p {
    }
}

/* ======= Hotels======= */
#hotels {
    text-align: center;
    padding: 50px 20px;
    background: url('../images/hero.jpg') no-repeat center center/cover;
    background-color: none; /* Hintergrundfarbe passend zur Farbpalette */
    display: flex;
    flex-direction: column; /* Stellt sicher, dass der Titel oben bleibt */
    align-items: center;
}

#hotels h2 {
    font-family: "Lovely May", cursive;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #011632;
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
}

/* Hotel-Karten-Grid mit 4 Spalten */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Verhindert, dass das Grid neben dem Titel erscheint */
    justify-content: center; 
}


/* Einzelne Hotel-Karten */
.hotel-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    padding-bottom: 15px;
}

.hotel-card:hover {
    transform: translateY(-5px);
}

/* Hotel-Bilder */
.hotel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Hotel-Infos */
.hotel-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #011632;
    margin: 10px 0;
    font-family: "Cormorant Garamond", serif;
}

.hotel-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #333;
    padding: 0 15px;
}

.hotel-card .price {
    font-weight: bold;
    color: #c4aead;
    margin-top: 10px;
}

.hotel-card .discount {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: bold;
    color: #c4aead;
    margin: 10px 0;
}

/* Rabattcode hervorheben */
.hotel-card .code {
    background: #c4aead;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Buchungsbutton */
.booking-btn {
    display: inline-block;
    background: #c4aead;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin: 15px 0;
    transition: background 0.2s ease-in-out;
}

.booking-btn:hover {
    background: #a58d89;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1024px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hotels-grid {
        grid-template-columns: 1fr;
    }
}

/* ======= Über Uns - Sektion ======= */
#ueber-uns {
    background-image: none;
    padding: 50px 0;
    text-align: center; /* Titel in die Mitte setzen */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ueber-uns h2 {
    font-size: clamp(24px, 5vw, 40px);
    text-align: center;
    margin-bottom: 20px;
}

/* ======= Masonry Galerie ======= */
#ueber-uns .gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

#ueber-uns .gallery {
    column-count: 3;
    column-gap: 10px;
}

#ueber-uns .gallery img {
    width: 100%;
    display: block;
    margin-bottom: 10px;
    border-radius: 0;
}
/* Titel als Kachel in der Galerie */
#ueber-uns .gallery-title {
    background-image: none;
    color: #644f44;
    font-family: 'Lovely May', cursive;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Feste Höhe, damit es wie eine Bild-Kachel wirkt */
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    #ueber-uns .gallery {
        column-count: 2;
    }
}

/* ==== Geschenke ===== */
#geschenke {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 60px 20px;
  position: relative;
  overflow-x: hidden; /* verhindert horizontalen Scroll */
}

.geschenk-box {
  max-width: 600px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);

  /* Startzustand: außerhalb links */
  transform: translateX(-110%); /* etwas weiter raus, damit sicher off-screen */
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.geschenk-box.visible {
  transform: translateX(0);
  opacity: 1;
}

.geschenk-box h2 {
  font-family: 'Lovely May', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.geschenk-box p {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  margin: 1rem 0;
}

.iban-toggle,
.iban-copy {
  background: rgba(196, 174, 173, 0.3);
  color: var(--primary-color, #333);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.6rem 1.2rem;
  margin: 10px 5px 0 0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Lovely May', serif;
  cursor: pointer;
  transition: background 0.3s ease;
}

.iban-toggle:hover,
.iban-copy:hover {
  background: rgba(255, 255, 255, 0.5);
}

.iban {
  font-family: monospace;
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  margin: 20px 0;
  color: var(--primary-color, #333);
}

.hidden {
  display: none;
}

/* ======= Media Query: Bewegung reduzieren ======= */
@media (prefers-reduced-motion: reduce) {
  .geschenk-box {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ===== Fragen & Antworten – FAQ Styles ===== */
#fragen-antworten {
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titel */
#fragen-antworten h2 {
    font-family: "Lovely May", cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

/* Accordion Container – Bootstrap Variablen überschreiben */
#fragen-antworten .accordion {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    
    --bs-accordion-bg: #f5efeb;                       /* Body-Hintergrund */
    --bs-accordion-btn-bg: rgba(196, 174, 173, 0.15);  /* Button geschlossen */
    --bs-accordion-active-bg: rgba(196, 174, 173, 0.25); /* Button offen */
    --bs-accordion-btn-color: #011632;
    --bs-accordion-color: #011632;
    --bs-accordion-border-color: rgba(0, 0, 0, 0.08);
    --bs-accordion-btn-focus-box-shadow: none;
}

/* Einzelne Items */
#fragen-antworten .accordion-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
}

/* Buttons */
#fragen-antworten .accordion-button {
    background-color: var(--bs-accordion-btn-bg) !important;
    color: var(--bs-accordion-btn-color) !important;
    box-shadow: none !important;
}

#fragen-antworten .accordion-button:not(.collapsed) {
    background-color: var(--bs-accordion-active-bg) !important;
    color: var(--bs-accordion-btn-color) !important;
}

/* Inhalte */
#fragen-antworten .accordion-body {
    background-color: var(--bs-accordion-bg) !important;
    color: var(--bs-accordion-color) !important;
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.5;
}

/* Sicherstellen, dass nichts den Titel blockiert */
@media (max-width: 768px) {
    #fragen-antworten {
        padding: 2rem 1rem;
    }
    #fragen-antworten h2 {
        margin-bottom: 1rem;
    }
    .accordion {
        max-width: 100%;
    }
}
/* ======= RSVP ======= */
#rsvp {
  display: block; /* Überschreibt das globale section-flex */
  padding: 2rem;
  margin: 2rem auto;
  max-width: 100%;
}

#rsvp form {
  background: rgba(255, 255, 255, 0.15); /* Transparenter Hintergrund */
  backdrop-filter: blur(10px); /* Blur für Glass-Effekt */
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Heller Rand */
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 900px;
  margin: auto;
}

#rsvp h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  margin-bottom: 1rem;
  color: #644f44;
  font-family: 'Lovely May', cursive;
}

form label {
  color: #644f44;
    font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem);
}

form input[type="text"],
form select,
form textarea {
  background-color: rgba(196, 174, 173, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #644f44;
  padding: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem);
  backdrop-filter: blur(4px);
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(196, 174, 173, 0.3);
}

form textarea {
  resize: vertical;
}

form select {
  color: #fff;
  background-color: rgba(196, 174, 173, 0.3);
}

button[type="submit"] {
  background: rgba(196, 174, 173, 0.3);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  padding: clamp(0.6rem, 1vw, 1rem) clamp(1rem, 2vw, 1.5rem);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #333;
}
/* ======= MOBILE RSVP ======= */
@media (max-width: 768px) {
  .rsvp-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #rsvp h2 {
    text-align: center;
    padding-bottom: 1rem;
  }

  #rsvp form {
    width: 100%;
  }
}

/* ======= Dankesseite (RSVP-Bestätigung) ======= */
.thankyou-page {
    background-color: #fef9f2;
    font-family: "Cormorant Garamond", serif;
    color: #011632;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 100vh;
    text-align: center;
}

.thankyou-page h1 {
    font-family: 'Lovely May', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #c4aead;
    margin-bottom: 1rem;
}

.thankyou-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.back-button {
    background-color: #c4aead;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-button:hover {
    background-color: #a58d89;
}

/* ======= Footer ======= */
.footer {
  background-color: var(--background-color);
  color: #644f44;
  padding: 2rem 1rem;
  font-family: 'Lovely May', serif;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 300px;
}

.back-to-top {
  display: inline-block;
  background-color: transparent;
  color: #c4aead;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
}

.back-to-top:hover {
  background-color: #c4aead;
  color: #011632;
}
