/* Gemeinsames Styling der Struktur-Analyse-Komponenten. */

#structureAnalyzerApp {
    --primary:#244c7c;
    --primary-dark:#173657;
    --accent:#81ab2e;
    --success:#2f855a;
    --warning:#c66a0a;
    --error:#c53030;
    --info:#2b6cb0;
    --text:#1f2937;
    --muted:#64748b;
    --border:#dbe3ea;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:#fff !important;
}

#structureAnalyzerApp.card,
#structureAnalyzerApp.card.tool,
.content-section #structureAnalyzerApp.card.tool {
    background:#ffffff !important;
    background-color:#ffffff !important;
}
#structureAnalyzerApp .tool-box {
    background:#ffffff !important;
}
#structureAnalyzerApp *{box-sizing:border-box}
#structureAnalyzerApp .tool-box{padding:24px;border:1px solid var(--border);border-radius:12px;background:#fff !important}
#structureAnalyzerApp .form-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
#structureAnalyzerApp label{display:block;margin-bottom:7px;font-weight:700;color:var(--primary-dark)}
#structureAnalyzerApp input{width:100%;min-height:48px;padding:11px 13px;border:1px solid #b9c6d2;border-radius:6px;font:inherit}
#structureAnalyzerApp button{min-height:48px;padding:10px 18px;border:0;border-radius:6px;background:var(--primary);color:#fff;font:inherit;font-weight:750;cursor:pointer}
#structureAnalyzerApp button:hover{background:var(--primary-dark)}
#structureAnalyzerApp .hint{margin:12px 0 0;color:var(--muted);font-size:.9rem}
#structureAnalyzerApp .alert{margin-top:18px;padding:14px 16px;border:1px solid #feb2b2;border-radius:7px;background:#fff5f5;color:#9b2c2c}
#structureAnalyzerApp .score-panel{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center;margin-top:24px;padding:22px;border-radius:10px;background:var(--primary-dark);color:#fff}
#structureAnalyzerApp .score-number{font-size:3rem;line-height:1;font-weight:850}
#structureAnalyzerApp .score-caption{margin-top:7px;font-size:.88rem;opacity:.82}
#structureAnalyzerApp .score-title{margin-bottom:9px;font-size:1.1rem;font-weight:750}
#structureAnalyzerApp .score-track{height:18px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.18)}
#structureAnalyzerApp .score-fill{height:100%;border-radius:inherit}
#structureAnalyzerApp .score-summary{margin:10px 0 0;opacity:.9;color:#fff !important}
#structureAnalyzerApp .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
#structureAnalyzerApp .stat{padding:15px;border:1px solid var(--border);border-radius:8px;background:#fff}
#structureAnalyzerApp .stat-value{display:block;font-size:1.45rem;font-weight:800;color:var(--primary-dark)}
#structureAnalyzerApp .stat-label{display:block;margin-top:3px;color:var(--muted);font-size:.82rem}
#structureAnalyzerApp .section{margin-top:20px;border:1px solid var(--border);border-radius:9px;background:#fff;overflow:hidden}
#structureAnalyzerApp .section>h2{margin:0;padding:15px 18px;background:#eef3f7;color:var(--primary-dark);font-size:1.05rem}
#structureAnalyzerApp .check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}
#structureAnalyzerApp .check{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;padding:14px;border:1px solid #e8edf1;border-radius:8px;background:#fff}
#structureAnalyzerApp .check-icon{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:.78rem;font-weight:900}
#structureAnalyzerApp .status-pass .check-icon{background:var(--success)}
#structureAnalyzerApp .status-warn .check-icon{background:var(--warning)}
#structureAnalyzerApp .status-fail .check-icon{background:var(--error)}
#structureAnalyzerApp .status-info .check-icon{background:var(--info)}
#structureAnalyzerApp .check-name{font-weight:720;color:#26384b}
#structureAnalyzerApp .check-detail{margin-top:3px;color:var(--muted);font-size:.9rem}
#structureAnalyzerApp .table-wrap{overflow-x:auto}
#structureAnalyzerApp table{width:100%;border-collapse:collapse;font-size:.88rem}
#structureAnalyzerApp th,#structureAnalyzerApp td{padding:10px 12px;border-bottom:1px solid #e7edf2;text-align:left;vertical-align:top;overflow-wrap:anywhere}
#structureAnalyzerApp th{background:#f4f7fa;color:var(--primary-dark)}

