/* FakeShopFinder – UI Layout (Desktop + Mobile)
   Reines Styling, alle IDs/Klassen für JS bleiben erhalten.
*/

/* ===== Design Tokens ===== */

:root {
    --bg-body: #edf2ff;
    --bg-card: #ffffff;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --success: #16a34a;
    --success-strong: #166534;
    --warning: #f59e0b;
    --danger: #dc2626;
    --border-subtle: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --shadow-card: 0 28px 70px rgba(15, 23, 42, 0.14);
    --radius-card: 40px;
    --radius-soft: 20px;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
}

/* ===== Global ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(circle at top left, #e0edff 0, #edf2ff 45%, #f8fafc 100%);
    color: var(--text-main);
    overflow-x: hidden;
    /* Fix: always reserve space for vertical scrollbar to prevent page "jump" */
    overflow-y: scroll;
}

body {
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 18px;
}


/* ===== Header ===== */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #e1ebff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.logo-icon img {
    width: 30px;
    height: 30px;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 26px !important;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.app-nav {
    display: flex;
    gap: 18px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--text-main);
}

/* ===== Main Card ===== */

.app-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 0 20px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px 34px 26px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Titel + Untertitel */

.scan-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scan-title {
    font-size: 34px;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

.scan-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* ===== Formularzeile ===== */

.scan-form {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-top: 10px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 4px 4px 4px 12px;
    column-gap: 0;
}

.url-field {
    flex: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-radius: 999px;
    background: transparent;
    border: none;
}

.url-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg);
    position: relative;
}

.url-icon::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    border: 2px solid #e5e7eb;
    opacity: 0.75;
}

.url-field input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
}

.url-field input::placeholder {
    color: #9ca3af;
}

/* Button in der Gruppe */
.btn-primary {
    border-radius: 999px;
    border: none;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    position: relative;
    overflow: hidden;
    transition: transform 120ms ease-out,
                box-shadow 120ms ease-out,
                filter 120ms ease-out;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
    white-space: nowrap;
    margin-left: 4px;
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}

.btn-primary:disabled {
    opacity: 0.85;
    cursor: default;
    box-shadow: none;
}

.btn-label-loading {
    display: none;
}

.btn-primary.is-loading .btn-label-default {
    display: none;
}

.btn-primary.is-loading .btn-label-loading {
    display: inline;
}

/* ===== Status-Kreis ===== */

.scan-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Prominente Sicherheitswarnung direkt unter dem Status-Icon */
.security-banner {
    width: min(720px, 100%);
    margin: 2px auto 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.08);
    color: #7f1d1d;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 640px) {
    .security-banner {
        font-size: 12.5px;
        padding: 10px 10px;
    }
}

.status-icon {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #f3f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease-out,
                transform 160ms ease-out;
}

.status-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at 30% 0%, #f9fbff 0, #eef2ff 55%, #e5edff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon-img {
    width: 96px;
    height: 96px;
    display: block;
}

.status-icon-symbol {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 4px solid var(--accent);
    position: relative;
}

.status-icon-symbol::after {
    content: "";
    position: absolute;
    right: -14px;
    bottom: -14px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 4px solid var(--accent);
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(45deg);
}

/* Status-Farben */

.status-icon-idle {
    background: #f3f4ff;
}

.status-icon-loading {
    background: var(--accent-soft);
    animation: pulse 1s infinite ease-in-out;
}

/* Ring & kleiner Kreis: neutral grau, unabhängig vom Risiko-Level */
.status-icon-safe .status-icon-inner,
.status-icon-safe .status-icon-symbol {
    border-color: var(--border-subtle);
}

.status-icon-warning .status-icon-inner,
.status-icon-warning .status-icon-symbol {
    border-color: var(--border-subtle);
}

.status-icon-danger .status-icon-inner,
.status-icon-danger .status-icon-symbol {
    border-color: var(--border-subtle);
}

.status-text {
    font-size: 14px;
    font-weight: 700; /* make status message more prominent */
    color: var(--text-muted);
}

/* Logo-Farbanpassung je nach Risiko-Stufe (dunkler, näher an Ring-Farben) */
.status-icon-safe .status-icon-img {
    /* sattes Grün */
    filter: hue-rotate(-80deg) saturate(1.6) brightness(0.95);
}

.status-icon-warning .status-icon-img {
    /* kräftiges Gelb/Orange */
    filter: hue-rotate(-35deg) saturate(1.8) brightness(0.95);
}

