/* ── Fonts: GT Pressura – eigene Family pro Schnitt ── */

@font-face {
    font-family: 'GT Pressura Extended Light';
    src: url('fonts/GT-Pressura-Extended-Light.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Extended Regular';
    src: url('fonts/GT-Pressura-Extended-Regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Extended Black';
    src: url('fonts/GT-Pressura-Extended-Black.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Pressura Mono';
    src: url('fonts/GT-Pressura-Mono-Regular.woff2') format('woff2');
    font-style: normal;
    font-display: swap;
}

/* ── Typografie ───────────────────────────────────── */

body {
    background-color: #f8f9fa;
    font-family: 'GT Pressura Extended Light', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Content-Abstand unter Navbar */
body > .container-fluid {
    padding-top: 1rem;
}

h1, h2, h3, h4, h5, h6,
.card-header strong {
    font-family: 'GT Pressura Extended Black', sans-serif;
}

/* Tabellentexte: Extended Regular */
.table td {
    font-family: 'GT Pressura Extended Regular', sans-serif;
}

/* Tabellen-Header: Extended Regular */
.table th {
    font-family: 'GT Pressura Extended Regular', sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Mono fuer Daten: Badges, Code, Zahlen */
.badge,
code,
.stat-card .number,
.mono {
    font-family: 'GT Pressura Mono', 'SF Mono', 'Consolas', monospace;
}

/* Navbar-Brand: privacy bot in Mono */
.navbar-brand {
    font-family: 'GT Pressura Mono', monospace !important;
    letter-spacing: 0.02em;
}

/* Navbar-Links */
.navbar .nav-link {
    font-family: 'GT Pressura Mono', monospace;
    color: #fff !important;
    font-size: 0.8rem;
    text-decoration: none;
}
.navbar .nav-link:hover {
    text-decoration: underline;
}
.navbar .nav-link.active {
    text-decoration: underline;
}

/* Buttons */
.btn {
    font-family: 'GT Pressura Extended Regular', sans-serif;
}

/* Form Labels */
.form-label {
    font-family: 'GT Pressura Extended Regular', sans-serif;
}

/* Links: schwarz + unterstrichen */
a {
    color: #000;
    text-decoration: underline;
}
a:hover {
    color: #000;
}

/* ── Bestehende Styles ────────────────────────────── */

.badge-pre { background-color: #6c757d; }
.badge-accept { background-color: #198754; }
.badge-reject { background-color: #dc3545; }

.diff-added {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.diff-removed {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.cookie-pre-consent {
    background-color: #fff3cd;
}

/* ── Dark Mode ────────────────────────────────────── */

[data-bs-theme="dark"] body {
    background-color: #111 !important;
}

[data-bs-theme="dark"] a {
    color: #8eb4e3;
}
[data-bs-theme="dark"] a:hover {
    color: #a8c8f0;
}

[data-bs-theme="dark"] .diff-added {
    background-color: #0f2d1a;
    border-left-color: #2ecc71;
}
[data-bs-theme="dark"] .diff-removed {
    background-color: #2d0f0f;
    border-left-color: #e74c3c;
}
[data-bs-theme="dark"] .cookie-pre-consent {
    background-color: #2e2200;
}
[data-bs-theme="dark"] img.dark-invert {
    filter: invert(1);
}
/* Privacy-Score-Badges im Dark Mode */
[data-bs-theme="dark"] .score-A { background-color: #0f2d1a !important; color: #6fcf97 !important; }
[data-bs-theme="dark"] .score-B { background-color: #1a2535 !important; color: #94a3b8 !important; }
[data-bs-theme="dark"] .score-C { background-color: #2e2200 !important; color: #f6c343 !important; }
[data-bs-theme="dark"] .score-D { background-color: #2d0f0f !important; color: #f08080 !important; }

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th {
    background-color: transparent !important;
    color: #adb5bd !important;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
}

.stat-card {
    text-align: center;
    padding: 1rem;
}

.stat-card .number {
    font-size: 2rem;
}

.stat-card .label {
    color: #6c757d;
    font-size: 0.85rem;
}

.consent-column {
    min-width: 300px;
}

.truncate-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scanresult-v2-card {
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scanresult-v2-hero {
    border-left: 5px solid #0d6efd;
}

.scanresult-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.scanresult-v2-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.scanresult-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.35em 0.55em;
    border-radius: 999px;
}

.scanresult-score-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    border: 1px solid #dee2e6;
}

.scanresult-score-badge.score-A {
    background: #d1e7dd;
    color: #0f5132;
}

.scanresult-score-badge.score-B {
    background: #d8eadd;
    color: #2d4e39;
}

.scanresult-score-badge.score-C {
    background: #fff3cd;
    color: #664d03;
}

.scanresult-score-badge.score-D,
.scanresult-score-badge.score-E,
.scanresult-score-badge.score-F,
.scanresult-score-badge.score-X {
    background: #f8d7da;
    color: #842029;
}

.scanresult-coverage-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    padding: 0.45rem 0;
}

.scanresult-tooltip-target {
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.scanresult-popover-target {
    outline: none;
}

.scanresult-popover-target:focus-visible {
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.3);
}

.scanresult-evidence-popover {
    max-width: 420px;
}

.scanresult-evidence-popover .popover-body {
    white-space: pre-line;
    font-size: 0.78rem;
    line-height: 1.35;
}

.scanresult-coverage-list li:last-child {
    border-bottom: 0;
}

.security-header-row {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.65rem;
}

.security-header-row.security-ok {
    background: #f1fbf5;
    border-color: #c7e9d3;
}

.security-header-row.security-warn {
    background: #fff8e6;
    border-color: #fce8b2;
}

.security-header-row.security-bad {
    background: #fff1f2;
    border-color: #f5c2c7;
}

@media (max-width: 992px) {
    .scanresult-v2-grid {
        grid-template-columns: 1fr;
    }
}
