/* Pre-Launch Verkäufer-Vormerkung — Popup, Trigger, Bestätigungsseite
   Marktplatz-Design (Homepage-Tokens: Teal #087680, Creme #fbf7f0, Terracotta #de4f32). */

:root {
    --swl-teal: #087680;
    --swl-teal-dark: #075861;
    --swl-heading: #1f5f69;
    --swl-bg: #fbf7f0;
    --swl-surface: #ffffff;
    --swl-border: #ece3d6;
    --swl-muted: #8a8478;
    --swl-text: #3a352e;
    --swl-terracotta: #de4f32;
    --swl-gold: #f2b94b;
    --swl-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --swl-display: Georgia, "Times New Roman", serif;
}

/* ---- Trigger-Button (fix unten links) ---- */
.swl-trigger {
    position: fixed; left: 18px; bottom: 18px; z-index: 9000;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--swl-teal); color: #fff; border: 0;
    border-radius: 999px; padding: 11px 18px; cursor: pointer;
    font-family: var(--swl-sans); font-size: 14px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(8, 118, 128, .28); transition: background .15s, transform .15s;
}
.swl-trigger:hover { background: var(--swl-teal-dark); transform: translateY(-1px); }
.swl-trigger .material-icons { font-size: 19px; }
@media (max-width: 560px) {
    .swl-trigger { left: 12px; bottom: 12px; padding: 10px 14px; }
    .swl-trigger-text { display: none; }
}

/* ---- Overlay + Modal ---- */
.swl-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(31, 41, 43, .55); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: swl-fade .2s ease;
}
.swl-overlay[hidden] { display: none; }
@keyframes swl-fade { from { opacity: 0; } to { opacity: 1; } }

.swl-modal {
    position: relative; width: 100%; max-width: 540px;
    background: var(--swl-surface); border: 1px solid var(--swl-border);
    border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    max-height: 92vh; overflow-y: auto; animation: swl-pop .22s cubic-bezier(.2, .7, .3, 1.2);
}
@keyframes swl-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.swl-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--swl-bg); color: var(--swl-muted); display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.swl-close:hover { background: #f0e7d8; color: var(--swl-text); }
.swl-close .material-icons { font-size: 20px; }

.swl-modal-body, .swl-success { padding: 30px 30px 26px; }
.swl-success { text-align: center; }

.swl-badge {
    display: inline-block; background: var(--swl-sage-soft, #eef5e8); color: var(--swl-teal-dark);
    border: 1px solid #d8e7cb; border-radius: 999px; padding: 4px 12px;
    font-family: var(--swl-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
    margin-bottom: 12px;
}
.swl-title {
    margin: 0 0 8px; font-family: var(--swl-display); font-weight: 500; letter-spacing: -.035em;
    color: var(--swl-heading); font-size: 25px; line-height: 1.15;
}
.swl-sub { margin: 0 0 18px; font-family: var(--swl-sans); font-size: 14px; line-height: 1.6; color: #5a544a; }

/* ---- Form ---- */
.swl-form { display: block; }
.swl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .swl-row { grid-template-columns: 1fr; } }
.swl-field { margin-bottom: 12px; display: flex; flex-direction: column; }
.swl-field label { font-family: var(--swl-sans); font-size: 12.5px; font-weight: 600; color: var(--swl-text); margin-bottom: 5px; }
.swl-field input, .swl-field select, .swl-field textarea {
    font-family: var(--swl-sans); font-size: 14px; color: var(--swl-text);
    background: #fff; border: 1px solid #dcd3c4; border-radius: 8px;
    min-height: 40px; padding: 8px 12px; width: 100%; box-sizing: border-box; transition: border-color .15s, box-shadow .15s;
}
.swl-field textarea { min-height: 58px; resize: vertical; }
.swl-field input:focus, .swl-field select:focus, .swl-field textarea:focus {
    outline: none; border-color: var(--swl-teal); box-shadow: 0 0 0 3px rgba(8, 118, 128, .12);
}

/* Honeypot versteckt */
.swl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.swl-more-toggle {
    background: none; border: 0; cursor: pointer; color: var(--swl-teal); font-family: var(--swl-sans);
    font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0 10px;
}
.swl-more-toggle .material-icons { font-size: 18px; transition: transform .15s; }
.swl-more-toggle.is-open .material-icons { transform: rotate(180deg); }

.swl-error {
    background: #fdecea; border: 1px solid #f3c4bb; color: #b23a22;
    border-radius: 8px; padding: 9px 12px; font-family: var(--swl-sans); font-size: 13px; margin-bottom: 12px;
}

.swl-submit {
    width: 100%; background: var(--swl-teal); color: #fff; border: 0; border-radius: 5px;
    min-height: 44px; padding: 0 22px; cursor: pointer; font-family: var(--swl-sans); font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: background .15s; margin-top: 4px;
}
.swl-submit:hover { background: var(--swl-teal-dark); }
.swl-submit:disabled { cursor: default; opacity: .9; }
.swl-submit-spin {
    width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    border-radius: 50%; animation: swl-spin .7s linear infinite;
}
@keyframes swl-spin { to { transform: rotate(360deg); } }

.swl-consent { margin: 12px 0 0; font-family: var(--swl-sans); font-size: 11.5px; line-height: 1.5; color: var(--swl-muted); }

/* ---- Success-State ---- */
.swl-success-icon, .swl-confirm-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center; background: #eef5e8; color: var(--swl-teal);
}
.swl-success-icon .material-icons { font-size: 34px; }

/* ---- Bestätigungsseite ---- */
.swl-confirm-page { background: var(--swl-bg); min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.swl-confirm-card {
    background: var(--swl-surface); border: 1px solid var(--swl-border); border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .07); padding: 40px 34px; max-width: 480px; width: 100%; text-align: center;
}
.swl-confirm-icon .material-icons { font-size: 36px; }
.swl-confirm-icon--ok { background: #eef5e8; color: var(--swl-teal); }
.swl-confirm-icon--err { background: #fdecea; color: var(--swl-terracotta); }
.swl-confirm-title { margin: 0 0 10px; font-family: var(--swl-display); font-weight: 500; letter-spacing: -.035em; color: var(--swl-heading); font-size: 26px; }
.swl-confirm-text { margin: 0 0 22px; font-family: var(--swl-sans); font-size: 14.5px; line-height: 1.6; color: #5a544a; }
.swl-confirm-home {
    display: inline-block; background: var(--swl-teal); color: #fff; text-decoration: none;
    border-radius: 5px; min-height: 38px; line-height: 38px; padding: 0 26px;
    font-family: var(--swl-sans); font-size: 14px; font-weight: 600;
}
.swl-confirm-home:hover { background: var(--swl-teal-dark); }