.status-icon-danger .status-icon-img {
    /* starkes Rot */
    filter: hue-rotate(155deg) saturate(1.9) brightness(0.9);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Neutrales Such-Logo für technische/neutrale Meldungen (z.B. Shop nicht erreichbar) */
.status-icon-neutral .status-icon-img {
    filter: grayscale(1) brightness(0.9);
}

/* ===== Ergebnisbereich (Karten) ===== */

.results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 12px;
    margin-top: 4px;
}

.result-card {
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    background: #f9fafb;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.result-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.result-body {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Risiko-Balken */


.risk-meta {
    font-size: 13px;
    margin-bottom: 6px;
    color: #475569;
    min-height: 18px; /* reserve space so layout doesn't jump when score appears */
}
.risk-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.risk-bar-fill {
    height: 100%;
    width: 25%;
    border-radius: inherit;
    background: var(--success);
    transition: width 200ms ease-out, background 200ms ease-out;
}

.risk-low {
    background: var(--success);
}

.risk-medium {
    background: #f59e0b;
}

.risk-high {
    background: #dc2626;
}

/* Fakten */

.facts-list {
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.fact-row dt {
    color: var(--text-muted);
}

.fact-row dd {
    margin: 0;
    font-weight: 500;
}

/* ===== Bewertungsgründe ===== */

.reasons {
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    padding-top: 12px;
}

.reasons-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.reasons-list li {
    position: relative;
    padding-left: 16px;
    color: var(--text-muted);
}

.reasons-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--accent);
}

/* ===== Footer ===== */

.app-footer {
    max-width: 980px;
    margin: 10px auto 0;
    padding: 6px 4px 4px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-separator {
    opacity: 0.5;
}

/* ===== Responsive ===== */

@media (max-width: 720px) {
    .app-shell {
        padding: 16px 12px;
    }

    .app-header {
        margin-bottom: 14px;
    }

    .card {
        padding: 22px 16px 18px;
        border-radius: 28px;
    }

    .scan-title {
        font-size: 26px;
    }

    .scan-subtitle {
        font-size: 14px;
    }

    .scan-form {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }

    .status-icon {
        width: 170px;
        height: 170px;
    }

    .results-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Enlarged top-left logo without circle background */
.logo-header-img {
    width: 42px;
    height: auto;
}

/* Larger site title */
.logo-title {
    font-size: 26px !important;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}


/* Remove background of status circle and enlarge logo */
.status-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 0; /* no circle */
    border: none;
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon-img {
    width: 140px;
    height: auto;
}

/* === Overrides: Suchkreis === */
/* kein blauer Hintergrund, nur Ring + Logo */
.status-icon {
    background: transparent !important;
}

.status-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 12px solid var(--border-subtle);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon-img { width: 108px;
    height: auto;
    filter: none;
    transition: filter 160ms ease-out;
}

/* === Scan-Leiste: getrenntes Eingabefeld + Button, leicht abgerundet === */

/* Rahmen / Hintergrund der gesamten Formularzeile entfernen */
.scan-form {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    column-gap: 8px;
}

/* Eingabefeld-Container (mit Icon + Input) */
.url-field {
    flex: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

/* Icon bleibt wie gehabt, sitzt nun in eigenem Feld */
.url-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg);
    position: relative;
}

/* Textfeld im Container: flach, ohne eigenen Rahmen */
.url-field input {
    border: none;
    box-shadow: none;
    background: transparent;
    font-size: 15px;
    padding: 4px 0;
    width: 100%;
    outline: none;
}

/* Button separat, leicht abgerundet, ohne Glow */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin-left: 0;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    filter: none;
    transition: background-color 120ms ease-out, transform 120ms ease-out;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-strong);
    filter: none;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Loading-State (Textumschaltung beibehalten) */
.btn-label-loading {
    display: none;
}

.btn-primary.is-loading .btn-label-default {
    display: none;
}

.btn-primary.is-loading .btn-label-loading {
    display: inline;
}

/* === Responsiv: auf kleineren Screens Button unter das Feld, volle Breite === */
@media (max-width: 640px) {
    .scan-form {
        flex-direction: column;
        align-items: stretch;
        column-gap: 0;
        row-gap: 10px;
    }

    .url-field {
        width: 100%;
    }

    .btn-primary {
        width: 100%;
    }
}

