/* =====================
   GRUNDLAYOUT
===================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #f4f4f4, #e0b973);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    color: #333;
    transition: background 0.5s, color 0.5s;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =====================
   DARK MODE
===================== */
body.dark {
    background: linear-gradient(135deg, #111, #333);
    color: #f4f4f4;
}

body.dark header,
body.dark nav {
    background-color: #222;
}

body.dark .service,
body.dark .contact {
    background-color: #2b2b2b;
}

body.dark a {
    color: #e0b973;
}

/* =====================
   HEADER
===================== */
header {
    text-align: center;
    padding: 35px 20px;
    background-color: #000;
    color: white;
}

header .advantages {
    margin-top: 10px;
    font-size: 16px;
    color: #e0b973;
}

/* =====================
   NAVIGATION
===================== */
nav {
    text-align: center;
    padding: 12px 0;
    background-color: #111;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #cfa64a;
}

/* =====================
   SECTIONS
===================== */
section {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* =====================
   SERVICES & GALERIE
===================== */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service {
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 300px;
    padding: 25px;
    border-radius: 6px;
    background-color: #f0e4d7;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: scale(1.05);
}

.service img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

/* =====================
   KALENDER (90% BREITE)
===================== */
#calendar {
    max-width: 90vw;
    margin: 40px auto;
    text-align: center;
}

.calendar-header {
    background: #2a9d8f;
    padding: 30px 0;
}

.calendar-header span {
    font-size: 80px;
    color: white;
    font-weight: bold;
}

.weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekdays div {
    padding: 12px 0;
    font-weight: bold;
    background: #f4f4f4;
}

.calendar-grid div {
    border: 1px solid #ddd;
    min-height: 90px;
    padding-top: 10px;
    font-weight: bold;
}

.calendar-grid .free {
    background: #8fd19e;
}

.calendar-grid .busy {
    background: #f28b82;
}

.calendar-hint {
    margin-top: 15px;
}

/* =====================
   MODAL (TERMINANFRAGE)
===================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-content {
    background: white;
    max-width: 400px;
    width: 90%;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    cursor: default;
}

/* Modal: X unsichtbar */
#requestModal .close {
    display: none;
}

.request-btn {
    display: block;
    margin: 15px 0;
    padding: 12px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.request-btn.insta {
    background: #c13584;
}

/* =====================
   KONTAKT
===================== */
#contact {
    margin-top: 40px;
}

.contact {
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    background-color: #f0e4d7;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =====================
   INSTAGRAM FIXED
===================== */
.insta-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #c13584;
    color: white;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
}

.insta-fixed a {
    color: white;
    text-decoration: none;
}

/* =====================
   DARK MODE BUTTON
===================== */
#darkmode-toggle {
    display: none;
}

.darkmode-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #cfa64a;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
}

/* =====================
   LIGHTBOX
===================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    cursor: pointer;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
}

/* =====================
   RESPONSIVE (HANDY)
===================== */
@media screen and (max-width: 768px) {
    .services {
        flex-direction: column;
        gap: 8px; /* weniger Abstand zwischen den Boxen */
        align-items: center; /* zentriert die Boxen */
    }

    .service {
        padding: 10px 12px; /* kompakter Innenabstand */
        min-width: auto;    /* kein unnötiges Minimum */
        width: 90%;         /* ca. 90% der Bildschirmbreite */
        max-width: 300px;   /* Optional: begrenzt auf PC-ähnliche Größe */
    }

    .service h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .service p {
        font-size: 14px;
        margin-bottom: 0;
    }
}
