/* ============================================
   TüREN LANDING PAGE STYLES (tueren.css)
   Requires style.css for global variables & base
   ============================================ */

/* ============================================
   HERO SECTION (Türen)
   ============================================ */

/* .hero-pre is now defined in style.css for global usage */

/* ============================================
   SECURITY & TRUST SECTION
   ============================================ */
.trust-section {
    padding: var(--section-padding);
    background: var(--bg-light-grey);
}

.trust-section-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trust-content .lead-text {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.trust-content p {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
}

.badge-item svg {
    background: var(--accent-red-light);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    width: 52px;
    height: 52px;
}

/* ============================================
   DIE TüREN-WELTEN (3 COL GRID)
   ============================================ */
.welten-section {
    padding: var(--s-section);
    background: var(--bg-white);
}

.welten-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.welt-card {
    background: var(--bg-light-grey);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.welt-card:hover {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.welt-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.welt-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.welt-card:hover .welt-card-image img {
    transform: scale(1.05);
}

.welt-card-body {
    padding: 1.75rem 1.75rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.welt-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.3;
    min-height: 3.6em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.welt-subtitle {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--accent-red);
    display: block;
    margin-top: 0.25rem;
}

.welt-card-body .section-divider {
    height: 3px;
    margin-left: 0;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    width: 40px;
    transition: width var(--transition-base);
}

.welt-card:hover .section-divider {
    width: 60px;
}

.welt-text {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

/* ============================================
   AUFMASS (SPLIT SCREEN)
   ============================================ */
.split-section {
    padding-top: var(--s-section);
    padding-bottom: var(--s-section);
    background: var(--bg-light-grey);
    overflow: hidden;
}

/* Make container fluid for split screen but keep content aligned */
.container-fluid {
    max-width: 1600px;
    padding: 0;
    margin: 0 auto;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 600px;
}

.split-image {
    position: relative;
    min-height: 400px;
    z-index: 2;
}

.image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--text-dark) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 800 600" preserveAspectRatio="none"><rect width="800" height="600" fill="%232C3E50"/><line x1="0" y1="0" x2="800" y2="600" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><line x1="800" y1="0" x2="0" y2="600" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><text x="400" y="300" font-family="sans-serif" font-size="24" fill="rgba(255,255,255,0.2)" text-anchor="middle" dominant-baseline="middle">Platzhalter: Experten Aufmaß</text></svg>') no-repeat center center/cover;
}

.split-content {
    padding: 4rem 10% 4rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-white);
}

.split-content p {
    font-size: var(--fs-base);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.split-content .highlight-text {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--accent-red);
    border-left: 3px solid var(--accent-red);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--section-padding);
    background: var(--bg-light-grey);
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-text {
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.cta-arrow {
    color: var(--accent-red);
    margin-bottom: 1.25rem;
    animation: bounce-arrow 1.8s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: var(--fs-base);
    flex-direction: column;
    gap: 0.25rem;
    display: inline-flex;
}

.btn-sub {
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    opacity: 0.85;
}

/* ============================================
   MODAL: TüREN-BERATER
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-light-grey);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--text-dark);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.modal-intro {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Progress Bar */
.modal-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-light-grey);
    border-radius: 3px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.modal-progress-bar {
    height: 100%;
    background: var(--accent-red);
    width: 20%;
    /* Starts at 1/5 */
    transition: width 0.4s ease;
}

/* Steps */
.modal-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.modal-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-question {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

/* Options */
.modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grid-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    gap: 0.75rem;
}

.modal-option-btn:hover,
.modal-option-btn.selected {
    border-color: var(--accent-red);
    background: var(--accent-red-light);
    color: var(--accent-red-hover);
}

/* Step 5 Specials */
.split-options {
    flex-direction: row;
}

.split-options .modal-option-btn {
    flex: 1;
    padding: 1rem;
    font-size: var(--fs-sm);
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
}

.contact-input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-family);
    font-size: var(--fs-base);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-light-grey);
    outline: none;
    transition: all var(--transition-fast);
}

.contact-input-group input:focus {
    border-color: var(--accent-red);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-red-light);
}

/* Ensure textarea styles are imported or defined */
.modal-textarea-wrap label,
.modal-input-wrap label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-input-wrap {
    margin-bottom: 1.5rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    pointer-events: none;
    z-index: 10;
}

.modal-input-wrap input[type="url"] {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    color: var(--text-dark);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
    outline: none;
}

