.form-group select {
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%234a4a49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.form-group select {
    padding-right: 15px;
}
/* Formular in Schritt 5 zentrieren */
#contactForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Einheitlicher Stil für alle Formularfelder in Schritt 5 */

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

.checkbox-group label {
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.checkbox-group {
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Erzwinge 300x300px für Gestaltungsform-Bilder in Schritt 3 */
.gestalt-item img.gestalt-img {
    width: 300px !important;
    height: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* Media Queries für Abstand, aber keine Änderung der Gridstruktur mehr nötig */

.style-item img,
.gestalt-item img,
.essbereich-item .placeholder-image {
    width: 100%;
    max-width: 220px;
    height: 150px;
    display: block;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}
/* Größere Bilder für Gestaltungsform in Schritt 3 */
.gestalt-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* Einheitliche Größe für Essbereich-Bilder in Schritt 4 */
.essbereich-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* Hover-Effekt für Schritt 3: Gestalt-Items */
.gestalt-item {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 12px;
}
.gestalt-item:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 6px 24px rgba(60,60,60,0.15);
    background: #f7f7f7;
}

/* Hover-Effekt für Schritt 4: Essbereich-Items */
.essbereich-item {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 12px;
}
.essbereich-item:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 6px 24px rgba(60,60,60,0.15);
    background: #f7f7f7;
}
/* Hover-Effekt für Schritt 2: Style-Items */
.style-item {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 12px;
}
.style-item:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 6px 24px rgba(60,60,60,0.15);
    background: #fff6f6;
}
/* Bildzentrierung und Einheitsgröße für Schritt 3 und 4 (bewährte Version) */
.gestalt-grid,
.essbereich-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
    text-align: center;
}

@media (max-width: 900px) {
    .gestalt-grid,
    .essbereich-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .gestalt-grid,
    .essbereich-grid {
        grid-template-columns: 1fr;
    }
}

.essbereich-item .placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.essbereich-item .placeholder-image svg {
    width: 100%;
    height: 100%;
    display: block;
}
@media (max-width: 700px) {
    .gestalt-grid {
        grid-template-columns: 1fr !important;
    }
}
:root {
    --primary-color: #dd2c28;
    --secondary-color: #4a4a49;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #ffffff;
    color: #333;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
        .header {
            background-color: #fff;
            padding: 1.5rem;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            /* box-shadow entfernt */
            flex-wrap: wrap;
            gap: 2rem;
}

.logo-container {
    flex-shrink: 0;
}

    .logo {
        height: 80px;
        width: auto;
        cursor: pointer;
        transition: transform 0.3s ease;
        padding-left: 20px;
}




/* Layout-Buttons entfernt */

/* FOOTER */
.footer {
    background: #fff;
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    margin-top: auto;
}

/* MAIN CONTENT */
.main {
    flex: 1;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .container {
        background: white;
        border-radius: 12px;
        padding: 2rem;
        /* box-shadow entfernt */
        max-width: 1200px;
        width: 100%;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2rem;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SLIDER */
.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

#budgetSlider {
    width: 100%;
    max-width: 400px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#budgetSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#budgetSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.budget-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}


/* Einheitliche, zentrierte Bildgrids für Schritt 2, 3 und 4 */
/* Responsive Grid: Immer zentriert, auch bei 1 oder 2 Bildern */
.style-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
    text-align: center;
}

.gestalt-grid,
.essbereich-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
    text-align: center;
}

/* Zentrierung für ungerade Anzahl: Wenn weniger als 4 Items, flex nutzen */
@media (max-width: 900px) {
    .gestalt-grid,
    .essbereich-grid {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
}
@media (max-width: 500px) {
    .gestalt-grid,
    .essbereich-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* Media Queries für Abstand, aber keine Änderung der Gridstruktur mehr nötig */

.essbereich-item .placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.essbereich-item .placeholder-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.style-item p,
.gestalt-item p,
.essbereich-item p {
    padding: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    background: #f9f9f9;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}


.checkbox-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.checkbox-group a:hover {
    text-decoration: underline;
}

/* BUTTONS */
.btn-ok {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-ok:hover,
.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* MESSAGES */
.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    font-size: 1.05rem;
}

.error-message {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* FOOTER */
.footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.footer {
    background: #fff;
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    box-shadow: none;
    margin-top: auto;
}
}

.footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .logo {
        width: 270px !important;
        min-width: 270px !important;
        max-width: 270px !important;
        height: auto !important;
        padding-top: 15px !important;
        padding-left: 0 !important;
    }

    .layout-buttons {
        justify-content: center;
    }

    .main {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
        border-radius: 8px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .gestalt-grid,
    .essbereich-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        gap: 0.5rem;
    }

    .logo {
        width: 270px !important;
        min-width: 270px !important;
        max-width: 270px !important;
        height: auto !important;
        padding-top: 15px !important;
        padding-left: 0 !important;
    }

    .layout-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1rem;
    }

    .style-grid,
    .gestalt-grid,
    .essbereich-grid {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 0.5rem;
    }

    .container {
        padding: 0.75rem;
    }

    .btn-ok,
    .btn-submit {
        width: 100%;
        margin-top: 0.75rem;
    }
}
