/* Grundlegende Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f3f4f6;
    --dark: #1f2937;
    --light: #ffffff;
    --accent: #fbbf24;
    --gray: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1); /* Vollständig deckend */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}


.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Kunden Login */
.kunde-login{
    margin-top: 150px;
    text-align: center;
}

#kunde-form{
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-align: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.7);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* About Section */
.about {
    background-color: var(--secondary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    transition: background-color 0.3s;
}

.faq-item summary:hover {
    background-color: var(--primary);
    color: var(--light);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: '\25BC';
    font-size: 1rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item[open] summary:after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 20px;
    background-color: var(--light);
    color: var(--dark);
}

/* Contact Section */
.contact {
    background-color: var(--dark);
    color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--accent);
}

.tel-nr {
    color: var(--light);
}

.privacyLink{
    color: var(--accent);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-icon {
    margin-right: 15px;
    color: var(--accent);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #f87171; /* Red color for errors */
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 1.2rem; /* Reserve space to prevent layout shift */
}

.form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}

.form-response.success {
    background-color: rgba(52, 211, 153, 0.2);
    border: 1px solid #34d399;
    color: #d1fae5;
}

.form-response.error {
    background-color: rgba(248, 113, 113, 0.2);
    border: 1px solid #f87171;
    color: #fee2e2;
}

/* Footer */
.footer {
    background-color: #111827;
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--gray);
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul,
.footer-services ul,
.footer-social ul {
    list-style: none;
}

.footer-links li,
.footer-services li,
.footer-social li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a,
.footer-social a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-services a:hover,
.footer-social a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: flex-start;
    list-style: none;
}

.social-links li {
    margin-right: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: var(--gray);
}/* Blog Section */






.legal-links a {
    color: var(--gray);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-img,
    .about-text {
        flex: none;
        width: 100%;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Logo CSS-Anpassungen */
.site-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-logo {
        max-height: 50px;
    }
}


/* ===================== */
/* Enhanced Kunden-Login */
/* ===================== */

/* Section wrapper */
.kunde-login {
    margin-top: 120px;
    padding: 80px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(251, 191, 36, 0.10), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    overflow: hidden;
}

.kunde-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06) 40%, rgba(251, 191, 36, 0.08));
    pointer-events: none;
}

/* Glassy card */
#kunde-form {
    width: min(520px, 92vw);
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-align: left;
}

/* Optional title inside the form (if present) */
#kunde-form .form-title,
#kunde-form h2 {
    margin-bottom: 4px;
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.015em;
}

#kunde-form .form-subtitle {
    margin-top: -6px;
    margin-bottom: 6px;
    color: var(--gray);
    font-size: 0.98rem;
}

/* Field groups */
#kunde-form .form-group {
    display: grid;
    gap: 8px;
}

/* Labels */
#kunde-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

/* Inputs & selects */
#kunde-form input[type="text"],
#kunde-form input[type="email"],
#kunde-form input[type="password"],
#kunde-form input[type="tel"],
#kunde-form input[type="number"],
#kunde-form input[type="url"],
#kunde-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #111827;
    font-size: 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
    outline: none;
}

/* Placeholder color */
#kunde-form ::placeholder {
    color: #9ca3af;
}

/* Focus */
#kunde-form input:focus,
#kunde-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Invalid state (if you toggle .has-error on form-group) */
#kunde-form .form-group.has-error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

#kunde-form .error-message {
    color: #ef4444;
    font-size: 0.88rem;
    min-height: 1.2rem;
}

/* Remember me + links row */
#kunde-form .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

#kunde-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    transform: translateY(1px);
}

#kunde-form .form-link,
#kunde-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

#kunde-form .form-link:hover {
    text-decoration: underline;
}

/* Primary submit button */
#kunde-form .btn,
#kunde-form input[type="submit"],
#kunde-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

#kunde-form .btn:hover,
#kunde-form input[type="submit"]:hover,
#kunde-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
    filter: brightness(1.02);
}

#kunde-form .btn:active,
#kunde-form input[type="submit"]:active,
#kunde-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Subtle divider for alternative actions */
#kunde-form .divider {
    position: relative;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin: 6px 0 4px;
}

#kunde-form .divider::before,
#kunde-form .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

#kunde-form .divider::before { left: 0; }
#kunde-form .divider::after { right: 0; }

/* Compact OAuth button style if present (e.g., "Mit Google anmelden") */
#kunde-form .btn-ghost {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#kunde-form .btn-ghost:hover {
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

/* Subtext & legal */
#kunde-form .form-meta {
    font-size: 0.88rem;
    color: #6b7280;
    text-align: center;
}

/* Small logo/avatar above the card (optional .login-brand) */
.kunde-login .login-brand {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    gap: 8px;
}

.kunde-login .login-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
}

.kunde-login .login-brand .brand-name {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--dark);
}

/* Subtle animated focus ring for accessibility preference */
@media (prefers-reduced-motion: no-preference) {
    #kunde-form input:focus,
    #kunde-form select:focus,
    #kunde-form .btn:hover {
        transition: box-shadow 160ms ease, transform 120ms ease, border-color 160ms ease, filter 160ms ease;
    }
}

/* Responsive tweaks */
@media (max-width: 480px) {
    #kunde-form {
        padding: 22px;
        border-radius: 14px;
    }
    #kunde-form .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Dark mode friendly tweaks (if body gets dark background) */
@media (prefers-color-scheme: dark) {
    .kunde-login {
        background:
            radial-gradient(1100px 500px at 10% -10%, rgba(37,99,235,0.12), transparent 60%),
            radial-gradient(900px 450px at 110% 10%, rgba(251,191,36,0.10), transparent 60%),
            linear-gradient(180deg, #0b1220 0%, #0e1526 100%);
    }
    #kunde-form {
        background: rgba(17, 24, 39, 0.6);
        border-color: rgba(255,255,255,0.06);
        color: #e5e7eb;
    }
    #kunde-form input,
    #kunde-form select {
        background: rgba(17, 24, 39, 0.85);
        border-color: rgba(255,255,255,0.08);
        color: #e5e7eb;
    }
    #kunde-form ::placeholder {
        color: #9ca3af;
    }
    #kunde-form .divider::before,
    #kunde-form .divider::after {
        background: rgba(255,255,255,0.08);
    }
    #kunde-form .btn-ghost {
        background: rgba(17, 24, 39, 0.85);
        color: #e5e7eb;
        border-color: rgba(255,255,255,0.08);
    }
}


/* === Visibility Fixes for Kunden-Login === */
.kunde-login {
    min-height: calc(100vh - 100px);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(251, 191, 36, 0.08), transparent 60%),
        linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%);
}

.kunde-login::before {
    z-index: 0;
}

#kunde-form {
    position: relative;
    z-index: 1;
    background: #ffffff; /* make opaque for contrast */
    border: 1px solid #d1d5db; /* slightly stronger */
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

#kunde-form label { color: #111827; display: block; }
#kunde-form input, #kunde-form select, #kunde-form button { display: block; }

.about-content {
    justify-content: center; /* center the single child */
    align-items: center;
    gap: 0;
}
