/*
 * Öffentliche Seiten (Startseite, Anmeldung, Registrierung, Kontakt,
 * Impressum, Datenschutz, Hilfe) im Stil des Netzwerks Finanzkompetenz NRW.
 * Farben kommen aus netzwerk-farben.css.
 */
body.oeff {
    background: var(--grund, #fff);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.oeff main {
    flex: 1 0 auto;
}

/* ---------- Kopfzeile ---------- */
.oeff-header {
    background: #fff;
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 1px 2px rgba(0, 34, 63, 0.06), 0 4px 12px rgba(0, 34, 63, 0.06);
}

.oeff-header .navbar-brand img {
    height: 52px;
    width: auto;
    display: block;
}

.oeff-header .nav-link {
    color: var(--nachtblau);
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
}

.oeff-header .nav-link:hover,
.oeff-header .nav-link:focus-visible {
    color: var(--purpurrot);
    background: var(--grund-gedaempft);
}

.oeff-header .nav-link.active {
    color: var(--purpurrot);
}

.oeff-header .navbar-toggler {
    border-color: var(--linie);
}

/* ---------- Bühne auf der Startseite ---------- */
.oeff-hero {
    position: relative;
    color: #fff;
    background-color: var(--nachtblau);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.oeff-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 34, 63, 0.92) 0%, rgba(0, 48, 100, 0.82) 55%, rgba(136, 35, 69, 0.72) 100%);
    z-index: -1;
}

.oeff-hero .container {
    padding-top: clamp(2.5rem, 6vw, 5rem);
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.oeff-hero h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.oeff-hero h1 span,
.oeff-hero h1 b {
    color: inherit !important;
}

.oeff-hero .lead {
    font-size: 1.1rem;
    color: #d6e2f0;
    max-width: 46rem;
}

.oeff-hero .oeff-hero-hinweis {
    color: #d6e2f0;
    font-size: 0.9rem;
}

.oeff-hero-fakten {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.oeff-hero-fakten li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: #fff;
}

.oeff-hero-fakten i {
    color: #ffd97a;
}

/* ---------- Karten ---------- */
.oeff-karte {
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 34, 63, 0.08), 0 12px 28px rgba(0, 34, 63, 0.12);
    padding: 1.5rem;
    color: var(--text);
}

.oeff-karte h2,
.oeff-karte h3 {
    color: var(--nachtblau);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.oeff-karte .form-label,
.oeff-karte label {
    font-weight: 600;
    color: var(--text);
}

.oeff-karte .oeff-links {
    border-top: 1px solid var(--linie);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.92rem;
}

.oeff-karte .oeff-links a {
    display: block;
    padding: 0.2rem 0;
    color: var(--nachtblau-hell);
    text-decoration: none;
}

.oeff-karte .oeff-links a:hover {
    color: var(--purpurrot);
    text-decoration: underline;
}

.oeff-anmeldung {
    max-width: 30rem;
    margin: 0 auto;
}

.oeff-formular {
    max-width: 46rem;
}

.oeff-formular .oeff-karte h2 {
    margin-bottom: 1.25rem;
}

/* ---------- Kacheln ---------- */
.oeff-kacheln {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.oeff-kachel {
    height: 100%;
    background: var(--grund-gedaempft);
    border: 1px solid var(--linie);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.oeff-kachel:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 34, 63, 0.08), 0 12px 28px rgba(0, 34, 63, 0.12);
}

.oeff-kachel .oeff-kachel-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nachtblau);
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.oeff-kachel:nth-child(2) .oeff-kachel-icon,
.oeff-kachel.gruen .oeff-kachel-icon {
    background: var(--grasgruen);
}

.oeff-kachel.rot .oeff-kachel-icon {
    background: var(--purpurrot);
}

.oeff-kachel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nachtblau);
}

.oeff-kachel p {
    color: var(--text-gedaempft);
}

/* ---------- Textseiten ---------- */
.oeff-seite {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.oeff-seite h1,
.oeff-prose h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--nachtblau);
    margin-bottom: 1.5rem;
}

.oeff-prose {
    max-width: 46rem;
}

.oeff-prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--nachtblau);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.oeff-prose h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nachtblau);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.oeff-prose p,
.oeff-prose li {
    color: var(--text);
}

.oeff-prose a {
    color: var(--nachtblau-hell);
}

.oeff-prose a.btn-primary {
    color: #fff;
}

.oeff-einleitung {
    font-size: 1.05rem;
}

.oeff-einleitung h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nachtblau);
}

.oeff-illustration {
    max-width: min(100%, 24rem);
    height: auto;
}

.oeff-einheit {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.oeff-einheit:hover,
.oeff-einheit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 34, 63, 0.08), 0 12px 28px rgba(0, 34, 63, 0.12);
    color: var(--text);
}

.oeff-einheit img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.oeff-einheit-text {
    padding: 1.1rem 1.25rem 1.25rem;
}

.oeff-einheit-stufe {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--purpurrot);
    margin-bottom: 0.4rem;
}

.oeff-einheit h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nachtblau);
    margin-bottom: 0.35rem;
}

.oeff-einheit p {
    color: var(--text-gedaempft);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Textseiten ---------- */
.oeff-seite {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.oeff-seite h1,
.oeff-prose h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--nachtblau);
    margin-bottom: 1.5rem;
}

.oeff-prose {
    max-width: 46rem;
}

.oeff-prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--nachtblau);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.oeff-prose h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nachtblau);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.oeff-prose p,
.oeff-prose li {
    color: var(--text);
}

.oeff-prose a {
    color: var(--nachtblau-hell);
}

.oeff-prose a.btn-primary {
    color: #fff;
}

