:root {
    --bg: #ffffff;
    --text: #111111;
    --text-muted: #666666;
    --border: #dddddd;
    --accent: #c00000;
    --accent-dark: #900000;
    --gray-light: #f5f5f5;
}

/* Reset & Basis */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */

.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.75rem;
}

.logo-area img {
    height: 50px;
    width: auto;
}

.logo-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Burger-Menü */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.main-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.main-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero-Video vollbreit */

.hero-video-full {
    width: 100%;
    padding: 0;
    margin: 0 0 2rem 0;
}

.video-wrapper-169 {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #000;
}

/* etwas schmaler als 16:9, moderner Look */
.video-wrapper-169::before {
    content: "";
    display: block;
    padding-top: 38%;
}

.video-wrapper-169 video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Animierte Maske */

.video-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(192, 0, 0, 0.55) 40%,
        rgba(0, 0, 0, 0.4) 75%,
        rgba(255, 255, 255, 0.05) 100%
    );
    mix-blend-mode: soft-light;
    animation: videoMaskMove 14s ease-in-out infinite alternate;
}

@keyframes videoMaskMove {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1.02);
        opacity: 0.75;
    }
    50% {
        transform: translate3d(1%, 1%, 0) scale(1.03);
        opacity: 0.9;
    }
    100% {
        transform: translate3d(3%, -1%, 0) scale(1.05);
        opacity: 0.8;
    }
}

/* Hero Overlay */

.hero-overlay-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start; /* WICHTIG: oben ausrichten */
    justify-content: flex-start;
    padding: 4.5rem 8vw 0 8vw; /* nach oben gesetzt */
    pointer-events: none;
}

.hero-overlay-inner {
    max-width: 520px;
    color: #ffffff;
    pointer-events: auto;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    opacity: 0.85;
}

.hero-overlay-inner h1 {
    font-size: 2rem;
    margin: 0 0 0.6rem 0;
}

.hero-subline {
    margin: 0 0 1.1rem 0;
    font-size: 0.95rem;
    max-width: 460px;
    color: #f0f0f0;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Mute / Unmute Button im Video */

.video-sound-toggle {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
    padding: 0;
}

.video-sound-toggle:hover {
    background: rgba(0, 0, 0, 0.75);
}

.video-sound-toggle .sound-on {
    display: none;
}

.video-sound-toggle.on .sound-on {
    display: inline;
}

.video-sound-toggle.on .sound-off {
    display: none;
}

/* Telefonbereich */

.phone-highlight {
    padding: 1.8rem 0 2rem;
    text-align: center;
    background: #ffffff;
}

.phone-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.phone-number {
    margin: 0.3rem 0 0.2rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.phone-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(192, 0, 0, 0.35);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(192, 0, 0, 0.45);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--accent-dark);
}

.btn-secondary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

/* Features */

.features {
    padding: 2.5rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    background: var(--gray-light);
    color: var(--accent-dark);
    font-size: 1.2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* kleine Hover-Animation: Icon „springt“ leicht nach oben */
.feature-card:hover .feature-icon {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* SEO-Text – typografisch optimiert */

.seo-text {
    padding: 3rem 0 3.5rem;
}

.seo-text h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 2vw + 1rem, 2.2rem);
    letter-spacing: 0.03em;
}

