/* ============================================================
   Unterrichtshilfen Mathematik – Der Jahresnavigator
   Ergänzt app-info.css (gleiches Farbschema: #15344b / yellowgreen)

   Zusätzlich: die vier Bereichsfarben des Buch-Leitsystems
   (KMK-Inhaltsbereiche), identisch zur Palette der Bände.
   ============================================================ */

:root {
    --uh-dunkel:  #15344b;
    --uh-linie:   #dde3e9;
    --uh-grau:    #6c757d;
    --uh-hell:    #f8f9fa;

    /* Bereichsfarben – exakt wie im Buch */
    --uh-zo:   #31699C;  /* Zahlen und Operationen */
    --uh-rf:   #4E8A56;  /* Raum und Form */
    --uh-gm:   #C07A2A;  /* Größen und Messen */
    --uh-dhw:  #7D5BA6;  /* Daten, Häufigkeit und Wahrscheinlichkeit */
    --uh-neutral: #8A8F94;
}

/* ---------- Hero-Zusatz ------------------------------------ */

.uh-hero-zusatz {
    display: inline-block;
    margin-top: 18px;
    padding: 7px 18px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 300px;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
}

/* ---------- Bereichsfarben-Legende ------------------------- */

.uh-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 8px;
    padding: 0;
    list-style: none;
}

.uh-legende li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--uh-linie);
    border-radius: 300px;
    padding: 7px 16px 7px 8px;
    font-size: 14px;
    color: #333;
}

.uh-chip {
    display: inline-block;
    min-width: 38px;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
}

.uh-chip--zo  { background: var(--uh-zo); }
.uh-chip--rf  { background: var(--uh-rf); }
.uh-chip--gm  { background: var(--uh-gm); }
.uh-chip--dhw { background: var(--uh-dhw); }

/* ---------- Bausteine des Navigators ----------------------- */

.uh-bausteine {
    padding: 55px 0;
    background: var(--uh-hell);
}

.uh-bausteine .uh-abschnittskopf {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.uh-abschnittskopf h2 {
    color: var(--uh-dunkel);
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 12px;
}

.uh-abschnittskopf p {
    color: var(--uh-grau);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.uh-baustein {
    background: #fff;
    border: 1px solid var(--uh-linie);
    border-radius: 10px;
    padding: 24px 22px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.uh-baustein h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--uh-dunkel);
    margin: 0 0 10px;
}

.uh-baustein h3 .glyphicon {
    color: yellowgreen;
    margin-right: 8px;
    font-size: 15px;
}

.uh-baustein p {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

/* ---------- Download-Karten -------------------------------- */

.uh-downloads {
    padding: 60px 0;
}

.uh-band {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--uh-linie);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
    transition: transform .3s, box-shadow .3s;
}

.uh-band:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(21,52,75,0.14);
}

.uh-band__kopf {
    background: var(--uh-dunkel);
    color: #fff;
    padding: 22px 22px 18px;
    position: relative;
}

.uh-band__stufe {
    display: block;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.uh-band__kopf h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 300;
    color: #fff;
}

.uh-band__streifen {
    display: flex;
    height: 5px;
}

.uh-band__streifen span { flex: 1; }
.uh-band__streifen .s1 { background: var(--uh-zo); }
.uh-band__streifen .s2 { background: var(--uh-rf); }
.uh-band__streifen .s3 { background: var(--uh-gm); }
.uh-band__streifen .s4 { background: var(--uh-dhw); }

.uh-band__inhalt {
    padding: 22px;
    flex: 1 1 auto;
}

.uh-band__inhalt p {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin: 0 0 14px;
}

.uh-band__daten {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--uh-grau);
}

.uh-band__daten li {
    padding: 5px 0;
    border-top: 1px solid var(--uh-linie);
}

.uh-band__daten li:first-child { border-top: none; }

.uh-band__daten .glyphicon {
    color: yellowgreen;
    margin-right: 8px;
    font-size: 12px;
}

.uh-band__fuss {
    padding: 0 22px 22px;
}

.uh-knopf {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background: yellowgreen;
    border: none;
    border-radius: 300px;
    text-decoration: none !important;
    transition: all .3s;
}

.uh-knopf:hover,
.uh-knopf:focus {
    background: limegreen;
    box-shadow: 0 6px 18px rgba(154,205,50,0.35);
}

.uh-knopf .glyphicon { margin-right: 8px; }

.uh-knopf__zusatz {
    display: block;
    text-align: center;
    margin-top: 9px;
    font-size: 13px;
    color: var(--uh-grau);
}

/* Noch nicht erschienener Band */
.uh-band--kommend { opacity: 0.92; }

.uh-band--kommend .uh-band__kopf { background: #4a5a68; }

.uh-band--kommend:hover {
    transform: none;
    box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.uh-band__hinweisschild {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 300px;
    background: rgba(255,255,255,0.18);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.uh-knopf--aus {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--uh-grau);
    background: #eceff1;
    border-radius: 300px;
    cursor: default;
}

/* ---------- Hinweiskasten ---------------------------------- */

.uh-kasten {
    background: #fff;
    border-left: 4px solid yellowgreen;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 20px 24px;
    margin: 30px 0;
}

.uh-kasten h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--uh-dunkel);
    margin: 0 0 10px;
}

.uh-kasten p:last-child { margin-bottom: 0; }

.uh-kasten--sand {
    background: #fdf8ee;
    border-left-color: var(--uh-gm);
}

