html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

nav .logo {
    height: 64px;
    transition: opacity 0.2s;
}

nav .logo:hover {
    opacity: 0.85;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #007bff;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: #007bff;
}

/* WhatsApp Nav-Button */
.nav-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.15s;
}

.nav-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-1px);
    color: #fff !important;
}

.nav-whatsapp::after {
    display: none !important;
}

/* Burger-Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

.hero {
    background: linear-gradient(to bottom, #001f3f, #003366);
    color: #fff;
    text-align: center;
    padding: 1rem 1rem 4rem;
    position: relative;
}

.logo-animation {
    position: relative;
    width: 90vw;
    max-width: 450px;
    height: 50vh;
    max-height: 500px;
    margin: 0 auto 1rem;
}

.c-part,
.z-part,
.final-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 80%;
    opacity: 0;
}

.final-logo {
    opacity: 0 !important;
}

.c-part {
    transform: translate(-200%, -50%);
    animation: slideFadeInC 1.2s ease-out forwards;
}

.z-part {
    transform: translate(200%, -50%);
    animation: slideFadeInZ 1.2s ease-out forwards;
}

.final-logo {
    animation: fadeInFinal 0.8s forwards 1.4s;
}

@keyframes slideFadeInC {
    0% {
        transform: translate(-200%, -50%);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes slideFadeInZ {
    0% {
        transform: translate(200%, -50%);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes fadeInFinal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero h1 {
    font-size: 3rem;
    margin: 0 auto;
    max-width: 850px;
}

.hero p {
    font-size: 1.5rem;
    margin: 0.5rem auto;
    max-width: 850px;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    flex: 1;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.tall-left {
    grid-column: 1;
    grid-row: 1 / 3;
}

.small-middle:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
}

.small-middle:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
}

.small-middle:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
}

.small-middle:nth-of-type(4) {
    grid-column: 3;
    grid-row: 2;
}

.tall-right {
    grid-column: 4;
    grid-row: 1 / 3;
}

.video-section {
    text-align: center;
    margin-top: 2rem;
}

.video-section video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ── Über uns ── */
.page-hero {
    background: linear-gradient(135deg, #001f3f 0%, #003366 60%, #004080 100%);
    color: #fff;
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.page-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-label {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7eb8f7;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.7;
}

/* Intro split */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.about-intro-text h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: #001f3f;
}

.about-intro-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 1.8rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.2rem 0 1.5rem;
}

.service-tags span {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background-color: #eef4ff;
    color: #005ecb;
    border: 1px solid #c5dbff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.about-intro-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
    display: block;
}

/* Values / cards */
.about-values {
    padding: 3rem 0 1rem;
}

.about-values h2 {
    text-align: center;
    color: #001f3f;
    margin-bottom: 2.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.8rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    border-top: 4px solid #007bff;
    transition: transform 0.25s, box-shadow 0.25s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 0.6rem;
    color: #007bff;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-size: 1.1rem;
    color: #001f3f;
    margin: 0 0 0.75rem;
}

.value-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Über uns mobile */
@media (max-width: 768px) {
    .page-hero {
        padding: 4rem 1.5rem 3rem;
    }

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

    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0;
    }

    .about-intro-image {
        order: -1;
    }

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

.services ul {
    list-style: none;
    padding: 0;
}

.services li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form label {
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#contact-form button {
    padding: 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

#contact-form button:hover {
    background-color: #0056b3;
}

.form-feedback {
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    min-height: 1em;
}

.form-feedback--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    background-color: #0d1b2a;
    color: #cdd6e0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .footer-logo {
    height: 52px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #8fa3b1;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: #8fa3b1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #8fa3b1;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 2rem;
    text-align: center;
}

.footer-bottom p {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.82rem;
    color: #5a7080;
}

.footer-bottom a {
    color: #8fa3b1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 72%;
        background-color: #fff;
        flex-direction: column;
        text-align: center;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
        padding-top: 6rem;
        z-index: 999;
    }

    nav ul.show {
        right: 0;
    }

    nav a {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }

    nav a::after {
        display: none;
    }

    .nav-whatsapp {
        font-size: 0.82rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-whatsapp span {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem 2rem;
    }

    .footer-brand p {
        max-width: 100%;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
        z-index: 998;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 1rem 1rem 3rem;
    }

    .logo-animation {
        max-width: 350px;
        height: 40vh;
    }

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

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

    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tall-left,
    .tall-right,
    .small-middle {
        grid-column: auto;
        grid-row: auto;
    }

    .hero,
    .logo-animation {
        touch-action: pan-y pinch-zoom;
        /* Erlaubt nur vertikal scrollen + Zoomen */
        overscroll-behavior-x: none;
        /* Kein horizontaler Bounce/Rubber-Band-Effekt */
    }

    /* Globaler Schutz gegen horizontales Overscroll auf Mobile */
    html,
    body {
        overscroll-behavior-x: none;
        overflow-x: hidden;
        /* Extra-Sicherheit – verhindert horizontalen Überstand */
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero-Text – Lesebreite & Zentrierung (gilt ergänzend zu .hero h1/.hero p oben) */
.hero h1,
.hero p {
    text-align: center;
}

/* Auch der normale Main-Inhalt braucht eine angenehme Lesebreite */
main p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Die Video-Sektion ebenfalls zentriert halten */
.video-section video {
    max-height: 420px;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}