/* === Zusätzliche Mobile-Optimierungen === */
@media (max-width: 640px) {
    /* Header untereinander, damit Logo + Navigation nicht gequetscht werden */
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .app-logo {
        width: 100%;
    }

    .app-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 4px;
        column-gap: 12px;
    }

    .nav-link {
        font-size: 13px;
        padding: 2px 0;
    }

    /* Footer besser lesbar untereinander */
    .app-footer {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 11px;
    }

    .app-footer .footer-left,
    .app-footer .footer-right {
        text-align: center;
    }

    .app-footer .footer-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Etwas weniger Padding auf sehr kleinen Geräten */
    .app-shell {
        padding: 12px 10px;
    }

    .card {
        padding: 18px 14px 16px;
        border-radius: 22px;
    }

    .scan-title {
        font-size: 22px;
    }

    /* Status-Kreis etwas größer, damit das Logo mehr Abstand zum Ring hat */
    .status-icon {
        width: 160px;
        height: 160px;
    }
}

/* Prevent horizontal overflow for long URLs / words in result area */
.result-card,
.result-body,
.fact-row dd {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 640px) {
    /* iOS Safari Zoom-Fix: Eingabefeld nicht kleiner als 16px, damit die Seite beim Fokussieren nicht gezoomt/verbreitert wird */
    .url-field input {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    /* Mobile: Browser-Top/Bottom-Bars in der FakeShopFinder-Hintergrundfarbe */
    html,
    body {
        background: var(--bg-body);
    }
}

/* === Admin: lange URLs sauber umbrechen === */
.admin-table td,
.admin-table th {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}


/* === Admin: Tabelle stabil halten === */
.admin-table {
    table-layout: fixed;
    width: 100%;
}

/* Domain-Spalte (2. Spalte) begrenzen */
.admin-table td:nth-child(2),
.admin-table th:nth-child(2) {
    max-width: 420px;
}


/* === Admin: Links in Tabellen umbrechen === */
.admin-table td a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =======================================================================
   Senior Fix (v3) – Logo-Größen sauber austariert (Desktop + Mobile)
   WICHTIG: Nur Overrides am Dateiende, damit keine Seiteneffekte entstehen.
   ======================================================================= */

/* Header-Logo: minimal kleiner (Desktop), auf Mobile noch etwas kompakter */
.logo-icon { width: 40px; height: 40px; }
.logo-icon img { width: 24px; height: 24px; }

@media (max-width: 640px) {
  .logo-icon { width: 36px; height: 36px; }
  .logo-icon img { width: 20px; height: 20px; }
}
}
}

/* Status-Logo im Kreis:
   - Desktop: bleibt präsent
   - Mobile: groß genug, aber mit sauberem Abstand zum Ring
*/
.status-icon-img { width: 108px; height: auto; }

@media (max-width: 900px) {
  .status-icon-img { width: 108px; }
}

@media (max-width: 640px) {
  .status-icon-img { width: 98px; }
}

@media (max-width: 480px) {
  .status-icon-img { width: 90px; }
}


/* =======================================================================
   Senior Fix (v10) – Header-Logo oben links wirklich kleiner (img.logo-header-img)
   ======================================================================= */
.logo-header-img { width: 42px; height: auto; }

@media (max-width: 640px) {
  .logo-header-img { width: 40px; }
}
@media (max-width: 480px) {
  .logo-header-img { width: 38px; }
}


/* =======================================================================
   Senior Fix (v12) – Status-Icon: weiße "Ecken" auf Mobile verhindern
   Ursache: ältere Regel setzt .status-icon-inner background: none !important;
   Fix: finaler Override + Clipping, damit Img niemals über den Ring "eckt".
   ======================================================================= */
.status-icon-inner {
  border-radius: 999px;
  overflow: hidden; /* clip any non-transparent image corners */
  background: #ffffff !important; /* override earlier background:none !important */
}

/* defensive: image itself should not paint a background */
.status-icon-img {
  background: transparent;
}


/* =======================================================================
   Senior Fix (v13) – Status-Logo: sichtbare "weiße Ecken" zuverlässig entfernen
   Beobachtung:
   - Tritt bei SAFE/WARNING/DANGER auf, nicht beim blauen Idle-Icon.
   - Das spricht dafür, dass das gerenderte Logo-Rechteck (PNG-Hintergrund oder
     Anti-Aliasing/Pixelreste) bis in den Ring hineinragt.
   Fix-Ansatz:
   - Das Bild selbst rund clippen (border-radius + clip-path) => entfernt Ecken,
     selbst wenn das Bild eine nicht perfekte Transparenz hat.
   - Inner-Kreis weiterhin clippen (overflow hidden) als zweite Sicherheitslinie.
   ======================================================================= */

