/* ============================================
   GROK-ERSTELLTE WEBSITE – meinGlaser.de
   Modernes, professionelles Design (2026)
   ============================================ */

:root {
    --petrol: #0B2C3A;
    --petrol-dark: #061B24;
    --cyan: #00C4E8;
    --cyan-dark: #0099B8;
    --accent: #FF6B00;
    --text: #E8F4FA;
    --text-muted: #A8C4D8;
    --card-bg: rgba(255,255,255,0.055);
    --border: rgba(0,196,232,0.18);
    --success: #10B981;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--petrol);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---------- NAVIGATION ---------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11,44,58,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 52px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo:hover {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    gap: 2.4rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-phone:hover {
    transform: translateY(-1px) scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-cta {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 999px;
}

.hamburger {
    display: none;
    font-size: 1.7rem;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0B2C3A;
}

/* Hero Hintergrund - Video oder Bild */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dunkler Overlay für gute Lesbarkeit von Logo und Text */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(11,44,58,0.62), rgba(6,27,36,0.78));
    z-index: 2;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5% 60px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-logo {
    max-width: 620px;
    width: 100%;
    margin-bottom: 1.8rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.hero h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.1rem;
    color: white;
}

.hero p {
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
    color: #B8D4E8;
    max-width: 620px;
    margin: 0 auto 2.4rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--cyan), #0099B8);
    color: var(--petrol);
    padding: 18px 46px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(0,196,232,0.35);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-cta:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 45px rgba(0,196,232,0.45);
}

/* ---------- SECTIONS ---------- */
section {
    padding: 110px 5%;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem;
}

.section-label {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-size: clamp(2.1rem, 4.5vw, 3.1rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* ---------- STATS / ÜBER UNS ---------- */
.stats {
    background: rgba(255,255,255,0.025);
    border-radius: 24px;
    padding: 3.5rem 4%;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-text {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.18rem;
    color: #B8D4E8;
    line-height: 1.85;
}

.about-text strong {
    color: white;
}

/* ---------- SERVICES ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 1.6rem;
    max-width: 1280px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.4s ease,
                border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-14px);
    border-color: rgba(0,196,232,0.4);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

.service-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    will-change: transform;
    transform-style: preserve-3d;
    display: block;
}

/* Support for <picture> wrapper (WebP) */
.service-card picture {
    display: block;
    width: 100%;
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-content {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: white;
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.service-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    flex: 1;
}

/* ---------- GALERIE (Grid Version) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: 1280px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: #0a2533;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
}

/* Support for <picture> wrapper (WebP) */
.gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 85%, rgba(0,0,0,0.35));
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 0.75;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,27,36,0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 1100px;
    max-height: 92vh;
    width: 100%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 52px;
    height: 52px;
    background: #fff;
    color: var(--petrol);
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: var(--cyan);
    color: var(--petrol);
    border-color: var(--cyan);
}

.lightbox-prev { left: -24px; }
.lightbox-next { right: -24px; }

/* ---------- KONTAKT & FORMULAR ---------- */
.contact-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: white;
    font-size: 1.05rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0,196,232,0.15);
}

textarea {
    min-height: 135px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2300C4E8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    padding: 13px 16px;
    font-size: 0.98rem;
    color: #B8D4E8;
}

.form-hint {
    font-size: 0.82rem;
    color: #7A9AB0;
    margin-top: 0.35rem;
}

.privacy-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 1.4rem 0 1.8rem;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--cyan);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: var(--petrol);
    padding: 19px 32px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 12px 35px rgba(0,196,232,0.3);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0,196,232,0.42);
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--petrol-dark);
    padding: 4.5rem 5% 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3.2rem;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    color: white;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.45rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--cyan);
}

.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6B8A9F;
}

/* ---------- FLOATING CALL BUTTON ---------- */
.floating-call {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-call:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 40px rgba(37,211,102,0.55);
}

/* ---------- COOKIE BANNER ---------- */
#cookieBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6,27,36,0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 9999;
    padding: 1.3rem 5%;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.cookie-content p {
    font-size: 0.95rem;
    color: #B8D4E8;
    max-width: 620px;
}

/* ---------- RESPONSIVE ---------- */

/* iPad Portrait / Tablets hochkant (ca. 769-1024px): Header kompakt aber mit voller Navigation (besser lesbar & ausbalanciert) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.6rem 3.5%;
    }

    .nav-links {
        gap: 1.1rem;
    }

    .nav-links a {
        font-size: 0.92rem;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .nav-phone {
        font-size: 0.85rem;
    }

    .nav-cta {
        padding: 6px 15px;
        font-size: 0.77rem;
    }

    .logo {
        height: 40px;
    }

    .hero-logo {
        max-width: 68%;
        margin-bottom: 1rem;
        filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Auf iPad/Tablet Portrait noch 2-spaltig für Leistungen (gute Platznutzung, nicht zu lang) */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
        margin: 0;
        width: 100%;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

/* Echte Mobile / kleine Tablets + Phones (<=768px): Navigation einklappen, Hamburger, nur Telefon-Icon */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0B2C3A;
        padding: 1.4rem 5%;
        gap: 0.9rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.45);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }

    .nav-right {
        gap: 0.65rem;
    }

    .nav-phone {
        font-size: 0.88rem;
    }

    .nav-phone span {
        display: none; /* auf Mobile nur Icon, da Floating Call Button da ist */
    }

    .nav-cta {
        padding: 5px 13px;
        font-size: 0.72rem;
    }

    .logo {
        height: 34px;
    }

    .hero-logo {
        max-width: 66%;
        margin-bottom: 0.9rem;
        filter: drop-shadow(0 7px 18px rgba(0,0,0,0.65));
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        width: 100%;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* Galerie auf 2 Spalten auch bei mittel-breiten Geräten (bis 768px) – verhindert zu langes Scrollen */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-item {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 640px) {
    section {
        padding: 75px 5%;
    }
    
    .contact-form {
        padding: 2rem 1.4rem;
    }
    
    .stats {
        padding: 2.2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.6rem;
    }

    .nav-right {
        gap: 0.6rem;
    }

    .nav-cta {
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .logo {
        height: 32px;
    }

    .hero-logo {
        max-width: 65%;
        margin-bottom: 0.8rem;
        filter: drop-shadow(0 6px 16px rgba(0,0,0,0.7));
    }
}

/* Tablet / kleine Desktops (ab iPad Portrait): 3 Spalten für Galerie (gute Balance) */
@media (max-width: 900px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}