/* =====================================================
   GRUNDEINSTELLUNGEN
===================================================== */

:root {
    --bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text: #f2f2f2;
    --gray: #888;
    --border: #333;
    --accent: #d54c64;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
}


/* =====================================================
   HORIZONTALE LINIE
===================================================== */

.hr-shadow {
    border: none;
    height: 2px;
    background-color: var(--accent);
    margin: 0;
}


/* =====================================================
   NAVIGATION
===================================================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

nav img {
    height: 75px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    z-index: 2;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}


/* =====================================================
   BUTTONS
===================================================== */

.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
    padding: 5rem 2rem;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}


/* =====================================================
   GALERIE
===================================================== */

.gallery-section {
    padding: 3rem 2rem;
    text-align: center;
}

.gallery-section h2 {
    margin-bottom: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.gallery img:hover,
.gallery img:focus {
    transform: scale(1.05);
    outline: none;
}


/* =====================================================
   LIGHTBOX
===================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(213, 76, 100, 0.8);
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    z-index: 1100;
}


/* =====================================================
   GRID
===================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* =====================================================
   CARDS
===================================================== */

.card {
    background: var(--card-bg);
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}


/* =====================================================
   ICONS
===================================================== */

.header-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.header-icon img {
    max-width: 150px;
    height: auto;
    width: auto;
    display: inline-block;
}


/* =====================================================
   DETAILS
===================================================== */

details {
    text-align: justify;
    line-height: 1.8;
}

summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 1rem;
}

summary:hover {
    color: var(--accent);
}

details p {
    margin-top: 1rem;
}


/* =====================================================
   FACEBOOK
===================================================== */

.facebook-like {
    text-align: center;
    margin: 2rem 0;
}


/* =====================================================
   SOCIAL LINKS
===================================================== */

.social-title {
    text-align: center;
    margin: 3rem 0 1rem;
}

.social-links {
    margin: 2rem 0 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: block;
}

.social-links a img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
}


/* =====================================================
   KONTAKTFORMULAR
===================================================== */

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

#contact-form h2 {
    margin-bottom: 2rem;
}

#contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
    color: var(--text);
}

#contact-form form > p {
    margin-bottom: 0.5rem;
}


/* =====================================================
   PROJEKT-KATEGORIEN
===================================================== */

.interest-selection {
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.interest-selection legend {
    font-weight: 600;
    margin-bottom: 1rem;
}

.interest-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.interest-button {
    display: inline-block;
    margin: 0 !important;
    cursor: pointer;
}

.interest-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.interest-button span {
    display: block;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
    cursor: pointer;
}

.interest-button span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.interest-button input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* =====================================================
   KONTAKT LABELS
===================================================== */

#contact-form label {
    font-weight: 600;
    margin-top: 0.5rem;
}


/* =====================================================
   EINGABEFELDER
===================================================== */

/*
   Bewusst nur Text-, E-Mail- und Telefonfelder.
   Der Range-Slider wird dadurch NICHT als normales
   Eingabefeld behandelt.
*/

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

#contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="tel"]:focus,
#contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 1px var(--accent);
}


/* =====================================================
   BUDGET SLIDER
===================================================== */

.budget-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.budget-section > label:first-child {
    display: block;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.budget-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.budget-min,
.budget-max {
    color: var(--gray);
    font-size: 0.9rem;
    white-space: nowrap;
}


/* =====================================================
   SLIDER SELBST
===================================================== */

#budget {
    flex: 1;
    width: 100%;
    height: auto;

    padding: 0 !important;
    margin: 0;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    accent-color: var(--accent);
    cursor: pointer;
}

#budget:hover,
#budget:focus,
#budget:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* =====================================================
   BUDGET-ANZEIGE
===================================================== */

#budget-value {
    display: block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
}


/* =====================================================
   NOCH OFFEN
===================================================== */

.budget-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem !important;
    font-weight: 400 !important;
    cursor: pointer;
    text-align: center;
}

.budget-open input {
    width: auto !important;
    margin: 0;
    padding: 0 !important;
    accent-color: var(--accent);
    cursor: pointer;
}

.budget-open span {
    color: var(--gray);
}


/* =====================================================
   KONTAKT BUTTON
===================================================== */

#contact-form button.btn {
    align-self: center;
    display: inline-block;
    padding: 0.9rem 2rem;
    margin-top: 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact-form button.btn-primary {
    background: var(--accent);
    color: #fff;
}

#contact-form button.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}


/* =====================================================
   HONEYPOT
===================================================== */

.honeypot {
    display: none !important;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

footer h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

footer hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}


/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav img {
        height: 60px;
        width: auto;
    }


    .grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }


    .section {
        padding: 4rem 1rem;
    }


    #contact-form {
        padding: 4rem 1rem;
    }


    .card {
        padding: 1.5rem;
    }


    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery img {
        height: 150px;
    }


    .budget-slider {
        gap: 0.7rem;
    }

}


/* =====================================================
   KLEINE BILDSCHIRME
===================================================== */

@media (max-width: 480px) {

    nav ul {
        flex-direction: column;
        gap: 0.7rem;
    }


    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }


    .btn {
        width: 100%;
        text-align: center;
    }


    #contact-form button.btn {
        width: 100%;
        max-width: 300px;
    }


    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: auto;
        max-height: 300px;
    }


    .social-links {
        gap: 0.7rem;
    }

    .social-links a img {
        width: 45px;
        height: 45px;
    }


    .interest-buttons {
        flex-direction: column;
    }

    .interest-button {
        width: 100%;
    }

    .interest-button span {
        width: 100%;
        text-align: center;
    }


    .budget-section {
        padding: 1rem;
    }

    .budget-slider {
        gap: 0.5rem;
    }

    .budget-min,
    .budget-max {
        font-size: 0.8rem;
    }

}

/* =====================================================
   GALERIE LOADER
===================================================== */

.gallery-loader {

    text-align: center;
    padding: 3rem;

}


.gallery-loader img {

    width: 80px;
    height: auto;

}


.gallery-loader p {

    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;

}


.gallery {

    display: grid;

}