/* ============================================================
   KI-Tool-Check — ismshield.ai/ki-check/
   Design-System exakt wie ismshield.ai (Navy / Gold / Almarai)
   ============================================================ */
:root {
    --navy: #1B2A4A;
    --navy2: #243258;
    --navy3: #162240;
    --gold: #C9A84C;
    --gold2: #E5C76A;
    --white: #FFFFFF;
    --light: #F7F8FA;
    --text: #2C3A52;
    --muted: #6B7A92;
    --border: #E2E7EF;
    --rot: #C94C4C;
    --gelb: #D9A62E;
    --gruen: #3E8E5A;
}

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

body {
    font-family: 'Almarai', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

/* ── Topbar ── */
.topbar {
    background: var(--gold);
    padding: .55rem 2rem;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
}
.topbar a { color: var(--navy); text-decoration: underline; }

/* ── Nav ── */
nav.site-nav {
    background: var(--navy);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(27,42,74,.3);
}
.nav-logo img { height: 38px; display: block; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-link {
    color: rgba(255,255,255,.7);
    font-size: .88rem;
    text-decoration: none;
    transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--gold2); font-weight: 700; }
.nav-cta {
    background: var(--gold);
    color: var(--navy);
    padding: .55rem 1.6rem;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--gold2); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 2rem 3.5rem;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,.15);
    border: 1px solid var(--gold);
    color: var(--gold2);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 820px;
    margin: 0 auto 1.25rem;
}
.hero h1 span { color: var(--gold2); }
.hero-sub {
    font-size: 1.08rem;
    color: rgba(255,255,255,.72);
    max-width: 620px;
    margin: 0 auto 2.25rem;
}
.hero-note {
    margin-top: 1.1rem;
    font-size: .82rem;
    color: rgba(255,255,255,.45);
}

/* ── Check-Box (Auswahl) ── */
.check-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--navy2);
    border: 1px solid rgba(201,168,76,.35);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: left;
}
.land-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
}
.land-row-label {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    margin-right: .25rem;
}
.land-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
    border-radius: 50px;
    padding: .35rem 1rem;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.land-btn:hover { border-color: var(--gold); color: var(--white); }
.land-btn.active {
    background: rgba(201,168,76,.18);
    border-color: var(--gold);
    color: var(--gold2);
}
.check-box-label {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .75rem;
    display: block;
}
.tool-search {
    width: 100%;
    padding: .85rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
}
.tool-search::placeholder { color: rgba(255,255,255,.45); }
.tool-search:focus { border-color: var(--gold); }

.tool-dropdown {
    margin-top: .5rem;
    max-height: 300px;
    overflow-y: auto;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border);
    display: none;
}
.tool-dropdown.open { display: block; }
.tool-group-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    padding: .6rem 1rem .25rem;
}
.tool-option {
    padding: .55rem 1rem;
    cursor: pointer;
    font-size: .95rem;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}
.tool-option:hover, .tool-option.highlight { background: var(--light); }
.tool-option.selected { color: var(--muted); }
.tool-option .anbieter { font-size: .78rem; color: var(--muted); }
.tool-option-custom {
    border-top: 1px solid var(--border);
    font-weight: 700;
    color: var(--navy);
}
.tool-dropdown-empty { padding: .8rem 1rem; font-size: .9rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; min-height: 0; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(201,168,76,.18);
    border: 1px solid var(--gold);
    color: var(--gold2);
    border-radius: 50px;
    padding: .3rem .5rem .3rem .9rem;
    font-size: .85rem;
    font-weight: 700;
}
.chip button {
    background: none;
    border: none;
    color: var(--gold2);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: .1rem .35rem;
    border-radius: 50%;
}
.chip button:hover { background: rgba(255,255,255,.12); }

.btn-check {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: .95rem 2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.btn-check:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-check:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Buttons allgemein ── */
.btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: .85rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .15s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-outline {
    border: 1.5px solid rgba(255,255,255,.35);
    color: rgba(255,255,255,.85);
    padding: .85rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    display: inline-block;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-outline:hover { border-color: var(--gold2); color: var(--gold2); }

/* ── Sections ── */
section { padding: 4.5rem 2rem; }
.container { max-width: 1080px; margin: 0 auto; }
.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-sub {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 2.5rem;
}

/* ── Ergebnis ── */
#ergebnis { display: none; background: var(--light); }
#ergebnis.visible { display: block; }

.summary-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}
.summary-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: .75rem; }
.summary-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .95rem; font-weight: 700; }
.summary-stat { display: flex; align-items: center; gap: .5rem; }
.summary-stat .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.summary-recht {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    color: var(--muted);
}
.dot-rot { background: var(--rot); }
.dot-gelb { background: var(--gelb); }
.dot-gruen { background: var(--gruen); }

.result-grid { display: grid; gap: 1.25rem; }
.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 6px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}
.result-card.ampel-rot { border-left-color: var(--rot); }
.result-card.ampel-gelb { border-left-color: var(--gelb); }
.result-card.ampel-gruen { border-left-color: var(--gruen); }
.result-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .25rem; }
.result-head h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.result-head .anbieter { font-size: .82rem; color: var(--muted); }
.result-verdict { font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.ampel-rot .result-verdict { color: var(--rot); }
.ampel-gelb .result-verdict { color: var(--gelb); }
.ampel-gruen .result-verdict { color: var(--gruen); }
.result-criteria { list-style: none; margin-bottom: 1rem; }
.result-criteria li { font-size: .9rem; padding: .15rem 0; }
.result-criteria .crit-ok { color: var(--gruen); }
.result-criteria .crit-fail { color: var(--rot); }
.result-criteria .crit-unclear { color: var(--gelb); }
.result-empfehlung {
    font-size: .92rem;
    background: var(--light);
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: .9rem;
}
.result-empfehlung strong { color: var(--navy); }
.result-meta { font-size: .78rem; color: var(--muted); }
.result-meta a { color: var(--muted); }

/* ── CTA-Box ── */
.cta-box {
    margin-top: 2.5rem;
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    text-align: center;
    color: var(--white);
}
.cta-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem; }
.cta-box h3 span { color: var(--gold2); }
.cta-box p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 1.5rem; font-size: .95rem; }

.share-row { margin-top: 1.5rem; text-align: center; }
.share-row .btn-share {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--muted);
    padding: .65rem 1.6rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.share-row .btn-share:hover { border-color: var(--navy); color: var(--navy); }

/* ── Warum wichtig ── */
.why { background: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.why-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.why-card .why-icon { font-size: 1.6rem; margin-bottom: .6rem; }
.why-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.why-card p { font-size: .92rem; color: var(--text); }

/* ── Footer ── */
.site-footer {
    background: var(--navy3);
    color: rgba(255,255,255,.6);
    padding: 3rem 2rem;
    font-size: .85rem;
}
.footer-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-grid strong { color: var(--white); display: block; margin-bottom: .5rem; }
.footer-grid a { color: rgba(255,255,255,.6); text-decoration: none; display: block; margin-top: .25rem; }
.footer-grid a:hover { color: var(--gold2); }
.footer-legal {
    text-align: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem;
}
.footer-legal a { color: rgba(255,255,255,.6); }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: var(--white);
    padding: .7rem 1.5rem;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
    nav.site-nav { padding: 0 1rem; height: 60px; }
    .nav-link { display: none; }
}
@media (max-width: 600px) {
    section { padding: 3rem 1.25rem; }
    .hero { padding: 3rem 1.25rem 2.5rem; }
    .check-box { padding: 1.25rem; }
    .summary-stats { gap: .9rem; }
    .result-card { padding: 1.25rem; }
}
