/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #00C897;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #236F65;
}

a:focus {
    outline: 2px solid #00C897;
    outline-offset: 2px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid #00C897;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #00C897;
    color: #fff;
}

.btn-primary:hover {
    background-color: #236F65;
    color: #fff;
}

.btn-secondary {
    background-color: #00C897;
    color: #fff;
	margin-top: 20px;
}

.btn-secondary:hover {
    background-color: #236F65;
    color: #fff;
}

.btn-hero {
    background-color: #00C897;
    color: #fff;
	font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-hero:hover {
    background-color: #3DBCA5;
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 155, 142, 0.5);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #1EBE57;
    color: #fff;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    padding: .75rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.logo img {
    width: flex;
    height: 60px;
}

.logo:hover {
    color: #00C897;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00C897;
}

.cta-nav {
    background-color: #00C897;
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.cta-nav:hover {
    background-color: #1D4ED8;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger:focus {
    outline: 2px solid #00C897;
    outline-offset: 2px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 209, 234, 0.85), rgba(90, 160, 133, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    background-color: #f9fafb;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card.featured {
    border: 3px solid #00C897;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
}

.service-icon {
    color: #00C897;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.badge {
    display: inline-block;
    background-color: #00C897;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.service-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.service-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.service-details h4 {
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #00C897;
}

.service-details ul {
    list-style: none;
    padding-left: 0;
}

.service-details li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00C897;
    font-weight: bold;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #555;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: #f0fdf4;
    border-radius: 12px;
    border: 2px solid #00C897;
}

.badge-item svg {
    margin-bottom: 0.75rem;
}

.badge-item span {
    font-weight: 600;
    color: #1a1a1a;
}

/* ===================================
   EVB SECTION
   =================================== */
.evb-section {
    background-color: #f0fdf4;
}

.evb-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.evb-card h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.evb-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #555;
}

.evb-info {
    background-color: #e0f2fe;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #2563EB;
}

.evb-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.evb-info p {
    margin-bottom: 0;
    color: #555;
}

/* ===================================
   FAQ SECTION
   =================================== */
.faq {
    background-color: #fff;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #00C897;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    color: #00C897;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px 1.5rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background-color: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: #555;
}

.whatsapp-cta {
    margin-top: 2rem;
}

/* ===================================
   FORMS
   =================================== */
.contact-form,
.evb-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00C897;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.success-message {
    background-color: #d1fae5;
    border: 2px solid #00C897;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.success-message p {
    margin: 0;
    color: #065f46;
    font-weight: 600;
}

/* ===================================
   FOOTER
   =================================== */
#footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 3rem 0 1.5rem;
}

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

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.footer-col a {
    color: #00C897;
}

.footer-col a:hover {
    color: #3DBCA5;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #00C897;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    section {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Navigation */
    .logo {
        margin-left: .15rem;
    }

    .hamburger {
        display: flex;
        margin-right: .2rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .cta-nav {
        display: block;
        width: 100%;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Services */
    .services {
        padding: 3rem 0;
    }

    .services .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .services-grid {
        display: block;
        gap: 0;
    }

    .service-card {
        padding: 1.5rem;
        margin: 0 0 1.5rem 0;
        width: auto;
    }

    .service-card:last-child {
        margin-bottom: 0;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }

    /* Trust Badges */
    .trust-badges {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .evb-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .services .container {
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .hero {
        min-height: 80vh;
    }

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

    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* ===================================
   LEGAL PAGES (IMPRESSUM & DATENSCHUTZ)
   =================================== */

.legal-page {
    background-color: #fff;
    padding-top: 6rem;
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 2.5rem;
    background-color: #fff;
}

.legal-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.legal-section {
    margin-bottom: 1rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    margin-top: .75rem;
    margin-bottom: .5rem;
}

.legal-section p {
    color: #555;
    margin-bottom: .5rem;
}

.legal-section ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: #555;
    margin-bottom: 0.4rem;
}

.legal-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* Mobile-Anpassungen für Rechtstexte */
@media (max-width: 768px) {
    .legal-wrapper {
        padding: 2.5rem 1.25rem 3rem;
    }

    .legal-title {
        font-size: 2rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #00C897;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Overrides für Impressum & Datenschutz */
.legal-wrapper section {
    padding: 1rem 0 !important;
}

.legal-section {
    margin-bottom: 1rem !important;
}

.legal-section h2 {
    margin-bottom: 0.5rem !important;
}

.legal-section p {
    margin-bottom: 0.5rem !important;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.success-message {
    background-color: #d1fae5;
    border: 2px solid #00C897;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    color: #065f46;
    font-weight: 600;
    /* Wichtig: in der contact-grid über volle Breite */
    grid-column: 1 / -1;
}

.form-error-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 2px solid #ef4444;
    background-color: #fee2e2;
    color: #7f1d1d;
    font-size: 0.95rem;
    /* Auch über volle Breite im Grid */
    grid-column: 1 / -1;
}