/* Überschriften-Tabelle 1:1 aus der bestehenden Onpage-Analyse */
#structureAnalyzerApp .outline{width:100%;border-collapse:collapse;font-size:.9rem}
#structureAnalyzerApp .outline th,
#structureAnalyzerApp .outline td{padding:11px 12px;border-bottom:1px solid #e7edf2;text-align:left;vertical-align:top;color:var(--text) !important;background:#fff}
#structureAnalyzerApp .outline th{color:var(--primary-dark) !important;background:#f4f7fa}
#structureAnalyzerApp .outline td:nth-child(2){color:#1f2937 !important;font-weight:600}
#structureAnalyzerApp .outline tr:last-child td{border-bottom:0}
#structureAnalyzerApp .outline th:nth-child(1),#structureAnalyzerApp .outline td:nth-child(1){width:9%}
#structureAnalyzerApp .outline th:nth-child(2),#structureAnalyzerApp .outline td:nth-child(2){width:47%}
#structureAnalyzerApp .outline th:nth-child(3),#structureAnalyzerApp .outline td:nth-child(3){width:24%}
#structureAnalyzerApp .outline th:nth-child(4),#structureAnalyzerApp .outline td:nth-child(4){width:20%}
#structureAnalyzerApp .level{display:inline-block;min-width:34px;font-weight:800;color:var(--primary)}
#structureAnalyzerApp tr:last-child td{border-bottom:0}
#structureAnalyzerApp .note{margin-top:18px;padding:13px 15px;border-left:4px solid var(--accent);background:#f7faee;color:#4f5f37;font-size:.9rem}
#structureAnalyzerApp .empty{padding:14px 18px;color:var(--muted)}
@media(max-width:760px){
    #structureAnalyzerApp .form-grid,#structureAnalyzerApp .score-panel{grid-template-columns:1fr}
    #structureAnalyzerApp .stats,#structureAnalyzerApp .check-list{grid-template-columns:1fr}
    #structureAnalyzerApp .tool-box{padding:17px}
    #structureAnalyzerApp .outline{min-width:700px}
    #structureAnalyzerApp .table-wrap{overflow-x:auto}
}

/* Ergänzende Regeln der zweiten Struktur-Analyse-Ansicht */

#structureAnalyzerApp {
    --primary:#244c7c;
    --primary-dark:#173657;
    --accent:#81ab2e;
    --success:#2f855a;
    --warning:#c66a0a;
    --error:#c53030;
    --info:#2b6cb0;
    --text:#1f2937;
    --muted:#64748b;
    --border:#dbe3ea;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:transparent;
}

