/* ==================================================
   LLMS GENERATOR CSS
   ==================================================

   Zweck:
   Nur stylespezifische Regeln für den LLMS-Generator.

   Grundlayout, Grid, Cards, globale Farben und
   Standardtypografie kommen weiterhin aus:
   - base.css
   - content.css
================================================== */


/* ==================================================
   LOKALE VARIABLEN
================================================== */

.llms-card {
    --llms-primary: #244c7c;
    --llms-primary-dark: #173657;
    --llms-accent: #81ab2e;
    --llms-success: #2f855a;
    --llms-error: #c53030;
    --llms-muted: #64748b;
    --llms-border: #dbe3ea;
    --llms-surface: #ffffff;
    --llms-soft-bg: #f7f9fb;
}


/* ==================================================
   GENERATOR-FORMULAR
================================================== */

.llms-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.llms-card label {
    display: block;
    margin-bottom: 7px;
    color: var(--llms-primary-dark);
    font-weight: 700;
}

.llms-card input[type="text"],
.llms-card input[type="email"],
.llms-card input[type="tel"],
.llms-card select,
.llms-card textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #b9c6d2;
    border-radius: 6px;
    background: var(--llms-surface);
    color: #26384b;
    font: inherit;
}

.llms-card input[type="text"],
.llms-card input[type="email"],
.llms-card input[type="tel"],
.llms-card select {
    min-height: 48px;
}

.llms-card input:focus,
.llms-card select:focus,
.llms-card textarea:focus {
    border-color: var(--llms-primary);
    outline: 3px solid rgba(36, 76, 124, 0.14);
}

.llms-card button,
.llms-paypal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--llms-primary);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.llms-card button:hover,
.llms-paypal-button:hover {
    background: var(--llms-primary-dark);
    color: #ffffff;
}

.llms-card button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.llms-note {
    margin: 12px 0 0;
    color: var(--llms-muted);
    font-size: 0.9rem;
}


/* ==================================================
   FORTSCHRITT
================================================== */

.llms-progress {
    display: none;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--llms-border);
    border-radius: 8px;
    background: var(--llms-soft-bg);
}

.llms-progress.is-active {
    display: block;
}

.llms-progress-title {
    margin-bottom: 9px;
    color: var(--llms-primary-dark);
    font-weight: 700;
}

.llms-progress-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe6ec;
}

.llms-progress-bar {
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 100%;
    border-radius: 999px;
    background: var(--llms-accent);
    animation: llms-loading 1.2s linear infinite;
}

.llms-progress-text {
    margin-top: 9px;
    color: var(--llms-muted);
    font-size: 0.88rem;
}

@keyframes llms-loading {
    from {
        left: -35%;
    }

    to {
        left: 100%;
    }
}


/* ==================================================
   MELDUNGEN
================================================== */

.llms-error,
.llms-success {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 8px;
}

.llms-error {
    border: 1px solid #efb3b3;
    background: #fff5f5;
    color: #8e2222;
}

.llms-success {
    border: 1px solid #a8d5ba;
    background: #f0fff4;
    color: #276749;
}


/* ==================================================
   LLMS-AUSGABE
================================================== */

.llms-output {
    width: 100%;
    min-height: 620px;
    padding: 16px;
    border: 1px solid var(--llms-border);
    border-radius: 8px;
    background: #f8fafb;
    color: #26384b;
    font-family:
        Consolas,
        Monaco,
        "Courier New",
        monospace;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
}

.llms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}


/* ==================================================
   STATISTIK
================================================== */

.llms-stat-group {
    margin-bottom: 22px;
}

.llms-stat-group:last-child {
    margin-bottom: 0;
}

.llms-stat-group h4 {
    margin: 0 0 10px;
    color: var(--llms-primary-dark);
    font-size: 0.95rem;
}

.llms-stat-list {
    margin: 0;
}

.llms-stat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e7edf2;
}

.llms-stat-row:last-child {
    border-bottom: 0;
}

.llms-stat-row dt {
    margin: 0;
    color: var(--llms-muted);
}

.llms-stat-row dd {
    margin: 0;
    color: #26384b;
    font-weight: 700;
    text-align: right;
}

