/* HERO */
.ps-hero {
display:grid;
grid-template-columns: 1fr 420px;
gap:20px;
}

/* LIST */
.ps-list {
padding-left:18px;
font-size:0.85rem;
color:rgba(199,210,254,0.9);
}

/* SCAN CARD */
.scan-card {
background: rgba(8,10,22,0.95);
border:1px solid rgba(120,144,255,0.4);
border-radius:16px;
padding:16px;
box-shadow:0 20px 40px rgba(0,0,0,0.7);
}

/* HEADER */
.scan-header {
font-size:0.9rem;
margin-bottom:10px;
display:flex;
align-items:center;
gap:6px;
}

.scan-dot {
width:8px;
height:8px;
border-radius:50%;
background:#22c55e;
box-shadow:0 0 10px #22c55e;
}

/* FORM */
.scan-form {
display:flex;
gap:8px;
}

.scan-form input {
flex:1;
background:#020617;
border:1px solid rgba(120,144,255,0.5);
border-radius:8px;
padding:8px;
color:#38bdf8;
font-family:monospace;
}

.scan-form button {
background:linear-gradient(90deg,#2563eb,#4f46e5);
border:none;
border-radius:8px;
padding:8px 14px;
color:white;
cursor:pointer;
}

/* STATUS */
#scanStatus {
font-size:12px;
color:#38bdf8;
margin-top:6px;
}

/* RESULT */
.scan-result {
display:none;
margin-top:10px;
}

.score-circle {
width:60px;
height:60px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
border:1px solid rgba(120,144,255,0.5);
margin-bottom:10px;
}

/* INFO */
.scan-info {
font-size:0.75rem;
color:rgba(148,163,184,0.8);
margin-top:8px;
}

/* EXPLAIN */
.ps-explain {
margin-top:20px;
display:grid;
grid-template-columns: repeat(3,1fr);
gap:16px;
}

/* MOBILE */
@media (max-width:900px){
.ps-hero {
grid-template-columns:1fr;
}
.ps-explain {
grid-template-columns:1fr;
}
}
.scan-result {
    display: none;
    margin-top: 14px;
}

.score-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 144, 255, 0.5);
    margin-bottom: 14px;
    background:
        radial-gradient(circle at 20% 20%, rgba(59,130,246,0.18), transparent 60%),
        rgba(3,7,18,0.92);
    box-shadow: 0 0 18px rgba(37,99,235,0.18);
}

.score-circle span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e5f0ff;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#findings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finding-item {
    border-radius: 12px;
    border: 1px solid rgba(120, 144, 255, 0.22);
    background: rgba(10, 12, 24, 0.82);
    padding: 10px 12px;
}

.finding-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f3f6ff;
    margin-bottom: 4px;
}

.finding-detail {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(199, 210, 254, 0.88);
    word-break: break-word;
}

.finding-pass {
    border-color: rgba(34, 197, 94, 0.35);
}

.finding-warn {
    border-color: rgba(250, 204, 21, 0.35);
}

.finding-fail {
    border-color: rgba(239, 68, 68, 0.35);
}

.finding-info {
    border-color: rgba(59, 130, 246, 0.35);
}

.scan-empty {
    font-size: 0.82rem;
    color: rgba(199, 210, 254, 0.75);
}
/* =========================
   RESULTS SECTION
========================= */

.ps-results {
    margin-top: 20px;
    display: none;
}

/* Findings Grid */
#findings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Summary */
.summary-box {
    display: flex;
    gap: 14px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: rgba(199,210,254,0.9);
}

/* Mini result oben */
.scan-mini-result {
    display: none;
    margin-top: 10px;
}

/* Scanner wieder klein halten */
.ps-right {
    width: 380px;
}

.ps-hero {
    grid-template-columns: 1fr 380px;
}

.fix-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.fix-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #38bdf8;
}