.oeff-einleitung {
    font-size: 1.05rem;
}

.oeff-einleitung h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nachtblau);
}

.oeff-illustration {
    max-width: min(100%, 24rem);
    height: auto;
}

.oeff-frage {
    height: 100%;
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.oeff-frage img {
    height: 120px;
    width: auto;
    margin-bottom: 1rem;
}

.oeff-frage h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nachtblau);
}

.oeff-frage p {
    color: var(--text-gedaempft);
    margin: 0;
}

/* ---------- Seitenkopf der Textseiten ---------- */
.oeff-seitenkopf {
    background: var(--grund-gedaempft);
    border-bottom: 1px solid var(--linie);
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.oeff-seitenkopf h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--nachtblau);
    margin-bottom: 0.5rem;
}

.oeff-seitenkopf .oeff-vorspann {
    max-width: 46rem;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-gedaempft);
}

.oeff-seitenkopf + .oeff-seite {
    padding-top: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- Kontaktseite ---------- */
.oeff-kontaktkarte {
    height: 100%;
    background: #fff;
    border: 1px solid var(--linie);
    border-left: 5px solid var(--purpurrot);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.oeff-kontaktkarte h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--nachtblau);
}

.oeff-kontaktkarte p {
    color: var(--text-gedaempft);
}

.oeff-kontaktkarte .oeff-kontaktkarte-fuss {
    margin-top: auto;
    padding-top: 0.5rem;
}

.oeff-kontaktkarte .netzwerke a {
    color: var(--nachtblau);
    font-weight: 600;
    text-decoration: none;
}

.oeff-kontaktkarte .netzwerke a:hover {
    color: var(--purpurrot);
}

.oeff-abschnitt-gedaempft {
    background: var(--grund-gedaempft);
    border-top: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie);
}

.oeff-abschnitt-gedaempft h2,
.oeff-seite h2.oeff-abschnitt-titel,
.oeff-seite h3.oeff-abschnitt-titel {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nachtblau);
    margin-bottom: 0.25rem;
}

.oeff-seite h3.oeff-abschnitt-titel {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.oeff-person {
    height: 100%;
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.oeff-person img {
    flex: none;
    width: 120px;
    height: 156px;
    object-fit: cover;
    border-radius: 8px;
}

.oeff-person h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nachtblau);
    margin-bottom: 0.35rem;
}

.oeff-person p {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.oeff-person a {
    color: var(--nachtblau-hell);
    text-decoration: none;
}

.oeff-person a:hover {
    color: var(--purpurrot);
    text-decoration: underline;
}

/* ---------- Hilfe ---------- */
.oeff-hilfe .accordion-item {
    border: 1px solid var(--linie);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 34, 63, 0.06);
}

.oeff-hilfe .accordion-button {
    font-weight: 700;
    color: var(--nachtblau);
    background: #fff;
    box-shadow: none;
    padding: 1rem 1.25rem;
}

.oeff-hilfe .accordion-button:not(.collapsed) {
    background: var(--grund-gedaempft);
    color: var(--purpurrot);
}

.oeff-hilfe .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 48, 100, 0.15);
}

.oeff-hilfe .accordion-body {
    padding: 1rem 1.25rem 1.25rem;
    color: var(--text);
}

/* ---------- Tabellen und Merkmale ---------- */
.oeff-tabelle {
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    font-size: 0.95rem;
}

.oeff-tabelle thead th {
    background: var(--nachtblau);
    color: #fff;
    font-weight: 600;
    border: 0;
    padding: 0.75rem 1rem;
}

.oeff-tabelle tbody th,
.oeff-tabelle tbody td {
    padding: 0.75rem 1rem;
    border-color: var(--linie);
    vertical-align: top;
    color: var(--text);
}

.oeff-tabelle tbody th {
    color: var(--nachtblau);
    font-weight: 700;
    white-space: nowrap;
}

.oeff-tabelle .oeff-tabelle-bild {
    width: 136px;
    padding-right: 0;
}

.oeff-tabelle .oeff-tabelle-bild img {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.oeff-merkmal {
    background: #fff;
}

.oeff-merkmal .oeff-kachel-icon {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.1rem;
}

.oeff-merkmal p {
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Fußzeile (Klassen und Maße wie auf netzwerk-finanzkompetenz.nrw.de) ---------- */
.fuss {
    margin-top: clamp(2.5rem, 6vw, 5rem);
    background: var(--nachtblau);
    color: #d6e2f0;
    border-top: 6px solid;
    border-image: linear-gradient(to right, var(--purpurrot) 0 33.3%, var(--nachtblau) 33.3% 66.6%, var(--grasgruen) 66.6% 100%) 1;
    font-size: 0.95rem;
}

.fuss__raster {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

.fuss h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.fuss ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fuss li {
    margin-bottom: 0.45rem;
}

.fuss a {
    color: #d6e2f0;
    text-decoration: none;
}

.fuss a:hover,
.fuss a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.fuss .ohne-abstand {
    margin: 0 0 0.6rem 0;
}

.fuss__marke,
.fuss__foerderer {
    width: min(17rem, 100%);
}

.fuss__marke {
    display: block;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.fuss__marke .marke {
    display: block;
    width: 100%;
    height: auto;
}

.fuss__foerderer {
    margin: 1rem 0 0;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border-radius: 6px;
}

.fuss__foerderer img {
    display: block;
    width: 100%;
    height: auto;
}

.fuss__abschluss {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-block: 1.1rem;
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.netzwerke {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.netzwerke li {
    margin: 0;
}

.netzwerke a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.netzwerke__zeichen {
    font-size: 1.15rem;
}

@media print {
    .fuss, .oeff-header { display: none !important; }
}