#structureAnalyzerApp *{box-sizing:border-box}
#structureAnalyzerApp .tool-box{padding:0;border:0;background:transparent}
#structureAnalyzerApp .form-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
#structureAnalyzerApp label{display:block;margin-bottom:7px;font-weight:700;color:var(--primary-dark)}
#structureAnalyzerApp input{width:100%;min-height:48px;padding:11px 13px;border:1px solid #b9c6d2;border-radius:6px;font:inherit;background:#fff}
#structureAnalyzerApp button{min-height:48px;padding:10px 18px;border:0;border-radius:6px;background:var(--primary);color:#fff;font:inherit;font-weight:750;cursor:pointer}
#structureAnalyzerApp button:hover{background:var(--primary-dark)}
#structureAnalyzerApp .hint{margin:12px 0 0;color:var(--muted);font-size:.9rem}
#structureAnalyzerApp .alert{margin-top:18px;padding:14px 16px;border:1px solid #feb2b2;border-radius:7px;background:#fff5f5;color:#9b2c2c}
#structureAnalyzerApp .score-panel{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center;margin-top:24px;padding:22px;border-radius:10px;background:var(--primary-dark);color:#fff}
#structureAnalyzerApp .score-number{font-size:3rem;line-height:1;font-weight:850}
#structureAnalyzerApp .score-caption{margin-top:7px;font-size:.88rem;opacity:.82}
#structureAnalyzerApp .score-title{margin-bottom:9px;font-size:1.1rem;font-weight:750}
#structureAnalyzerApp .score-track{height:18px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.18)}
#structureAnalyzerApp .score-fill{height:100%;border-radius:inherit}
#structureAnalyzerApp .score-summary{margin:10px 0 0;opacity:.9;color:#fff !important}
#structureAnalyzerApp .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
#structureAnalyzerApp .stat{padding:15px;border:1px solid var(--border);border-radius:8px;background:#fff}
#structureAnalyzerApp .stat-value{display:block;font-size:1.45rem;font-weight:800;color:var(--primary-dark)}
#structureAnalyzerApp .stat-label{display:block;margin-top:3px;color:var(--muted);font-size:.82rem}
#structureAnalyzerApp .section{margin-top:20px;border:1px solid var(--border);border-radius:9px;background:#fff;overflow:hidden}
#structureAnalyzerApp .section>h2{margin:0;padding:15px 18px;background:#eef3f7;color:var(--primary-dark);font-size:1.05rem}
#structureAnalyzerApp .check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}
#structureAnalyzerApp .check{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;padding:14px;border:1px solid #e8edf1;border-radius:8px;background:#fff}
#structureAnalyzerApp .check-icon{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:.78rem;font-weight:900}
#structureAnalyzerApp .status-pass .check-icon{background:var(--success)}
#structureAnalyzerApp .status-warn .check-icon{background:var(--warning)}
#structureAnalyzerApp .status-fail .check-icon{background:var(--error)}
#structureAnalyzerApp .status-info .check-icon{background:var(--info)}
#structureAnalyzerApp .check-name{font-weight:720;color:#26384b}
#structureAnalyzerApp .check-detail{margin-top:3px;color:var(--muted);font-size:.9rem}
#structureAnalyzerApp .table-wrap{overflow-x:auto}
#structureAnalyzerApp table{width:100%;border-collapse:collapse;font-size:.88rem}
#structureAnalyzerApp th,#structureAnalyzerApp td{padding:10px 12px;border-bottom:1px solid #e7edf2;text-align:left;vertical-align:top;overflow-wrap:anywhere}
#structureAnalyzerApp th{background:#f4f7fa;color:var(--primary-dark)}

/* Überschriften-Tabelle 1:1 aus der bestehenden Onpage-Analyse */
#structureAnalyzerApp .outline{width:100%;border-collapse:collapse;font-size:.9rem}
#structureAnalyzerApp .outline th,
#structureAnalyzerApp .outline td{padding:11px 12px;border-bottom:1px solid #e7edf2;text-align:left;vertical-align:top;color:var(--text) !important;background:#fff}
#structureAnalyzerApp .outline th{color:var(--primary-dark) !important;background:#f4f7fa}
#structureAnalyzerApp .outline td:nth-child(2){color:#1f2937 !important;font-weight:600}
#structureAnalyzerApp .outline tr:last-child td{border-bottom:0}
#structureAnalyzerApp .outline th:nth-child(1),#structureAnalyzerApp .outline td:nth-child(1){width:9%}
#structureAnalyzerApp .outline th:nth-child(2),#structureAnalyzerApp .outline td:nth-child(2){width:47%}
#structureAnalyzerApp .outline th:nth-child(3),#structureAnalyzerApp .outline td:nth-child(3){width:24%}
#structureAnalyzerApp .outline th:nth-child(4),#structureAnalyzerApp .outline td:nth-child(4){width:20%}
#structureAnalyzerApp .level{display:inline-block;min-width:34px;font-weight:800;color:var(--primary)}
#structureAnalyzerApp tr:last-child td{border-bottom:0}
#structureAnalyzerApp .note{margin-top:18px;padding:13px 15px;border-left:4px solid var(--accent);background:#f7faee;color:#4f5f37;font-size:.9rem}
#structureAnalyzerApp .empty{padding:14px 18px;color:var(--muted)}

