/* ==========================================
   WEBSAYDE VISUELLER KONFIGURATOR CSS
   ========================================== */

.builder-main {
    background-color: #0b0f19;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* HERO BAR MIT DREI SPALTEN: LOGO, TITEL, RECHTSBÜNDIGER BUTTON */
.builder-hero-bar {
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
}

.hero-bar-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.builder-top-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.builder-top-logo span {
    color: #fbbf24;
}

.builder-hero-content {
    text-align: center;
    flex: 1;
}

.builder-hero-content h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 4px;
}

.builder-hero-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.hero-bar-right {
    flex-shrink: 0;
}

/* Kompakter rechtbündiger Button oben */
.btn-preview-top-small {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid #3b82f6;
    color: #60a5fa;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-preview-top-small:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Prominenter Sektions-Picker oben */
.prominent-picker {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 10px 20px;
    border-radius: 14px;
}

.picker-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.picker-buttons {
    display: flex;
    gap: 8px;
}

.count-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.count-btn.active, .count-btn:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Sidebar Sektions-Picker */
.sidebar-section-picker-group {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    padding: 16px !important;
}
.sidebar-picker-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.count-btn-side {
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 0;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.count-btn-side.active, .count-btn-side:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Workspace Grid */
.builder-workspace {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    max-width: 1600px;
    margin: 30px auto 0;
    padding: 0 24px;
    align-items: flex-start;
}

/* Sidebar Links */
.builder-sidebar {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}
.builder-sidebar::-webkit-scrollbar { width: 6px; }
.builder-sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

/* Sticky Live Preisanzeige */
.builder-price-sticky-box {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid var(--primary-blue);
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.price-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-box-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.price-big-display {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fbbf24;
}
.price-breakdown-details {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 6px;
}

.builder-group {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.builder-group:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.builder-group h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.color-picker-grid, .typography-select-grid, .project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.typography-select-grid { grid-template-columns: repeat(2, 1fr); }
.project-info-grid { grid-template-columns: 1fr; gap: 12px; }

.color-field, .select-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}
.color-field input[type="color"] {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.select-field select {
    background-color: #1e293b;
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.sub-options-container {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}
.sub-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.sub-options-container select {
    background-color: #1e293b;
    color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.effects-toggle-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.effect-toggle-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.effect-toggle-item:hover { background: rgba(255, 255, 255, 0.06); }
.effect-toggle-item input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary-blue); }
.toggle-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-text strong { font-size: 0.85rem; color: #fff; }
.toggle-text span { font-size: 0.75rem; color: #94a3b8; }

.builder-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.builder-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
}
.builder-tile:hover { background: rgba(255, 255, 255, 0.07); border-color: #64748b; }
.builder-tile.active { background: rgba(59, 130, 246, 0.15); border-color: var(--primary-blue); color: #60a5fa; }

.tile-icon { font-size: 1.2rem; }

/* Vorschau Pane */
.builder-preview-pane {
    position: relative;
    /* Allgemeine section-Abstände aus style.css hier nicht übernehmen */
    padding: 0;
    border-top: none;
}

.browser-mockup {
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid #cbd5e1;
}

/* Vorschau CTA Banner unten */
.preview-bottom-cta-banner {
    background: #0f172a;
    color: #fff;
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.preview-bottom-cta-banner h4 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.preview-bottom-cta-banner p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* GESTYLTER, HOCHWERTIGER CTA BUTTON UNTEN */
.btn-cta-tab-bottom {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 1px solid #60a5fa;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.btn-cta-tab-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.55);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.browser-top-bar {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green { background: #10b981; }

.browser-url {
    margin-left: 12px;
    font-size: 0.75rem;
    color: #64748b;
    background: #fff;
    padding: 3px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex: 1;
    max-width: 300px;
}

.browser-viewport {
    min-height: 650px;
    max-height: none;
    overflow-y: visible;
    background: #fff;
    transition: background-color 0.3s ease;
    position: relative;
}

/* FIXIERTER HEADER IN DER VORSCHAU */
.preview-header-block.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.preview-header-block {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* KUNDEN-PLATZHALTER LOGO IN DER VORSCHAU */
.client-logo-placeholder {
    font-size: 0.9rem;
    font-weight: 800;
    background: #0f172a;
    color: #fbbf24;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.prev-nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.prev-nav-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.prev-nav-links a:hover {
    color: var(--primary-blue);
}

/* SEKTIONSHINWEIS-BADGE IN DER VORSCHAU */
.section-live-badge {
    position: absolute;
    top: 12px;
    right: 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
    z-index: 5;
}

/* HEADER SLIDER */
.prev-hero-slider-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.slider-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.slider-slide.active { opacity: 1; }
.slider-slide h2 { font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.slider-slide p { opacity: 0.95; max-width: 550px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
}
.slider-dot.active { background: #ffffff; }

/* VOLLFLÄCHIGES EINZELBILD */
.prev-hero-full-bg {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/meeting-2.jpg') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 30px;
}
.prev-hero-full-bg h2 { font-weight: 800; margin-bottom: 10px; }
.prev-hero-full-bg p { opacity: 0.9; max-width: 600px; margin-bottom: 16px; line-height: 1.5; }

/* SEKTIONSTRENNUNG */
.prev-section-item {
    padding: 48px 24px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 25px -10px rgba(0,0,0,0.03);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.prev-section-item:nth-child(even) { background-color: rgba(0, 0, 0, 0.015); }
.has-hover .prev-section-item:hover { transform: translateY(-2px); }

/* ANIMATIONS-ZUSTÄNDE */
.anim-fade-up { opacity: 0; transform: translateY(60px); }
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }
.anim-fade-left { opacity: 0; transform: translateX(-80px); }
.anim-fade-left.visible { opacity: 1; transform: translateX(0); }
.anim-fade-right { opacity: 0; transform: translateX(80px); }
.anim-fade-right.visible { opacity: 1; transform: translateX(0); }

/* TYPOGRAFIE */
.size-h-normal h2, .size-h-normal h3 { font-size: 1.25rem !important; }
.size-h-large h2, .size-h-large h3 { font-size: 1.6rem !important; }
.size-h-xlarge h2, .size-h-xlarge h3 { font-size: 2.1rem !important; }

.size-t-normal p, .size-t-normal span, .size-t-normal label { font-size: 0.9rem !important; }
.size-t-large p, .size-t-large span, .size-t-large label { font-size: 1.15rem !important; }

.prev-sec-text { text-align: center; max-width: 600px; margin: 0 auto; }
.prev-sec-text h3 { font-weight: 800; margin-bottom: 12px; }
.prev-sec-text p { line-height: 1.6; }

/* TEXT & BILD / VIDEO LAYOUTS */
.prev-sec-text-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.prev-sec-text-image.align-right { direction: rtl; }
.prev-sec-text-image.align-right > * { direction: ltr; }

.img-box.rounded { border-radius: 16px; }
.img-box.shadow { box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* VIDEO SEKTION STYLING */
.prev-sec-video { max-width: 900px; margin: 0 auto; }
.video-wrapper-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    cursor: pointer;
}
.video-thumb-preview {
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.has-hover .video-thumb-preview:hover { transform: scale(1.02); }
.video-play-btn-overlay {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: background 0.2s, transform 0.2s;
}

/* ÜBER UNS SEKTION */
.prev-sec-about {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.prev-about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.about-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}
.about-stat-card .num { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 4px; }
.about-stat-card label { font-size: 0.75rem; color: #64748b; }

/* SERVICES GRID */
.prev-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 20px auto 0;
}
.prev-service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prev-service-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.prev-service-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }

/* TESTIMONIALS */
.prev-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 850px;
    margin: 20px auto 0;
}
.prev-testimonial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.prev-testimonial-card p { font-style: italic; margin-bottom: 12px; }
.prev-testimonial-card .author { font-weight: 700; font-size: 0.85rem; }

/* KONTAKTFORMULAR */
.prev-contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}
.prev-contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.form-row { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.form-row input, .form-row textarea { padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.85rem; }

/* GALERIE & LIGHTBOX */
.prev-sec-gallery { max-width: 900px; margin: 0 auto; }
.prev-sec-gallery h3 { font-weight: 800; margin-bottom: 16px; text-align: center; }
.prev-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prev-gal-item { height: 110px; border-radius: 8px; background-size: cover; background-position: center; cursor: pointer; transition: transform 0.3s ease; }

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}
.lightbox-modal.active { display: flex; }
.lightbox-content-wrapper { display: flex; justify-content: center; align-items: center; max-width: 85%; max-height: 85vh; }
.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 100; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2rem; padding: 15px; cursor: pointer; background: rgba(0,0,0,0.4); border-radius: 50%; z-index: 100; }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* FAQ AKKORDEON */
.prev-sec-faq { max-width: 650px; margin: 0 auto; }
.prev-sec-faq h3 { font-weight: 800; margin-bottom: 20px; text-align: center; }
.prev-faq-list { display: flex; flex-direction: column; gap: 10px; }
.prev-faq-item { background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; transition: all 0.25s ease; cursor: pointer; }
.prev-faq-header { padding: 14px 18px; font-size: 0.9rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.prev-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 18px; font-size: 0.85rem; line-height: 1.5; color: #475569; }
.prev-faq-item.open .prev-faq-body { max-height: 250px; padding: 0 18px 16px 18px; }
.prev-faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform 0.3s ease; font-size: 0.8rem; }

/* FOOTER */
.preview-footer-block { background: #0f172a; color: #94a3b8; padding: 30px 24px 20px; }
.footer-top-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col-about h5, .footer-col-links h5, .footer-col-legal h5 { color: #fff; font-size: 0.9rem; margin-bottom: 8px; font-weight: 700; }
.footer-col-about p { font-size: 0.75rem; line-height: 1.5; }
.footer-col-links ul, .footer-col-legal ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-col-links a, .footer-col-legal a { color: #94a3b8; font-size: 0.75rem; text-decoration: none; }
.footer-bottom-row { text-align: center; font-size: 0.7rem; opacity: 0.7; }

/* Sektionsarten: kompakte Kacheln, drei pro Reihe */
.section-control-group .builder-options-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.section-control-group .builder-tile { padding: 9px 4px; font-size: 0.7rem; gap: 4px; line-height: 1.2; }
.section-control-group .tile-icon { font-size: 1.05rem; }

/* ==========================================
   VORSCHAU-FENSTER (zeigt vorschau.php)
   ========================================== */
.browser-top-bar { flex-wrap: wrap; }
.device-switch { margin-left: auto; display: flex; gap: 4px; background: #e2e8f0; padding: 3px; border-radius: 8px; }
.device-btn { border: none; background: transparent; color: #475569; font-size: 0.78rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.device-btn.active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.preview-frame-wrap { background: #e2e8f0; display: flex; justify-content: center; overflow: hidden; }
/* Desktop-Vorschau: Fenster in 1440 px Breite, verkleinert und aus dem Seitenfluss genommen */
.builder-preview-pane, .browser-mockup, .preview-frame-wrap { min-width: 0; }
.preview-frame-wrap.is-scaled { position: relative; display: block; width: 100%; }
.preview-frame-wrap.is-scaled .preview-frame { position: absolute; top: 0; left: 0; max-width: none; transition: opacity 0.2s ease; }
.preview-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 210px);
    min-height: 560px;
    border: 0;
    background: #ffffff;
    transition: width 0.35s ease, opacity 0.2s ease;
}
.preview-frame.is-loading { opacity: 0.75; }
.browser-mockup[data-device="tablet"] .preview-frame { width: 820px; max-width: 100%; }
.browser-mockup[data-device="mobile"] .preview-frame { width: 390px; max-width: 100%; }
.builder-preview-pane { position: sticky; top: 20px; }
.preview-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.btn-order { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); border-color: #fbbf24; color: #0f172a !important; text-decoration: none; }
.sub-check { cursor: pointer; gap: 10px; }
.sub-check input { width: 18px; height: 18px; accent-color: var(--primary-blue); }
.sub-check small { color: #64748b; }
.sub-check.is-disabled span { opacity: 0.75; }

/* ==========================================
   AUSZIEHBARES PANEL (Griff, Hintergrund, Schließen-Button)
   Auf dem Desktop unsichtbar, die Sidebar bleibt dort wie gehabt.
   ========================================== */
.sheet-handle,
.sheet-backdrop,
.sheet-close-btn {
    display: none;
}

/* ==========================================
   TABLET & SMARTPHONE: KONFIGURATOR
   ========================================== */
@media (max-width: 1024px) {
    .builder-main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

    .builder-hero-bar { padding: 16px; }
    .hero-bar-container { flex-direction: column; text-align: center; gap: 12px; }
    .builder-hero-content p { margin-bottom: 12px; }
    .prominent-picker { padding: 10px 14px; max-width: 100%; }
    .picker-buttons { flex-wrap: wrap; justify-content: center; gap: 6px; }

    .builder-workspace {
        grid-template-columns: 1fr;
        padding: 0 12px;
        margin-top: 16px;
        gap: 0;
    }
    /* Verhindert, dass ein breites Menü in der Vorschau die Seite seitlich aufzieht */
    .builder-preview-pane, .browser-mockup, .browser-viewport { min-width: 0; max-width: 100%; }

    /* Sidebar wird zum Panel am unteren Rand */
    .builder-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 3000;
        height: 82vh;
        height: 82dvh;
        max-height: none;
        padding: 0;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
        transform: translateY(calc(100% - 76px));
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }
    .builder-sidebar.sheet-open { transform: translateY(0); }
    .builder-sidebar.sheet-dragging { transition: none; }

    .sheet-handle {
        display: block;
        width: 100%;
        flex-shrink: 0;
        background: #0f172a;
        border: none;
        border-bottom: 1px solid var(--border-color);
        color: #fff;
        padding: 8px 18px 14px;
        cursor: grab;
        touch-action: none;
        text-align: left;
        font: inherit;
        -webkit-tap-highlight-color: transparent;
    }
    .sheet-handle:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: -2px; }
    .sheet-grip {
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 3px;
        background: #475569;
        margin: 0 auto 10px;
    }
    .sheet-handle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .sheet-handle-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .sheet-arrow {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border-radius: 50%;
        background: var(--primary-blue);
        color: #fff;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    .sheet-open .sheet-arrow { transform: rotate(180deg); }
    .sheet-handle-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
    .sheet-handle-text strong { font-size: 1rem; }
    .sheet-handle-text small { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sheet-handle-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex-shrink: 0; }
    .sheet-handle-price strong { font-size: 1.35rem; font-weight: 800; color: var(--primary); }
    .sheet-handle-price small { font-size: 0.7rem; color: var(--text-muted); }

    .sheet-body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
    }

    /* Der Preis steht im Griff, im Panel reicht die Aufschlüsselung */
    .builder-price-sticky-box { position: static; box-shadow: none; margin-bottom: 20px; }

    .sheet-close-btn {
        display: block;
        width: 100%;
        margin-top: 8px;
        padding: 14px;
        border-radius: 12px;
        border: none;
        background: var(--primary-blue);
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
    }

    .sheet-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2999;
        background: rgba(2, 6, 23, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sheet-is-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
    body.sheet-is-open { overflow: hidden; }

    /* Größere Tippflächen */
    .select-field select { font-size: 16px; padding: 12px; }
    .count-btn-side { padding: 12px 0; }
    .builder-options-grid { grid-template-columns: repeat(2, 1fr); }

    .browser-mockup { border-radius: 12px; }
    .builder-preview-pane { position: relative; top: 0; }
    .preview-frame { height: calc(100vh - 230px); height: calc(100dvh - 230px); min-height: 480px; }
    .device-switch { display: none; }
    .browser-url { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 600px) {
    .builder-top-logo { font-size: 1.35rem; }
    .builder-hero-content h1 { font-size: 1.35rem; }
    .builder-hero-content p { display: none; }
    .picker-label { font-size: 0.7rem; }
    .count-btn { padding: 8px 14px; }
    .btn-preview-top-small { width: 100%; justify-content: center; }
    .hero-bar-right { width: 100%; }
    .color-picker-grid { grid-template-columns: repeat(3, 1fr); }
    .typography-select-grid { grid-template-columns: 1fr; }
    .browser-dot { display: none; }
    .browser-url { margin-left: 0; }
}

/* ==========================================
   MOBILE VORSCHAU (Konfigurator, Vollbild-Vorschau und Projektdatei)
   Die Vorschau-Inhalte haben viele Inline-Styles, deshalb !important.
   ========================================== */
@media (max-width: 760px) {
    /* Kopfzeile: Logo oben, Menü darunter waagerecht wischbar */
    .preview-header-block,
    .full-preview-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px !important;
    }
    .prev-nav-links {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        gap: 18px !important;
        font-size: 0.85rem !important;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .prev-nav-links::-webkit-scrollbar { display: none; }
    .prev-nav-links span { flex-shrink: 0; }

    /* Sektionen */
    .prev-section-item { padding: 24px 16px 32px; }
    .full-section { padding: 24px 16px 40px !important; }
    .section-live-badge {
        position: static;
        display: inline-block;
        margin-bottom: 14px;
    }

    /* Header-Bereich */
    .prev-hero-slider-container,
    .prev-hero-full-bg { height: 60vh !important; min-height: 320px; padding: 0 16px; }
    .slider-slide { padding: 0 48px; }
    .slider-slide h1, .slider-slide h2,
    .prev-hero-full-bg h1, .prev-hero-full-bg h2 { font-size: 1.7rem !important; line-height: 1.2; }
    .slider-slide p, .prev-hero-full-bg p { font-size: 1rem !important; }
    .slider-arrow { font-size: 1rem; padding: 6px 10px; }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }

    /* Alle mehrspaltigen Raster untereinander */
    .prev-services-grid,
    .prev-testimonials-grid,
    .prev-sec-about,
    .prev-sec-text-image,
    .footer-top-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .prev-sec-text-image.align-right { direction: ltr; }
    .prev-about-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .about-stat-card { padding: 14px !important; }
    .about-stat-card .num { font-size: 1.5rem !important; }
    .prev-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .prev-gal-item { height: 130px !important; }
    .prev-service-card { padding: 20px !important; }

    .layout-half, .layout-overlay { padding: 24px 16px !important; }
    .img-box { height: 220px !important; }
    .video-thumb-preview { height: 220px !important; }
    .prev-contact-box { padding: 18px !important; }

    .preview-bottom-cta-banner { padding: 40px 16px !important; }
    .preview-bottom-cta-banner h2 { font-size: 1.5rem !important; }
    .preview-bottom-cta-banner .btn { width: 100%; padding: 14px 16px !important; font-size: 1rem !important; }
    .preview-footer-block { padding: 32px 16px 24px !important; }

    /* Lightbox */
    .lightbox-content-wrapper { max-width: 100%; padding: 0 8px; }
    .lightbox-close { top: 12px; right: 16px; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox-prev, .lightbox-next { font-size: 1.4rem; padding: 10px; }
}
/* ==========================================
   SEITENLEISTE: ZWEI BEREICHE, INFO-HINWEISE, GRÖSSERE SCHRIFT
   ========================================== */
.builder-zone { border-radius: 16px; padding: 18px 16px 6px; margin: 0 -8px 22px; }
.zone-theme { background: #f1f5f9; color: #0f172a; }
.zone-sections { background: #0b1222; border: 1px solid rgba(251, 191, 36, 0.35); }
.zone-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.zone-title small { flex-basis: 100%; font-size: 0.85rem; font-weight: 500; opacity: 0.7; }
.zone-num { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; background: var(--primary-blue); color: #fff; }
.zone-sections .zone-num { background: var(--primary); color: #0f172a; }
.zone-sections .zone-title { color: #fff; }

/* Heller Bereich: Farben anpassen */
.zone-theme .builder-group { border-bottom-color: rgba(15, 23, 42, 0.1); }
.zone-theme .builder-group h3 { color: #1d4ed8; }
.zone-theme .select-field, .zone-theme .color-field { color: #334155; }
.zone-theme .select-field select { background-color: #ffffff; color: #0f172a; border-color: #cbd5e1; }
.zone-theme .color-field input[type="color"] { border-color: #cbd5e1; background: #fff; }
.zone-theme .effect-toggle-item { background: #ffffff; border-color: #e2e8f0; }
.zone-theme .effect-toggle-item:hover { background: #f8fafc; border-color: #93c5fd; }
.zone-theme .toggle-text strong { color: #0f172a; }
.zone-theme .toggle-text span { color: #475569; }

/* Mindestens 13 bis 14 px für Beschriftungen */
.color-field, .select-field { font-size: 0.875rem; font-weight: 600; }
.select-field select { font-size: 0.95rem; }
.toggle-text strong { font-size: 0.95rem; }
.toggle-text span { font-size: 0.85rem; }
.sub-options-container { font-size: 0.875rem; }
.sub-options-container select { font-size: 0.875rem; padding: 6px 8px; }
.section-control-group .builder-tile { font-size: 0.8rem; }
.builder-group h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.color-picker-grid { grid-template-columns: repeat(2, 1fr); }

/* Info-Hinweis (i) */
.info { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; cursor: help; text-transform: none; letter-spacing: 0; }
.info-i { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-blue); color: #fff; font: italic 700 12px/18px Georgia, serif; text-align: center; }
.info-box {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 260px;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    font: 400 0.85rem/1.5 system-ui, sans-serif;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.info-box strong { color: #fbbf24; font-weight: 700; }
.info:hover .info-box, .info:focus .info-box, .info.is-open .info-box { opacity: 1; visibility: visible; }
.builder-sidebar { overflow-x: visible; }

/* Kontrast-Hinweis */
.contrast-warning { margin-top: 12px; background: #fef3c7; border: 1px solid #f59e0b; color: #78350f; border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; line-height: 1.45; }
.contrast-warning strong { display: block; margin-bottom: 2px; }

/* Parallax-Hinweis in der Sektion */
.sub-note { font-size: 0.8rem; color: #fbbf24; background: rgba(251, 191, 36, 0.1); border-radius: 6px; padding: 6px 8px; }
.price-flash { animation: price-flash 1.2s ease; }
@keyframes price-flash { 0%, 100% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); } 30% { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.8); } }

/* Vorschau-Leiste ohne Mac-Fensterpunkte */
.preview-label { font-size: 0.85rem; font-weight: 700; color: #334155; }
@media (max-width: 600px) { .info-box { width: 220px; left: auto; right: -20px; transform: none; } }

.reset-link { background: none; border: none; color: #93c5fd; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ==========================================
   MOBIL: PANEL „WEBSITE GESTALTEN“ DEUTLICH SICHTBAR
   ========================================== */
@media (max-width: 1024px) {
    .sheet-handle {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #0f172a;
        border-bottom: none;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 30px rgba(251, 191, 36, 0.35);
    }
    .sheet-grip { background: rgba(15, 23, 42, 0.35); }
    .sheet-handle-text strong { font-size: 1.08rem; font-weight: 800; color: #0f172a; }
    .sheet-handle-text small { color: rgba(15, 23, 42, 0.75); font-weight: 600; }
    .sheet-handle-price strong { color: #0f172a; }
    .sheet-handle-price small { color: rgba(15, 23, 42, 0.7); }
    .sheet-arrow { background: #0f172a; color: #fbbf24; width: 36px; height: 36px; font-size: 0.9rem; }

    /* Aufmerksamkeit: zweimal kurz hochhüpfen, Pfeil pulsiert bis zum ersten Öffnen */
    .builder-sidebar.sheet-attention:not(.sheet-open) { animation: sheet-bounce 1.6s ease 0.8s 2; }
    .sheet-attention:not(.sheet-open) .sheet-arrow { animation: arrow-pulse 1.6s ease-in-out infinite; }
}
@keyframes sheet-bounce {
    0%, 100% { transform: translateY(calc(100% - 76px)); }
    25% { transform: translateY(calc(100% - 118px)); }
    45% { transform: translateY(calc(100% - 76px)); }
    60% { transform: translateY(calc(100% - 96px)); }
    75% { transform: translateY(calc(100% - 76px)); }
}
@keyframes arrow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.45); transform: translateY(0); }
    50% { box-shadow: 0 0 0 9px rgba(15, 23, 42, 0); transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    .builder-sidebar.sheet-attention, .sheet-attention .sheet-arrow { animation: none !important; }
}
