/* Druck-Einstieg (Entscheidung 44): Startseiten-Knopf + Fenster. Farben aus dem Theme (--pk-*, Entscheidung 45),
   ohne Theme das bisherige Blau (#0042a0). Ecken ueber --pk-ecken wie im Werkzeug (Entscheidung 48). */
.pk-einstieg {
    display: flex;
    justify-content: center;
}

.pk-einstieg-knopf {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.75rem 1.75rem;
    border: 0;
    border-radius: calc(8px * var(--pk-ecken, 1));
    background: var(--pk-knopf, #0042a0);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
}

.pk-einstieg-knopf:hover {
    background: var(--pk-knopf-hover, #00367f);
}

.pk-einstieg-knopf:focus-visible,
.pk-einstieg-karte:focus-visible,
.pk-einstieg-zu:focus-visible {
    outline: 3px solid var(--pk-primaer, #0042a0);
    outline-offset: 2px;
}

/* Seite steht still, solange das Fenster offen ist (wie im Werkzeug, Entscheidung 42) */
html:has(.pk-einstieg-dialog[open]) {
    overflow: hidden;
}

.pk-einstieg-dialog {
    width: min(46rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: calc(10px * var(--pk-ecken, 1));
    box-shadow: 0 18px 50px rgba(15, 30, 50, 0.3);
    overscroll-behavior: contain;
}

.pk-einstieg-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.pk-einstieg-schritt {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.pk-einstieg-kopf {
    display: flex;
    gap: 1rem;
    align-items: start;
    justify-content: space-between;
}

.pk-einstieg-titel {
    margin: 0.375rem 0 0;
    font-size: 1.375rem;
}

.pk-einstieg-zu {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: calc(6px * var(--pk-ecken, 1));
    background: none;
    color: #4a545b;
    font-size: 1.75rem;
    line-height: 1;
}

.pk-einstieg-zu:hover {
    background: #eef1f4;
}

.pk-einstieg-wahl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.pk-einstieg-karte {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    padding: 1rem;
    border: 2px solid #c4cbd1;
    border-radius: calc(8px * var(--pk-ecken, 1));
    background: #ffffff;
    color: #2b3136;
    font: inherit;
    text-align: left;
}

.pk-einstieg-karte:hover {
    border-color: var(--pk-primaer, #0042a0);
    color: #2b3136;
}

.pk-einstieg-karte[aria-pressed="true"] {
    border-color: var(--pk-primaer, #0042a0);
    background: var(--pk-primaer-hell, #eef3fb);
}

.pk-einstieg-karte-titel {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Auswahlpunkt rechts im Titel */
.pk-einstieg-karte-titel i {
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    border: 2px solid #8c959c;
    border-radius: 50%;
}

.pk-einstieg-karte[aria-pressed="true"] .pk-einstieg-karte-titel i {
    border: 7px solid var(--pk-primaer, #0042a0);
}

.pk-einstieg-karte ul {
    margin: 0;
    padding-left: 1.125rem;
    color: #4a545b;
    font-size: 0.9375rem;
}

.pk-einstieg-hinweis {
    margin: 0;
    color: #4a545b;
    font-size: 0.875rem;
}

.pk-einstieg-fuss {
    display: flex;
    /* Abbrechen links, Weiter rechts */
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 575px) {
    .pk-einstieg-wahl {
        grid-template-columns: 1fr;
    }

    .pk-einstieg-schritt {
        padding: 1rem;
    }

    .pk-einstieg-titel {
        font-size: 1.1875rem;
    }

    .pk-einstieg-knopf {
        width: 100%;
        justify-content: center;
    }
}

.pk-einstieg-dialog .pk-einstieg-titel:focus,
.pk-einstieg-dialog .pk-einstieg-titel:focus-visible {
    outline: none;
    box-shadow: none; /* Fokus nur als Startpunkt fuer Tastatur und Vorlesen, kein Rahmen um die Ueberschrift */
}

.pk-einstieg-abbrechen {
    margin-right: auto;
    padding-inline: 0;
    color: #4a5468;
}
