:root {
    --accent: #7a3b69;
    --border: #ddd;
}
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #f7f5f6;
    color: #1a1a1a;
}
/* Wie im Consent-Portal: --border wird lokal dunkler überschrieben, damit
   Feldrahmen auf dem weißen Formular-Hintergrund stärker hervortreten. */
body.consent-form-page {
    --border: #a3a3a3;
    background: #fff;
}
.page-wrap {
    max-width: 720px;
    margin: 0 auto;
    background-image: url("/assets/logo-head-bg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 480px auto;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 16px 0;
}
.site-header-logo {
    height: 50px;
    display: block;
}
.site-header h1 {
    margin: 0;
    font-size: 1.5rem;
}
@media (max-width: 480px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }
    .site-header-logo {
        order: -1;
    }
}
.site-footer {
    margin-top: 0;
    padding: 16px 16px 32px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}
.site-footer p {
    margin: 2px 0;
}
.site-footer a {
    color: #666;
}
.lang-switch-bar {
    margin-top: 40px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.lang-switch {
    margin: 0 !important;
}
.lang-switch a,
.lang-switch .lang-switch-current {
    text-decoration: none;
}
.lang-switch .lang-switch-current {
    font-weight: bold;
    color: #333;
}
.lang-flag {
    width: 24px;
    height: 18px;
    vertical-align: middle;
    margin-bottom: 2px;
}
.page-center {
    max-width: 480px;
    margin: 80px auto;
    text-align: center;
    padding: 0 16px;
}
.wizard {
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 16px 64px;
}
/* Kreis-Stepper (Desktop/Tablet ab 700px) - darunter kompakte "Schritt X
   von Y"-Anzeige mit Fortschrittsbalken. */
.steps-indicator {
    display: none;
    margin-bottom: 28px;
}
.steps-indicator .step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
}
.steps-indicator .step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    background: #fff;
    color: #888;
    position: relative;
    z-index: 1;
}
.steps-indicator .step.is-clickable::before,
.steps-indicator .step.active::before {
    background: var(--accent);
}
.steps-indicator .step.is-clickable .step-circle {
    border-color: var(--accent);
    color: var(--accent);
    cursor: pointer;
}
.steps-indicator .step.is-clickable:hover .step-circle {
    background: var(--accent);
    color: #fff;
}
.steps-indicator .step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.steps-indicator .step.active .step-label {
    color: var(--accent);
    font-weight: bold;
}
.steps-indicator-mobile {
    margin-bottom: 20px;
}
.steps-indicator-mobile-text {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}
.steps-indicator-mobile-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
}
.steps-indicator-mobile-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.2s ease;
}
@media (min-width: 700px) {
    .steps-indicator {
        display: flex;
    }
    .steps-indicator-mobile {
        display: none;
    }
}
.wizard-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* "Weiter" soll immer rechts stehen, auch wenn "Zurück" (auf Schritt 1)
   nicht sichtbar ist - per visibility statt display ausgeblendet. */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}
.wizard-nav-single {
    justify-content: flex-start;
}
.error-banner {
    color: #b00020;
    font-weight: bold;
    margin-bottom: 12px;
}
.consent-form-page .error-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fdecea;
    border: 1px solid #f3c1c6;
    border-left: 3px solid #b00020;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 12px 0;
}

/* Card-Darstellung der Angebotsdaten (Schritt 1) - identisch zum Muster
   ".termin-summary"/"table.kv" der Vergütungsvereinbarung im
   Consent-Portal (vom Studio vorgegebene, nicht editierbare Daten). */
.termin-summary {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
}
table.kv {
    width: 100%;
    border-collapse: collapse;
}
table.kv tr:not(:last-child) td {
    border-bottom: 1px solid var(--border);
}
table.kv td {
    padding: 10px 6px;
    font-size: 0.9rem;
    vertical-align: top;
}
table.kv td:first-child {
    font-weight: 600;
    color: #555;
    width: 38%;
    white-space: nowrap;
}
.leistungen-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 4px;
    font-size: 0.9rem;
}
.leistungen-table th,
.leistungen-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.leistungen-table th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: #555;
}
.leistungen-table td:first-child,
.leistungen-table th:first-child {
    width: 6%;
    text-align: center;
}
.leistungen-table td:last-child,
.leistungen-table th:last-child {
    width: 15%;
    text-align: right;
}
.summe-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    font-size: 0.9rem;
}
.summe-table td {
    padding: 4px 10px;
    text-align: right;
}
.summe-table td:first-child {
    text-align: left;
    color: #555;
}
.summe-table .summe-total td {
    border-top: 1px solid var(--border);
    font-weight: 600;
    padding-top: 8px;
}
.leistungen-box {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px 18px;
    margin-bottom: 4px;
}
.leistungen-box h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.leistungen-box .leistungen-table,
.leistungen-box .summe-table {
    margin-bottom: 0;
}
.leistungen-box .summe-table {
    margin-top: 10px;
}

/* Schritt 2 (Zahlung) - Gesamtbetrag prominent, farblich wie
   ".verpflichtung-box" der Vergütungsvereinbarung im Consent-Portal, dann je
   eine Karte pro Zahlart mit dem eingebetteten PayPal-Smart-Button. */
.betrag-hinweis {
    background: rgba(122, 59, 105, 0.05);
    border: 1px solid rgba(122, 59, 105, 0.25);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 1rem;
}
.betrag-hinweis strong {
    font-size: 1.3rem;
    color: var(--accent);
}
#paypal-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.paypal-option {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px 18px;
    background: rgba(0, 0, 0, 0.015);
}
.paypal-option h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.paypal-loading {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 4px;
}
/* Ersetzt den Ratenkauf-Button, wenn PayPal ihn für die aktuell erkannte
   Käufer-Region als nicht verfügbar einstuft (isEligible() === false, siehe
   paypal-payment.js) - bewusst neutral/informativ statt wie ein Fehler
   gestaltet, da es sich um eine normale, von PayPal selbst gesteuerte
   Standort-Einschränkung handelt, kein Defekt der Seite. */
.paypal-unavailable-note {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
}
.zahlung-status {
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 4px;
}
.zahlung-status h3 {
    margin: 0 0 6px;
}
.zahlung-status p {
    margin: 0;
}
.zahlung-status-success {
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.3);
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}
.zahlung-status-error {
    background: #fdecea;
    border: 1px solid #f3c1c6;
    border-left: 4px solid #b00020;
    color: #8c0016;
}