.fix-desc {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.fix-code {
    background: #020617;
    padding: 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
}

.fix-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.fix-title {
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 4px;
}

.fix-desc {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.fix-code {
    background: #020617;
    padding: 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
}

.fix-box.locked {
    opacity: 0.6;
    text-align: center;
    font-style: italic;
}

.summary-locked-hint {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
}
.summary-cta {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(0, 200, 255, 0.06);
    border: 1px solid rgba(0, 200, 255, 0.2);
    text-align: center;
}

.cta-text {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

/* ===== HERO LAYOUT ===== */

.ps-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 40px 0 20px 0;
    align-items: start;
}

.ps-left {
    padding-top: 10px;
}

.ps-right {
    display: flex;
    justify-content: flex-end;
}

/* SCAN CARD größer + dominanter */
.scan-card {
    width: 100%;
    max-width: 420px;
    padding: 22px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Mehr Abstand oben generell */
.main {
    padding: 0px 16px 30px !important;
}

/* Buttons entfernen später optisch kompensieren */
.ps-actions {
    display: none;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
}

/* Farben */

.score-red .score-circle {
    background: rgba(255, 0, 0, 0.15);
    color: #ef4444;
}

.score-yellow .score-circle {
    background: rgba(255, 200, 0, 0.15);
    color: #facc15;
}

.score-green .score-circle {
    background: rgba(0, 255, 100, 0.15);
    color: #22c55e;
}

/* 🔥 ELITE */
.score-green-elite .score-circle {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #022c22;
    box-shadow: 0 0 25px rgba(34,197,94,0.6);
}

.ps-highlight {
    margin-top: 14px;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
}
.ps-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 80px 0 40px 0; /* 🔥 mehr luft oben */
    align-items: center;
}


/* SCAN RECHTS – MEHR FOKUS */
.ps-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SCAN CARD größer + mehr visuell */
.scan-card {
    width: 100%;
    max-width: 460px;
    padding: 26px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
}
.main-header {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Organisation Badge */
.main-header-company {
    margin-top: 6px;
}
@media (max-width: 900px) {

    .ps-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 20px 0;
    }

    /* 🔥 SCAN NACH OBEN = FOKUS */
    .ps-right {
        order: -1;
    }

    .scan-card {
        max-width: 100%;
        padding: 20px;
    }

    /* TEXT */
    .ps-left h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .ps-left p {
        font-size: 14px;
    }

    /* LISTE kompakter */
    .ps-list {
        font-size: 13px;
        line-height: 1.5;
    }

    /* CARDS */
    .home-actions {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ps-explain {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* SCORE */
    .score-circle {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }
}
.scan-card:hover {
    transform: translateY(-3px);
    transition: 0.25s ease;
}
.scan-header {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
/* ===== Scan Loading ===== */

.scan-card {
    position: relative;
    overflow: hidden;
}

.scan-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.scan-card.scan-loading::after {
    opacity: 1;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.45) inset,
        0 0 18px rgba(56, 189, 248, 0.22),
        0 0 34px rgba(56, 189, 248, 0.18);
    animation: scanGlowPulse 1.2s ease-in-out infinite;
}

@keyframes scanGlowPulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(56, 189, 248, 0.30) inset,
            0 0 10px rgba(56, 189, 248, 0.14),
            0 0 22px rgba(56, 189, 248, 0.12);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(56, 189, 248, 0.55) inset,
            0 0 22px rgba(56, 189, 248, 0.26),
            0 0 42px rgba(56, 189, 248, 0.22);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(56, 189, 248, 0.30) inset,
            0 0 10px rgba(56, 189, 248, 0.14),
            0 0 22px rgba(56, 189, 248, 0.12);
    }
}

.scan-form button:disabled {
    opacity: 0.8;
    cursor: wait;
}

/* ===== Score ===== */

.scan-mini-result {
    display: none;
    margin-top: 14px;
    align-items: center;
    justify-content: flex-start;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    border: 1px solid rgba(120, 144, 255, 0.28);
    transition: all 0.25s ease;
}

.score-red .score-circle {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.14);
}

.score-yellow .score-circle {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.14);
}

.score-green .score-circle {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.14);
}

.score-green-elite .score-circle {
    background: linear-gradient(135deg, rgba(34,197,94,0.95), rgba(74,222,128,0.95));
    color: #052e16;
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.35);
    border-color: rgba(74, 222, 128, 0.65);
}

/* ===== Top Risk ===== */

#topRisk {
    margin-bottom: 14px;
}

.top-risk {
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(120, 144, 255, 0.18);
    background: rgba(8, 10, 22, 0.82);
}

.top-risk-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    opacity: 0.78;
}

.top-risk-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.top-risk-detail {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(199, 210, 254, 0.9);
}

.top-risk-warning {
    border-color: rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.06);
}

.top-risk-warning .top-risk-title {
    color: #fde68a;
}

.top-risk-critical {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.06);
}

.top-risk-critical .top-risk-title {
    color: #fca5a5;
}

.top-risk-good {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.06);
    color: #bbf7d0;
}

