/* Navigium-Public Skin --- Layout der öffentlichen Seiten ohne Anmeldung
   (Kündigung, Account löschen). Header, Footer und Farben stammen aus der
   Schulungsverwaltung (static/css/navigium-public.css) und sollen mit ihr
   gleich bleiben; ab "Inhalt" folgen die Stile für Formular- und
   Bestätigungsseiten. Eingebunden über fragments/public-layout.html. */

:root {
    --nv-blue: #193762;          /* Brand-Primary (Original) */
    --nv-orange: #FF9A1A;        /* Brand-Secondary (Original) */
    --nv-orange-hover: #f08800;
    --nv-text: #193762;          /* Original Text-Farbe = Markenblau */
    --nv-page-bg: #F2F2F2;       /* Hellgrauer Body-Hintergrund (Original) */
    --nv-edge: 1.5rem;           /* fester Abstand vom Fensterrand für Logo + Footer */
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 18px;             /* globale Original-Größe */
    color: var(--nv-text);
    background: var(--nv-page-bg);
}

body.nv-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Header ---------- */

.nv-header {
    background: #fff;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef0f4;
}

.nv-logo {
    display: inline-flex;
    align-items: center;
    margin-left: var(--nv-edge);
    line-height: 0;
}

.nv-logo img {
    max-width: 190px;
    height: auto;
    display: block;
}

.nv-header-link {
    color: var(--nv-blue);
    text-decoration: none;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-right: var(--nv-edge);
}

.nv-header-link:hover {
    text-decoration: underline;
}

@media (max-width: 1299px) {
    .nv-header-link {
        font-size: 19.2px; /* 1.2rem analog Original-Tablet-Breakpoint */
    }
}

/* ---------- Buttons (CTA / Submit) ---------- */
/* Wirkt sich auf Inline-Styles in den Templates aus, ohne dass diese
   angefasst werden müssen — die Selektoren überspecifizieren bewusst. */

body.nv-body .karte a.cta,
body.nv-body main p > a.cta,
body.nv-body main form button[type="submit"]:not(.storno) {
    background: var(--nv-orange);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}

body.nv-body .karte a.cta:hover,
body.nv-body main p > a.cta:hover,
body.nv-body main form button[type="submit"]:not(.storno):hover {
    background: var(--nv-orange-hover);
}

/* ---------- Main ---------- */

.nv-main {
    flex: 1 0 auto;
    width: 100%;
}

/* ---------- Footer ---------- */

.nv-footer {
    background: var(--nv-blue);
    color: #fff;
    padding: 1.25rem var(--nv-edge);
    display: flex;
    gap: 2rem;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
}

.nv-footer a {
    color: #fff;
    text-decoration: none;
}

.nv-footer a:hover {
    text-decoration: underline;
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
    .nv-footer {
        gap: 1.25rem;
        flex-wrap: wrap;
    }
}

/* ---------- Inhalt: Formular- und Bestätigungsseiten ---------- */

main.nv-main {
    box-sizing: border-box;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.5;
}

.nv-main h1 {
    color: #143264;
    line-height: 1.2;
}

.nv-main a {
    color: var(--nv-blue);
}

.nv-main label {
    display: block;
    margin: 1rem 0 .25rem;
    font-weight: bold;
}

.nv-main input[type=text],
.nv-main input[type=email],
.nv-main input[type=date],
.nv-main textarea {
    width: 100%;
    padding: .5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    color: inherit;
    background: #fff;
}

.nv-main textarea {
    min-height: 6rem;
    resize: vertical;
}

.nv-main fieldset {
    margin: 1.5rem 0 .5rem;
    padding: .75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.nv-main legend {
    padding: 0 .5rem;
    font-weight: bold;
}

.nv-main label.nv-auswahl {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: .35rem 0;
    font-weight: normal;
}

.nv-main .nv-hinweis {
    margin: .25rem 0 0;
    font-size: .9rem;
}

.nv-main .fehler {
    color: #b00;
    font-weight: bold;
}

.nv-main .honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body.nv-body main form button[type="submit"]:not(.storno),
.nv-main button.nv-button {
    margin-top: 1.5rem;
    padding: .6rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
}

.nv-main button.nv-button {
    background: #fff;
    color: var(--nv-blue);
    border: 1px solid var(--nv-blue);
    cursor: pointer;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
}

.nv-main dl.nv-zusammenfassung {
    margin: 1.5rem 0;
    padding: .75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.nv-zusammenfassung dt {
    margin-top: .6rem;
    font-size: .9rem;
    font-weight: bold;
}

.nv-zusammenfassung dt:first-child {
    margin-top: 0;
}

.nv-zusammenfassung dd {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

@media print {
    html, body {
        background: #fff;
    }

    .nv-footer,
    .nv-nicht-drucken {
        display: none;
    }
}