.modal-input-wrap input[type="url"]:focus {
    border-color: var(--accent-red);
}

.modal-checkbox-btn {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-checkbox-btn input[type="checkbox"] {
    margin-right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--accent-red);
}

.modal-checkbox-btn:hover {
    border-color: var(--accent-red-light);
    transform: translateY(-2px);
}

.modal-checkbox-btn.selected {
    border-color: var(--accent-red);
    background: var(--accent-red-light);
    color: var(--accent-red-hover);
}

.modal-textarea-wrap textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: var(--fs-sm);
    color: var(--text-dark);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    resize: vertical;
    transition: border-color var(--transition-fast);
    outline: none;
}

.modal-textarea-wrap textarea:focus {
    border-color: var(--accent-red);
}

.modal-sub-info {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-textarea-wrap {
    margin-bottom: 1.5rem;
}

.modal-pre-line {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--accent-red);
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

/* ============================================
   INTERAKTIVER RATGEBER (TABS)
   ============================================ */
.guide-section {
    padding: 6rem 0;
    background: var(--bg-light-grey);
}

.guide-intro {
    max-width: 700px;
    margin: 1.5rem auto 3rem;
    color: var(--text-muted);
    font-size: var(--fs-md);
    line-height: 1.7;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tab-btn {
    padding: 1.25rem 2.5rem;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: var(--font-family);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.tab-btn .tab-icon {
    font-size: 1.3rem;
}

.tab-btn:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(198, 139, 89, 0.2);
}

.tab-content-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.guide-h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.guide-h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-red);
}

/* Material Blocks (Haustüren) */
.material-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.material-block {
    padding: 1.5rem;
    background: var(--bg-light-grey);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--border-light);
}

.material-block.highlight {
    background: var(--accent-red-light);
    border-left-color: var(--accent-red);
}

.material-title {
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.material-desc {
    font-size: var(--fs-xs);
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--fw-bold);
    margin-bottom: 0.75rem;
}

.pros-cons {
    list-style: none;
    padding: 0;
    font-size: var(--fs-sm);
}

.pros-cons li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.pros-cons li.pro::before {
    content: '+';
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.pros-cons li.con::before {
    content: 'âˆ’';
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Safety Checklist */
.safety-checklist {
    list-style: none;
    padding: 0;
}

.safety-checklist li {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-red-light);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: bold;
    font-size: 0.9rem;
}

.safety-checklist strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.safety-checklist p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Zimmertüren Styles */
.design-feature {
    margin-bottom: 2rem;
}

.design-feature strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.design-feature p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.material-choice {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.material-choice:hover {
    border-color: var(--accent-red-light);
    background: var(--bg-light-grey);
}

.material-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--text-dark);
    color: var(--white);
    font-size: var(--fs-xs);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.material-choice p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   SCROLLYTELLING GUIDE  (sg-*)
   ============================================================ */

/* ”€”€ 1. Ganzseiten-Intro ”€”€ */
.sg-intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
    padding: 4rem 1.5rem;
}

/* ”€”€ 1. GANZSEITEN-INTRO (Zentriert & Cinematic) ”€”€ */
.sg-intro-full {
    height: 130vh;
    background: var(--text-dark);
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 20;
}

/* Base spacing after previous section */
#expertenratgeber {
    margin-top: 10rem;
}

.sg-intro-inner {
    max-width: 820px;
    margin: 0 auto;
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    /* Initial visible */
    transition: none;
    /* Controlled by JS */
}

.sg-intro-h3 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.15;
    margin: 1.25rem 0 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;
}

#slide-1 .hero-pre {
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
}

.sg-scroll-hint {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
    padding: 1.5rem 0;
    margin-top: 1rem;
    animation: sg-bounce 2s ease-in-out infinite;
}

@keyframes sg-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* =========================================================== */
/* UNIFIED SCROLLYTELLING MASTER                               */
/* =========================================================== */


/* The sticky frame that pins inside the 1200vh container */
.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
}

/* Every slide is absolutely stacked inside the viewport */
.scrolly-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    filter: blur(20px);
    transition: none;
    /* JS-controlled only */
    pointer-events: none;
    will-change: opacity, filter;
}

/* Chapter intro slides (centered text only) */
.slide-chapter-intro {
    background: var(--text-dark);
}

/* Image half (left or right, order controlled via inline style) */
.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%);
    pointer-events: none;
}

/* Text half */
.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;
}

/* Dot nav sits on the right edge */
.scrolly-dots {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 200;
}