/* ===== Summary ===== */

.summary-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(199,210,254,0.92);
}

.summary-box span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(120, 144, 255, 0.18);
}

.summary-grade {
    font-weight: 700;
}

/* ===== Fixes ===== */

.fix-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.fix-title {
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 4px;
}

.fix-desc {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.fix-code {
    background: #020617;
    padding: 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.fix-box.locked {
    opacity: 0.7;
    text-align: center;
    font-style: italic;
}

/* ===== CTA ===== */

.summary-cta {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(0, 200, 255, 0.06);
    border: 1px solid rgba(0, 200, 255, 0.2);
    text-align: center;
}

.cta-text {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.92;
}

.cta-button {
    display: inline-block;
    padding: 9px 15px;
    border-radius: 10px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .top-risk-title {
        font-size: 16px;
    }

    .top-risk-detail {
        font-size: 13px;
    }

    .summary-box {
        gap: 8px;
    }

    .score-circle {
        width: 74px;
        height: 74px;
        font-size: 22px;
    }
}

.hero-card {
    padding: 28px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.ps-right {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* Scanner hebt sich über alles */
.scan-card {
    position: relative;
    z-index: 10;
}

.scan-examples {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.5;
}

.scan-examples span {
    color: #38bdf8;
    cursor: pointer;
}

.scan-examples span:hover {
    text-decoration: underline;
}

.hero-sub {
    margin-top: 10px;
    font-size: 15px;
    opacity: 0.85;
}

.hero-desc {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.75;
}

@media (max-width: 900px) {

    .ps-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 12px 10px;
    }

    /* HERO TEXT BLOCK */
    .hero-card {
        padding: 18px;
        border-radius: 12px;
    }

    .hero-card h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero-desc {
        font-size: 13px;
    }

    /* LISTE kompakter */
    .ps-list {
        font-size: 13px;
        line-height: 1.5;
    }

    /* SCAN FULL WIDTH */
    .ps-right {
        width: 100%;
    }

    .scan-card {
        max-width: 100%;
        width: 100%;
        padding: 18px;
        transform: none; /* ❗ wichtig */
    }

    /* INPUT + BUTTON */
    .scan-form {
        flex-direction: column;
        gap: 10px;
    }

    .scan-form input {
        width: 100%;
    }

    .scan-form button {
        width: 100%;
    }

    /* EXAMPLES sauber */
    .scan-examples {
        font-size: 12px;
    }
}

.hero-card {
    max-width: 500px;
}

/* =========================
   MOBILE SIDEBAR FIX
========================= */
@media (max-width: 900px) {

    /* Layout darf Sidebar NICHT mehr pushen */
    .layout {
        display: block !important;
    }

    /* Sidebar wird Overlay */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 260px;

        transform: translateX(-100%);
        transition: transform 0.3s ease;

        z-index: 1001;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Overlay sichtbar */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(3px);

        display: none;
        z-index: 1000;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Burger Header sichtbar */
    .mobile-header {
        display: flex;
    }
}

/* =========================
   MOBILE FIX (FINAL)
========================= */
@media (max-width: 900px) {

    html, body {
        overflow-x: hidden;
    }

    /* Layout killen */
    .layout {
        display: block !important;
    }

    /* Sidebar = echtes Overlay */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 260px;

        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(.4,0,.2,1);

        z-index: 1100;
        will-change: transform;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* MAIN FULL WIDTH */
    .main {
        width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
    }

    /* Overlay (dunkel + blur) */
    .sidebar-overlay {
        position: fixed;
        inset: 0;

        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(4px);

        opacity: 0;
        pointer-events: none;
        transition: 0.25s;

        z-index: 1000;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Burger Header */
    .mobile-header {
        display: flex;
        align-items: center;
        height: 60px;
        padding: 0 14px;

        position: sticky;
        top: 0;

        z-index: 900;
        background: rgba(2,6,23,0.9);
        backdrop-filter: blur(6px);
    }
}

@media (max-width: 900px) {

    .main-header {
        display: flex;
        align-items: center; /* gleiche Höhe links/rechts */
    }

    .main-header > div:first-child {
        padding-left: 12px;   /* Abstand nach links */
        padding-top: 6px;     /* leicht nach unten */
    }

    .main-header h1 {
        margin: 0;
        line-height: 1.2;
    }

    .main-header p {
        margin-top: 2px;
        font-size: 13px;
        opacity: 0.8;
    }
}