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

html,
body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}


a {
    color: #0077cc;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #005fa3;
}


.navbar {
    background: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


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

.nav-logo {
    max-height: 50px;
}

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

.nav-links li a {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: #333;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links li a {
    color: #fff;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #0077cc;
    transition: width 0.3s ease-in-out;
}

.nav-links li a:hover::after {
    width: 100%;
}


.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .Datenschutz-title {
        font-size: medium;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 1rem;
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


.hero {
    background: #000000;
    background: linear-gradient(95deg, rgba(0, 0, 0, 1) 0%, rgba(9, 9, 121, 1) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    margin: auto;
    padding: 0 1rem;
    word-wrap: break-word;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.slogan {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
}


.btn-primary {
    background: linear-gradient(135deg, #0077cc, #005fa3);
    color: white;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
    font-size: x-large;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 119, 204, 0.4);
    color: #fff;
}

.btn-primary-small {
    background: linear-gradient(135deg, #0077cc, #005fa3);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-small:hover {
    box-shadow: 0 8px 20px rgba(0, 119, 204, 0.4);
    color: #fff;
}


section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
}

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


.cards,
.service-boxes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card,
.service {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    flex: 1 1 250px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card i,
.service i {
    font-size: 2.5rem;
    color: #0077cc;
    margin-bottom: 1rem;
}


.map-container {
    margin-top: 2rem;
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.visitenkarte {
    text-align: center;
}

.card-image {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.03);
}

.footer {
    background: linear-gradient(95deg, rgba(0, 0, 0, 1) 0%, rgba(9, 9, 121, 1) 100%);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer a {
    color: #59aaff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        white-space: normal;
        font-size: 2rem;
    }

    .btn-primary {
        font-size: medium;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 1.6rem;
    }
}


.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
    outline: none;
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #212121;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 70%;
}

.cookie-banner a {
    color: #00b7ff;
    text-decoration: underline;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 4rem 2rem;
    margin: 0 auto;
    width: 800px;
}

@media (max-width: 768px) {
    .main-content {
        max-width: 400px;
    }
}


.text-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    font-size: 1rem;
    color: inherit;
}

.text-box a {
    color: #0077cc;
    word-break: break-word;
}

.text-box a:hover {
    text-decoration: underline;
}

section:target::before {
    content: "";
    display: block;
    height: 100px;
    margin-top: -100px;
}

section {
    scroll-margin-top: 100px;
}


.form-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem 3rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}



.form-box h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #0077cc;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}


.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.15);
    outline: none;
}


.btn-primary1 {
    background: linear-gradient(135deg, #0077cc, #005fa3);
    color: white;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.btn-primary1:hover {
    box-shadow: 0 8px 20px rgba(0, 119, 204, 0.4);
}

@media (max-width: 768px) {
    .form-box {
        padding: 2rem 1.2rem;
        max-width: 100%;
    }

    .form-box h3 {
        font-size: 1.3rem;
    }

    .btn-primary1 {
        width: 100%;
        text-align: center;
    }
}

.custom-checkbox input[type="checkbox"] {
    appearance: checkbox;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    width: auto;
    height: auto;
}

.custom-checkbox .checkbox-text a {
    color: #0077cc;
    text-decoration: none;
}

.custom-checkbox .checkbox-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .custom-checkbox {
        align-items: center;
    }

    .custom-checkbox input[type="checkbox"] {
        width: 12px;
        height: 12px;
        margin-top: 0;
    }

    .custom-checkbox input[type="checkbox"]::before {
        width: 4px;
        height: 6px;
    }
    .Datenschutz{
        font-size: x-large;
    }
}

.error-message {
    color: red;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

input.error,
textarea.error {
    border-color: red;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.footer .credits {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5em;
}