/* Werbe-Platzhalter + Anfrage-Modal (Stadtseiten) */

/* —— Variante: compact (horizontal) —— */
.city-intro-section--werben-compact .container > div {
    max-width: 100% !important;
}

.stadt-werben-slot--compact {
    padding: 14px 16px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
}

.stadt-werben-slot__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stadt-werben-slot__main {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.stadt-werben-slot__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.stadt-werben-slot__label {
    display: inline-block;
    margin: 0;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-warm);
    border-radius: var(--radius-sm, 4px);
    line-height: 1.4;
}

.stadt-werben-slot__title {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.stadt-werben-slot__tagline {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
}

.stadt-werben-slot__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-secondary);
}

.stadt-werben-slot--compact .stadt-werben-slot__cta {
    font-size: 0.8125rem;
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
    max-width: 9.5rem;
    line-height: 1.25;
}

.stadt-werben-slot__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.stadt-werben-slot__cta:hover {
    background: var(--color-primary-dark, #234a1f);
}

.stadt-werben-slot__cta:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .stadt-werben-slot--compact .stadt-werben-slot__row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .stadt-werben-slot--compact .stadt-werben-slot__cta {
        width: 100%;
        padding: 10px 16px;
    }
}

/* —— Variante: expanded (groß, zentriert) —— */
.stadt-werben-slot--expanded {
    margin-top: 8px;
    padding: 24px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    text-align: center;
}

.stadt-werben-slot--expanded .stadt-werben-slot__label {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: var(--color-bg-warm);
    border-radius: var(--radius-md);
}

.stadt-werben-slot--expanded .stadt-werben-slot__title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.stadt-werben-slot--expanded .stadt-werben-slot__tagline {
    margin: 0 auto 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    max-width: 28rem;
}

.stadt-werben-slot--expanded .stadt-werben-slot__text {
    margin: 0 auto 20px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 36rem;
}

.stadt-werben-slot--expanded .stadt-werben-slot__cta--block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.stadt-werben-slot--expanded .stadt-werben-slot__cta--block:hover {
    background: var(--color-primary-dark, #234a1f);
    transform: translateY(-1px);
}

.stadt-werben-slot--expanded .stadt-werben-slot__cta--block:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Native dialog */
.werben-dialog {
    width: min(100% - 32px, 480px);
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: none;
    border-radius: var(--radius-2xl, 1rem);
    background: transparent;
    overflow: visible;
}

.werben-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.werben-dialog__panel {
    position: relative;
    padding: 32px 24px 24px;
    background: var(--color-white);
    border-radius: var(--radius-2xl, 1rem);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    max-height: calc(100vh - 32px);
}

.werben-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.werben-dialog__close:hover {
    background: var(--color-bg-warm);
    color: var(--color-text);
}

.werben-dialog__title {
    margin: 0 48px 8px 0;
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}

.werben-dialog__desc {
    margin: 0 0 24px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.werben-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

.werben-form__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.werben-form__field input[type="text"],
.werben-form__field input[type="email"],
.werben-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
}

.werben-form__field input:focus,
.werben-form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.15);
}

.werben-form__field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.werben-form__field--checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.werben-form__field--checkbox label {
    margin: 0;
    font-weight: 400;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.werben-form__req {
    color: #b45309;
}

.werben-form__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.werben-form__cancel {
    padding: 10px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.werben-form__hint {
    margin: 16px 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.werben-form__success {
    text-align: center;
}

.werben-form__success p {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.werben-form.is-invalid .werben-form__field input:invalid,
.werben-form.is-invalid .werben-form__field textarea:invalid {
    border-color: #dc2626;
}

@media (min-width: 480px) {
    .werben-form__actions {
        flex-direction: row;
        align-items: center;
    }

    .werben-form__cancel {
        margin-left: auto;
    }
}
