/* --- Globale Variablen & Reset --- */
:root {
    --primary-color: #0052cc; /* Ein professionelles Blau */
    --secondary-color: #00a3bf; /* Ein leuchtendes Türkis für Akzente */
    --dark-color: #23272A;
    --light-color: #ffffff;
    --gray-color: #f4f4f4;
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* ============================================= */
/* STYLING FÜR RESTAURANT-FUNNEL                 */
/* ============================================= */
.funnel-body {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.funnel-header {
    padding: 1rem 2rem;
}
.funnel-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
#restaurantFunnelForm {
    width: 100%;
    max-width: 600px;
    position: relative;
}
.funnel-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.funnel-step.active {
    display: block;
}
.funnel-step h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}
.choice-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    color: var(--light-color);
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}
.choice-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.03);
}

/* Verstecken der optionalen Felder standardmäßig */
#phone-group, #email-group {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/* STYLING FÜR EINFACHEN COOKIE BANNER         */
/* ============================================= */
#simple-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1rem 2rem;
    z-index: 10000;

    /* Flexbox für saubere Ausrichtung */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem; /* Abstand zwischen Text und Button */

    /* Standardmäßig versteckt, wird per JS eingeblendet */
    display: none;
}

#simple-cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: #f1f1f1;
}

#simple-cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

#simple-cookie-banner button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0; /* Verhindert, dass der Button auf kleinen Schirmen schrumpft */
    transition: background-color 0.2s ease;
}

#simple-cookie-banner button:hover {
    background-color: #007a8c;
}

/* Anpassung für kleine Bildschirme */
@media (max-width: 768px) {
    #simple-cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
}

#cc-modal {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important; /* Stellt sicher, dass es über allem liegt */
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem;}

section {
    padding: 4rem 0;
}

/* --- Header & Navigation --- */
header {
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--dark-color);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--secondary-color);
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-headings);
    font-size: 1rem;
    padding: 0.2rem;
    color: #888;
}
.lang-switcher button.active {
    color: var(--primary-color);
    font-weight: 700;
}
.lang-switcher span {
    color: #ccc;
    margin: 0 0.2rem;
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?q=80&w=2574&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--light-color);
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-headings);
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.cta-button:hover {
    background: #007a8c;
}


/* --- Problem Section --- */
.problem {
    background: var(--gray-color);
}

.problem ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.problem li {
    font-size: 1.1rem;
    max-width: 300px;
}

.problem i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Solution Section --- */
.solution .benefits {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
}
.benefit i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.benefit h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}


/* --- Services Section --- */
.services {
    background: var(--gray-color);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* --- How it Works Section --- */
.how-it-works .steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-family: var(--font-headings);
}
.step span {
    background: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.arrow {
    font-size: 2rem;
    color: var(--secondary-color);
}


/* --- Contact Form --- */
.contact-form-section {
    background: var(--dark-color);
    color: var(--light-color);
}
.contact-form-section .subtitle {
    text-align: center;
    max-width: 600px;
    margin: -1.5rem auto 2rem auto;
    color: #ccc;
}
#lead-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    position: relative;
    margin-bottom: 2rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid #555;
    color: white;
    font-size: 1rem;
    outline: none;
}
.form-group textarea {
    resize: vertical;
}
.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #aaa;
    transition: all 0.3s ease;
    pointer-events: none;
}
/* Input focus and valid animation */
.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Checkbox Styling */
.form-group-checkbox {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.form-group-checkbox label {
    color: #ccc;
    cursor: pointer;
    position: relative;
    padding-left: 30px; /* Platz für die custom checkbox */
    pointer-events: auto;
}
.form-group-checkbox input[type="checkbox"] {
     position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.form-group-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 3px;
    transition: all 0.2s ease;
}
.form-group-checkbox input[type="checkbox"]:checked + label::before {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.form-group-checkbox label::after {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 4px;
    top: 2px;
    font-size: 14px;
    color: var(--dark-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.form-group-checkbox input[type="checkbox"]:checked + label::after {
    opacity: 1;
}


#lead-form button {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

#form-success-message {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 0;
    text-align: center;
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
footer .logo { color: white; }
footer .logo .logo-text span { color: var(--secondary-color); }
footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--secondary-color);
}
.socials a {
    font-size: 1.5rem;
}

/* --- Styling für Impressum & Datenschutz --- */
.legal-page-container {
    background-color: var(--light-color);
    padding: 4rem 2rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.legal-content h1 {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-color);
    padding-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content p, .legal-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #333;
}

.legal-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content .cta-button {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
}

/* --- Styling für Danke- & Fehler-Seite --- */
.status-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--gray-color);
    padding: 2rem;
}

.status-box {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
}

.status-box h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.status-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.status-box .icon-success {
    color: #28a745; /* Grün */
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.status-box .icon-error {
    color: #dc3545; /* Rot */
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.status-box .redirect-info {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 2rem;
}

.status-box .cta-button {
    display: inline-block;
    text-decoration: none;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        height: auto;
        padding: 4rem 1rem;
    }

    .problem ul, .solution .benefits {
        flex-direction: column;
        gap: 2rem;
    }
    
    .how-it-works .steps {
        flex-direction: column;
    }
    .arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }
}