:root {
    --bg: #f7f6f2;
    --card: #ffffff;
    --text: #171a1f;
    --muted: rgba(23, 26, 31, 0.62);
    --border: rgba(23, 26, 31, 0.13);
    --rot: #ef4444;
    --radius-lg: 18px;
    --radius-md: 10px;

    /* ilumo.ai-Farbskala */
    --pfirsich: #f3b89e;
    --lavendel: #b8a9e2;
    --minze: #8ed9b4;
    --lavendel-dunkel: #6f61bd; /* Link-/Akzenttextfarbe auf hellem Grund, ausreichend Kontrast */
    --link-hover: #584dab; /* Link-Farbe bei Mouse-Over/Fokus */
    --verlauf-diagonal: linear-gradient(135deg, var(--pfirsich), var(--lavendel) 50%, var(--minze));

    --font-heading: 'Fraunces', serif;
    --font-body: 'Space Grotesk', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

    --logo-hoehe: 26px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Generische Link-Farbe + Hover — niedrige Spezifität (:where), damit
   Buttons/Nav-Pills (.knopf, header nav, .admin-nav …) mit eigener Farbe
   unangetastet bleiben und trotzdem gewinnen. */
a { color: var(--lavendel-dunkel); }
a:where(:hover, :focus-visible) { color: var(--link-hover); }

header.kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 1.75rem;
}

.marke-link {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}
.logo-bild {
    height: var(--logo-hoehe);
    width: auto;
    display: block;
}

header.kopf nav { display: flex; align-items: center; gap: 0.6rem; }
header.kopf nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
}
header.kopf nav a:hover { border-color: var(--text); }

main {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.75rem 1.5rem 4rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero { margin-bottom: 2rem; }
.hero h1 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.15;
    margin: 0 0 1rem;
}
.hero h1 em { color: var(--lavendel-dunkel); font-style: italic; }
.hero p.hinweis { font-size: 1.05rem; max-width: 46ch; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.9rem;
    margin-bottom: 1.5rem;
}

h1 { font-size: 1.6rem; margin: 0 0 0.5rem; }
h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.35rem;
    margin: 0 0 1rem;
}
p.hinweis { color: var(--muted); margin-top: 0; }

label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 1.1rem 0 0.4rem;
}

input[type=text], input[type=url], input[type=email], input[type=password],
input[type=number], textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(23, 26, 31, 0.08);
}

input[type=color] {
    width: 100%;
    height: 44px;
    padding: 0.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
}
input[type=file] {
    width: 100%;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--muted);
}
select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}
select:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(23, 26, 31, 0.08);
}