.llms-status-valid {
    color: var(--llms-success) !important;
}

.llms-status-invalid {
    color: var(--llms-error) !important;
}


/* ==================================================
   KONTAKTFORMULAR
================================================== */

.llms-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.llms-contact-field-full {
    grid-column: 1 / -1;
}

.llms-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.llms-required {
    color: var(--llms-error);
}

.llms-checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.llms-checkbox-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.llms-checkbox-row label {
    margin: 0;
    font-weight: 400;
}


/* ==================================================
   CAPTCHA
================================================== */

.llms-captcha-box {
    padding: 18px;
    border: 1px solid var(--llms-border);
    border-radius: 8px;
    background: var(--llms-soft-bg);
    text-align: center;
}

.llms-captcha-title {
    margin: 0 0 16px;
    color: var(--llms-primary-dark);
    font-weight: 700;
    text-align: center;
}

.llms-captcha-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.llms-captcha-option {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.llms-captcha-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.llms-captcha-option label {
    display: flex;
    width: 76px;
    height: 76px;
    margin: 0;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5df;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.llms-captcha-option input:checked + label {
    border-color: var(--llms-accent);
    box-shadow: 0 0 0 3px rgba(129, 171, 46, 0.18);
}

.llms-shape {
    display: block;
    flex: 0 0 auto;
    border: 3px solid var(--llms-primary);
}

.llms-shape-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.llms-shape-rectangle {
    width: 48px;
    height: 29px;
}

.llms-shape-square {
    width: 36px;
    height: 36px;
}


/* ==================================================
   HONEYPOT
================================================== */

.llms-hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


/* ==================================================
   SPENDEN-KACHEL
================================================== */

.llms-donation {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.llms-donation-amount {
    width: 100%;
    margin: 22px 0;
    color: var(--llms-primary-dark);
    font-size: 1.45rem;
    font-weight: 800;
    text-align: center;
}

.llms-paypal-name {
    margin: 4px 0 20px;
    padding: 12px;
    border: 1px solid var(--llms-border);
    border-radius: 7px;
    background: var(--llms-soft-bg);
    overflow-wrap: anywhere;
    font-weight: 700;
    text-align: center;
}

.llms-paypal-button {
    width: 100%;
    margin-top: 4px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 760px) {

    .llms-form-grid,
    .llms-contact-grid {
        grid-template-columns: 1fr;
    }

    .llms-contact-field-full {
        grid-column: auto;
    }

    .llms-output {
        min-height: 480px;
    }
}
/* ==================================================
   EXPERTEN-ANALYSE
================================================== */

.llms-expert-panel {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(32, 54, 101, 0.35);
    border-radius: 6px;
    background: rgba(255, 214, 102, 0.16);
}

.llms-expert-panel h3 {
    margin: 0 0 14px;
    color: #203665;
    text-align: left;
}

.llms-expert-panel p {
    margin: 0 0 14px;
    color: var(--color-text);
    text-align: left;
}

.llms-expert-panel .llms-checkbox-row {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(32, 54, 101, 0.22);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.35);
}

.llms-expert-panel .llms-checkbox-row label {
    margin: 0;
    font-weight: 400;
    line-height: 1.45;
}

.llms-expert-panel .llms-actions {
    margin-top: 18px;
}

.llms-expert-panel .llms-progress {
    margin-top: 18px;
}
/* ==================================================
   FAQ
================================================== */

.llms-faq {
    margin-top: 24px;
}

.llms-faq details {
    border-bottom: 1px solid rgba(32, 54, 101, 0.25);
}

.llms-faq details:first-child {
    border-top: 1px solid rgba(32, 54, 101, 0.25);
}

.llms-faq summary {
    position: relative;
    padding: 18px 46px 18px 0;
    color: #203665;
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.llms-faq summary::-webkit-details-marker {
    display: none;
}

.llms-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #203665;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 400;
}

.llms-faq details[open] summary::after {
    content: "-";
}

.llms-faq details p {
    margin: 0;
    padding: 0 46px 18px 0;
    color: var(--color-text);
    text-align: left;
    font-size: 1rem;
    line-height: 1.55;
}