.seo-text h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.seo-text p {
    max-width: 52rem;
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.seo-text p:last-of-type {
    margin-top: 1.3rem;
    font-weight: 500;
    color: var(--text);
}

/* Standortkarte */

.location-full {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

.location-full h2 {
    margin-bottom: 0.5rem;
}

.location-text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.location-map-full {
    width: 100%;
    position: relative;
}

.location-map-full::before {
    content: "";
    display: block;
    padding-top: 45%;
}

.location-map-full iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 992px) {
    .location-map-full::before {
        padding-top: 35%;
    }
}

/* Kontakt */

.contact {
    padding: 2.5rem 0 3rem;
    background: #ffffff;
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
}

.contact-data p {
    margin: 0 0 0.7rem;
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Kontaktbox & Formular */

.contact-box {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .form-row {
    margin-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(192, 0, 0, 0.12);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0.8rem;
}

/* Page-Header (Unterseiten) */

.page-header {
    padding: 2rem 0 1rem;
    background: #f7f7f7;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* mobile.de Iframe */

.mobile-frame-wrapper {
    margin: 1.5rem 0 3rem;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #ffffff;
    min-height: 600px;
}

.mobile-frame-wrapper iframe {
    width: 100%;
    height: 700px;
    border: none;
}

.mobile-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Legal */

.legal-text {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.legal-text h2,
.legal-text h3 {
    margin-top: 1.5rem;
}

.legal-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
}

/* Galerie – Masonry-Style */

.gallery {
    padding: 2.5rem 0 3rem;
}

.gallery h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.gallery-intro {
    max-width: 800px;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Masonry-Grid mit unterschiedlich großen Kacheln */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 180px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: #000;
    cursor: zoom-in;
    grid-row: span 1;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.75rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
    margin-top: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */

.main-footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-footer a {
    text-decoration: none;
    color: var(--text-muted);
}

.main-footer a:hover {
    color: var(--accent);
}

/* Cookie-Banner */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    z-index: 300;
    padding: 0.6rem 0;
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.85rem;
}

.cookie-inner .btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

/* Floating Buttons: WhatsApp, Google, mobile.de */

.whatsapp-float,
.google-float,
.mobile-float {
    position: fixed;
    right: 1.25rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    z-index: 400;
}

.whatsapp-float {
    bottom: 1.25rem;
    background: #25D366;
}

.google-float {
    bottom: 5.5rem;
    background: #ffffff;
}

.mobile-float {
    bottom: 9.75rem;
    background: #ffffff;
}

.whatsapp-float img,
.google-float img,
.mobile-float img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    pointer-events: none;
}

.whatsapp-float:hover,
.google-float:hover,
.mobile-float:hover {
    transform: translateY(-2px);
}

/* Tooltip */

.fab-tooltip {
    position: absolute;
    right: 64px;
    background: #ffffff;
    color: #111;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float .fab-tooltip,
.google-float .fab-tooltip,
.mobile-float .fab-tooltip {
    bottom: 14px;
}

.whatsapp-float:hover .fab-tooltip,
.google-float:hover .fab-tooltip,
.mobile-float:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */

@media (max-width: 900px) {
    .header-inner {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        display: none;
        flex-direction: column;
        padding: 0.5rem 1.5rem 1rem;
        gap: 0.4rem;
    }

    .main-nav a {
        margin-left: 0;
        padding: 0.3rem 0;
    }

    .main-header.nav-open .main-nav {
        display: flex;
    }

    .hero-overlay-content {
        justify-content: center;
        padding: 1.5rem;
        text-align: center;
    }

    .hero-overlay-inner h1 {
        font-size: 1.6rem;
    }

    .hero-cta-row {
        justify-content: center;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

.feature-grid {
    display: flex;
    justify-content: center; /* zentriert ALLE Karten */
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center; /* Inhalt jeder Karte zentriert */
}
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 160px;
    }

.feature-card {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    width: 260px;              /* feste, elegante Kartengröße */
    text-align: center;        /* Inhalt zentriert */
}

}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .phone-number {
        font-size: 1.6rem;
    }

    .whatsapp-float,
    .google-float,
    .mobile-float {
        width: 50px;
        height: 50px;
        right: 1rem;
    }

    .whatsapp-float img,
    .google-float img,
    .mobile-float img {
        width: 30px;
        height: 30px;
    }

    .whatsapp-float {
        bottom: 1rem;
    }

    .google-float {
        bottom: 5rem;
    }

    .mobile-float {
        bottom: 9rem;
    }

    .fab-tooltip {
        font-size: 0.75rem;
        right: 58px;
    }

    .seo-text {
        padding: 2.2rem 0 3rem;
    }

    .seo-text h2 {
        font-size: 1.55rem;
    }

    .seo-text p {
        font-size: 0.94rem;
    }

    .video-sound-toggle {
        left: 1rem;
        bottom: 1rem;
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .hero-overlay-content {
        padding: 2.2rem 1.5rem 0 1.5rem;
        align-items: flex-start;
        text-align: center;
        justify-content: center;
    }
}