button, .knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: #fff;
    border: none;
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 1.6rem;
    text-decoration: none;
}
button:hover, .knopf:hover { background: #000; }

.warnung {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.fehlerbox {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
}

.score-kreis {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    font-size: 1.7rem;
    flex-shrink: 0;
}
.score-kreis span {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* Pastelltöne der ilumo-Skala sind zu hell für weiße Schrift -> dunkler Text bei gutem/mittlerem Score */
.score-gruen { background: var(--verlauf-diagonal); color: var(--text); }
.score-orange { background: var(--pfirsich); color: var(--text); }
.score-rot { background: var(--rot); }
.score-grau { background: #9ca3af; }

.kopfzeile-ergebnis {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.engine-block {
    border-top: 1px solid var(--border);
    padding-top: 1.1rem;
    margin-top: 1.1rem;
}
.engine-block:first-child { border-top: none; margin-top: 0; }

.engine-titel {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.engine-titel strong {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-ja { background: rgba(142, 217, 180, 0.3); color: #1c8a5c; }
.badge-nein { background: rgba(23, 26, 31, 0.06); color: var(--muted); }
.badge-fehler { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.badge-position { background: rgba(184, 169, 226, 0.25); color: var(--lavendel-dunkel); }

.ergebnis-zeile {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-top: 0.7rem;
    background: rgba(23, 26, 31, 0.015);
}
.ergebnis-frage {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.badge-gruppe {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

blockquote.zitat {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.85rem;
    border-left: 3px solid var(--pfirsich);
    background: rgba(243, 184, 158, 0.1);
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text);
}

details {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.9rem;
    margin-top: 0.6rem;
    background: #fff;
}
details summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--muted);
}
.antwort-text {
    margin-top: 0.65rem;
    white-space: pre-wrap;
    font-size: 0.87rem;
    color: #374151;
}
.fehler-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--rot);
}

table.verlauf {
    width: 100%;
    border-collapse: collapse;
}
table.verlauf th, table.verlauf td {
    text-align: left;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
table.verlauf th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
table.verlauf a { font-weight: 600; text-decoration: none; }

.portal-aktionen { display: flex; align-items: center; gap: 0.9rem; white-space: nowrap; }
.portal-aktionen form { display: inline; margin: 0; }
.link-knopf {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--rot);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.link-knopf:hover { text-decoration: underline; }

.leer { color: var(--muted); font-style: italic; }

footer.fuss {
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    padding: 2.5rem 1rem;
}
footer.fuss a { color: var(--text); }

/* ===== Erweiterter Report (bericht.php), angelehnt an loamly.ai/intelligence/sample ===== */

.abschnitt-kopf { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.abschnitt-badge-zeile { display: flex; align-items: center; gap: 0.75rem; margin: 2rem 0 0.6rem; flex-wrap: wrap; }
.abschnitt-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.report-titel {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 2rem;
    margin: 0 0 0.35rem;
}
.report-unterzeile { margin-bottom: 1.75rem; }

.summary-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 640px) {
    .summary-grid { grid-template-columns: 1fr; }
}

.feld-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.erkenntnisse-liste {
    margin: 0;
    padding-left: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.erkenntnisse-liste li { font-size: 0.92rem; line-height: 1.5; }
.erkenntnisse-liste li::marker { color: var(--lavendel-dunkel); font-weight: 700; }

.gauge-block { text-align: center; }
.gauge-svg { width: 100%; max-width: 220px; height: auto; }
.gauge-zahl {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 2.4rem;
    margin-top: -3.2rem;
}
.gauge-zahl span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.gauge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.engine-balken-liste { display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.engine-balken-zeile { display: flex; align-items: center; gap: 0.6rem; }
.engine-balken-label { width: 70px; font-size: 0.82rem; font-weight: 600; flex-shrink: 0; }
.engine-balken-track { flex: 1; height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.engine-balken-fill { height: 100%; border-radius: 999px; }
.farbe-chatgpt { background: var(--minze); }
.farbe-claude { background: var(--lavendel); }
.engine-balken-wert { width: 38px; text-align: right; font-size: 0.8rem; font-weight: 600; flex-shrink: 0; }

.fragen-tabelle { width: 100%; border-collapse: collapse; }
.fragen-tabelle th, .fragen-tabelle td {
    text-align: left;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    vertical-align: top;
}
.fragen-tabelle th {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: rgba(23, 26, 31, 0.02);
}
.fragen-tabelle tr:last-child td { border-bottom: none; }
.frage-zelle { max-width: 340px; }

.status-punkt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-ja { background: rgba(142, 217, 180, 0.35); color: #1c8a5c; }
.status-nein { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.status-fehler { background: rgba(23, 26, 31, 0.06); color: var(--muted); }
.status-position { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; }

.vergleich-liste { display: flex; flex-direction: column; gap: 0.9rem; }
.vergleich-zeile { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 0.8rem; }
.vergleich-name { font-size: 0.88rem; font-weight: 600; }
.vergleich-tag {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lavendel-dunkel);
}
.vergleich-track { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.vergleich-fill { height: 100%; border-radius: 999px; background: #9ca3af; }
.vergleich-fill-eigene { background: var(--verlauf-diagonal); }
.vergleich-wert { text-align: right; font-size: 0.85rem; font-weight: 600; }
.vergleich-eigene .vergleich-name { color: var(--lavendel-dunkel); }

.empfehlung-karte { margin-bottom: 1rem; }
.empfehlung-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; }
.prio-badge {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.prio-kritisch { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.prio-hoch { background: rgba(243, 184, 158, 0.35); color: #9a4a1f; }
.prio-mittel { background: rgba(184, 169, 226, 0.3); color: var(--lavendel-dunkel); }
.prio-aufwand { background: rgba(23, 26, 31, 0.06); color: var(--muted); font-weight: 600; }

/* ===== Anmelden / Registrieren ===== */

.auth-wrap {
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.auth-karte {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 30px 60px -30px rgba(23, 26, 31, 0.2);
    position: relative;
    overflow: hidden;
}
.auth-karte::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--verlauf-diagonal);
    opacity: 0.16;
    filter: blur(6px);
}

.auth-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    position: relative;
}
.auth-orb::after {
    content: '';
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, var(--pfirsich) 0%, var(--lavendel) 55%, var(--minze) 100%);
}

.auth-titel {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.7rem;
    margin: 0 0 0.4rem;
    position: relative;
}
.auth-unterzeile {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 1.6rem;
    position: relative;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap .feld-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    display: flex;
    pointer-events: none;
}
.input-icon-wrap input { padding-left: 2.6rem; }

.auth-knopf {
    width: 100%;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.auth-knopf:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(111, 97, 189, 0.5);
}

.auth-trenner {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    margin: 1.6rem 0 0;
    position: relative;
}

/* ===== Admin-Portal ===== */

.admin-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.75rem; }
.admin-nav a {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.admin-nav a.aktiv { background: var(--text); color: #fff; border-color: var(--text); }

.stat-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-bottom: 0; }
.stat-zahl { font-family: var(--font-heading); font-weight: 600; font-size: 2rem; }
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-linkliste { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.admin-linkliste a { font-weight: 600; text-decoration: none; }

.farb-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; }

.fuss-links { margin-top: 0.4rem; font-size: 0.8rem; }
footer.fuss .fuss-links a { color: var(--muted); }

.inhalt-text p { margin: 0 0 1rem; }
.inhalt-text h2 { font-family: var(--font-heading); font-weight: 500; font-size: 1.25rem; margin: 1.6rem 0 0.75rem; }
.inhalt-text h2:first-child { margin-top: 0; }
.inhalt-text ul, .inhalt-text ol { padding-left: 1.3rem; margin: 0 0 1rem; }
