/* ============================================
   ZIMMERTüREN â€“ Page-Specific Styles (zimmertueren.css)
   Stefan Kübrich GmbH & Co. KG
   Architektur: identisch mit boeden.css
   ============================================ */

/* ============================================
   1. HERO SECTION
   ============================================ */
.zt-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/zimmertueren-hero.webp') center center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.zt-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(20, 25, 35, 0.88) 0%,
            rgba(20, 25, 35, 0.62) 55%,
            rgba(20, 25, 35, 0.22) 100%);
    z-index: 0;
}

.zt-hero-inner {
    position: relative;
    z-index: 1;
}

.zt-hero-content {
    max-width: 680px;
}

.zt-hero-pre {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(157, 25, 27, 0.35);
    border: 1px solid rgba(157, 25, 27, 0.5);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.zt-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.zt-hero-sub {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.zt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.zt-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.zt-hero-trust span {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--fw-medium);
}

/* ============================================
   2. PORTFOLIO KACHELN (4-Grid)
   ============================================ */
.zt-kachel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}

.zt-kachel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.zt-kachel:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.zt-kachel-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.zt-kachel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.zt-kachel:hover .zt-kachel-image img {
    transform: scale(1.07);
}

.zt-kachel-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.zt-kachel-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.zt-kachel-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
}

.zt-kachel .btn-outline {
    align-self: flex-start;
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: transparent;
    transition: background var(--transition-base), color var(--transition-base);
}

.zt-kachel .btn-outline:hover {
    background: var(--accent-red);
    color: var(--white);
}

/* ============================================
   3. SPLIT-SCREEN: EXPERTEN-SEKTION
   ============================================ */
.zt-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.zt-split-image {
    position: relative;
}

.zt-split-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
    background: var(--white);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.zt-split-img:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.zt-split-h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.zt-split-h3-accent {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--accent-red);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.zt-split-text {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.zt-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.zt-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--fs-base);
    color: var(--text-dark);
    line-height: 1.55;
}

.zt-check {
    flex-shrink: 0;
    color: var(--white);
    background: var(--accent-red);
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    margin-top: 2px;
}

/* ============================================
   4. SCROLLYTELLING â€“ Full CSS Block
      (Self-contained: tueren.css not loaded)
   ============================================ */

.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--text-dark);
}

/* ALL slides are absolutely stacked */
.scrolly-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, filter;
    transition: none;
}

/* Intro slide: centered text layout */
#slide-1 {
    flex-direction: column;
    text-align: center;
    background: var(--text-dark);
}

/* Content slides: image left, text right */
#slide-2,
#slide-3,
#slide-4,
#slide-5 {
    flex-direction: row;
}

.slide-img-col {
    flex: 1 1 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, var(--text-dark) 100%);
}

.slide-text-col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4rem clamp(2rem, 5%, 4rem);
    background: var(--text-dark);
}

.slide-text-inner {
    max-width: 520px;
}

/* Intro Typography */
.sg-intro-h3 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.sg-intro-p {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.sg-scroll-hint {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Content Slide Typography */
.sg-h3 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.sg-p {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.sg-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sg-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.sg-check {
    flex-shrink: 0;
    color: var(--white);
    background: var(--accent-red);
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    margin-top: 2px;
}

/* Dot Navigation */
.scrolly-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.sg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    padding: 0;
}

.sg-dot--active,
.sg-dot:hover {
    background: var(--accent-red);
    transform: scale(1.4);
}

/* ============================================
   5. AKKORDEON: MATERIAL-VERGLEICH
   ============================================ */
.zt-accordion {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin-inline: auto;
}

.zt-accordion-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.zt-accordion-item.is-open {
    box-shadow: var(--shadow-md);
    border-color: rgba(157, 25, 27, 0.25);
}

.zt-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    text-align: left;
    transition: background var(--transition-fast);
}

.zt-accordion-header:hover {
    background: var(--bg-light-grey);
}

.zt-accordion-icon-wrapper {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(157, 25, 27, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zt-accordion-title {
    flex: 1;
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
}

.zt-accordion-toggle {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.zt-accordion-header[aria-expanded="true"] .zt-accordion-toggle {
    color: var(--accent-red);
}

.zt-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.zt-accordion-content {
    padding: 0 2rem 2rem;
    border-top: 1px solid var(--border-light);
}

.zt-acc-meta {
    padding: 1rem 0 1.5rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-style: italic;
}

.zt-acc-meta strong {
    color: var(--text-dark);
    font-style: normal;
}

.zt-acc-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.zt-acc-col h4 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
}

.zt-acc-col--pro h4 {
    background: linear-gradient(90deg, #9D191B, #C0392B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zt-acc-col--con h4 {
    color: #4a5568;
}

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

.zt-acc-col ul li {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 1.1rem;
    position: relative;
}

.zt-acc-col--pro ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #9D191B;
    font-weight: var(--fw-bold);
}

.zt-acc-col--con ul li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: #4a5568;
    font-weight: var(--fw-bold);
}

/* ============================================
   RESPONSIVE: Tablet & Mobile
   ============================================ */
@media (max-width: 1024px) {
    .zt-kachel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zt-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .zt-split-img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .zt-hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .zt-kachel-grid {
        grid-template-columns: 1fr;
    }

    .zt-acc-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* ===========================================================
       MOBILE SCROLLYTELLING — Stacked Sticky Layout
       =========================================================== */

    #super-scrolly-master {
        height: auto !important;
    }

    .sticky-viewport {
        position: relative !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    .scrolly-slide {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
        min-height: auto !important;
    }

    #slide-1 {
        min-height: 50vh !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 3rem 1.5rem !important;
        background: var(--text-dark) !important;
    }

    #slide-2, #slide-3, #slide-4, #slide-5 {
        flex-direction: column !important;
        background: var(--text-dark) !important;
    }

    .slide-img-col {
        flex: none !important;
        width: 100% !important;
        height: 40vh !important;
        position: sticky !important;
        top: 64px !important;
        z-index: 1;
    }

    .slide-img-overlay {
        background: linear-gradient(to bottom, transparent 50%, var(--text-dark) 100%) !important;
    }

    .slide-text-col {
        flex: none !important;
        width: 100% !important;
        position: relative !important;
        z-index: 2;
        padding: 2rem 1.5rem 3rem !important;
        background: var(--text-dark) !important;
    }

    .slide-text-inner {
        max-width: 100% !important;
    }

    .sg-intro-h3 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .sg-h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .sg-p {
        max-width: 100% !important;
    }

    .scrolly-dots {
        display: none !important;
    }
}

/* Compact layout for material comparison cards on zimmertueren.html */
.b-compare-card .b-acc-col {
    padding: 1.0rem 0; /* Reduced from 1.25rem to decrease space before advantages & disadvantages */
}

@media (min-width: 1025px) {
    .b-compare-card .b-acc-col--pro {
        min-height: 210px; /* Reduced from 280px to eliminate huge blank spaces under advantages */
    }
    .b-compare-card .b-acc-col--con {
        min-height: 110px; /* Reduced from 160px to eliminate huge blank spaces under disadvantages */
    }
}

/* Reset on mobile screens */
@media (max-width: 1024px) {
    .b-compare-card .b-acc-col--pro,
    .b-compare-card .b-acc-col--con {
        min-height: auto;
    }
}