.status-icon-inner {
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff !important;
}

/* Bild hart rund clippen (wirksam auch bei PNGs mit "weißen Pixeln" in den Ecken) */
.status-icon-img {
  background: transparent !important;
/* moderne Browser: hartes Clipping */
display: block;
}


/* =======================================================================
   Senior Fix (v15) – "Weiße Ecken" über dem Ring zuverlässig verhindern
   Hintergrund:
   - overflow:hidden clippt NICHT die Border-Fläche. Wenn das (quadratische) Logo
     bis in die Border (Ring) hineinreicht, sieht man die Ecken auf dem Ring.
   Fix:
   - Padding im Inner-Kreis schafft Abstand zur Border -> Logo berührt den Ring nie.
   - Zusätzlich max-* Begrenzung als Safety-Net.
   Auswirkungen:
   - Logo minimal „luftiger“, Ring bleibt unverändert sichtbar.
   ======================================================================= */

.status-icon-inner {
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff !important;
  padding: 12px;              /* Abstand zum Ring (Border) */
  box-sizing: border-box;     /* Padding sauber in die Größe einrechnen */
}

/* Logo darf niemals größer als der Innenbereich werden */
.status-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent !important;
  display: block;
}


/* =======================================================================
   Senior Fix (v16) – Mobile: Rest-"weiße Ecken" endgültig eliminieren
   Diagnose:
   - Auf Mobile entsteht durch Skalierung/Antialiasing ein minimaler Überstand
     des (rechteckigen) PNG bis in den Ring.
   Fix:
   - Padding im Innenkreis auf Mobile erhöhen (nur Mobile), damit das Logo
     garantiert nicht in den Border-Bereich kommt.
   - Padding mit !important, um frühere Regeln sicher zu überstimmen.
   Auswirkungen:
   - Logo sitzt auf Mobile minimal weiter innen (Desktop unverändert).
   ======================================================================= */

@media (max-width: 640px) {
  .status-icon-inner {
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  .status-icon-inner {
    padding: 18px !important;
  }
}


/* =======================================================================
   Senior Fix (v19) – Mobile: NUR Logo größer, Ring unverändert
   Ziel:
   - Ring-Größe bleibt wie vorher (kein Aufblasen)
   - Nur das Status-Logo bekommt mehr Präsenz
   - Weiße-Ecken-Fix (Padding) bleibt erhalten
   ======================================================================= */

@media (max-width: 640px) {
  .status-icon-img {
    width: 110px; /* vorher kleiner – jetzt sichtbar größer */
  }
}

@media (max-width: 480px) {
  .status-icon-img {
    width: 104px;
  }
}


/* =======================================================================
   Senior Fix (v20) – Mobile: Status-Logo +4px (final)
   Änderung:
   - NUR Logo größer
   - Ring & Padding unverändert
   ======================================================================= */

@media (max-width: 640px) {
  .status-icon-img {
    width: 114px;
  }
}

@media (max-width: 480px) {
  .status-icon-img {
    width: 108px;
  }
}


/* =======================================================================
   Senior Fix (v21) – Mobile: Status-Logo +10px
   Änderung:
   - NUR Logo größer
   - Ring & Padding unverändert
   ======================================================================= */

@media (max-width: 640px) {
  .status-icon-img {
    width: 124px;
  }
}

@media (max-width: 480px) {
  .status-icon-img {
    width: 118px;
  }
}


/* =======================================================================
   Senior Fix (v22) – Weiße "Ecken" am Ring: Root-Cause Fix (ohne Bild-/Filter-Mythen)
   Warum das trotz freigestelltem PNG passieren kann:
   - Bei PNGs sind Randpixel oft "semi-transparent" (Anti-Aliasing) und tragen RGB-Werte.
   - Wenn du per CSS filter (hue-rotate/saturate/brightness) einfärbst, werden diese RGB-
     Werte mitgedreht -> es entsteht ein heller/weißer "Halo" an den Kanten.
   - Auf Mobile verstärken Subpixel-Skalierung/Antialiasing diesen Effekt.
   Technisch sauberer Fix ohne Clip-Path:
   - Den Ring NICHT als border rendern (border liegt außerhalb der Overflow-Clip-Box).
   - Stattdessen als inset box-shadow (Ring innerhalb des Elements).
   => Der Inhalt (Logo) kann nicht mehr "über den Ring" malen.
   ======================================================================= */

/* Ring von border -> inset shadow umstellen (Optik bleibt gleich, Clipping wird robust) */
.status-icon-inner {
  border: none !important;
  box-shadow: inset 0 0 0 12px var(--border-subtle);
  background: #ffffff !important;
  border-radius: 999px;
  overflow: hidden;
}

/* Mobile: Ring minimal dünner, wie zuvor (falls du das willst) */
@media (max-width: 640px) {
  .status-icon-inner {
    box-shadow: inset 0 0 0 10px var(--border-subtle);
  }
}


/* =======================================================================
   Senior Fix (v32) – Mobile: Status-Logo per transform skalieren
   Root Cause:
   - max-width / padding begrenzen visuelle Größe → width-Änderungen wirkungslos
   Lösung:
   - transform: scale() auf Mobile (wirkt immer, unabhängig von max-width)
   ======================================================================= */

@media (max-width: 720px) {
  #status-icon .status-icon-img {
    transform: scale(0.92);
    transform-origin: center;
  }
}

