/**
 * BIBLIOTHEK.CLOUD - Hauptstylesheet
 * Design System basierend auf Masterplan 6.2
 */

/* ============================================
   Font: Plus Jakarta Sans
   ============================================ */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary: #048579;
    --color-primary-hover: #036a63;
    --color-primary-light: #e2f7f3;

    /* Dark Theme */
    --color-dark: #040720;
    --color-dark-surface: rgba(10, 14, 40, 0.98);

    /* Neutral Colors */
    --color-bg: #ffffff;
    --color-surface: #f9fafb;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #eaecef;

    /* Feedback Colors */
    --color-success: #16a34a;
    --color-warning: #f59e0b;
    --color-error: #dc2626;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-text);
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.hover\:bg-primary-hover:hover { background-color: var(--color-primary-hover); }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-dark { background-color: var(--color-dark); }

/* ============================================
   Hero Dark Section
   ============================================ */
.hero-dark {
    background: linear-gradient(135deg, #040720 0%, #0a1628 50%, #071320 100%);
}

.hero-app-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-app-icon:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Navigation
   ============================================ */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   Cards
   ============================================ */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.price-card {
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-primary-light);
}

/* ============================================
   Browser Mockup
   ============================================ */
.mockup-browser {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.mockup-header {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.mockup-browser:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Skeleton / Placeholder Styles
   ============================================ */
.skeleton-img {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

/* ============================================
   Blog Prose Styles
   ============================================ */
.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #374151;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */
@media (max-width: 768px) {
    .glass-nav {
        padding: 0 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .glass-nav,
    button,
    .bg-dark {
        display: none !important;
    }
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
/* Scroll-Reveal: Klasse bleibt rueckwaertskompatibel in app.php/prices.php,
   aber Elemente sind sofort sichtbar — kein Observer-gebundenes Einblenden mehr. */
.scroll-reveal,
.scroll-reveal.revealed {
    opacity: 1;
    transform: none;
}

.scroll-reveal-delay-1,
.scroll-reveal-delay-2,
.scroll-reveal-delay-3 { transition-delay: 0s; }

/* ============================================
   Screenshot Placeholder
   ============================================ */
.screenshot-placeholder {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f0fdfa 100%);
    border: 2px dashed #99f6e4;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    min-height: 200px;
    gap: 0.5rem;
}

.screenshot-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.screenshot-placeholder span {
    font-size: 0.875rem;
    opacity: 0.6;
    font-weight: 500;
}

/* ============================================
   Pain Point Cards
   ============================================ */
.pain-card {
    border-top: 3px solid #ef4444;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.1);
}

/* ============================================
   Package Badges
   ============================================ */
.badge-web {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-team {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: #1e293b;
    color: #e2e8f0;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* ============================================
   Chatbot Showcase (Dark Section)
   ============================================ */
.showcase-dark {
    background: linear-gradient(135deg, #0a1628 0%, #111d35 50%, #0d1a2d 100%);
}

/* ============================================
   Claim Statement
   ============================================ */
.claim-section {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f0fdfa 100%);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

.contact-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-select option {
    background: #1e293b;
    color: #fff;
}

.contact-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.contact-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
}

.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FAQ Accordion (Pure CSS/JS)
   ============================================ */
.faq-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.faq-open .faq-content {
    max-height: 500px;
}

.faq-item .faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(180deg);
}

/* ============================================
   Stats Feature-Switcher
   ============================================ */
/* Generischer Feature-Switcher (Events, Stats, etc.) */
.showcase-feature-item {
    cursor: pointer;
    padding: 0.75rem 0 0.75rem 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    transition: border-color 0.25s ease;
}

.showcase-feature-item:last-child {
    border-bottom: none;
}

.showcase-feature-item.active {
    border-left-color: var(--color-primary);
}

.showcase-feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.showcase-feature-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s;
}

.showcase-feature-item.active .showcase-feature-check {
    background-color: var(--color-primary-light);
}

.showcase-feature-title {
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.25s;
}

.showcase-feature-item.active .showcase-feature-title {
    color: #111827;
}

.showcase-feature-progress {
    display: none;
}

.showcase-feature-progress-bar {
    display: none;
}

.showcase-feature-description {
    max-height: 0;
    overflow: hidden;
    padding-left: 1.75rem;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding-top 0.4s ease;
    padding-top: 0;
}

.showcase-feature-item.active .showcase-feature-description {
    max-height: 80px;
    opacity: 1;
    padding-top: 0.375rem;
}

/* ============================================
   Showcase Bleed-Edge Grid (Home Dashboard Sections)
   ============================================ */
.showcase-bleed-grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 1024px) {
    .showcase-bleed-grid {
        max-width: none;
        padding: 0;
        grid-template-columns:
            max(1rem, calc((100vw - 80rem) / 2))
            minmax(0, 32rem)
            1fr;
        gap: 0;
    }

    .showcase-bleed-text {
        grid-column: 2;
        position: relative;
        z-index: 2;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 1rem;
        padding: 2rem 2.25rem;
        box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.2),
                    0 6px 12px -8px rgba(15, 23, 42, 0.08);
        margin-right: -4rem; /* Überlappung auf den Screenshot */
    }

    .showcase-bleed-media {
        grid-column: 3;
        position: relative;
        z-index: 1;
    }

    .showcase-bleed-media .mockup-browser {
        box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.28),
                    0 12px 24px -10px rgba(15, 23, 42, 0.15);
        background: #fff;
    }

    /* Adaptive Bildhöhe: Screenshot wird NIE beschnitten. Querformate füllen
       den Rahmen natürlich, Hochformate werden proportional verkleinert und
       mittig gesetzt — ein dezenter Farbverlauf hinter den Bildern fängt die
       seitlichen Ränder bei Portrait-Screenshots auf (Aceternity-Look). */
    .showcase-bleed-media .showcase-slides {
        background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    }

    .showcase-bleed-media .showcase-slide {
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .showcase-bleed-media .showcase-slide img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 34rem;
        object-fit: contain;
        object-position: center top;
    }

    .showcase-bleed-media .showcase-slide .screenshot-placeholder {
        width: 100%;
        min-height: 20rem;
    }

    /* Sanfte Perspektive — Bilder wirken wie auf einer Bühne */
    .showcase-bleed-media .mockup-browser {
        transform: perspective(1800px) rotateY(-2deg);
        transform-origin: center right;
        transition: transform 0.6s ease;
    }

    .showcase-bleed-media:hover .mockup-browser {
        transform: perspective(1800px) rotateY(0deg);
    }

    /* Dunkle Variante (Chatbot o.ä.), falls später benötigt */
    .showcase-dark .showcase-bleed-text {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

/* Slide-Container: überlagert, Fade+Slide-Animation */
.showcase-slides {
    position: relative;
    overflow: hidden;
}

.showcase-slide {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.showcase-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

/* ============================================
   Package Badges
   ============================================ */
.badge-web {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-team {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: #1e293b;
    color: #e2e8f0;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* ============================================
   Chatbot Showcase (Dark Section)
   ============================================ */
.showcase-dark {
    background: linear-gradient(135deg, #0a1628 0%, #111d35 50%, #0d1a2d 100%);
}

/* ============================================
   Claim Statement
   ============================================ */
.claim-section {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f0fdfa 100%);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

.contact-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-select option {
    background: #1e293b;
    color: #fff;
}

.contact-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.contact-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.12);
}

.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Sticky-Scrollytelling
   ============================================ */

.bc-sticky-story {
    --bc-accent: var(--color-primary);
    padding: 4rem 1rem;
}

.bc-sticky-story__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Media-Fenster */
.bc-sticky-story__media {
    position: relative;
}

.bc-sticky-story__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: transparent;
    overflow: visible;
}

.bc-sticky-story__screenshot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 400ms ease;
    filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.18));
}

.bc-sticky-story__screenshot.is-active {
    opacity: 1;
}

/* Schritte */
.bc-sticky-story__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bc-sticky-story__step {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border-left: 3px solid transparent;
    background: #fff;
    transition: border-color 200ms ease, background-color 200ms ease;
}

.bc-sticky-story__step.is-active {
    border-left-color: var(--bc-accent);
    background: rgba(4, 133, 121, 0.03);
}

.bc-sticky-story__step-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--bc-accent);
    margin-bottom: 0.5rem;
}

