/* ==========================================================================
   DESKTOP-ANSICHT (Standardkonfiguration)
   ========================================================================== */
body {
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Erlaubt vertikales Scrollen, falls nötig */
    margin: 0;
    font-family: "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;
}

.main-container {
    width: 100%;
    max-width: 1200px; /* Feste Breite auf großen Bildschirmen */
    height: 900px; /* Feste Höhe auf großen Bildschirmen */
    background: #a5a5a5 url('image/hintergrundbild.jpg') no-repeat ;
    background-size: cover;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    color: rgb(182, 104, 104); 
}
.menu-toggle {
  display: none; /* Auf dem Desktop brauchen wir keinen Button */
}
.nav-box {
    position: absolute;
    right: 10px;
    top: 10px; 
    font-weight: bold;
    background-color: rgba(166, 91, 91, 0.85); /* Gedämpftes Rot */
    color: darkslategrey;
    padding: 10px;
    border-radius: 15px;
    font-size: 18px;
    width: 600px;
    text-decoration: none;
}
.nav-list a {
  text-decoration: none; /* Entfernt die Unterstreichung */
  color: #333;           /* Wähle hier deine gewünschte Startfarbe (z.B. Dunkelgrau) */
  transition: color 0.3s ease; /* Macht den Farbwechsel beim Drübergehen schön weich */
}

/* Styling, wenn man mit der Maus darüberfährt (Hover) */
.nav-list a:hover {
  color: #ffffff;        /* Ändert die Textfarbe beim Drübergehen zu Weiß */
}
/* Header & Logo */
header {
    padding: 10px;
    padding-top: 40px;
    padding-left: 200px;
    text-align: left; 
    color: rgb(182, 104, 104); 
}
/* Macht das gesamte Logo klickbar und entfernt Textunterstreichungen */
.logo-link {
    text-decoration: none;
    color: inherit; /* Behält das Weiß für die Schrift bei */
    display: inline-flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen Bild-Logo und Text-Logo */
    cursor: pointer;
}
.logo {
    font-size: 80px;
    letter-spacing: 7px;
    margin-bottom: 0;
    
}

.img-logo {
    width: 80px;
    height: 80px;
    filter: invert(96%) sepia(13%) saturate(614%) hue-rotate(323deg) brightness(103%) contrast(93%);
}

.slogan {
    font-weight: bold;
    margin-top: 5px;
    font-size: 38px;
}

/* Infoboxen (Desktop-Positionierung) */
.info-box {
    position: absolute;
    right: 20px;
    top: 600px; 
    font-weight: bold;
    background-color: rgba(166, 91, 91, 0.85); /* Gedämpftes Rot */
    color: darkslategrey;
    padding: 10px;
    border-radius: 15px;
    font-size: 20px;
    width: 560px;
     text-decoration: none;
}
.nav-box ul {
  list-style-type: none; /* Entfernt die Aufzählungspunkte */
  margin: 0;
  padding: 0;
  display: flex;         /* Richtet die Elemente horizontal aus */
  gap: 20px;             /* Erzeugt 20px Abstand zwischen den Links */
}

/* Optional: Bindet deine gewünschte Arial-Schriftart ein */
.nav-box li {
  font-family: "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;
  font-weight: bold;
}


.sem,
.preis {
       top: 400px; 
}

.text-box {
    position: absolute;
    right: 20px;
    top: 300px; 
    font-weight: bold;
    background-color: rgba(166, 91, 91, 0.85); /* Gedämpftes Rot */
    color: darkslategrey;
    padding: 10px;
    border-radius: 15px;
    font-size: 20px;
    width: 90%;
    text-decoration: none;
    max-height: 500px;    /* Maximale Höhe, ab der gescrollt werden muss */
    overflow-y: auto;     /* Aktiviert die vertikale Scrollbar bei Bedarf */
    box-sizing: border-box; /* Verhindert, dass Padding die Box verbreitert */
}

.info-box ul {
    list-style-type: disc;
    padding-left: 20px;
    line-height: 1.6;
}

/* Handschrift-Effekt */
.note {
    position: absolute;
    font-family: 'Cursive', sans-serif; 
    transform: rotate(-5deg);
    color: black;
    font-size: 30px;
    font-weight: bold; 
}

