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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 900;
}

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

.logo img {
    max-height: 50px;
    width: 150px;
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #3498db;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
    pointer-events: auto;
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    background: #2c3e50;
    transform: scale(1.1);
}

.scroll-to-top.visible {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1.5rem;
}

.cta-button:hover,
.cta-button:focus {
    background: #c0392b;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.service-card p {
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 4rem 0;
}

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

.about-text, .about-image {
    padding: 1rem;
}

.about-image h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Glossary Section */
.glossary {
    padding: 4rem 0;
    background: #f9f9f9;
}

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

.glossary-item {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.glossary-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

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

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item span {
    font-size: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .form-group label[for="privacy"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.contact-form .form-group label[for="privacy"] input {
    width: auto;
}

.contact-form .form-group label[for="privacy"] a.datenschutz-full-link {
    color: #3498db;
    text-decoration: none;
    font-weight: normal;
}

.contact-form .form-group label[for="privacy"] a.datenschutz-full-link:hover,
.contact-form .form-group label[for="privacy"] a.datenschutz-full-link:focus {
    text-decoration: underline;
}

.form-loading::after {
    content: '⌛';
    margin-left: 10px;
    font-size: 1rem;
    vertical-align: middle;
}

.form-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
}

.form-message.success {
    background: #28a745;
    color: white;
}

.form-message.error {
    background: #e74c3c;
    color: white;
}

/* CAPTCHA Styling */
.contact-form .form-group label[for="captcha"] span {
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 5px;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-details {
    line-height: 1.6;
    color: #333;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover,
.close:focus {
    color: #e74c3c;
}

.modal-details ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.highlight-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 3px solid #2ecc71;
}

.toggle-details {
    background: none;
    border: none;
    color: #2ecc71;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.toggle-details:hover,
.toggle-details:focus {
    color: #27ae60;
    text-decoration: underline;
}

.details {
    display: none;
    margin-top: 1rem;
}

.step {
    background: #f1f3f5;
    padding: 0.8rem;
    border-radius: 3px;
    margin-bottom: 0.8rem;
    border-left: 2px solid #3498db;
}

/* Documents Modal */
.documents-list {
    list-style: none;
    margin-top: 1rem;
}

.documents-list li {
    margin-bottom: 0.5rem;
}

.documents-list li a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
}

.documents-list li a:hover,
.documents-list li a:focus {
    text-decoration: underline;
}

#documentsLoading {
    color: #666;
    font-size: 1rem;
    margin-top: 1rem;
}

/* PDF Viewer Modal */
#pdfViewerModal .modal-content {
    max-width: 90%;
    width: 800px;
}

#pdfViewer {
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus {
    color: #3498db;
    text-decoration: underline;
}

footer p {
    color: #fff;
}

footer p a {
    color: #fff;
}

footer p a:hover,
footer p a:focus {
    color: #3498db;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1100;
        pointer-events: auto;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        padding: 1rem;
        max-height: 50vh;
        overflow-y: auto;
        z-index: 1000;
    }

    nav ul.mobile-open {
        display: flex;
    }

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

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

    #pdfViewerModal .modal-content {
        width: 95%;
    }

    #pdfViewer {
        height: 400px;
    }

    .modal-content {
        max-width: 90%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}