/* ============================================================
   DiagnosenCheck – Styles
   Wendewerk GKV Tools
   ============================================================ */

.wwgt-dc-app {
    --wwgt-dc-primary:      #00acec;
    --wwgt-dc-primary-dark: #0077b6;
    --wwgt-dc-text:         #1a2332;
    --wwgt-dc-text-muted:   #6b7280;
    --wwgt-dc-border:       #e5e7eb;
    --wwgt-dc-bg:           #f9fafb;
    --wwgt-dc-white:        #ffffff;
    --wwgt-dc-radius:       8px;

    font-family: inherit;
    color: var(--wwgt-dc-text);
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
}

.wwgt-dc-app *,
.wwgt-dc-app *::before,
.wwgt-dc-app *::after {
    box-sizing: inherit;
}

/* Astra überschreibt [hidden] ohne diese Regel (siehe CLAUDE.md Known Pitfalls) */
.wwgt-dc-app [hidden] {
    display: none !important;
}

/* ── Hero ───────────────────────────────────────────────────── */
.wwgt-dc-hero {
    position: relative;
    padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
    border-radius: var(--wwgt-dc-radius) var(--wwgt-dc-radius) 0 0;
    background: linear-gradient(135deg, #12405e 0%, #00acec 100%);
    text-align: center;
    overflow: hidden;
}

.wwgt-dc-hero--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #12405e;
}

.wwgt-dc-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, #00aeed 0%, #12405e -100%);
    opacity: 0.9;
    z-index: 0;
}

.wwgt-dc-hero__inner {
    position: relative;
    z-index: 1;
}

.wwgt-dc-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--wwgt-dc-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wwgt-dc-hero--has-image .wwgt-dc-hero__eyebrow {
    color: #00acec;
}

.wwgt-dc-hero__title {
    margin: 0 0 10px;
    color: var(--wwgt-dc-white);
    font-size: clamp(26px,4vw,44px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.wwgt-dc-hero__subtitle {
    margin: 0 auto 18px;
    max-width: 560px;
    color: rgba(255,255,255,.88);
    font-size: 17px;
    line-height: 1.7;
}

/* ── Body ───────────────────────────────────────────────────── */
.wwgt-dc-body {
    padding: clamp(24px, 4vw, 40px);
    background: var(--wwgt-dc-white);
    border-radius: 0 0 var(--wwgt-dc-radius) var(--wwgt-dc-radius);
    border: 1px solid var(--wwgt-dc-border);
    border-top: none;
}

.wwgt-dc-field {
    margin-bottom: 20px;
}

.wwgt-dc-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.wwgt-dc-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--wwgt-dc-text);
    background: var(--wwgt-dc-bg);
    border: 1px solid var(--wwgt-dc-border);
    border-radius: var(--wwgt-dc-radius);
}

.wwgt-dc-input:focus {
    outline: none;
    border-color: var(--wwgt-dc-primary);
    background: var(--wwgt-dc-white);
}

.wwgt-dc-hint {
    margin: 8px 0 0;
    color: var(--wwgt-dc-text-muted);
    font-size: 13px;
}

.wwgt-dc-status {
    margin-bottom: 12px;
    color: var(--wwgt-dc-text-muted);
    font-size: 14px;
}

.wwgt-dc-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wwgt-dc-empty {
    padding: 20px;
    color: var(--wwgt-dc-text-muted);
    text-align: center;
}

/* ── Ergebnis-Karte ─────────────────────────────────────────── */
.wwgt-dc-result {
    padding: 20px;
    background: var(--wwgt-dc-bg);
    border: 1px solid var(--wwgt-dc-border);
    border-radius: var(--wwgt-dc-radius);
}

.wwgt-dc-result__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wwgt-dc-result__code {
    padding: 2px 10px;
    background: var(--wwgt-dc-primary);
    color: var(--wwgt-dc-white);
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.wwgt-dc-result__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.wwgt-dc-result__desc {
    margin: 0 0 14px;
    color: var(--wwgt-dc-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.wwgt-dc-result__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wwgt-dc-result__source {
    color: var(--wwgt-dc-primary-dark);
    font-size: 13px;
    text-decoration: none;
}

.wwgt-dc-result__source:hover {
    text-decoration: underline;
}

.wwgt-dc-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--wwgt-dc-radius);
    border: none;
    cursor: pointer;
}

.wwgt-dc-button--primary {
    background: var(--wwgt-dc-primary);
    color: var(--wwgt-dc-white);
}

.wwgt-dc-button--primary:hover {
    background: var(--wwgt-dc-primary-dark);
    color: var(--wwgt-dc-white);
}

/* ── Disclaimer ─────────────────────────────────────────────── */
.wwgt-dc-disclaimer {
    margin: 28px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--wwgt-dc-border);
    color: var(--wwgt-dc-text-muted);
    font-size: 12px;
    line-height: 1.5;
}