.note-1 { top: 290px; left: 50px; font-size: 40px; }
.note-2 { top: 540px; left: 60px; font-size: 70px; font-family: 'Brush Script MT', cursive; }
.note-3 { top: 620px; left: 70px; }


.notep {
    position: absolute;
    font-family: 'Cursive', sans-serif; 
    transform: rotate(5deg);
    color: black;
    font-size: 40px;
    font-weight: bold; 
    text-align: right;
}
.note-p { top: 90px; right: 70px; }

/* Fotogalerie unten links (Desktop) */
.gallerymain {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 20px;
}
.gallery {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 20px;
}

.gallery img {
    border: 0px;
    border-radius: 20%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.gallerymain img {
    border: 0px;
    top: 20px;
    border-radius: 15%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    width: 300px;
    height: 300px;
    object-fit: cover;
}

/* Footerzeile */
footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    color: inherit; /* Behält das Weiß für die Schrift bei */
   
}
.footer a {
  text-decoration: none; /* Entfernt die Unterstreichung */
  color: white;           /* Wähle hier deine gewünschte Startfarbe (z.B. Dunkelgrau) */
  transition: color 0.3s ease; /* Macht den Farbwechsel beim Drübergehen schön weich */
}
.footer a:hover {
  color: red;        /* Ändert die Textfarbe beim Drübergehen zu Weiß */
}

/* Anmeldebutton in der Infobox */
.register-btn {
    position: absolute;
    left: 400px;
    top: 300px; 
    width: 300px;
    background-color: rgb(182, 104, 104); /* Passe die Farbe an dein Design an */
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s;
}
.register-btn:hover {
    background-color: #71826a;
}

/* ==========================================================================
   MOBILE ANPASSUNGEN (Für Smartphones und Tablets bis 1024px Breite)
   ========================================================================== */
