.prp-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
}

.prp-header {
    padding: 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, .15);
}

.prp-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    opacity: .8;
    margin-bottom: 8px;
}

.prp-header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.prp-header p {
    margin: 0;
    max-width: 760px;
    color: rgba(255,255,255,.85);
    font-size: 16px;
}

.prp-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15,23,42,.07);
}

.prp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.prp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prp-full {
    grid-column: 1 / -1;
}

.prp-field label {
    font-weight: 700;
    font-size: 14px;
}

.prp-field input,
.prp-field select,
.prp-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    background: #fff;
    color: #111827;
}

.prp-field input:focus,
.prp-field select:focus,
.prp-field textarea:focus {
    outline: 2px solid #94a3b8;
    outline-offset: 1px;
}

.prp-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prp-check {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600 !important;
    background: #f8fafc;
}

.prp-check input {
    width: auto;
}

.prp-other {
    margin-top: 2px;
}

.prp-actions {
    margin-top: 26px;
    display: flex;
    justify-content: flex-end;
}

.prp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}

.prp-button:hover {
    transform: translateY(-1px);
}

.prp-button-primary {
    background: #111827;
    color: #fff;
}

.prp-button:disabled {
    opacity: .65;
    cursor: wait;
}

.prp-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: prp-spin .8s linear infinite;
}

.prp-button.is-loading .prp-spinner {
    display: inline-block;
}

@keyframes prp-spin {
    to { transform: rotate(360deg); }
}

.prp-status {
    margin-top: 18px;
    border-radius: 12px;
    padding: 12px 15px;
    display: none;
}

.prp-status-loading,
.prp-status-success,
.prp-status-error {
    display: block;
}

.prp-status-loading { background: #f1f5f9; }
.prp-status-success { background: #ecfdf5; }
.prp-status-error { background: #fef2f2; color: #991b1b; }

.prp-result {
    margin-top: 28px;
}

.prp-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
    background: #fff;
}

.prp-result th,
.prp-result td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.prp-result th {
    background: #f8fafc;
    font-weight: 800;
}

.prp-result h2 {
    margin-top: 0;
    font-size: 32px;
}

.prp-result h3 {
    margin-top: 34px;
    font-size: 23px;
}

.prp-result .prp-day {
    margin-bottom: 18px;
}

.prp-access-box {
    text-align: center;
    padding: 40px 25px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
}

.prp-access-box h3 {
    margin-top: 0;
}

.prp-error {
    padding: 16px;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 700px) {
    .prp-wrapper { margin: 15px auto; }
    .prp-header, .prp-form { padding: 20px; border-radius: 16px; }
    .prp-grid { grid-template-columns: 1fr; }
    .prp-full { grid-column: auto; }
    .prp-actions { justify-content: stretch; }
    .prp-button { width: 100%; }
    .prp-result { overflow-x: auto; }
}


.prp-pdf-actions {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.prp-pdf-actions[hidden] {
    display: none;
}

.prp-button-pdf {
    background: #334155;
    color: #fff;
}

.prp-pdf-status {
    font-size: 14px;
    color: #475569;
}

.prp-optional {
    font-weight: 500;
    opacity: .65;
    font-size: 12px;
}

.prp-access-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid #dbe1ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20,35,55,.08);
}
.prp-access-box h2 { margin: 8px 0 10px; }
.prp-access-divider { margin: 24px 0 10px; font-weight: 600; }
.prp-access-row { display:flex; gap:10px; align-items:stretch; }
.prp-access-row input { flex:1; min-width:0; }
.prp-buy-button { display:inline-block; text-decoration:none; margin-top:12px; }
@media (max-width: 700px) {
    .prp-access-row { flex-direction:column; }
}

.prp-access-box-bottom {
    margin-top: 28px;
    text-align: center;
}
.prp-access-box-bottom h3 {
    margin: 8px 0 10px;
    font-size: 24px;
}
.prp-access-box-bottom p {
    max-width: 720px;
    margin: 0 auto 14px;
}
.prp-access-box.is-highlighted {
    border-color: #334155;
    box-shadow: 0 0 0 4px rgba(51,65,85,.10), 0 12px 35px rgba(15,23,42,.12);
}

/* Zugriff am Ende: Eingabefeld + Kaufen + Freischalten auf einer Höhe */
.prp-access-box-bottom .prp-access-intro {
    margin: 0 auto 18px;
    max-width: 820px;
    font-weight: 600;
}

.prp-access-action-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

.prp-access-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex: 1 1 auto;
    max-width: 720px;
    margin: 0;
}

.prp-access-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.prp-access-form input {
    flex: 1 1 260px;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    background: #fff;
    color: #111827;
    height: 48px;
}

.prp-access-form .prp-button,
.prp-access-action-row > .prp-buy-button {
    height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 0 auto;
}

.prp-access-action-row > .prp-buy-button {
    margin: 0;
}

.prp-access-note {
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.prp-access-action-row .prp-status {
    margin-top: 0;
}

@media (max-width: 900px) {
    .prp-access-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .prp-access-form {
        max-width: none;
        width: 100%;
    }

    .prp-access-action-row > .prp-buy-button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .prp-access-form {
        flex-direction: column;
        align-items: stretch;
    }

    .prp-access-form input,
    .prp-access-form .prp-button {
        width: 100%;
    }
}

/* Zugriffscode-Eingabe und Kaufoption bleiben auf einer Linie.
   Die Freischaltung erfolgt ausschließlich über "Reiseplan erstellen". */
.prp-access-form {
    flex: 1 1 420px;
}
.prp-access-form input {
    width: 100%;
}

/* Zugangscode + Kaufoption links, Hauptaktion "Reiseplan erstellen" rechts */
.prp-access-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.prp-access-left-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}

.prp-access-left-group .prp-access-form {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 430px;
    margin: 0;
}

.prp-access-left-group .prp-access-form input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
}

