/* Home Page */
/* VERBOTEN: Keine zentralen base- Klassen in dieser Datei überschreiben (Regel 011-ui-css-overrides.mdc). */
/* Base-Klassen (base-headline-h3 bis h5, base-hero, base-tile, base-grid, base-layout-*, etc.) → ausschließlich in theme1/base/ definiert. */
/* Verwendete Widget-Klassen (nur Referenz): */
/* - .base-layout-*, .base-hero, .base-grid, .base-tile, .base-tile-title, .base-tile-description → layout.css, widgets-hero.css, widgets-grid.css, widgets-tiles.css */

/* Hero mit Bild (Landing Page Feedback-Tool) */
.home-hero-with-image {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.home-hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.home-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.home-hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-hero-description {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.home-hero-teaser {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #555);
    margin-top: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .home-hero-with-image {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }

    .home-hero-image-wrapper {
        flex: 0 0 52%;
        max-width: 52%;
    }

    .home-hero-content {
        flex: 1;
        min-width: 0;
    }
}

/* Feature-Kacheln: mehr Text, bessere Lesbarkeit */
#feature-card-1 .base-content-text,
#feature-card-2 .base-content-text {
    line-height: 1.65;
    max-width: 100%;
}

/* Mobile/Tablet: Feature-Karten-Beschreibung und Demo-Link vollständig anzeigen (bis 767px) */
@media (max-width: 767px) {
    #home-container.base-layout-content-container {
        max-width: 100% !important;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .home-features.base-section {
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .home-features .base-grid {
        overflow-x: hidden;
        overflow-y: visible;
        grid-auto-rows: minmax(min-content, max-content);
        align-items: start;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .home-features .base-grid .base-tile {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    #feature-card-1,
    #feature-card-2 {
        overflow-x: hidden;
        overflow-y: visible;
        min-height: 0;
        height: auto;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    #feature-card-1 .base-content-text,
    #feature-card-2 .base-content-text,
    #home-embed-demo-link {
        overflow: visible !important;
        max-height: none !important;
        min-height: 0;
        height: auto !important;
        display: block;
    }

    #feature-card-1-description,
    #feature-card-2-description {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    #home-embed-demo-link {
        min-width: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #home-embed-demo-link .base-link-standard {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline;
    }
}

/* Embed-Code-Snippet (Landing Page Feedback-Tool) – hochwertige Darstellung mit Copy-Button */
.home-embed-code-wrapper {
    margin: 1rem 0 0;
    border: 1px solid var(--color-border, #d2d2d7);
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    box-sizing: border-box;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.home-embed-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 16px;
    background: var(--color-background, #fff);
    border-bottom: 1px solid var(--color-border, #d2d2d7);
    gap: 12px;
}

@media (max-width: 767px) {
    .home-embed-code-wrapper {
        overflow-x: hidden;
        overflow-y: visible;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .home-embed-code-header {
        min-width: 0;
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }

    .home-embed-code-label {
        min-width: 0;
    }

    .home-embed-code-copy {
        flex-shrink: 0;
    }

    #home-embed-code.home-embed-code {
        min-height: 4em;
        overflow-x: hidden;
        overflow-y: visible;
        white-space: pre-wrap;
        word-break: break-all;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    #home-embed-code.home-embed-code code {
        white-space: pre-wrap;
        word-break: break-all;
        overflow-wrap: break-word;
        display: block;
        min-height: 3em;
        max-width: 100%;
    }
}

.home-embed-code-label {
    font-family: var(--font-family-mono, ui-monospace, monospace);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-secondary, #86868b);
}

.home-embed-code-copy {
    font-family: var(--font-family-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid var(--color-border, #d2d2d7);
    border-radius: 8px;
    background: var(--color-background, #fff);
    color: var(--color-primary, #0071e3);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.home-embed-code-copy:hover {
    background: var(--color-primary-light, #e8f4fd);
    border-color: var(--color-primary, #0071e3);
}

.home-embed-code-copy:active {
    background: var(--color-nav-hover-bg, #f5f5f7);
}

@keyframes home-embed-code-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

.home-embed-code-copy.copied {
    background: var(--color-success, #34c759);
    border-color: var(--color-success, #34c759);
    color: var(--color-text-inverse, #fff);
    animation: home-embed-code-pulse 0.6s ease-out;
}

#home-embed-code.home-embed-code {
    margin: 0;
    padding: 1rem 1.25rem;
    font-family: var(--font-family-mono, ui-monospace, "SF Mono", Menlo, monospace);
    font-size: 0.875rem;
    line-height: 1.5;
    background: #000000;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    white-space: pre;
    box-sizing: border-box;
    max-width: 100%;
    color: #ffffff;
    font-weight: 700;
}

@media (min-width: 1024px) {
    #home-embed-code.home-embed-code {
        white-space: nowrap;
        overflow-x: auto;
    }

    #home-embed-code.home-embed-code code {
        white-space: nowrap;
    }
}

#home-embed-code.home-embed-code code {
    background: none;
    padding: 0;
    border: none;
    font-size: inherit;
    color: #ffffff;
    font-weight: 700;
}

/* Pricing Section */
.home-pricing-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .home-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-pricing-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
}

.home-pricing-card-body {
    flex: 1;
    min-height: 0;
}

.home-pricing-plan-name {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.home-pricing-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary, #2563eb);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.home-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary, #555);
}

.home-pricing-features li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.home-pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary, #2563eb);
    font-weight: 600;
}

.home-pricing-cta {
    margin: 0;
    margin-top: auto;
}

.home-pricing-cta .base-button-standard {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.home-pricing-manufacturer {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.home-pricing-manufacturer a {
    color: var(--color-text-secondary, #555);
    text-decoration: none;
}

.home-pricing-manufacturer a:hover {
    text-decoration: underline;
}

.home-pricing-card-highlight {
    border: 2px solid var(--color-primary, #2563eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Coming-Soon-Popup (Modal) */
.home-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.home-modal-overlay.is-open {
    display: flex;
}

.home-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.home-modal-box {
    position: relative;
    z-index: 1;
    background: var(--color-background, #fff);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border, #d2d2d7);
}

.home-modal-message {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--color-text, #1d1d1f);
    text-align: center;
}

.home-modal-close {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