.sg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    padding: 0;
}

.sg-dot--active,
.sg-dot:hover {
    background: var(--accent-red);
    transform: scale(1.4);
}

/* Eyecatcher inside dark slide background */
#super-scrolly-master .eyecatcher {
    color: var(--accent-red);
    background: rgba(157, 25, 27, 0.15);
    border-color: rgba(157, 25, 27, 0.3);
}

/* ”€”€ Legacy SCROLLYTELLING SECTIONS (kept for reference, no longer active) ”€”€ */

.sg-scrolly {
    height: 400vh;
    /* Large scroll territory for content swapping */
    position: relative;
    background: var(--bg-white);
}

/* Offset first section to overlap with intro exit for zero-gap transition */
#sg-haustueren-scrolly {
    margin-top: -60vh;
}

.sg-scrolly-grid {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* Standard: Sticky Left, Story Right */
/* Reverse: Story Left, Sticky Right (managed by DOM order + grid) */
/* Use DOM order (Story, Sticky) + default grid 1fr 1fr for reverse layout */

/* Sticky Visual Column */
.sg-sticky-col {
    position: relative;
    height: 100vh;
    width: 100%;
    background: #000;
    /* Dark anchor for premium look */
}

.sg-image-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.sg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(20px);
    transition: none;
    /* Perfect sync via JS progress */
    will-change: opacity, filter;
}

.sg-img--active {
    opacity: 1;
}

/* Specific override for the first image to allow smooth JS-driven scroll-fade without CSS lag */
#sg-img-haustueren[style*="opacity"] {
    transition: none;
}

