/*
Theme Name: WHZ Modern Premium
Theme URI: https://wirhörenzu.at
Author: MarkusKSBG & Antigravity
Description: Ein ultra-modernes, glassmorphisches WordPress-Template für Wir Hören Zu.
Version: 1.5.1
Text Domain: whz-modern
*/

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-reg.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('assets/fonts/outfit-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Navigation */
.footer-nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-nav-list a {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: var(--accent-orange, #ff4d00);
    transform: translateY(-2px);
}

:root {
    --accent-orange: #ff4d00;
    --bg-dark: #030a1e;
    --text-main: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

/* Global Text Wrapping to prevent pushing borders */
p,
h1,
h2,
h3,
h4,
h5,
h6,
.glass-content-wrapper,
.hero-module,
.service-card,
.flex-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
}

/* Editor Modules Frontend Support */
.hero-module {
    padding: clamp(60px, 10vh, 120px) 20px;
    text-align: center;
    border-radius: 40px;
    margin-bottom: 40px;
}

.hero-module.glass {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.hero-module h1,
.grid-header h1,
.grid-header h2,
.grid-header h3 {
    font-size: clamp(32px, 8vw, 64px);
    margin-bottom: 20px;
    line-height: 1.1;
}

.glass-flex-row {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 60px 0;
}

@media (max-width: 991px) {
    .glass-flex-row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .glass-flex-row {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin: 40px 0;
    }

    .flex-img {
        width: 100%;
    }

    .flex-img img {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
}

.flex-img img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-modular-content .flex-img img {
    cursor: pointer;
}

.glass-modular-content .rich-text-module img {
    cursor: pointer;
}

/* Service Cards (Grid) */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
}

.service-card {
    padding: 30px;
    border-radius: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Fix for Service Grid Icon Margin on Frontend */
.service-card>div:first-child {
    margin-bottom: 5px !important;
}

.glass-table th,
.glass-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-table th {
    border-bottom: 2px solid var(--accent-orange, #ff4d00);
    font-weight: bold;
    color: #fff;
}

.glass-table.layout-fixed {
    table-layout: fixed;
}

.glass-table.layout-fixed th,
.glass-table.layout-fixed td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.glass-quote {
    border-left: 4px solid var(--accent-orange);
    padding-left: 30px;
    margin: 40px 0;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .glass-quote {
        padding-left: 20px;
        margin: 30px 0;
    }

    .service-card {
        padding: 25px;
    }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
}

/* Connected Blocks (Inner modules when wrapped in a group) */
.glass-connected {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
    /* reduce padding since wrapper handles it */
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Specific module overrides when connected */
.hero-module.glass-connected {
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-module.glass-connected .container {
    padding: 0;
}

.service-card.glass-connected {
    padding: 10px 0;
}

.rich-text-module.glass-connected {
    padding: 10px 0;
}

.glass-quote.style-connected {
    border-left-color: var(--accent-orange);
    margin: 20px 0;
}

/* Responsive Table Wrapper */
.wp-block-table {
    width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.wp-block-table table {
    min-width: 600px;
}

/* Fluid Container Padding */
@media (max-width: 600px) {

    .container,
    .glass-container,
    .main-header {
        width: 95%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* WP Blocks */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.btn-donate {
    background: var(--accent-orange);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
}

/* =============================================
   Premium Image Effects (v1.4.0)
   Applied in editor AND on frontend
   ============================================= */

/* --- 3D Floating Card --- */
img.img-glass-3d {
    display: inline-block;
    border-radius: 16px;
    transform:
        perspective(900px) rotateY(-8deg) rotateX(4deg) translateZ(0);
    box-shadow:
        20px 25px 60px rgba(0, 0, 0, 0.55),
        -2px -2px 0 1px rgba(255, 120, 50, 0.35),
        4px 0 0 0 rgba(100, 180, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    outline: 1.5px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin: 16px;
    max-width: 100%;
    height: auto;
}

img.img-glass-3d:hover {
    transform:
        perspective(900px) rotateY(-4deg) rotateX(2deg) translateY(-6px) translateZ(0);
    box-shadow:
        30px 38px 80px rgba(0, 0, 0, 0.65),
        -2px -2px 0 1px rgba(255, 140, 60, 0.5),
        6px 0 0 0 rgba(120, 200, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* --- Frosted Glass Border --- */
img.img-glass-border {
    display: inline-block;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    outline: 6px solid rgba(255, 255, 255, 0.04);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.35s ease;
    margin: 12px;
    max-width: 100%;
    height: auto;
}

img.img-glass-border:hover {
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.06),
        0 20px 55px rgba(0, 0, 0, 0.55),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.35);
}

/* --- Neon Glow / Pulse Aura --- */
img.img-glass-glow {
    display: inline-block;
    border-radius: 14px;
    border: 1px solid rgba(255, 100, 30, 0.4);
    animation: glowPulse 3s ease-in-out infinite;
    margin: 12px;
    max-width: 100%;
    height: auto;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow:
            0 0 25px rgba(255, 77, 0, 0.55),
            0 0 60px rgba(255, 120, 20, 0.28),
            0 0 110px rgba(255, 80, 0, 0.13),
            0 12px 35px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow:
            0 0 40px rgba(255, 77, 0, 0.75),
            0 0 95px rgba(255, 140, 20, 0.42),
            0 0 155px rgba(255, 80, 0, 0.20),
            0 12px 35px rgba(0, 0, 0, 0.5);
    }
}

/* --- Block blur support (reads --block-blur CSS var per block) --- */
.glass-modular-content section,
.glass-modular-content div[data-blur] {
    backdrop-filter: blur(var(--block-blur, 15px));
    -webkit-backdrop-filter: blur(var(--block-blur, 15px));
}

/* Ensure inline images in glass content are completely responsive */
.glass-content-wrapper img,
.glass-modular-content img,
.entry-content img,
.hero-module img {
    max-width: 100% !important;
    height: auto !important;
}

/* Override global img restrictions for the Carousel to prevent giant images */
.glass-carousel-wrapper img.whz-carousel-img {
    height: 300px !important;
    width: auto !important;
    max-width: none !important;
}

/* Carousel Navigation Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.carousel-nav-btn:hover {
    background: var(--accent-orange, #ff4d00);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: 10px;
}

.carousel-nav-next {
    right: 10px;
}

/* --- 📸 Polaroid (frontend, v1.4.0) --- */
img.img-glass-polaroid {
    display: inline-block;
    background: #fff;
    padding: 10px 10px 32px 10px;
    border-radius: 3px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin: 20px;
    max-width: 100%;
    height: auto;
    filter: contrast(1.05) saturate(0.95);
}

img.img-glass-polaroid:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- 🌈 Neon-Chrome (frontend, v1.4.0) --- */
img.img-glass-chrome {
    display: inline-block;
    border-radius: 12px;
    outline: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow:
        -4px 0 8px rgba(0, 200, 255, 0.7),
        4px 0 8px rgba(255, 0, 180, 0.6),
        0 10px 35px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    filter: saturate(1.2) contrast(1.05);
    transition: all 0.35s ease;
    margin: 14px;
    max-width: 100%;
    height: auto;
}

img.img-glass-chrome:hover {
    outline-color: rgba(0, 255, 255, 0.9);
    box-shadow:
        -6px 0 14px rgba(0, 200, 255, 0.9),
        6px 0 14px rgba(255, 0, 200, 0.85),
        0 15px 50px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: saturate(1.4) contrast(1.1);
}

/* =============================================
   Quill Paragraph Spacing Fix (v1.4.0)
   Quill wraps text in <p> — browsers add 1em margins.
   Reset to match editor appearance on frontend.
   ============================================= */
.glass-content-wrapper p,
.glass-content-wrapper h1,
.glass-content-wrapper h2,
.glass-content-wrapper h3,
.glass-content-wrapper h4,
.hero-module p,
.hero-module h1,
.hero-module h2,
.service-card p,
.glass-flex-row .flex-text p,
.rich-text-module p,
.glass-quote p,
.glass-faq-wrapper p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.4;
}

/* =============================================
   Quill Text Alignment (v1.4.0)
   Ensure the frontend respects Quill's native alignment classes
   ============================================= */
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}

/* =============================================
   Lightbox Overlay
   ============================================= */
.whz-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whz-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.whz-lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.whz-lightbox-overlay.active img {
    transform: scale(1);
}

.whz-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    z-index: 100000;
    transition: color 0.3s ease;
}

.whz-lightbox-close:hover {
    color: var(--accent-orange, #ff4d00);
}