/* Druckbild der öffentlichen Seiten von novellwerk.de (seit 30.09.2026).

   Gemeinsame Grundlage für Startseite, Themenseiten, Über uns, Rechtstexte und
   Zugang: Buchschrift für Überschriften, warmes Papierweiß, Haarlinien statt
   Schattenkarten, keine Bewegung. Grafisches Motiv ist das N aus dem
   Markenzeichen: vor Abschnittszeilen das ganze Zeichen mit einem Strich,
   Karten mit der angeschrägten Ecke seiner Spitze oben rechts.

   Was nur eine Seite braucht, steht in deren eigenem Stilblatt
   (startseite.css, seo.css …), das nach diesem geladen wird. */


:root {
    --papier: #faf9f6;
    --papier-tief: #f2efe8;
    --weiss: #ffffff;
    --tinte: #141821;
    --text: #2c313b;
    --grau: #5d6573;
    --grau-hell: #8a909b;
    --linie: #e5e1d8;
    --linie-kraeftig: #d4cec2;

    --blau: #0a84ff;
    --blau-text: #0b5fc9;
    --blau-tief: #094fa8;
    --blau-flaeche: #eaf3ff;

    --nacht: #0d1526;
    --nacht-text: #b7bfcd;
    --nacht-linie: rgba(255, 255, 255, .13);

    --gruen: #1f7a4d;

    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --rahmen: 1160px;
    --rand: 20px;
    --ecke: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--papier);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blau-text);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

.rk ul {
    list-style: disc;
}

:focus-visible {
    outline: 2px solid var(--blau);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .75rem 1rem;
    background: var(--tinte);
    color: #fff;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.nw-rahmen {
    width: 100%;
    max-width: calc(var(--rahmen) + 2 * var(--rand));
    margin: 0 auto;
    padding: 0 var(--rand);
}

@media (min-width: 900px) {
    :root {
        --rand: 32px;
    }
}

/* ---------------------------------------------------------------- Zeichen */

.nw-n {
    display: inline-block;
    width: .95em;
    height: .95em;
    flex-shrink: 0;
    color: var(--blau);
}

.nw-marke-zeile {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blau-text);
}

@media (max-width: 480px) {
    .nw-marke-zeile {
        font-size: .7rem;
        letter-spacing: .07em;
    }
}

/* Das ganze Zeichen, dann ein Strich, dann der Name des Abschnitts. */
.nw-zeichen {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nw-strich {
    width: 2.25rem;
    height: 1px;
    flex-shrink: 0;
    background: currentColor;
    opacity: .45;
}

/* Auf schmalen Bildschirmen die Kurzform, sonst bricht die Zeile um. */
.nw-schmal {
    display: none;
}

@media (max-width: 480px) {
    .nw-breit {
        display: none;
    }

    .nw-schmal {
        display: inline;
    }

    .nw-strich {
        width: 1.5rem;
    }
}

.nw-marke-zeile.nw-hell {
    color: #9cc6ff;
}

.nw-marke-zeile.nw-hell .nw-n {
    color: #6fb2ff;
}

.nw-wasserzeichen {
    position: absolute;
    pointer-events: none;
    color: var(--blau);
}

/* Die Spitze des N: oben rechts angeschrägt. */
.nw-karte {
    position: relative;
    background: var(--weiss);
    clip-path: polygon(0 0, calc(100% - var(--ecke)) 0, 100% var(--ecke), 100% 100%, 0 100%);
}

@media (max-width: 899px) {
    p,
    li,
    dd {
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}

/* ---------------------------------------------------------------- Knöpfe */

.nw-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .7rem 1.2rem;
    border: 1px solid var(--blau-text);
    border-radius: 4px;
    background: var(--blau-text);
    color: #fff;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.nw-knopf:hover {
    background: var(--blau-tief);
    border-color: var(--blau-tief);
}

.nw-knopf-gross {
    min-height: 52px;
    padding: .9rem 1.5rem;
    font-size: 1rem;
}

.nw-knopf-leise {
    background: transparent;
    color: var(--tinte);
    border-color: var(--linie-kraeftig);
}

.nw-knopf-leise:hover {
    background: var(--weiss);
    border-color: var(--tinte);
}

.nw-knopf-hell {
    background: #fff;
    border-color: #fff;
    color: var(--tinte);
}

.nw-knopf-hell:hover {
    background: #e9eef7;
    border-color: #e9eef7;
}

.nw-knopf-umriss {
    background: transparent;
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.nw-knopf-umriss:hover {
    background: rgba(255, 255, 255, .08);
    border-color: #fff;
}

.nw-verweis {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--blau-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
}

.nw-verweis::after {
    content: "→";
    text-decoration: none;
}

.nw-mitte {
    margin-top: 2.5rem;
    text-align: center;
}

/* ---------------------------------------------------------------- Kopfleiste */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 249, 246, .94);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--linie);
}

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--tinte);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.nav-logo img {
    width: 30px;
    height: 30px;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
}