.bc-sticky-story__step-icon {
    font-size: 1.5rem;
    color: var(--bc-accent);
    margin-bottom: 0.75rem;
}

.bc-sticky-story__step-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-dark);
}

.bc-sticky-story__step-text {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.bc-sticky-story__step-details {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.7;
}

.bc-sticky-story__step-details li {
    margin-bottom: 0.25rem;
}

/* Desktop: Sticky-Layout ab 768px */
@media (min-width: 768px) {
    .bc-sticky-story {
        padding: 6rem 1rem;
    }

    .bc-sticky-story__grid {
        grid-template-columns: 7fr 5fr;
        gap: 3rem;
        align-items: start;
    }

    .bc-sticky-story__media {
        position: sticky;
        top: 96px;
        height: 80vh;
        display: flex;
        align-items: center;
    }

    .bc-sticky-story__frame {
        width: 100%;
        height: 100%;
        max-height: 100%;
        aspect-ratio: auto;
    }

    .bc-sticky-story__steps {
        gap: 0;
    }

    .bc-sticky-story__step {
        min-height: 80vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 2rem;
        background: transparent;
    }

    .bc-sticky-story__step.is-active {
        background: transparent;
    }

    .bc-sticky-story__step-title {
        font-size: 1.75rem;
    }
}

/* Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
    .bc-sticky-story__screenshot {
        transition: none;
    }
}

/* ============================================
   Bento-Mosaik
   ============================================ */

.bc-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.bc-bento-tile {
    position: relative;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: transform 150ms ease, box-shadow 150ms ease;
    overflow: hidden;
}

.bc-bento-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.2);
}

