/**
 * FWT PDF-Helfer
 * Datei: tools/pdf-helfer/assets/pdf-helfer.css
 * Zweck: Gestaltung des PDF-Helfers
 *
 * Projekt: FWT / Freie Webtools
 * Stand: 2026-07-22
 */

/* ============================================================
   01. Hinweis-Boxen (konsistent mit den anderen FWT-Tools)
   ============================================================ */

.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-pdf-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-pdf-hero {
    padding: clamp(3rem, 7vw, 6rem) 0;
    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-pdf-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.fwt-pdf-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-pdf-hero__content p {
    max-width: 760px;
    margin-top: 1rem;
    color: var(--webtools-muted, #61717d);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.fwt-pdf-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;
}

.fwt-pdf-hero__visual {
    display: grid;
    place-items: center;
}

.fwt-pdf-lock-card {
    width: min(100%, 360px);
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(246, 189, 69, 0.32), transparent 12rem),
        radial-gradient(circle at 80% 85%, rgba(22, 129, 140, 0.24), transparent 14rem),
        #ffffff;
    border: 1px solid rgba(21, 35, 45, 0.10);
    box-shadow: 0 28px 80px rgba(21, 35, 45, 0.14);
}

.fwt-pdf-lock-card__icon {
    width: 7rem;
    height: 7rem;
    display: grid;
    place-items: center;
    border-radius: 2rem;
    background: #10222a;
    color: #f6bd45;
    font-size: 1.5rem;
    font-weight: 950;
    letter-spacing: 0.05em;
}

.fwt-pdf-lock-card strong {
    margin-top: 1rem;
    color: var(--webtools-text, #15232d);
    font-size: 1.5rem;
}

.fwt-pdf-lock-card small {
    color: var(--webtools-muted, #61717d);
}

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

.fwt-pdf-section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

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

.fwt-pdf-shell,
.fwt-pdf-limits {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.fwt-pdf-info h2,
.fwt-pdf-tool__head h2,
.fwt-pdf-limits h2 {
    margin: 0;
    color: var(--webtools-text, #15232d);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.fwt-pdf-info p {
    color: var(--webtools-muted, #61717d);
}

/* ============================================================
   04. Werkzeug-Karte
   ============================================================ */

.fwt-pdf-tool {
    padding: clamp(1.2rem, 3vw, 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-pdf-tool__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

/* ============================================================
   05. Modus-Umschalter
   ============================================================ */

.fwt-pdf-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px dashed rgba(21, 35, 45, 0.14);
}

.fwt-pdf-mode-button {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(21, 35, 45, 0.14);
    background: #f5fbfc;
    color: var(--webtools-muted, #61717d);
    font-weight: 800;
    cursor: pointer;
}

.fwt-pdf-mode-button.is-active {
    background: var(--webtools-primary, #16818c);
    border-color: var(--webtools-primary, #16818c);
    color: #ffffff;
}

.fwt-pdf-mode-help {
    color: var(--webtools-muted, #61717d);
    margin: 0 0 1rem;
}

/* ============================================================
   06. Datei-Auswahl
   ============================================================ */

.fwt-pdf-file-picker {
    display: inline-flex;
    cursor: pointer;
}

.fwt-pdf-file-list {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0;
}

.fwt-pdf-file-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    background: #f5fbfc;
    border: 1px solid rgba(21, 35, 45, 0.10);
}

.fwt-pdf-file-item__name {
    overflow-wrap: anywhere;
    font-family: Consolas, monospace;
    font-size: 0.9rem;
    color: var(--webtools-text, #15232d);
}

.fwt-pdf-file-item__actions {
    display: flex;
    gap: 0.35rem;
}

.fwt-pdf-file-item__actions button {
    min-width: 2.2rem;
    min-height: 2.2rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(21, 35, 45, 0.14);
    background: #ffffff;
    color: var(--webtools-text, #15232d);
    cursor: pointer;
    font-weight: 800;
}

.fwt-pdf-file-item__actions button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.fwt-pdf-file-info {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: #eaf8fa;
    color: #0f5962;
    font-weight: 750;
}

/* ============================================================
   07. Bereichs-Formulare (Trennen, Drehen)
   ============================================================ */

.fwt-pdf-range-form {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

.fwt-pdf-field {
    display: grid;
    gap: 0.4rem;
}

.fwt-pdf-field label {
    color: var(--webtools-text, #15232d);
    font-weight: 850;
}

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

.fwt-pdf-field select:focus,
.fwt-pdf-field input:focus {
    outline: 3px solid rgba(246, 189, 69, 0.75);
    outline-offset: 2px;
    border-color: var(--webtools-primary, #16818c);
}

/* ============================================================
   08. Ergebnis
   ============================================================ */

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

.fwt-pdf-result__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    color: var(--webtools-muted, #61717d);
}

/* ============================================================
   09. Grenzen
   ============================================================ */

.fwt-pdf-limits__list {
    display: grid;
    gap: 1rem;
}

/* ============================================================
   10. Responsive
   ============================================================ */

@media (max-width: 1000px) {
    .fwt-pdf-hero__grid,
    .fwt-pdf-shell,
    .fwt-pdf-limits {
        grid-template-columns: 1fr;
    }

    .fwt-pdf-tool__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .fwt-pdf-file-item {
        grid-template-columns: 1fr;
    }

    .fwt-pdf-result__row {
        flex-direction: column;
        align-items: flex-start;
    }
}