.prp-access-left-group .prp-buy-button {
    height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
    margin: 0;
}

/* Auf der eigentlichen Formular-Aktionszeile:
   Code/Kauf links und Reiseplan erstellen rechts. */
#prp-form .prp-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 900px) {
    .prp-access-left-group {
        flex-direction: column;
        align-items: stretch;
    }

    .prp-access-left-group .prp-access-form {
        max-width: none;
        width: 100%;
    }

    .prp-access-left-group .prp-buy-button {
        width: 100%;
        text-align: center;
    }

    #prp-form .prp-actions {
        justify-content: stretch;
    }
}

.prp-access-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.prp-access-inline .prp-access-form {
    display: flex;
    align-items: center;
    flex: 1 1 280px;
    max-width: 360px;
    margin: 0;
}

.prp-access-inline .prp-access-form input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
}

.prp-access-inline .prp-buy-button {
    height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 0 auto;
}

.prp-access-note-inline {
    width: 100%;
    margin-top: 10px;
    text-align: right;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 900px) {
    .prp-access-inline {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .prp-access-inline .prp-access-form {
        max-width: none;
        width: 100%;
    }

    .prp-access-inline .prp-buy-button {
        width: 100%;
        text-align: center;
    }

    #prp-form .prp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .prp-access-note-inline {
        text-align: center;
    }
}

/* =========================================================
   Version 1.7.4 – Finale Aktionszeile
   ========================================================= */

#prp-form .prp-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

#prp-form .prp-access-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
}

#prp-form .prp-access-code-input {
    width: 280px;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    line-height: normal;
    outline: none;
    box-shadow: none;
}

#prp-form .prp-access-code-input::placeholder {
    color: #64748b;
    opacity: 1;
}

#prp-form .prp-access-code-input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148,163,184,.12);
}

#prp-form .prp-buy-button,
#prp-form #prp-submit {
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    white-space: nowrap;
    margin: 0;
    flex: 0 0 auto;
}

/* Hinweis exakt mittig unterhalb der Aktionszeile */
#prp-form .prp-access-note-inline {
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

#prp-form #prp-access-status {
    width: 100%;
    text-align: center;
}

@media (max-width: 900px) {
    #prp-form .prp-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #prp-form .prp-access-inline {
        flex: 1 1 100%;
        width: 100%;
    }

    #prp-form .prp-access-code-input {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 600px) {
    #prp-form .prp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    #prp-form .prp-access-inline {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #prp-form .prp-access-code-input,
    #prp-form .prp-buy-button,
    #prp-form #prp-submit {
        width: 100%;
    }
}

/* =========================================================
   Version 1.7.5 – Symmetrische Verteilung über die gesamte Breite
   ========================================================= */

/* Drei exakt gleich breite Spalten:
   1. Zugriffscode | 2. Zugriffscode kaufen | 3. Reiseplan erstellen */
#prp-form .prp-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 26px;
}

/* Wrapper wird für die 3-Spalten-Verteilung transparent */
#prp-form .prp-access-inline {
    display: contents !important;
}

/* Zugriffscode-Feld = gleiche Grundgestaltung wie die normalen Reiseplan-Felder */
#prp-form .prp-access-code-input {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 48px;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    line-height: normal;
    outline: none;
    box-shadow: none;
}

#prp-form .prp-access-code-input::placeholder {
    color: #64748b;
    opacity: 1;
}

#prp-form .prp-access-code-input:focus {
    outline: 2px solid #94a3b8;
    outline-offset: 1px;
}

/* Beide Buttons exakt gleich breit und gleich hoch */
#prp-form .prp-buy-button,
#prp-form #prp-submit {
    width: 100% !important;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    margin: 0;
    white-space: nowrap;
}

/* Hinweis mittig unter der kompletten 3-Spalten-Zeile */
#prp-form .prp-access-note-inline {
    width: 100%;
    margin: 12px 0 0;
    text-align: center !important;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

/* Status ebenfalls unterhalb und zentriert */
#prp-form #prp-access-status {
    width: 100%;
    text-align: center;
}

/* Mobile: drei Elemente untereinander */
@media (max-width: 700px) {
    #prp-form .prp-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #prp-form .prp-access-code-input,
    #prp-form .prp-buy-button,
    #prp-form #prp-submit {
        width: 100% !important;
    }
}