/* Spans — ab Tablet */
@media (min-width: 768px) {
    .bc-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .bc-bento-tile--wide { grid-column: span 2; }
}

@media (min-width: 1024px) {
    .bc-bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(160px, 1fr);
        gap: 1.25rem;
    }
    .bc-bento-tile--wide  { grid-column: span 2; }
    .bc-bento-tile--tall  { grid-row: span 2; }
    .bc-bento-tile--large { grid-column: span 2; grid-row: span 2; }
}

/* Tile-Typen */
.bc-bento-tile__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
}

.bc-bento-tile__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.bc-bento-tile--hero .bc-bento-tile__title,
.bc-bento-tile--large .bc-bento-tile__title {
    font-size: 2rem;
}

.bc-bento-tile__subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

.bc-bento-tile__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Hero-Tile */
.bc-bento-tile--hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #fff;
    border-color: transparent;
}

/* Screenshot-Tile */
.bc-bento-tile--screenshot {
    padding: 0;
    background: #0b1324;
    border-color: transparent;
}

.bc-bento-tile--screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bc-bento-tile__placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #334155;
}

.bc-bento-tile__caption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    color: #fff;
    font-size: 0.875rem;
    background: rgba(11, 19, 36, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

/* Stat-Tile */
.bc-bento-tile--stat {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bc-bento-tile__stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.bc-bento-tile__stat-label {
    font-size: 0.875rem;
    color: #475569;
    margin-top: 0.5rem;
}

/* Quote-Tile */
.bc-bento-tile--quote {
    background: #f8fafc;
    font-style: italic;
    justify-content: center;
}

.bc-bento-tile__quote p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.5rem;
    color: #0f172a;
}

.bc-bento-tile__quote cite {
    font-size: 0.8125rem;
    font-style: normal;
    color: #64748b;
}

/* Pain-Tile */
.bc-bento-tile--pain {
    background: #fef2f2;
    border-color: #fecaca;
}

.bc-bento-tile--pain .bc-bento-tile__icon {
    color: #dc2626;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bc-bento-tile--pain .bc-bento-tile__text {
    color: #991b1b;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Solution-Tile */
.bc-bento-tile--solution {
    background: var(--color-primary-light);
    border-color: transparent;
}

.bc-bento-tile--solution .bc-bento-tile__icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bc-bento-tile--solution .bc-bento-tile__text {
    color: #064e3b;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* Dark-Tile */
.bc-bento-tile--dark {
    background: var(--color-dark);
    color: #fff;
    border-color: transparent;
}

/* ============================================
   Marketing-Sections (Redesign)
   ============================================ */

.bc-section {
    padding: 4rem 1rem;
}

.bc-section--muted {
    background: #f8fafc;
}

.bc-section--dark {
    background: var(--color-dark);
    color: #fff;
}

.bc-section__head {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.bc-section__head h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.bc-section__head p {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

.bc-section--dark .bc-section__head p {
    color: #cbd5e1;
}

.bc-section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .bc-section { padding: 6rem 1.5rem; }
    .bc-section__head h2 { font-size: 2.5rem; }
}

/* Home-CTA */
.bc-home-cta {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.bc-home-cta__dev {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.bc-home-cta__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bc-home-cta__action {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease;
}

.bc-btn--accent {
    background: var(--color-primary);
    color: #fff;
}

.bc-btn--accent:hover { background: var(--color-primary-hover); }

.bc-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.bc-btn--ghost:hover { border-color: #fff; }

@media (min-width: 900px) {
    .bc-home-cta {
        grid-template-columns: 2fr 1fr;
    }
}

/* ============================================
   Pillars (Was ist BIBLIOTHEK.CLOUD?)
   ============================================ */

.bc-pillars {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem;
}

.bc-pillar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.bc-pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.18);
}

.bc-pillar__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bc-pillar h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 0.5rem;
}

.bc-pillar p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .bc-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .bc-pillars { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Pair-List (Problem ↔ Lösung)
   ============================================ */

.bc-pair-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bc-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: center;
}

.bc-pair__pain,
.bc-pair__solution {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    line-height: 1.5;
}

.bc-pair__pain {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.bc-pair__pain i {
    color: #dc2626;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.bc-pair__solution {
    background: var(--color-primary-light);
    border: 1px solid transparent;
    color: #064e3b;
}

.bc-pair__solution i {
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.bc-pair__pain p,
.bc-pair__solution p {
    margin: 0;
    font-weight: 500;
}

.bc-pair__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    padding: 0.25rem 0;
    animation: bcPairArrowPulse 2.4s ease-in-out infinite;
}

/* Mobile: Pfeil zeigt nach unten */
.bc-pair__arrow i {
    transform: rotate(90deg);
}

@keyframes bcPairArrowPulse {
    0%, 100% { opacity: 0.55; transform: translateY(0); }
    50%      { opacity: 1;    transform: translateY(3px); }
}

/* Desktop: drei Spalten mit horizontalem Pfeil */
@media (min-width: 900px) {
    .bc-pair {
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
    }

    .bc-pair__arrow i {
        transform: none;
    }

    @keyframes bcPairArrowPulse {
        0%, 100% { opacity: 0.55; transform: translateX(0); }
        50%      { opacity: 1;    transform: translateX(4px); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .bc-pair__arrow { animation: none; opacity: 1; }
}

/* ============================================
   Section-Label Highlight + Section-CTA
   ============================================ */

.bc-section__label--highlight {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.1em;
}

.bc-section__label--highlight i {
    margin-right: 0.35rem;
}

.bc-section__cta {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding: 0 1rem;
    text-align: center;
}

.bc-section__cta .bc-btn i {
    margin-left: 0.4rem;
}

/* ============================================
   Teaser (Chatbot)
   ============================================ */

.bc-teaser {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.bc-teaser__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(20, 184, 166, 0.15);
    color: #5eead4;
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.bc-teaser h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.bc-teaser > p {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.bc-teaser__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.bc-teaser__features div {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.bc-teaser__features i {
    color: #5eead4;
}

.bc-teaser__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .bc-teaser h2 { font-size: 2.5rem; }
}
