/* ==========================================================================
   Infoboard phpList Newsletter Box - Stylesheet
   ========================================================================== */

:root {
    --phplist-primary: #ff6600; /* Die Hauptfarbe (Orange) */
    --phplist-primary-hover: #cc5200; /* Dunkleres Orange beim drüberfahren */
    --phplist-overlay: rgba(0, 0, 0, 0.85); /* Dunkler, halbtransparenter Hintergrund */
    --phplist-text: #333333;
    --phplist-bg-box: #ffffff;
}

/* --- 1. Die Teaser-Box (Das Element direkt auf der Seite) --- */
.phplist-teaser-box {
    background-color: #e8e8e8; /* Etwas dunklerer grauer Hintergrund */
    border: 1px solid #cccccc; /* Farblich passender, etwas dunklerer Rahmen */
    border-top: 4px solid var(--phplist-primary); /* Der orangene Akzent oben */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
}

.phplist-teaser-box h3 {
    margin-top: 0;
    color: var(--phplist-text);
    font-size: 22px;
    margin-bottom: 10px;
}

.phplist-teaser-box p {
    color: #555555;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Allgemeine Button-Styles (Teaser & Pop-Up) */
.phplist-trigger-btn, 
.phplist-submit {
    background-color: var(--phplist-primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phplist-trigger-btn:hover, 
.phplist-submit:hover {
    background-color: var(--phplist-primary-hover);
}

.phplist-trigger-btn:active, 
.phplist-submit:active {
    transform: scale(0.98);
}

/* --- 2. Das Pop-Up Overlay (Der dunkle Hintergrund) --- */
.phplist-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--phplist-overlay); /* Hier ist der abgedunkelte Hintergrund */
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

/* --- 3. Die Pop-Up Box an sich --- */
.phplist-modal-content {
    background-color: var(--phplist-bg-box);
    padding: 35px;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.phplist-modal-content h3 {
    margin-top: 0;
    font-size: 24px;
    color: var(--phplist-text);
    margin-bottom: 10px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 10px;
}

.phplist-modal-content p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Das Schließen-X */
.phplist-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.phplist-close:hover,
.phplist-close:focus {
    color: var(--phplist-primary);
    text-decoration: none;
}

/* --- 4. Das Formular --- */
.phplist-form {
    display: flex;
    flex-direction: column;
}

.phplist-form-group {
    margin-bottom: 15px;
}

.phplist-form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Orangener Rahmen, wenn man in das Feld klickt */
.phplist-form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--phplist-primary);
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}

.phplist-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.phplist-checkbox input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.phplist-checkbox label {
    font-size: 13px;
    color: #555555;
    line-height: 1.4;
    cursor: pointer;
}

.phplist-checkbox label a {
    color: var(--phplist-primary);
    text-decoration: none;
    font-weight: bold;
}

.phplist-checkbox label a:hover {
    text-decoration: underline;
}

.phplist-submit {
    width: 100%;
}

.phplist-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* --- 5. Lade-Animation & Nachrichten --- */
.phplist-loader {
    margin-top: 15px;
    font-size: 13px;
    color: #666666;
    text-align: center;
    font-style: italic;
}

.phplist-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    display: none; /* Wird über JS eingeblendet */
}

.phplist-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.phplist-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}