@media (max-width: 480px) {
  #status-icon .status-icon-img {
    transform: scale(0.88);
  }
}

/* BUILD v32 – 2026-01-21 22:55:39 */


/* =======================================================================
   Senior Fix (v33) – Mobile: Status-Logo leicht größer (Feinschliff)
   Änderung:
   - NUR transform scale angepasst
   - Ring-Fix & Desktop unverändert
   ======================================================================= */

@media (max-width: 720px) {
  #status-icon .status-icon-img {
    transform: scale(0.96);
    transform-origin: center;
  }
}

@media (max-width: 480px) {
  #status-icon .status-icon-img {
    transform: scale(0.92);
  }
}

/* BUILD v33 – 2026-01-21 22:57:23 */


/* =======================================================================
   Senior Fix (v41) – Danger-Logo Mobile nochmals leicht heller
   Nur brightness fein erhöht
   ======================================================================= */
@media (max-width: 720px) {
  .status-icon-danger .status-icon-img {
    filter: hue-rotate(155deg) saturate(2.2) brightness(0.74) !important;
    -webkit-filter: hue-rotate(155deg) saturate(2.2) brightness(0.74) !important;
  }
}

/* BUILD v41 – mobile brightness fine tune */


/* =======================================================================
   Senior Fix (v45) – WARNING exakt näher an Risk-Bar Orange (#f59e0b)
   Vorher zu gelb/braun → jetzt stärker Richtung echtes Orange verschoben
   ======================================================================= */

.status-icon-warning .status-icon-img,
#status-icon.status-icon-warning .status-icon-img,
#status-icon.status-icon-warning img.status-icon-img,
#status-icon.status-icon-warning img {
  -webkit-filter: brightness(0) saturate(100%)
                  invert(74%) sepia(82%) saturate(2200%)
                  hue-rotate(347deg) brightness(95%) contrast(108%) !important;
  filter: brightness(0) saturate(100%)
          invert(74%) sepia(82%) saturate(2200%)
          hue-rotate(347deg) brightness(95%) contrast(108%) !important;
}

/* BUILD v45 – warning true orange */


/* =======================================================================
   Senior Fix (v47) – Mobile WARNING nochmals leicht weniger grell
   Nur minimale Reduktion von Brightness + Contrast
   ======================================================================= */
@media (max-width: 720px) {
  .status-icon-warning .status-icon-img,
  #status-icon.status-icon-warning .status-icon-img,
  #status-icon.status-icon-warning img.status-icon-img,
  #status-icon.status-icon-warning img {
    -webkit-filter: brightness(0) saturate(100%)
                    invert(74%) sepia(82%) saturate(2200%)
                    hue-rotate(347deg) brightness(84%) contrast(100%) !important;
    filter: brightness(0) saturate(100%)
            invert(74%) sepia(82%) saturate(2200%)
            hue-rotate(347deg) brightness(84%) contrast(100%) !important;
  }
}

/* BUILD v47 – warning mobile softer */


/* =======================================================================
   Reasons (v2 Ebenen): User-Gründe + einklappbare technische Details
   ======================================================================= */

.reasons-tech {
  margin-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  padding-top: 10px;
}

.reasons-tech-summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  list-style: none;
  outline: none;
}

.reasons-tech-summary::-webkit-details-marker {
  display: none;
}

.reasons-tech-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  transform: translateY(-1px);
  transition: transform 120ms ease-out;
}

.reasons-tech[open] .reasons-tech-summary::before {
  content: "▾";
}

.reasons-list-tech li::before {
  color: #94a3b8; /* dezenter als Akzent */
}
