/* =========================================================
   CodeRoom Content Pages
   Reusable landing-page style for Hugo/Eclectic standard pages
   ========================================================= */

/* Eclectic reset */
.meta.content article:has(.cr-page--standalone) > h1.title,
.meta.content article:has(.cr-page--standalone) > h1:first-child,
.meta.content article:has([class*="--standalone"]) > h1.title,
.meta.content article:has([class*="--standalone"]) > h1:first-child {
    display: none !important;
}

.meta.content:has(.cr-page--standalone),
.meta.content:has([class*="--standalone"]) {
    padding: 0 !important;
    background: transparent !important;
}

    .meta.content:has(.cr-page--standalone) > article,
    .meta.content:has([class*="--standalone"]) > article {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }


body:has(.cr-page--standalone) .meta.content.with-background,
body:has([class*="--standalone"]) .meta.content.with-background {
    background-color: transparent !important;
}

.meta.content:has(.cr-page--standalone) article,
.meta.content:has(.cr-page--standalone) article *,
.meta.content:has([class*="--standalone"]) article,
.meta.content:has([class*="--standalone"]) article *,
.cr-page--standalone,
.cr-page--standalone * {
    animation: none !important;
}

/* Base */
.cr-page,
.cr-page * {
    box-sizing: border-box;
}

.cr-page {
    width: 100%;
    margin: 0;
    color: #111827;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 34rem), linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

    .cr-page,
    .cr-page p,
    .cr-page li,
    .cr-page span,
    .cr-page label {
        text-align: left !important;
        word-spacing: normal !important;
        letter-spacing: normal;
    }

        .cr-page a::before {
            content: none !important;
        }

        .cr-page img {
            display: block;
            max-width: 100%;
            height: auto;
        }

/* Layout containers */
.cr-hero,
.cr-section,
.cr-split,
.cr-final-cta {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Hero */
.cr-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 48px;
    align-items: center;
    padding: 78px 0 56px;
}

.cr-hero__content h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    color: #0f172a;
}

.cr-lead {
    max-width: 720px;
    margin: 0 0 30px;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.7;
    color: #475569;
}

.cr-hero__media,
.cr-split__media {
    padding: 14px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

    .cr-hero__media img,
    .cr-split__media img {
        border-radius: 22px;
    }

/* Sections */
.cr-section {
    padding: 70px 0;
}

.cr-section--accent {
    width: 100%;
    max-width: none;
    margin: 40px 0;
    padding: 76px max(20px, calc((100vw - 1180px) / 2));
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
}

.cr-section--muted {
    padding: 70px 40px;
    border-radius: 36px;
    background: #f1f5f9;
}

.cr-section__intro {
    max-width: 820px;
    margin-bottom: 34px;
}

    .cr-section__intro h2,
    .cr-split__content h2,
    .cr-final-cta h2 {
        margin: 0 0 16px;
        font-size: clamp(2rem, 3.2vw, 3.2rem);
        line-height: 1.04;
        letter-spacing: -0.04em;
        color: #0f172a;
    }

    .cr-section__intro p,
    .cr-split__content p,
    .cr-card p,
    .cr-final-cta p {
        font-size: 1.04rem;
        line-height: 1.72;
        color: #475569;
    }

.cr-section--accent .cr-section__intro h2,
.cr-section--accent .cr-section__intro p,
.cr-section--accent .cr-kicker {
    color: #ffffff;
}

.cr-kicker {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: #2563eb;
}

/* Buttons */
.cr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.cr-actions--center {
    justify-content: center;
}

.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .cr-btn:hover {
        transform: translateY(-2px);
    }

.cr-btn--primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.cr-btn--secondary {
    color: #1e3a8a !important;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* Cards */
.cr-card-grid {
    display: grid;
    gap: 22px;
}


.cr-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cr-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.075);
}

.cr-card__icon {
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.cr-card h3 {
    margin: 0 0 9px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.cr-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.62;
}

.cr-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

    .cr-card h3 {
        margin: 0 0 10px;
        font-size: 1.22rem;
        line-height: 1.25;
        color: #0f172a;
    }

    .cr-card p {
        margin: 0;
    }

.cr-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: #2563eb;
}

.cr-section--accent .cr-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

    .cr-section--accent .cr-card h3 {
        color: #ffffff;
    }

    .cr-section--accent .cr-card p {
        color: #cbd5e1;
    }

/* Layout screenshot section */
.cr-section--layouts {
    width: 100%;
    max-width: none;
    margin: 40px 0;
    padding: 76px max(24px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    background: radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.28), transparent 25rem), radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.36), transparent 30rem), linear-gradient(135deg, #0f172a 0%, #172554 52%, #1e3a8a 100%) !important;
}

    .cr-section--layouts .cr-section__intro {
        max-width: 880px;
        margin-bottom: 32px;
    }

        .cr-section--layouts .cr-section__intro h2 {
            max-width: 760px;
        }