#structureAnalyzerApp .stage-two{margin:0;padding:0;border:0}
#structureAnalyzerApp .stage-two-intro{margin:0 0 18px;color:var(--muted)}
#structureAnalyzerApp .info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
#structureAnalyzerApp .info-card{padding:18px;border:1px solid var(--border);border-radius:9px;background:#fff}
#structureAnalyzerApp .info-card h3{margin:0 0 8px;color:var(--primary-dark);font-size:1rem}
#structureAnalyzerApp .info-card p{margin:0;color:var(--muted);font-size:.92rem}
#structureAnalyzerApp .request-cta{margin:0;text-align:center}
#structureAnalyzerApp .request-cta h2{margin:0 0 8px;color:var(--primary-dark)}
#structureAnalyzerApp .request-cta p{margin:0 0 18px;color:var(--muted)}
#structureAnalyzerApp .request-cta .deep-actions{justify-content:center}
#structureAnalyzerApp .deep-form{margin:0;padding:0;border:0;background:transparent}
#structureAnalyzerApp .deep-form h2{margin:0 0 8px;color:var(--primary-dark)}
#structureAnalyzerApp .deep-form p{margin:0 0 16px;color:var(--muted)}
#structureAnalyzerApp .deep-form-shell{margin:0;padding:0;border:0;background:transparent}
#structureAnalyzerApp .deep-scope-container{margin:0}
#structureAnalyzerApp .deep-scope-heading{margin:0 0 8px;color:var(--primary-dark);font-size:1.35rem;font-weight:700}
#structureAnalyzerApp .deep-scope-text{margin:0 0 18px;color:var(--muted)}
#structureAnalyzerApp .page-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
#structureAnalyzerApp .page-type-card{display:flex;flex-direction:column;height:100%;min-height:190px;padding:18px;border:1px solid var(--border);border-radius:9px;background:#fff}
#structureAnalyzerApp .page-type-card label{margin:0 0 8px}
#structureAnalyzerApp .page-type-card small{display:block;min-height:3.9em;margin:0 0 12px;color:var(--muted);font-size:.8rem;line-height:1.3}
#structureAnalyzerApp .page-type-card input{margin-top:auto}
#structureAnalyzerApp .contact-container{margin-top:24px}
#structureAnalyzerApp .contact-container h3{margin:0 0 16px;color:var(--primary-dark)}
#structureAnalyzerApp .deep-actions-right{display:flex;justify-content:flex-end;margin-top:18px}
#structureAnalyzerApp .form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#structureAnalyzerApp .form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#structureAnalyzerApp .form-field{margin-bottom:14px}
#structureAnalyzerApp .form-field small{display:block;margin:0 0 7px;color:var(--muted);font-size:.8rem}
#structureAnalyzerApp select,#structureAnalyzerApp textarea{width:100%;padding:11px 13px;border:1px solid #b9c6d2;border-radius:6px;font:inherit;background:#fff;color:var(--text)}
#structureAnalyzerApp textarea{min-height:120px;resize:vertical}
#structureAnalyzerApp .honeypot-field{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
#structureAnalyzerApp .cool-captcha{margin-top:18px;padding:16px;border:1px solid var(--border);border-radius:8px;background:#f7f9fb}
#structureAnalyzerApp .cool-captcha h4{margin:0 0 6px;color:var(--primary-dark)}
#structureAnalyzerApp .cool-captcha p{margin:0 0 12px;color:var(--muted)}
#structureAnalyzerApp .captcha-options{display:flex;gap:12px;flex-wrap:wrap}
#structureAnalyzerApp .captcha-option{display:flex;align-items:center;justify-content:center;width:64px;height:54px;margin:0;border:1px solid #b9c6d2;border-radius:8px;background:#fff;cursor:pointer}
#structureAnalyzerApp .captcha-option input{position:absolute;opacity:0;pointer-events:none}
#structureAnalyzerApp .captcha-symbol{font-size:28px;line-height:1;color:var(--primary-dark)}
#structureAnalyzerApp .captcha-option:has(input:checked){outline:3px solid rgba(36,76,124,.18);border-color:var(--primary)}
#structureAnalyzerApp .scope-summary{margin:16px 0;padding:14px 16px;border-left:4px solid var(--accent);background:#f7faee;color:#4f5f37}
#structureAnalyzerApp .scope-total{font-weight:800;color:var(--primary-dark)}
#structureAnalyzerApp .privacy-check{display:flex;gap:10px;align-items:flex-start;margin:14px 0;color:var(--text);font-weight:400}
#structureAnalyzerApp .privacy-check input{width:auto;min-height:0;margin-top:4px}
#structureAnalyzerApp .deep-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
#structureAnalyzerApp .success-box{margin-top:16px;padding:14px 16px;border:1px solid #9ae6b4;border-radius:7px;background:#f0fff4;color:#276749}