/* Overlay gradient */
.sg-sticky-col::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.6), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Dots Navigation */
.sg-dots {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.sg-scrolly-grid--reverse .sg-dots {
    right: auto;
    left: 2rem;
}

.sg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.sg-dot:hover,
.sg-dot--active {
    background: var(--accent-red);
    transform: scale(1.5);
}

/* ”€”€ Story Column (Frozen Text) ”€”€ */
.sg-story-col {
    position: relative;
    height: 100vh;
    width: 100%;
}

.sg-story-block {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    padding: 0 12%;
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
    transition: none;
    will-change: opacity, filter;
}

/* Highlighted state when active (for clicks/links inside blocks) */
.sg-story-block.v-visible {
    pointer-events: auto;
}

.sg-story-content {
    width: 100%;
    max-width: 520px;
}

/* Gold card theme */
.sg-story-block--gold .sg-story-content {
    background: #fdf8f3;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(198, 139, 89, 0.15);
    box-shadow: 0 12px 40px rgba(198, 139, 89, 0.06);
}

.sg-end-spacer {
    display: none;
    /* No longer needed in stacked layout */
}

/* Typography */
.sg-h3 {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

/* Red underline removed \2013 matches boeden.css standard */

.sg-p {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}

/* Checklist */
.sg-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sg-checklist li {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: start;
    text-align: left;
    gap: 1rem;
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.sg-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;
}

/* ============================================
   RESPONSIVE (Türen page)
   ============================================ */
@media (max-width: 1024px) {
    .welten-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .split-image {
        min-height: 300px;
    }

    .split-content {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .welten-grid {
        grid-template-columns: 1fr;
    }

    .grid-options,
    .split-options {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .modal {
        padding: 2rem 1.5rem;
    }

    .trust-badges {
        gap: 1.5rem;
        flex-direction: column;
    }

    /* ”€”€ Scrollytelling: mobile stacked layout ”€”€ */
    .sg-scrolly-grid,
    .sg-scrolly-grid--reverse {
        grid-template-columns: 1fr;
    }

    /* Sticky disabled on mobile */
    .sg-sticky-col {
        position: relative;
        height: 65vw;
        min-height: 240px;
        max-height: 380px;
        order: 1;
        /* image always on top */
    }

    /* Text below image on mobile */
    .sg-story-col {
        order: 2;
        padding: 2.5rem 1.25rem 2.5rem;
    }

    /* All blocks fully visible, no fade */
    .sg-story-block,
    .sg-story-block--intro {
        min-height: auto;
        opacity: 1 !important;
        transform: none !important;
        padding-bottom: 2.5rem;
        max-width: 100%;
    }

    .sg-story-block--gold {
        padding: 1.75rem;
    }

    .sg-end-spacer {
        height: 0.5rem;
    }

    .sg-dots {
        display: none;
    }

    .sg-intro {
        min-height: 70vh;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .sg-scrolly-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sg-story-col {
        padding: 0 3% 0 5%;
    }
}


/* ============================================
   SCHLIESS­SYSTEME \2013 IMAGE CARDS
   ============================================ */

.system-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.system-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
}

.system-card-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.system-card-top-text {
    display: flex;
    flex-direction: column;
    min-height: 340px; /* Fallback min-height, overridden on desktop */
}

.system-card-content .b-compare-inner-cols {
    margin-top: auto;
}

.system-card-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin: 0 0 1rem 0;
}

.system-card-meta {
    margin-bottom: 1.5rem;
}

.system-card-meta strong {
    display: block;
    color: var(--text-dark);
    font-size: var(--fs-sm);
    margin-bottom: 0.25rem;
}

.system-card-meta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.pros-cons-grid h5 {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin: 0 0 0.6rem 0;
}

.pros-cons-grid .label-pros {
    color: var(--accent-red);
}

.pros-cons-grid .label-cons {
    color: var(--text-muted);
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li,
.cons-list li {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.5rem;
}

.pros-list li::before {
    content: "✓";
    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: 1px;
}

.cons-list li::before {
    content: "\2013";
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.system-card-footer {
    background: var(--bg-light-grey);
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    min-height: 110px;
}

.system-card-footer strong {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.system-card-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ”€”€ Trennstrich in Card linksbündig ”€”€ */
.system-card .section-divider {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
}

/* ============================================
   SYSTEM CARDS - PERFECT ALIGNMENT
   ============================================ */
.system-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.system-card-text-group {
    /* No flex-grow to prevent uneven vertical stretching */
}

.system-card .b-compare-inner-cols {
    padding: 0 2rem 1.75rem 2rem !important; /* Slightly increased from 1.25rem (original was 2.5rem) */
}

.system-card .b-acc-col {
    padding: 1.75rem 0; /* Slightly increased from 0.75rem (original was 1.25rem) */
}

.system-card-footer {
    min-height: 130px;
    /* Erzwingt gleiche Höhe für alle Footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pros-cons-grid {
    margin-top: 1.5rem;
    /* Konsistenter Abstand nach oben */
}

/* Perfect alignment & compact heights for desktop */
@media (min-width: 1025px) {
    .system-card-top-text {
        min-height: 280px;
    }
    .system-card-top-text .system-card-meta:nth-of-type(1) {
        min-height: 105px;
        margin-bottom: 1.25rem;
    }
    .system-card-top-text .system-card-meta:nth-of-type(2) {
        min-height: 120px;
        margin-bottom: 0;
    }
    .system-card .b-acc-col--pro {
        min-height: 130px; /* Slightly increased from 110px to restore some spacing (original was 280px) */
    }
    .system-card .b-acc-col--con {
        min-height: 95px; /* Slightly increased from 80px to restore some spacing (original was 160px) */
    }
}

/* Auf mobilen Geräten heben wir die feste Höhe auf, da die Karten untereinander stehen */
@media (max-width: 1024px) {
    .system-card-top-text {
        min-height: auto;
    }
    .system-card-top-text .system-card-meta:nth-of-type(1),
    .system-card-top-text .system-card-meta:nth-of-type(2) {
        min-height: auto;
    }
    .system-card .b-acc-col--pro,
    .system-card .b-acc-col--con {
        min-height: auto;
    }
}

/* ===========================================================
   MOBILE SCROLLYTELLING — Stacked Sticky Layout (max-width: 768px)
   Bild klebt oben (40vh), Text scrollt darunter durch.
   =========================================================== */
@media (max-width: 768px) {

    #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-chapter-intro {
        min-height: 50vh !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 3rem 1.5rem !important;
        text-align: center;
    }

    .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;
    }

    /* Zwingende Fixes für Mobile Info-Karten Ausrichtung */
    .system-cards-grid {
        align-items: stretch !important;
    }
    
    .system-card {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .system-card-bottom-group {
        margin-top: auto !important;
    }
}

/* Rounded corners, shadow, and hover lift effect for Aufmaß image on haustueren.html */
#aufmass-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(15, 18, 25, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    
    /* Inset slightly so the shadow and rounded corners have room to stand out */
    width: calc(100% - 2.5rem) !important;
    height: calc(100% - 2.5rem) !important;
    top: 1.25rem !important;
    left: 1.25rem !important;
    transform: translateY(0);
}

#aufmass-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(15, 18, 25, 0.12);
}