.nav-link {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--blau-text);
}

.nav-link.is-active {
    color: var(--blau-text);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .55em;
}

.nav-buttons {
    display: flex;
    gap: .6rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--linie-kraeftig);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--tinte);
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 899px) {
    .nav-inner {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .nav-panel {
        flex: 1 0 100%;
        flex-wrap: wrap;
        gap: .6rem 1.25rem;
        padding-bottom: .75rem;
    }

    .has-js .nav-inner {
        flex-wrap: nowrap;
    }

    .has-js .nav-toggle {
        display: inline-flex;
    }

    .has-js .nav-panel {
        position: absolute;
        top: 100%;
        left: calc(-1 * var(--rand));
        right: calc(-1 * var(--rand));
        display: none;
        padding: .25rem var(--rand) 1.25rem;
        background: var(--papier);
        border-bottom: 1px solid var(--linie);
    }

    .has-js .nav.is-open .nav-panel {
        display: block;
    }

    .has-js .nav-panel .nav-links {
        display: block;
    }

    .has-js .nav-panel .nav-link {
        display: block;
        padding: .85rem 0;
        border-bottom: 1px solid var(--linie);
        font-size: 1rem;
        font-weight: 600;
        color: var(--tinte);
    }

    .has-js .nav-panel .nav-link.is-active {
        color: var(--blau-text);
        text-decoration: none;
    }

    .has-js .nav-panel .nav-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 1rem;
    }
}

/* ---------------------------------------------------------------- Fuß */

.footer {
    padding: 3.5rem 0 2rem;
    background: #0a101d;
    color: #98a2b3;
    font-size: .9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 2rem;
}

/* Auf dem Handy zwei Spalten: untereinander wird die Liste länger als die Seite. */
@media (max-width: 599px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }
}

.footer h3,
.footer h4 {
    font-family: var(--sans);
    margin-bottom: .75rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}

.footer-links a {
    display: inline-block;
    padding: .3rem 0;
    color: #98a2b3;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
}

/* ---------------------------------------------------------------- Handy-Leiste */

.mobile-cta {
    display: none;
}

@media (max-width: 899px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .6rem var(--rand) calc(.6rem + env(safe-area-inset-bottom, 0px));
        background: rgba(250, 249, 246, .97);
        border-top: 1px solid var(--linie-kraeftig);
    }

    .mobile-cta-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        font-size: .78rem;
        line-height: 1.3;
        color: var(--grau);
    }

    .mobile-cta-text strong {
        font-size: .9rem;
        color: var(--tinte);
    }

    .mobile-cta .nw-knopf {
        margin-left: auto;
        flex-shrink: 0;
    }

    .footer {
        padding-bottom: 6.5rem;
    }

    .footer-links a {
        display: block;
        min-height: 44px;
        padding: .7rem 0;
    }
}

@media (max-width: 400px) {
    .mobile-cta-text {
        display: none;
    }

    .mobile-cta .nw-knopf {
        width: 100%;
    }
}

@media print {
    .nav,
    .mobile-cta,
    .nw-wasserzeichen {
        display: none !important;
    }
}