@media(max-width:760px){
    #structureAnalyzerApp .form-grid,#structureAnalyzerApp .score-panel{grid-template-columns:1fr}
    #structureAnalyzerApp .stats,#structureAnalyzerApp .check-list,#structureAnalyzerApp .info-grid,#structureAnalyzerApp .form-grid-2,#structureAnalyzerApp .form-grid-3{grid-template-columns:1fr}
    #structureAnalyzerApp .tool-box{padding:0}
    #structureAnalyzerApp .outline{min-width:700px}
    #structureAnalyzerApp .table-wrap{overflow-x:auto}
}
@media (max-width:760px){#structureAnalyzerApp .page-type-grid{grid-template-columns:1fr}}

/* Finale IBSax-Darstellung: diese Regeln überschreiben die alten
   hellen Analyse-Komponenten nur innerhalb der Struktur-Analyse. */
#structureAnalyzerApp,
#structureAnalyzerApp.card,
#structureAnalyzerApp.card.tool,
.content-section #structureAnalyzerApp.card.tool {
    background: var(--color-main-bg) !important;
    color: #ffffff !important;
}

#structureAnalyzerApp .tool-box {
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

#structureAnalyzerApp label,
#structureAnalyzerApp .hint {
    color: #ffffff !important;
}

#structureAnalyzerApp input,
#structureAnalyzerApp select,
#structureAnalyzerApp textarea {
    background: #ffffff !important;
    color: #203665 !important;
}

#structureAnalyzerApp button {
    border: 1px solid #203665;
    background: #ffffff;
    color: #203665;
}

#structureAnalyzerApp button:hover {
    border-color: #1f8f3a;
    background: #2fa84f;
    color: #ffffff;
}

#structureAnalyzerApp .stage-two-intro,
#structureAnalyzerApp .request-cta h2,
#structureAnalyzerApp .request-cta p {
    color: #ffffff !important;
}

#structureAnalyzerApp .cool-captcha {
    border: 1px solid var(--color-lime);
    background: var(--color-main-bg);
}

#structureAnalyzerApp .cool-captcha h4,
#structureAnalyzerApp .cool-captcha p,
#structureAnalyzerApp .privacy-check,
#structureAnalyzerApp .deep-form h2,
#structureAnalyzerApp .deep-form p,
#structureAnalyzerApp .deep-scope-heading,
#structureAnalyzerApp .deep-scope-text {
    color: #ffffff !important;
}

#structureAnalyzerApp .captcha-options {
    justify-content: center;
}

#structureAnalyzerApp .captcha-symbol {
    color: #203665 !important;
}

#structureAnalyzerApp .deep-actions-right {
    justify-content: flex-start;
    margin-top: 18px;
}

#structureAnalyzerApp .contact-salutation {
    grid-column: 1 / -1;
}