.cr-layout-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cr-layout-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 24px !important;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)) !important;
    border: 1px solid rgba(147, 197, 253, 0.24) !important;
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.24) !important;
}

    .cr-layout-card h3 {
        margin-bottom: 10px;
    }

    .cr-layout-card p {
        margin-bottom: 20px;
    }

.cr-layout-shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: auto;
}

    .cr-layout-shots a {
        display: block;
        min-width: 0;
        padding: 6px;
        border-radius: 18px;
        overflow: hidden;
        background: rgba(226, 232, 240, 0.34);
        border: 1px solid rgba(191, 219, 254, 0.35);
        box-shadow: 0 14px 32px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.30);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

        .cr-layout-shots a:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.62);
            box-shadow: 0 22px 46px rgba(2, 6, 23, 0.32), 0 0 0 1px rgba(125, 211, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
        }

    .cr-layout-shots img {
        width: 100%;
        height: 118px;
        object-fit: cover;
        object-position: top left;
        border-radius: 13px;
        background: #ffffff;
    }

/* Split sections */
.cr-split {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: 46px;
    align-items: center;
    padding: 72px 0;
}

.cr-split--reverse .cr-split__media {
    order: 2;
}

.cr-split__content {
    max-width: 620px;
}

    .cr-split__content p {
        margin: 0 0 16px;
    }

.cr-check-list {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

    .cr-check-list li {
        position: relative;
        padding-left: 30px;
        font-size: 1.02rem;
        line-height: 1.55;
        color: #334155;
    }

        .cr-check-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            font-weight: 900;
            color: #2563eb;
        }

/* Final CTA */
.cr-final-cta {
    margin-top: 46px;
    margin-bottom: 76px;
    padding: 58px 34px;
    border-radius: 36px;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(125, 211, 252, 0.28), transparent 28rem), linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

    .cr-final-cta .cr-kicker,
    .cr-final-cta h2,
    .cr-final-cta p {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .cr-final-cta p {
        max-width: 680px;
        margin-bottom: 26px;
    }

/* Responsive */
@media (max-width: 980px) {
    .cr-hero,
    .cr-split {
        grid-template-columns: 1fr;
    }

    .cr-split--reverse .cr-split__media {
        order: 0;
    }

    .cr-card-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cr-layout-card-grid {
        grid-template-columns: 1fr;
    }

    .cr-layout-shots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .cr-layout-shots img {
            height: 86px;
        }

    .cr-hero {
        padding-top: 52px;
    }
}

@media (max-width: 760px) {
    .cr-card-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cr-hero,
    .cr-section,
    .cr-split,
    .cr-final-cta {
        width: min(100% - 24px, 1180px);
    }

    .cr-section {
        padding: 48px 0;
    }

    .cr-section--accent {
        width: 100%;
        padding: 56px 12px;
    }

    .cr-section--layouts {
        width: 100%;
        padding: 56px 12px;
    }

    .cr-section--muted {
        padding: 48px 18px;
        border-radius: 28px;
    }

    .cr-card,
    .cr-layout-card {
        padding: 22px !important;
        border-radius: 24px;
    }

    .cr-layout-shots {
        grid-template-columns: 1fr;
    }

        .cr-layout-shots img {
            height: 128px;
        }

    .cr-hero__media,
    .cr-split__media {
        padding: 9px;
        border-radius: 24px;
    }

        .cr-hero__media img,
        .cr-split__media img {
            border-radius: 18px;
        }

    .cr-actions,
    .cr-actions--center {
        align-items: stretch;
        flex-direction: column;
    }

    .cr-btn {
        width: 100%;
    }

    .cr-final-cta {
        padding: 44px 20px;
        margin-bottom: 52px;
    }
}


/* ===============================
   Layout Section FIX
   =============================== */

.cr-layout-group {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}

    .cr-layout-group h3 {
        margin-bottom: 8px;
        font-size: 1.3rem;
        color: #ffffff;
    }

    .cr-layout-group p {
        margin-bottom: 18px;
        color: #cbd5e1;
    }

/* GRID: DAS IST DER WICHTIGE TEIL */
.cr-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

    /* SCREEN CONTAINER */
    .cr-layout-grid a {
        display: block;
        padding: 10px;
        border-radius: 20px;
        background: linear-gradient( 145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06) );
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
        transition: all 0.2s ease;
    }

    /* SCREEN */
    .cr-layout-grid img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        object-position: top left;
        border-radius: 14px;
        background: #ffffff;
    }

    /* HOVER */
    .cr-layout-grid a:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 28px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(125,211,252,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
    }

/* MOBILE */
@media (max-width: 900px) {
    .cr-layout-grid {
        grid-template-columns: 1fr;
    }

        .cr-layout-grid img {
            height: 200px;
        }
}
