:root {
    --primary: #263168;
    /* Rudolf's Dark Blue */
    --primary-soft: #e6eaf3;
    --primary-dark: #1a234a;
    --bg: #f5f5f7;
    --text: #1f2933;
    --muted: #6b7280;
    --border: #e5e7eb;
    --surface: #ffffff;
    --accent: #FEE600;
    /* Rudolf's Yellow */
    --scale: 1;
    /* FHD bleibt 1x */
}

/* NUR WQHD+ skalieren - FHD unverändert */
@media (min-width: 1920px) {
    :root {
        --scale: 1.18;
    }
}

@media (min-width: 2560px) {
    :root {
        --scale: 1.28;
    }
}

/* SKALIERUNG ANWENDEN (FHD: keine Änderung) */
html {
    font-size: calc(16px * var(--scale, 1));
}

.container {
    max-width: calc(1200px * var(--scale, 1)) !important;
    /* FHD: 1200px, WQHD: 1416px */
    padding: 0 calc(1.8rem * var(--scale, 1));
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.lang-switch {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.lang-switch:hover {
    background: var(--primary);
    color: var(--white);
}

.main-nav a {
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-call {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}



/* Base styles for mobile elements (hidden on desktop) */
.burger-menu,
.mobile-nav-overlay {
    display: none;
}


.section {
    padding: 3rem 0;
}

.section-alt {
    background: #ffffff;
}

.section-contact {
    background: #f9fafb;
}


.section-header {
    margin-bottom: 1.6rem;
    max-width: 620px;
}

.text-center {
    text-align: center;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}


.section-label {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.section-header p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Highlight-Text im H1 */

.highlight-text {
    background-image: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(38, 49, 104, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 6px 16px rgba(38, 49, 104, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Hero */

.hero {
    padding: 3.5rem 0 3rem;
    background: radial-gradient(circle at top left, #ffffff 0, #f3f4f6 55%, #e5e7eb 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.2rem;
    align-items: center;
}

.hero-label {
    font-size: 0.85rem;
    color: var(--primary-dark);
    background: var(--primary-soft);
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.hero-text {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero-list {
    list-style: none;
    margin-bottom: 1.2rem;
}

.hero-list li {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 1.2rem;
}

.hero-list li::before {
    content: "•";
    position: absolute;
    left: 0.2rem;
    color: var(--primary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.hero-note {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Hero-Slider */

.hero-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    background: #e5e7eb;
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 1;
}

.hero-slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider-inner .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider-inner .slide.active {
    opacity: 1;
}

.hero-slider-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-slider-logo img {
    height: 150px;
    width: 300px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.hero-slider-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
}


/* Grid & Cards */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(38, 49, 104, 0.1);
    background: #ffffff;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
}

.card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Nano Restored Classic */
#nano {
    background: var(--surface);
    position: relative;
}

.nano-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.feature-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* STRICT GRID SYSTEM for Colors */
.nano-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.color-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.8rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.color-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.color-swatch {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.color-item:hover .color-swatch img {
    transform: scale(1.1);
}

.color-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.color-item:hover .color-name {
    font-size: 0.88rem;
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nano-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 3rem 0;
}

/* Vorher/Nachher */
.before-after {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.before-after-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.before-after-images figure {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.before-after-images img {
    width: 100%;
    height: auto;
    display: block;
}

.before-after-images figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    padding: 0.4rem 0.6rem;
}

.before-after-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.before-after-info p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}


/* Galerie */

.gallery h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0.5rem;
}

.gallery-item figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* Familie */

.familie-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2rem;
}

.familie-layout p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.familie-card {
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 1.1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.familie-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

/* Kontakt */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
}

.contact-info-card,
.contact-form-card {
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 1.3rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.contact-form-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.contact-form-card form {
    display: grid;
    gap: 0.7rem;
}

.contact-form-card label {
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

input,
textarea {
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-family: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Status Messages */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.status-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.video-caption {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 2rem;
    height: 2rem;
}

/* =====================================================
   RESPONSIVE DESIGN (Media Queries)
   ===================================================== */

/* Tablets & Small Desktops */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }

    .burger-menu span {
        width: 1.5rem;
        height: 2px;
        background: var(--text);
        transition: all 0.3s ease;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: #ffffff !important;
        /* Solid white background */
        z-index: 9999;
        /* Essential to be above everything */
        padding: 7rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        overflow-y: auto;
    }

    .mobile-nav-overlay.active {
        transform: translateX(0);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        font-size: 1.4rem;
        font-weight: 700;
        text-align: center;
        align-items: center;
    }

    .mobile-nav-links a {
        color: var(--primary);
        width: 100%;
        padding: 0.5rem;
    }

    .hero-layout,
    .grid-3,
    .nano-features-grid,
    .before-after,
    .familie-layout,
    .contact-layout,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .nano-colors {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 600px) {
    .section-header h2 {
        font-size: 1.35rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .nano-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nano-colors {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column !important;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .nano-colors {
        grid-template-columns: 1fr !important;
    }

    .before-after-images {
        grid-template-columns: 1fr;
    }

    .color-swatch {
        width: 3rem;
        height: 3rem;
    }

    .site-footer .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Diashow active class */
.slide.active {
    opacity: 1 !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--muted);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}