/* Massenmails: Auswahl der Mailfunktion (Kacheln) und Schritt-für-Schritt-Assistent (MDB-Stepper nur als Kopf, Inhalt darunter zentriert). */

/* Kacheln der Auswahl sind Links: ganze Fläche klickbar, Hover wie eine angehobene Karte */
/* Auswahl mittig wie der Assistent (gleiche Breite), Kacheln zentriert auch bei wenigen Funktionen */
.aqc-mailing-intro {
    margin: 0.5rem auto 1.5rem;
}
.aqc-mailing-choices {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.aqc-mailing-choice {
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}
.aqc-mailing-choice:hover,
.aqc-mailing-choice:focus-visible {
    color: inherit;
    box-shadow: var(--mdb-box-shadow-4, 0 4px 12px rgba(0, 0, 0, 0.15));
    transform: translateY(-2px);
}
.aqc-mailing-choice-icon {
    font-size: 1.75rem;
    color: var(--mdb-primary);
    width: 2.25rem;
    text-align: center;
    flex: 0 0 auto;
}

.aqc-wizard {
    max-width: 1100px;
    margin: 0 auto;
}

/* Köpfe sind nur Anzeige (weiter nur über die Buttons): kein Zeiger, kein Hover */
.aqc-stepper .stepper-head,
.aqc-stepper .stepper-disabled .stepper-head {
    cursor: default;
}
.aqc-stepper .stepper-head:hover {
    background-color: transparent;
}
/* Stepper dicht unter der blauen Titelleiste: die MDB-Vorgabe (4,5rem Höhe, 1,5rem Abstand ums Symbol) ist für diese Seite zu luftig */
.aqc-stepper {
    --mdb-stepper-step-height: 3rem;
    --mdb-stepper-head-icon-margin-y: 0.5rem;
    margin-top: -0.75rem;
    margin-bottom: 0.25rem;
}

.aqc-wizard-body {
    max-width: 820px;
    margin: 1rem auto 0;
}
/* Die Vorschau braucht die volle Kartenbreite */
.aqc-wizard-body:has(> .aqc-pdf-preview) {
    max-width: none;
}

.aqc-wizard-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--mdb-secondary-color);
    margin: 1rem 0 0.5rem;
}
.aqc-wizard-list {
    padding-left: 1.25rem;
}

.aqc-wizard-loader {
    text-align: center;
    padding: 3rem 0;
}
.aqc-wizard-loader .spinner-border {
    width: 3rem;
    height: 3rem;
}
.aqc-wizard-progress {
    max-width: 420px;
    height: 0.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Fußleiste: links zurück/abbrechen, rechts weiter – auch wenn nur eine Seite belegt ist */
.aqc-wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mdb-border-color);
}
.aqc-wizard-footer-start,
.aqc-wizard-footer-end {
    display: flex;
    gap: 0.5rem;
}

/* Schmale Fenster: nur die Nummern im Kopf, sonst laufen fünf Beschriftungen über */
@media (max-width: 767.98px) {
    .aqc-stepper .stepper-head-text {
        display: none;
    }
    .aqc-stepper .stepper-head-icon {
        margin-right: 0;
    }
}

.aqc-wizard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
/* Hinweise unter den Angaben mittig wie der übrige Inhalt */
.aqc-wizard-body > .aqc-info-note {
    display: flex;
    justify-content: center;
}

/* Vorschau so hoch, dass die Buttons darunter ohne Scrollen sichtbar bleiben (Kopf, Stepper, Kartenkopf, Textzeile, Fußleiste ≈ 380px) */
.aqc-wizard-body > .aqc-pdf-preview {
    height: calc(100vh - 380px);
    min-height: 420px;
}

/* Kundenliste in einer Warnung (z. B. ohne E-Mail-Adresse): spaltenweise, Nummer vorn in fester Breite, bei vielen Kunden scrollbar */
/* Die App setzt Warn-Alerts auf flex (Symbol neben Text, aqc-ui.css); hier stehen Überschrift und Liste untereinander */
body .alert.alert-warning[data-mdb-color="warning"].aqc-wizard-customer-alert {
    display: block;
}
.aqc-wizard-customer-alert-head {
    margin-bottom: 0.5rem;
}
.aqc-wizard-customer-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
    /* Raster statt CSS-Spalten: Spalten mit fester Höhe liefen seitlich über, das Raster scrollt senkrecht */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    column-gap: 1.5rem;
    max-height: 14rem;
    overflow-y: auto;
    font-size: 0.875rem;
}
.aqc-wizard-customer-list li {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}
.aqc-wizard-customer-list li > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}
.aqc-wizard-customer-number {
    flex: 0 0 3.25rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}

/* Jahr in Schritt 1: große Input-Group, nur so breit wie nötig (vier Ziffern) */
.aqc-wizard-year {
    max-width: 16rem;
}

/* Ticketarten in drei Spalten brauchen die volle Kartenbreite */
.aqc-wizard-body:has(.aqc-check-list-group) {
    max-width: none;
}

/* Eine kleine Zeile über der Vorschau statt Überschrift + Inhaltszeile */
.aqc-wizard-preview-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--mdb-secondary-color);
    margin-bottom: 0.5rem;
}

/* Trefferliste des Vorlagenversands: bei vielen Kunden begrenzt hoch und scrollbar, Kopfzeile bleibt stehen */
.aqc-wizard-candidates {
    max-height: 22rem;
    overflow-y: auto;
    border: 1px solid var(--mdb-border-color);
    border-radius: 0.25rem;
}
.aqc-wizard-candidates thead th {
    position: sticky;
    top: 0;
    background-color: var(--mdb-body-bg);
    z-index: 1;
}
.aqc-wizard-candidates td:first-child,
.aqc-wizard-candidates th:first-child {
    width: 2.5rem;
}
/* Filter und Trefferliste brauchen die volle Kartenbreite */
.aqc-wizard-body:has(.aqc-wizard-candidates),
.aqc-wizard-body:has(.aqc-check-list-group) {
    max-width: none;
}