@media (max-width: 1024px) {
    body {
        align-items: flex-start; /* Schiebt das Layout ans obere Ende zum besseren Scrollen */
        padding: 10px;
    }

    .main-container {
        height: auto; /* Container wächst flexibel mit den untereinanderliegenden Boxen mit */
        min-height: 100vh;
        border-radius: 10px;
        padding-bottom: 60px; /* Schafft unten Platz für den Footer */
        display: flex;
        flex-direction: column;
        
        /* Optimierung Hintergrundbild: */
        background-attachment: scroll; /* Wichtig für ruckelfreies Scrollen auf Handys */
        background-position: center top; /* Startet am oberen Bildrand, damit der wichtigste Inhalt sichtbar bleibt */
    }

   .nav-box {
        position: absolute; /* Bleibt oben rechts in der Ecke kleben */
        right: 10px;
        top: 10px;
        width: 90px;        /* Genau so breit, dass dein 68px-Icon perfekt reinpasst */
        height: auto;
        padding: 10px;
        transition: width 0.3s ease; /* Macht das Breiterwerden schön geschmeidig */
        box-sizing: border-box;
        overflow: hidden;
    }

    /* NEU: Wenn das Menü geöffnet ist, wird die Box breit */
    .nav-box.is-open {
        width: calc(100% - 20px); /* Dehnt sich auf fast die volle Bildschirmbreite aus */
        right: 10px;
        left: 10px;               /* Zentriert sie sauber auf dem Display */
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 68px;
        cursor: pointer;
        color: #333;
        padding: 0;
        line-height: 1;
        float: right; /* Hält das Icon immer oben rechts in der Ecke der Box */
    }

    .nav-list {
        display: none !important;
        clear: both; /* Verhindert, dass das floatende Icon das Layout stört */
        flex-direction: column;
        gap: 40px;
        margin-top: 25px;
        padding: 0;
        font-size: 30px;
    }

    /* Zeigt die Liste an, wenn geöffnet */
    .nav-list.is-open {
        display: flex !important;
    }

    header {
        padding-left: 20px; 
        text-align: center; /* Zentrierte, saubere Optik auf kleinen Displays */
    }
     /* NEU: Größeres Logo auf Mobilgeräten */
    .logo {
        font-size: 100px; 
        letter-spacing: 5px; 
    }

    /* NEU: Größeres Bild-Logo auf Mobilgeräten */
    .img-logo {
        width: 100px; 
        height: 100px;
    }
    .slogan {
        font-size: 40px; 
        letter-spacing: 3px; 
    }
    
    /* Handschrift-Notizen mobil verbergen, um Textüberlagerungen zu vermeiden */
    .note,
    .notep {
    position:  static; 
    font-family: 'Cursive', sans-serif; 
     transform: rotate(0deg);
    width: calc(90% - 30px); /* Volle Breite abzüglich Seitenabstand */
    margin: 5px auto; /* Gleichmäßiger Abstand zwischen den Boxen */
    color: rgb(202, 182, 182);
    font-size: 40px;
    font-weight: bold; 
    padding: 5px;
    text-align: center;
    }
    .note-2 {  font-size: 70px; font-family: 'Brush Script MT', cursive; }

    /* Absolute Positionierung lösen – Boxen fließen nun sauber untereinander */
    .info-box, 
    .info-box-sem,
    .info-box-preis {
        position: static; 
        width: calc(100% - 20px); /* Volle Breite abzüglich Seitenabstand */
        margin: 15px auto; /* Gleichmäßiger Abstand zwischen den Boxen */
        box-sizing: border-box;
        font-size: 36px; 
    }

    .register-btn {
        position: static; 
        width: calc(100% - 20px); /* Volle Breite abzüglich Seitenabstand */
        margin: 15px auto; /* Gleichmäßiger Abstand zwischen den Boxen */
        background-color: #8fa187; /* Passe die Farbe an dein Design an */
        text-align: center;
        padding: 40;
        color: white;
        border: none;
        font-size: 56px;
        border-radius: 5px;
        font-weight: bold;
        transition: background 0.3s;
    }

    

    /* Optimierung Galeriebilder 1, 2, 3: */
    .gallerymain {
        position: static;
        display: flex;
        flex-wrap: nowrap; /* Erzwingt, dass alle 3 Bilder nebeneinander stehen bleiben */
        justify-content: center; /* Zentriert die Dreiergruppe auf dem Handyscreen */
        gap: 10px; /* Knapperer Abstand für schmale Displays */
        margin: 20px auto;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .gallerymain img {
        /* Jedes Bild nutzt exakt ein Drittel der Breite abzüglich des Zwischenraums */
        width: calc(80% - 10px); 
        max-width: 700px; /* Verhindert übermäßige Größe auf Tablets */
        height: auto; 
        aspect-ratio: 1 / 1; /* Garantiert, dass die schrumpfenden Bilder perfekt quadratisch bleiben */
        border-radius: 15%; /* Leicht angepasste Eckenrundung auf Smartphones */
    }
     /* Optimierung Galeriebilder 1, 2, 3: */
    .gallery {
        position: static;
        display: flex;
        flex-wrap: nowrap; /* Erzwingt, dass alle 3 Bilder nebeneinander stehen bleiben */
        justify-content: center; /* Zentriert die Dreiergruppe auf dem Handyscreen */
        gap: 10px; /* Knapperer Abstand für schmale Displays */
        margin: 20px auto;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .gallery img {
        /* Jedes Bild nutzt exakt ein Drittel der Breite abzüglich des Zwischenraums */
        width: calc(33.33% - 10px); 
        max-width: 290px; /* Verhindert übermäßige Größe auf Tablets */
        height: auto; 
        aspect-ratio: 1 / 1; /* Garantiert, dass die schrumpfenden Bilder perfekt quadratisch bleiben */
        border-radius: 15%; /* Leicht angepasste Eckenrundung auf Smartphones */
    }
}



/* Das Modal (Hintergrund) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
}

/* Modal Inhalt Box */
.modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Schließen-Button */
.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}
.close-btn:hover {
    color: #000;
}

/* Formular Felder */
.modal-content form {
    display: flex;
    flex-direction: column;
}
.modal-content label {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
}
.modal-content input, .modal-content textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
.paypal-notice {
    background-color: #f2f7f1;
    border-left: 4px solid #8fa187;
    padding: 10px;
    font-size: 13px;
    margin: 15px 0;
}
.submit-btn {
    background-color: #0070ba; /* PayPal Blau */
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}
.submit-btn:hover {
    background-color: #005ea6;
}
