/* Alarmanlagen.PRO Preisversprechen – Frontend Styles */

/* Abstand nach unten (eine Textzeile) */
.apppp-price-promise {
    margin-bottom: 1em;
    font-family: Arial, sans-serif;
    position: relative;
    display: inline-block;
}

/* Haupt-Badge */
.apppp-main-text {
    padding: 6px 14px;
    border-radius: 999px;
    background: #F2F5F7;
    border: 1px solid #EE8307;
    color: #3A3A3A;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

/* Hover-Effekt Haupt-Badge */
.apppp-main-text:hover {
    background: #EE8307;
    color: #FFFFFF;
}

.apppp-text-line {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.apppp-fade-out {
    opacity: 0;
}

.apppp-fade-in {
    opacity: 1;
}

/* Info-Layer */
.apppp-info-panel {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    max-width: 640px;
    padding: 14px 16px;
    background: #3A3A3A;
    color: #FFFFFF;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
    max-height: 90vh;
    overflow-y: auto;
}

.apppp-info-panel.apppp-info-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Texte im Info-Layer */
.apppp-info-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
}

/* Formular im Infolayer */
.apppp-form {
    margin-top: 8px;
    font-size: 14px;
}

.apppp-form-heading {
    font-weight: bold;
    margin: 0 0 8px;
}

.apppp-form-row {
    margin-bottom: 8px;
}

.apppp-form-row label {
    display: block;
    margin-bottom: 3px;
}

.apppp-form-row input[type="text"],
.apppp-form-row input[type="email"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #CCCCCC;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.apppp-input-with-unit {
    display: flex;
    align-items: center;
}

.apppp-input-with-unit input {
    flex: 1;
}

.apppp-input-unit {
    margin-left: 6px;
}

/* Fehlermeldungen */
.apppp-form-error {
    margin: 6px 0;
    color: #FFBABA;
    font-size: 13px;
}

.apppp-form-error ul {
    margin: 0;
    padding-left: 16px;
}

/* Button */
.apppp-info-button {
    display: inline-block;
    padding: 6px 12px;
    background: #EE8307;
    color: #FFFFFF;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.apppp-info-button:hover {
    background: #d67206;
    color: #FFFFFF;
}

/* Erfolgsnachricht */
.apppp-success-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

/* Gutschein-Token */
.apppp-coupon {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px dashed #F5F5F5;
    background: #9E9E9E;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.apppp-coupon-msg {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apppp-coupon-msg-visible {
    opacity: 1;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .apppp-price-promise {
        display: block;
    }

    .apppp-main-text {
        width: 100%;
        white-space: normal;
    }

    .apppp-info-panel {
        position: absolute;
        width: 95%;
        max-width: none;
        max-height: 90vh;
        overflow-y: auto;
    }
}
