/**
 * FWT Farbkonzeptersteller
 * Datei: tools/farbkonzept/assets/farbkonzept.css
 * Zweck: Gestaltung, inklusive eigener Druckansicht
 *
 * Projekt: FWT / Freie Webtools
 * Stand: 2026-07-22
 */

/* ============================================================
   01. Hinweis-Boxen
   ============================================================ */

.fwt-security-note {
    display: grid;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: #fff8e7;
    border: 1px solid rgba(246, 189, 69, 0.35);
    border-left: 6px solid #d94343;
}

.fwt-security-note strong {
    color: var(--webtools-text, #15232d);
}

.fwt-security-note span {
    color: var(--webtools-muted, #61717d);
}

.fwt-palette-error {
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #fff2cf;
    border: 1px solid rgba(180, 120, 0, 0.28);
    border-left: 6px solid #d94343;
    color: #6b4a00;
    font-weight: 750;
}

/* ============================================================
   02. Hero
   ============================================================ */

.fwt-palette-hero {
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 12% 18%, rgba(246, 189, 69, 0.22), transparent 24rem),
        radial-gradient(circle at 86% 8%, rgba(22, 129, 140, 0.20), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
}

.fwt-palette-hero__content h1 {
    margin: 0;
    color: var(--webtools-text, #15232d);
    font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.fwt-palette-hero__content p {
    max-width: 760px;
    margin-top: 1rem;
    color: var(--webtools-muted, #61717d);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.fwt-palette-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.3rem;
}

.fwt-palette-hero__badges span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eaf8fa;
    color: #0f5962;
    font-size: 0.9rem;
    font-weight: 850;
}

/* ============================================================
   03. Grundlayout
   ============================================================ */

.fwt-palette-section {
    padding: clamp(1.6rem, 4vw, 3rem) 0;
}

.fwt-palette-section--soft {
    background: #f5fbfc;
}

.fwt-palette-section h2 {
    margin: 0.3rem 0 0.6rem;
    color: var(--webtools-text, #15232d);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.fwt-palette-help {
    color: var(--webtools-muted, #61717d);
    max-width: 42rem;
}

/* ============================================================
   04. Eingabe
   ============================================================ */

.fwt-palette-input-card {
    max-width: 46rem;
    margin: 0 auto;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(21, 35, 45, 0.10);
    box-shadow: 0 22px 60px rgba(21, 35, 45, 0.11);
}

.fwt-palette-color-inputs {
    display: grid;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.fwt-palette-color-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
}

.fwt-palette-color-row input[type="color"] {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border: 1px solid rgba(21, 35, 45, 0.16);
    border-radius: 0.7rem;
    background: none;
    cursor: pointer;
}

.fwt-palette-color-row input[type="text"] {
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(21, 35, 45, 0.16);
    background: #ffffff;
    color: var(--webtools-text, #15232d);
    font: inherit;
    font-family: Consolas, monospace;
}

.fwt-palette-color-row button {
    min-width: 2.4rem;
    min-height: 2.4rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(217, 67, 67, 0.3);
    background: #fff1f1;
    color: #a12b2b;
    cursor: pointer;
    font-weight: 800;
}

.fwt-palette-color-row button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fwt-palette-input-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ============================================================
   05. Schema-Auswahl
   ============================================================ */

.fwt-palette-scheme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.fwt-palette-scheme-card {
    padding: 1.1rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(21, 35, 45, 0.10);
    box-shadow: 0 12px 30px rgba(21, 35, 45, 0.07);
    display: grid;
    gap: 0.8rem;
}

.fwt-palette-scheme-card h3 {
    margin: 0;
    color: var(--webtools-text, #15232d);
    font-size: 1.05rem;
}

.fwt-palette-scheme-card p {
    margin: 0;
    color: var(--webtools-muted, #61717d);
    font-size: 0.85rem;
}

.fwt-palette-scheme-swatches {
    display: flex;
    border-radius: 0.7rem;
    overflow: hidden;
    height: 2.6rem;
}

.fwt-palette-scheme-swatches span {
    flex: 1;
}

/* ============================================================
   06. Ergebnis-Karten
   ============================================================ */

.fwt-palette-print-heading {
    display: none;
}

.fwt-palette-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.fwt-palette-swatch-card {
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(21, 35, 45, 0.10);
    box-shadow: 0 16px 40px rgba(21, 35, 45, 0.09);
    background: #ffffff;
}

.fwt-palette-swatch-color {
    height: 6rem;
}

.fwt-palette-swatch-body {
    padding: 1rem 1.1rem 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.fwt-palette-swatch-role {
    display: inline-flex;
    align-self: start;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: #eaf8fa;
    color: #0f5962;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fwt-palette-swatch-hex {
    font-family: Consolas, monospace;
    font-weight: 800;
    color: var(--webtools-text, #15232d);
}

.fwt-palette-swatch-values {
    font-family: Consolas, monospace;
    font-size: 0.78rem;
    color: var(--webtools-muted, #61717d);
}

.fwt-palette-swatch-note {
    font-size: 0.85rem;
    color: var(--webtools-muted, #61717d);
    line-height: 1.4;
}

.fwt-palette-swatch-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fwt-palette-badge {
    display: inline-flex;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
}

.fwt-palette-badge.is-pass-aaa {
    background: #eaf8ef;
    color: #1b7a4d;
}

.fwt-palette-badge.is-pass-aa {
    background: #eaf6fa;
    color: #0f5962;
}

.fwt-palette-badge.is-fail {
    background: #fdecec;
    color: #a12b2b;
}

.fwt-palette-badge.is-warning {
    background: #fff2cf;
    color: #6b4a00;
}

/* ============================================================
   07. Export
   ============================================================ */

.fwt-palette-export {
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px dashed rgba(21, 35, 45, 0.14);
}

.fwt-palette-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

/* ============================================================
   08. Grenzen
   ============================================================ */

.fwt-palette-limits__list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

/* ============================================================
   09. Responsive
   ============================================================ */

@media (max-width: 640px) {
    .fwt-palette-color-row {
        grid-template-columns: auto 1fr auto;
    }
}

/* ============================================================
   10. Druckansicht
   ============================================================ */

@media print {
    [data-palette-hide-on-print] {
        display: none !important;
    }

    .fwt-palette-print-heading {
        display: block;
        margin-bottom: 1rem;
    }

    .fwt-palette-swatch-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fwt-palette-swatch-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #999;
    }
}