/* ---------- Rückmeldebereich ------------------------------- */

.uh-rueckmeldung {
    padding: 60px 0;
    background: var(--uh-hell);
}

.uh-formular {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--uh-linie);
    border-radius: 12px;
    padding: 30px 32px 34px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.uh-formular fieldset {
    border: none;
    padding: 0;
    margin: 0 0 26px;
}

.uh-formular legend {
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--uh-dunkel);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid yellowgreen;
    width: auto;
}

.uh-feld { margin-bottom: 18px; }

.uh-feld > label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--uh-dunkel);
    margin-bottom: 6px;
}

.uh-feld .uh-erlaeuterung {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--uh-grau);
    margin-top: 2px;
    line-height: 1.5;
}

.uh-formular input[type="text"],
.uh-formular input[type="email"],
.uh-formular select,
.uh-formular textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    color: #333;
    background: #fff;
    border: 1px solid #c9d2da;
    border-radius: 6px;
    line-height: 1.55;
    transition: border-color .2s, box-shadow .2s;
}

.uh-formular textarea {
    min-height: 92px;
    resize: vertical;
}

.uh-formular input:focus,
.uh-formular select:focus,
.uh-formular textarea:focus {
    outline: none;
    border-color: yellowgreen;
    box-shadow: 0 0 0 3px rgba(154,205,50,0.22);
}

.uh-kaestchen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.uh-kaestchen label,
.uh-zustimmung label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    line-height: 1.55;
    cursor: pointer;
}

.uh-kaestchen input,
.uh-zustimmung input {
    margin-top: 4px;
    flex: none;
}

.uh-zustimmung {
    background: var(--uh-hell);
    border: 1px solid var(--uh-linie);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.uh-zustimmung label + label { margin-top: 12px; }

/* Honigtopf gegen automatische Spam-Eintragungen: für Menschen
   unsichtbar, für Screenreader ausgeblendet, für Roboter verlockend. */
.uh-honigtopf {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.uh-absenden {
    display: inline-block;
    padding: 15px 42px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: yellowgreen;
    border: none;
    border-radius: 300px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all .3s;
}

.uh-absenden:hover {
    background: limegreen;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154,205,50,0.4);
}

.uh-pflicht { color: #b3402f; font-weight: 700; }

.uh-mailweg {
    max-width: 800px;
    margin: 26px auto 0;
    text-align: center;
    font-size: 15px;
    color: var(--uh-grau);
    line-height: 1.7;
}

.uh-mailweg a { font-weight: 600; }

/* ---------- Teaser auf der Startseite ---------------------- */

.unterrichtshilfen-teaser {
    padding: 70px 0;
    background-color: #f4f6f8;
}

.unterrichtshilfen-teaser .section-header h2 {
    color: #15344b;
}

.unterrichtshilfen-teaser .uh-teasertext {
    font-size: 17px;
    line-height: 1.75;
    color: #444;
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.unterrichtshilfen-teaser .uh-teaserzahlen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
}

.unterrichtshilfen-teaser .uh-teaserzahlen li {
    background: #fff;
    border: 1px solid var(--uh-linie);
    border-radius: 8px;
    padding: 14px 22px;
    text-align: center;
    min-width: 150px;
}

.unterrichtshilfen-teaser .uh-teaserzahlen strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #15344b;
    line-height: 1.25;
}

.unterrichtshilfen-teaser .uh-teaserzahlen span {
    font-size: 13px;
    color: var(--uh-grau);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.unterrichtshilfen-teaser .uh-teaserknopf {
    display: block;
    text-align: center;
}

/* Schaltfläche im gleichen Stil wie "Anfrage senden" im Vorträge-Abschnitt */
.unterrichtshilfen-teaser .btn-contact {
    display: inline-block;
    padding: 12px 32px;
    background-color: yellowgreen;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all .3s;
}

.unterrichtshilfen-teaser .btn-contact:hover,
.unterrichtshilfen-teaser .btn-contact:focus {
    background-color: limegreen;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(154,205,50,0.35);
}

/* ---------- Gleich hohe Karten nebeneinander ---------------
   Bootstrap 3 setzt die Spalten als Floats – dabei richten sich
   unterschiedlich lange Karten nicht bündig aus. Innerhalb der
   beiden Kartenreihen schalten wir die Zeile deshalb auf Flexbox
   um; die Spaltenbreiten der Bootstrap-Klassen bleiben erhalten. */

@media (min-width: 768px) {
    .uh-downloads .row,
    .uh-bausteine .row {
        display: flex;
        flex-wrap: wrap;
    }

    .uh-downloads .row > [class*="col-"],
    .uh-bausteine .row > [class*="col-"] {
        display: flex;
        float: none;
    }

    .uh-downloads .uh-band,
    .uh-bausteine .uh-baustein {
        width: 100%;
    }
}

/* ---------- Kleinere Bildschirme --------------------------- */

@media (max-width: 767px) {
    .uh-formular { padding: 22px 18px 26px; }
    .uh-band__kopf h3 { font-size: 22px; }
    .uh-downloads, .uh-rueckmeldung, .uh-bausteine { padding: 40px 0; }
    .uh-legende li { font-size: 13px; }
}

/* Abstand für Anker unter der festen Navigationsleiste */
.uh-anker {
    display: block;
    position: relative;
    top: -70px;
    visibility: hidden;
}
