/* Branchen- und Shop-Muster: Grid + Modal, nutzbar auf LP und Service-Seiten. */

.muster-section {
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.muster-section .lp-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.muster-section .lp-section-head .section-title {
    margin-bottom: 0.85rem;
}

.muster-section .lp-section-head p {
    color: var(--color-text-dark);
    line-height: 1.7;
}

.lp-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    max-width: 1180px;
    margin: 0 auto;
}

.lp-proof-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: #111;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lp-proof-card:hover,
.lp-proof-card:focus-visible {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-3px);
}

.lp-proof-card:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.lp-muster-frame {
    position: relative;
    background: #0a0a0a;
}

.lp-muster-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-muster-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a3a3a;
}

.lp-muster-chrome span:nth-child(1) { background: #ff5f57; }
.lp-muster-chrome span:nth-child(2) { background: #febc2e; }
.lp-muster-chrome span:nth-child(3) { background: #28c840; }

.lp-proof-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.lp-proof-hint {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%) translateY(6px);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lp-proof-card:hover .lp-proof-hint,
.lp-proof-card:focus-visible .lp-proof-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lp-proof-caption {
    display: block;
    padding: 1rem 1.15rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-proof-tag {
    display: inline-block;
    color: var(--color-gold);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.lp-proof-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem;
}

.lp-proof-text {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

body.lp-muster-open {
    overflow: hidden;
}

body.lp-muster-open .navbar,
body.lp-muster-open #whatsapp-float {
    visibility: hidden;
    pointer-events: none;
}

body.lp-muster-open .lp-sticky-calc {
    display: none;
}

.lp-muster-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    visibility: hidden;
    pointer-events: none;
}

.lp-muster-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.lp-muster-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lp-muster-modal.is-open .lp-muster-backdrop {
    opacity: 1;
}

.lp-muster-dialog {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
    height: min(92dvh, 900px);
    max-height: min(92dvh, 900px);
    padding-top: 3.25rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lp-muster-modal.is-open .lp-muster-dialog {
    opacity: 1;
    transform: none;
}

.lp-muster-close {
    position: absolute;
    top: 0;
    right: 0.25rem;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #161616;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lp-muster-close:hover,
.lp-muster-close:focus-visible {
    background: var(--color-gold);
    color: #111;
    border-color: var(--color-gold);
}

.lp-muster-browser {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0c0c0c;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.lp-muster-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    height: 42px;
    padding: 0 14px;
    background: #171717;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lp-muster-dots {
    display: flex;
    gap: 6px;
}

.lp-muster-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.lp-muster-dots span:nth-child(1) { background: #ff5f57; }
.lp-muster-dots span:nth-child(2) { background: #febc2e; }
.lp-muster-dots span:nth-child(3) { background: #28c840; }

.lp-muster-url {
    flex: 1;
    max-width: 280px;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-muster-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #111;
    scrollbar-width: thin;
}

.lp-muster-shot {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    max-height: 46vh;
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    background: #111;
    -webkit-overflow-scrolling: touch;
}

.lp-muster-shot::-webkit-scrollbar {
    display: none;
}

.lp-muster-shot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: linear-gradient(to bottom, transparent, rgba(13, 13, 13, 0.55));
    pointer-events: none;
}

.lp-muster-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.lp-muster-copy {
    padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.15rem, 4vw, 2.25rem) 2.25rem;
    background: #0d0d0d;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.lp-muster-kicker {
    color: var(--color-gold);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.45rem;
}

.lp-muster-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    color: #fff;
    margin: 0 0 1.1rem;
    line-height: 1.2;
}

.lp-muster-copy p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin: 0 0 1rem;
    font-size: 0.98rem;
}

.lp-muster-copy .btn {
    margin-top: 0.5rem;
}

.lp-muster-intro {
    margin-bottom: 1.15rem;
}

.lp-muster-acc-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 1.35rem;
}

.lp-muster-acc {
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.lp-muster-acc[open] {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.045);
}

.lp-muster-acc summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    font-weight: 600;
    color: #fff;
}

.lp-muster-acc summary::-webkit-details-marker {
    display: none;
}

.lp-muster-acc-mark {
    flex-shrink: 0;
    color: var(--color-gold);
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 400;
}

.lp-muster-acc-mark::before {
    content: "+";
}

.lp-muster-acc[open] .lp-muster-acc-mark::before {
    content: "\2212";
}

.lp-muster-acc-body {
    padding: 0 1.15rem 1.1rem;
}

.lp-muster-acc-body p:last-of-type {
    margin-bottom: 0.75rem;
}

.lp-muster-acc-body ul {
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lp-muster-acc-body li {
    position: relative;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    font-size: 0.95rem;
}

.lp-muster-acc-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-gold);
}

@media (hover: none) {
    .lp-proof-hint {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 1024px) {
    .lp-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .lp-proof-grid {
        grid-template-columns: 1fr;
    }

    .lp-muster-modal {
        padding: 0.75rem;
    }

    .lp-muster-dialog {
        width: 100%;
        height: min(92dvh, 820px);
        max-height: min(92dvh, 820px);
        padding-top: 3rem;
    }

    .lp-muster-close {
        top: 0;
        right: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-proof-card,
    .lp-proof-hint,
    .lp-muster-backdrop,
    .lp-muster-dialog {
        transition: none;
    }
}
