/* ==========================================================================
   Stoffmuster Bestseller Landing Page — Mobile-First
   ========================================================================== */

/* Reset & Base */
.stoffmuster-landingpage {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.stoffmuster-landingpage * {
    box-sizing: border-box;
}

/* Header */
.lp-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.lp-header__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lp-header__logo img {
    display: block;
    height: 32px;
    width: auto;
}

.lp-header__trust {
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* Main */
.lp-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero */
.lp-hero {
    text-align: center;
    padding: 24px 0 16px;
}

.lp-hero__image {
    margin: 0 -16px 20px;
}

.lp-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

.lp-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.2;
}

.lp-hero__subtitle {
    font-size: 18px;
    color: #555;
    margin: 0;
}

/* Trust Section */
.lp-trust {
    padding: 20px 0;
}

.lp-trust__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.lp-trust__icon {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Form Section */
.lp-form-section {
    padding: 0 0 40px;
}

.lp-form {
    position: relative;
}

.lp-form__field {
    margin-bottom: 16px;
}

.lp-form__row {
    display: flex;
    gap: 12px;
}

.lp-form__field--half {
    flex: 1;
}

.lp-form__field--street {
    flex: 2;
}

.lp-form__field--housenumber {
    flex: 0 0 80px;
}

.lp-form__field--plz {
    flex: 0 0 100px;
}

.lp-form__field--city {
    flex: 1;
}

.lp-form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.lp-form__label .required {
    color: #e53935;
}

.lp-form__input,
.lp-form__select {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.lp-form__input:focus,
.lp-form__select:focus {
    outline: none;
    border-color: #537393;
    box-shadow: 0 0 0 2px rgba(83, 115, 147, 0.15);
}

.lp-form__input.has-error,
.lp-form__select.has-error {
    border-color: #e53935;
}

.lp-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.lp-form__error {
    font-size: 13px;
    color: #e53935;
    margin-top: 4px;
    min-height: 0;
}

/* Checkbox */
.lp-form__field--checkbox {
    margin: 20px 0;
}

.lp-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    cursor: pointer;
}

.lp-form__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.lp-form__checkbox-label a {
    color: #537393;
    text-decoration: underline;
}

/* Submit Button */
.lp-form__submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #ff9c09;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    text-align: center;
    letter-spacing: 0.5px;
}

.lp-form__submit:hover:not(:disabled) {
    background: #e88a00;
}

.lp-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lp-form__submit-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Spinner Animation */
@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

.lp-spinner {
    animation: lp-spin 1s linear infinite;
}

/* Form Message */
.lp-form__message {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

.lp-form__message--error {
    background: #fde8e8;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.lp-form__message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Footer */
.lp-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px 16px;
    text-align: center;
}

.lp-footer__inner {
    max-width: 720px;
    margin: 0 auto;
    font-size: 13px;
    color: #888;
}

.lp-footer__inner a {
    color: #666;
    text-decoration: none;
}

.lp-footer__inner a:hover {
    text-decoration: underline;
}

.lp-footer__sep {
    margin: 0 8px;
}

/* ==========================================================================
   Desktop (min-width: 720px)
   ========================================================================== */
@media (min-width: 720px) {
    .lp-header__logo img {
        height: 40px;
    }

    .lp-header__trust {
        font-size: 14px;
    }

    .lp-hero {
        padding: 40px 0 24px;
    }

    .lp-hero__image {
        margin: 0 0 24px;
        border-radius: 8px;
        overflow: hidden;
    }

    .lp-hero__title {
        font-size: 36px;
    }

    .lp-hero__subtitle {
        font-size: 20px;
    }

    .lp-trust {
        padding: 24px 0;
    }

    .lp-trust__item {
        font-size: 16px;
    }
}
