/* ================= FONTS ================= */
@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
}
@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
}
@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
}
@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
}

/* ================= BODY ================= */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #1f1f1f;
    background: linear-gradient(135deg, #f2f2f7 25%, #e0e0e5 25%, #e0e0e5 50%, #f2f2f7 50%, #f2f2f7 75%, #e0e0e5 75%, #e0e0e5 100%);
    background-size: 60px 60px;
}

*, *::before, *::after {
    box-sizing: border-box;
}


/* ================= HEADER ================= */
.header {
    position: sticky;
    top: 0;
    height: 180px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    overflow: hidden;
    transition: height 0.3s ease;
}

.header.shrink {
    height: 80px;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    transition: padding 0.3s ease;
}

.header.shrink .header-inner {
    padding: 8px 30px;
}

.start-title {
    text-align: center;  /* zentriert den Text */
    margin-bottom: 24px; /* optional: Abstand zum Grid */
}

/* ================= BRAND ================= */
.brand {
    display: flex;
    align-items: center;
    gap: 4px;   /* vorher 20px */
}

.logo {
    height: 130px;
    width: auto;
    display: block;
    transform: translateY(-10px);
    transition: height 0.3s ease, transform 0.3s ease;
}

.header.shrink .logo {
    height: 50px;
    transform: translateY(0);
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
}

.header.shrink .brand-text {
    display: none;
}

/* ================= NAV ================= */
.nav {
    display: flex;
    white-space: nowrap;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav a:hover {
    color: #f28b1f;
    font-weight: 700;
    border-bottom: 2px solid #f28b1f;
}

/* ================= SECTIONS ================= */
.section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 80px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f9fafc 0%, #eef1f6 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
}

/* ================= IMAGE GRID ================= */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.image-grid img,
.image-grid figure img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-grid img:hover,
.image-grid figure img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

figure {
    margin: 0;
    text-align: center;
}

figcaption {
    margin-top: 10px;
    font-weight: 600;
}

/* ================= KONTAKT ================= */
.kontakt-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.kontakt-box button.cta {
    display: block;
    width: 100%;
}

.kontakt-box textarea,
.kontakt-box button,
.datenschutz {
    grid-column: span 2;
}

.kontakt-box input,
.kontakt-box textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    width: 100%;
}

.datenschutz {
    font-size: 14px;
}

.datenschutz a {
    color: #f28b1f;
    text-decoration: none;
}

.cta {
    background: #1f1f1f;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.cta:hover {
    background: #f28b1f;
}

/* ================= MAP ================= */
.map-container {
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.map-container h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: #e0e0e5;
    border-radius: 16px;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #333;
}

.map-placeholder button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #1f1f1f;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.map-placeholder button:hover {
    background: #f28b1f;
}

/* ================= FOOTER ================= */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    border-radius: 10px 10px 0 0;
}

.footer p, .footer a {
    margin: 4px 0;
    display: block;
    color: #444;
    text-decoration: none;
}

/* Unten Gallerie Laden ansicht */

/* Galerie Layout */
.premium-gallery {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 380px;
    cursor: pointer;
    transform: translateY(80px) scale(0.95);
    opacity: 0;
    transition: all 0.8s ease;
}

/* Scroll Animation aktiv */
.gallery-item.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
    font-size: 17px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* LIGHTBOX */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 20px;
}

.close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}


/* ================= FADE ================= */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.7s ease;
}

.fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE / MOBILE ================= */
@media (max-width: 768px) {

    .nav {
        flex-direction: column;
        align-items: center;
        white-space: normal;
        width: 100%;
    }

    .nav a {
        margin: 6px 0;
        font-size: 16px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        text-align: center;
    }

    .kontakt-box {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 15px;
    }

    .image-grid figure {
        display: flex;
        flex-direction: column;
    }

    .image-grid img {
        height: auto;
        object-fit: contain;
        max-height: 220px;
    }

    figcaption {
        font-size: 15px;
        margin-top: 10px;
        line-height: 1.4;
    }

    .header-inner {
        padding: 10px 15px;
    }

    .brand {
        flex-direction: column;
        align-items: center;
        gap: 15px;              /* mehr Abstand zwischen Logo und Text */
        margin-bottom: 20px;
    }

    .brand img {
        height: 170px;          /* Logo deutlich größer */
    }

    .logo {
        height: 110px;
    }

    .brand-text {
        font-size: 20px;
        margin-top: 10px;       /* schiebt Text weiter runter */
    }

    h2 {
        font-size: 22px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .header {
        height: auto;
        overflow: visible;
        position: relative;
        top: auto;
    }
}
/* ================= CHATBOT ================= */
#chatbot { display: flex; flex-direction: column; gap: 10px; }
#chatbot input { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid #ccc; }
#chatbot button { padding: 12px; border-radius: 10px; border: none; background: #1f1f1f; color: #fff; font-weight:600; cursor:pointer; }
#chatbot button:hover { background: #f28b1f; }
#messages { border:1px solid #ccc; border-radius:10px; padding:10px; max-height:300px; overflow-y:auto; background:#fff; }
.bot-message { background:#f28b1f; color:#fff; padding:8px 12px; border-radius:12px; margin:4px 0; display:inline-block; max-width:80%; }
.user-message { background:#eee; padding:8px 12px; border-radius:12px; margin:4px 0; display:inline-block; max-width:80%; }


/* Chatbot Vorschläge */
#suggestions {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 6px;
    margin-top: 4px;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    display: none; /* erst sichtbar wenn Tippvorschläge da sind */
}

.suggestion-item {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
}
.suggestion-item:hover {
    background: #f28b1f;
    color: #fff;
}

/* Chat-Bot Button in Nav hervorheben */
#chatbot-nav {
    background: #f28b1f;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}
#chatbot-nav:hover { background: #e07b1a; }

/* Section Divider */
.section-divider {
    height: 6px;
    width: 80px;
    background: #f28b1f;
    margin: 20px auto;
    border-radius: 3px;
}

/* Buttons Hover / Premium */
button.cta, #chatbot-nav {
    transition: all 0.3s ease;
}
button.cta:hover, #chatbot-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#standort a::before {
    content: "📍";
    margin-right: 6px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
