/*
 * Nachrichten Hamburg – Design 2 (nach Mockup)
 * Wird nach main.css geladen und überschreibt nur die Oberfläche:
 * Kopfbereich, Navigation, Eilmeldung, Startseite, Artikel, Ressort, Fußzeile.
 */

:root {
    --nh-radius: 6px;
    --nh-soft: #EAF0FA;
}

body { background: var(--nh-bg); }
img { max-width: 100%; height: auto; }

/* Oberste Leiste */
.nh-topbar { background: var(--nh-dark); color: #fff; font-size: 13px; }
.nh-topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 34px; flex-wrap: wrap; }
.nh-topbar a { color: #fff; text-decoration: none; opacity: .92; }
.nh-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nh-topbar svg { width: 15px; height: 15px; fill: #fff; }

/* Kopf mit Logo und Suche */
.nh-header { background: var(--nh-primary); color: #fff; }
.nh-header__top { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.nh-brand__text { color: #fff; font-weight: 800; font-size: 26px; letter-spacing: -.3px; text-decoration: none; }
.nh-brand__text span { font-weight: 400; }
.nh-brand img { max-height: 44px; width: auto; }
.nh-header__meta { margin-left: auto; flex: 0 1 300px; }
.nh-search { display: flex; align-items: center; background: #fff; border-radius: 24px; height: 44px; padding: 0 6px 0 16px; }
.nh-search input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--nh-text); background: transparent; }
.nh-search button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--nh-primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nh-weather { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #fff; }
.nh-weather__temp { font-size: 24px; font-weight: 800; line-height: 1; }
.nh-weather__place { font-size: 12px; opacity: .9; }

/* Hauptnavigation */
.nh-nav { background: #fff; color: var(--nh-text); border-bottom: 1px solid var(--nh-line); position: sticky; top: 0; z-index: 20; }
.nh-nav__list a { color: var(--nh-text); font-weight: 600; font-size: 14px; text-decoration: none; padding: 14px 12px; display: block; border-bottom: 3px solid transparent; }
.nh-nav__list a:hover, .nh-nav__list a[aria-current="page"] { color: var(--nh-primary); border-bottom-color: var(--nh-primary); }
.nh-nav__home { color: var(--nh-primary); display: inline-flex; padding: 14px 10px; }

/* Eilmeldung */
.nh-breaking, .nh-eil { background: var(--nh-alert); color: #fff; }

/* Startseite */
.nh-hero { background: transparent; padding: 0; }
.nh-hero--media { border-radius: var(--nh-radius); overflow: hidden; background: var(--nh-dark); }
.nh-hero__caption { background: rgba(16, 54, 117, .9); }
.nh-hero__title { font-size: 30px; line-height: 1.15; font-weight: 800; }
.nh-card { background: #fff; border: 0; border-radius: var(--nh-radius); overflow: hidden; padding: 0; }
.nh-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.nh-card .nh-kicker, .nh-card__title, .nh-card .nh-meta { margin-left: 14px; margin-right: 14px; }
.nh-card__title { font-size: 16px; line-height: 1.3; margin-top: 6px; margin-bottom: 6px; }
.nh-card .nh-meta { margin-bottom: 14px; }
.nh-section-title { color: var(--nh-dark); font-size: 22px; border-bottom: 2px solid var(--nh-primary); padding-bottom: 6px; }
.nh-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nh-block__more { color: var(--nh-primary); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.nh-listitem { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nh-line); background: transparent; }
.nh-listitem__img img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; }
.nh-listitem__title { font-size: 15px; line-height: 1.3; margin: 3px 0 4px; }
.nh-district { background: #fff; border-radius: var(--nh-radius); overflow: hidden; }
.nh-district img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nh-ad { text-align: center; margin: 22px 0; }
.nh-ad img { margin: 0 auto; max-width: 100%; height: auto; }
.nh-ad__label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--nh-muted); margin: 0 0 4px; }

/* Artikel */
.nh-article__title { font-size: 34px; line-height: 1.15; font-weight: 800; color: #0b0b0b; }
.nh-article__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.nh-article__figure figcaption { font-size: 13px; color: var(--nh-muted); margin-top: 6px; }
.nh-content h2 { color: var(--nh-primary); font-size: 23px; }
.nh-kurz { background: var(--nh-soft); border: 1px solid #D5E0F2; border-radius: 8px; padding: 16px 18px; margin: 22px 0; }
.nh-kurz__title { color: var(--nh-primary); font-size: 17px; margin: 0 0 8px; }
.nh-tags a { border: 1px solid var(--nh-primary); color: var(--nh-primary); border-radius: 999px; padding: 3px 12px; font-size: 13px; text-decoration: none; background: #fff; }

/* Ressort */
.nh-archive__hero { position: relative; border-radius: var(--nh-radius); overflow: hidden; background: var(--nh-dark); color: #fff; min-height: 200px; display: flex; align-items: flex-end; }
.nh-archive__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.nh-archive__text { position: relative; padding: 22px; }
.nh-archive__title { font-size: 32px; font-weight: 800; margin: 0 0 6px; }
.nh-subtabs a { background: #fff; border: 1px solid #D5E0F2; border-radius: 4px; padding: 8px 14px; font-weight: 700; color: var(--nh-primary); text-decoration: none; font-size: 14px; }
.nh-subtabs a[aria-current="page"] { background: var(--nh-primary); color: #fff; border-color: var(--nh-primary); }

/* Fußzeile */
.nh-footer { background: var(--nh-dark); color: #fff; margin-top: 30px; }
.nh-footer a { color: #fff; text-decoration: none; }
.nh-footer__brand { font-size: 24px; font-weight: 800; color: #fff; }
.nh-footer__title { color: #fff; font-size: 15px; }
.nh-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 14px; padding-bottom: 90px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: space-between; }

/* Handy: Schnellleiste unten */
@media (max-width: 899px) {
    .nh-topbar__inner > span, .nh-topbar__inner > time { display: none; }
    .nh-topbar__right a:not(:first-child) { display: none; }
    .nh-header__top { min-height: 0; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
    .nh-brand__text { font-size: 20px; }
    .nh-header__meta { flex: 1 1 100%; margin-left: 0; order: 3; }
    .nh-hero__title { font-size: 23px; }
    .nh-article__title { font-size: 26px; }
    .nh-tabbar { background: var(--nh-primary); }
}

/* Überlauf verhindern: lange Navigation und Eilmeldung scrollen innerhalb ihres Bereichs */
body { overflow-x: clip; }
.nh-nav .nh-wrap { display: flex; align-items: stretch; min-width: 0; }
.nh-nav__list { overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.nh-nav__list::-webkit-scrollbar { display: none; }
.nh-eilband { overflow: hidden; }
.nh-eilband__list { overflow-x: auto; scrollbar-width: none; }

/* Startseite: Hero passt sich dem Bild an, Bildunterschrift liegt unten über die ganze Breite */
.nh-hero__media { position: relative; min-height: 300px; }
.nh-hero__img { position: absolute; inset: 0; }
.nh-hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
    .nh-hero__media { min-height: 460px; }
    .nh-hero__caption { left: 0; right: 0; bottom: 0; }
}
.nh-top > .nh-hero, .nh-hero--media { align-self: start; height: auto; }

/* Kopf auf dem Handy: größeres Logo, sichtbarer Suchtext */
@media (max-width: 899px) {
    .nh-brand img, .custom-logo { max-height: 52px; width: auto; }
    .nh-header__top { gap: 12px; }
    .nh-brand { flex: 1; }
    .nh-burger { order: 2; }
    .nh-search input::placeholder { color: #5b6475; opacity: 1; }
    .nh-hero__caption { padding: 16px; }
    .nh-hero__caption .nh-hero__title a { font-size: 22px; line-height: 1.2; }
    .nh-hero__caption .nh-kicker { margin-bottom: 8px; }
}
.nh-search input::placeholder { color: #5b6475; opacity: 1; }

/* Menü „Themen“ (Drawer): klare Gliederung mit Trennlinien und Pfeilen */
.nh-drawer { padding-top: 0; }
.nh-drawer .nh-wrap { padding-left: 20px; padding-right: 20px; }
.nh-drawer__top { position: sticky; top: 0; background: #fff; z-index: 2; border-bottom: 1px solid var(--nh-line); margin: 0 -20px; padding: 10px 20px; }
.nh-drawer .nh-nav__item { border-bottom: 1px solid var(--nh-line); }
.nh-drawer .nh-nav__link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: 17px; font-weight: 700; color: var(--nh-dark); }
.nh-drawer .nh-nav__link::after { content: "›"; color: var(--nh-primary); font-size: 22px; line-height: 1; }
.nh-drawer .nh-sub { margin: 0 0 14px; padding: 0 0 0 14px; border-left: 3px solid var(--nh-soft); }
.nh-drawer .nh-sub__link { padding: 10px 4px; font-size: 16px; color: var(--nh-text); }
.nh-drawer .nh-nav__item > a.nh-nav__link { color: var(--nh-dark) !important; background: none !important; }
.nh-drawer .nh-nav__item > a.nh-nav__link[aria-current="page"] { color: var(--nh-primary) !important; }

/* Desktop-Navigation: aktiver Punkt ohne dunklen Block, alle Punkte passen in eine Zeile */
@media (min-width: 900px) {
    .nh-nav__list a.nh-nav__link, .nh-nav__list .nh-nav__link { padding: 16px 8px; font-size: 0.92rem; }
    .nh-nav__item > a.nh-nav__link[aria-current="page"] { background: transparent !important; color: var(--nh-primary) !important; border-bottom-color: var(--nh-primary); }
    .nh-nav__item:focus-within > .nh-nav__link { background: transparent !important; }
}
.nh-nav__more { position: relative; }
.nh-nav__morebtn { background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--nh-text); padding: 16px 8px; }
.nh-nav__morebtn:hover, .nh-nav__morebtn[aria-expanded="true"] { color: var(--nh-primary); border-bottom-color: var(--nh-primary); }
.nh-more__list { display: none; position: absolute; top: 100%; right: 0; min-width: 240px; background: #fff; box-shadow: 0 8px 24px rgba(16, 54, 117, .18); border-radius: 0 0 6px 6px; padding: 8px 0; margin: 0; list-style: none; z-index: 40; }
.nh-more__list.is-open { display: block; }
.nh-more__list a { display: block; padding: 10px 16px; color: var(--nh-text); text-decoration: none; font-weight: 600; }
.nh-more__list a:hover { color: var(--nh-primary); background: var(--nh-soft); }
@media (max-width: 899px) { .nh-nav__more { display: none !important; } }
.nh-nav { z-index: 60; }
@media (min-width: 900px) { .nh-nav__list { overflow: visible; } }

/* Startseite: Karussell oben */
.nh-slide { display: none; }
.nh-slide.is-active { display: block; }
.nh-slider__ctrl { display: none; }
.nh-slider.is-js .nh-slider__ctrl { display: flex; align-items: center; gap: 8px; justify-content: center; background: var(--nh-dark); padding: 10px 12px; border-radius: 0 0 var(--nh-radius) var(--nh-radius); }
.nh-slider__btn { background: #fff; color: var(--nh-primary); border: 0; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; line-height: 1; cursor: pointer; font-weight: 700; }
.nh-slider__btn:focus-visible, .nh-slider__dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nh-slider__pause { font-size: 12px; width: 32px; height: 32px; }
.nh-slider__dots { display: flex; gap: 8px; }
.nh-slider__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.nh-slider__dot.is-active { background: #fff; }
.nh-slider .nh-hero__media { border-radius: var(--nh-radius) var(--nh-radius) 0 0; }
.nh-slider:not(.is-js) .nh-hero__media { border-radius: var(--nh-radius); }

/* Desktop: das Karussell füllt die Höhe der Seitenleiste, kein leerer Raum darunter */
@media (min-width: 900px) {
    .nh-top > .nh-hero { align-self: stretch; }
    .nh-slider.is-js { display: flex; flex-direction: column; }
    .nh-slider__track { flex: 1 1 auto; display: flex; flex-direction: column; }
    .nh-slider .nh-slide.is-active { display: flex; flex-direction: column; flex: 1 1 auto; }
    .nh-slider .nh-hero__media { flex: 1 1 auto; min-height: 460px; }
    .nh-slider .nh-hero__img { position: absolute; inset: 0; margin: 0; }
    .nh-slider .nh-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}

/* Startseite: Hauptspalte (Karussell + Teaser) und Seitenleiste gleich hoch, keine Lücken */
.nh-top { align-items: stretch; }
.nh-top__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.nh-top__main > .nh-hero { flex: 0 0 auto; }
.nh-top__main > .nh-teasers { margin: 0; }
.nh-top__main > .nh-teasers .nh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 900px) {
    .nh-top__main > .nh-hero.nh-slider { flex: 1 1 auto; height: auto; }
    .nh-top__main > .nh-hero.nh-slider .nh-slider__track,
    .nh-top__main > .nh-hero.nh-slider .nh-slide.is-active,
    .nh-top__main > .nh-hero.nh-slider .nh-hero__media { flex: 1 1 auto; min-height: 0; height: 100%; }
    .nh-top__main > .nh-hero.nh-slider .nh-hero__media { min-height: 440px; }
}

/* Schriftgrößen maßvoll */
.nh-hero--media .nh-hero__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.nh-hero__excerpt { font-size: 1rem; line-height: 1.5; }
.nh-hero__caption { max-width: 52%; }
.nh-slider__ctrl { padding: 8px 12px; gap: 8px; }
.nh-slider__btn { width: 38px; height: 38px; font-size: 1.05rem; }
.nh-top__side .nh-section-title { font-size: 1.35rem; }
.nh-top__side .nh-tabs__btn, .nh-top__side [role="tab"] { font-size: .8rem; padding: 10px 10px; }

/* Suchfeld: Platzhalter nicht abschneiden */
.nh-header__meta { min-width: 0; }
.nh-search { width: min(420px, 100%); }
.nh-search input { font-size: 14px; }
@media (max-width: 1100px) { .nh-search { width: min(300px, 100%); } }

/* Startseite: feste Spalten (Hauptspalte links, Seitenleiste rechts) */
@media (min-width: 900px) {
    .nh-top { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 28px; }
    .nh-top__main { grid-column: 1; }
    .nh-top__side { grid-column: 2; }
}
/* Meistgelesen ohne Nummernspalte: Zeilen voll breit */
.nh-mostread__item { display: block; }
.nh-top__main > .nh-hero { align-self: stretch; width: 100%; }

/* ---- Mega-Menü: klare Struktur, volle Titel, gleich große Karten ---- */
.nh-nav .nh-mega { background: #fff; border-top: 3px solid var(--nh-primary); box-shadow: 0 16px 32px rgba(16, 54, 117, .14); }
.nh-nav .nh-mega__inner { max-width: var(--nh-max); padding: 28px 24px 30px; gap: 36px; align-items: start; grid-template-columns: minmax(0, 1.15fr) minmax(190px, .75fr) minmax(0, 2fr); }
.nh-nav .nh-mega__inner:not(:has(.nh-mega__sub)) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* Spalte 1: Hauptbild der Rubrik */
.nh-nav .nh-mega__feature-link { display: block; color: var(--nh-text); text-decoration: none; }
.nh-nav .nh-mega__feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 0; }
.nh-nav .nh-mega__feature-title { display: block; margin-top: 14px; font-size: 1.2rem; font-weight: 800; line-height: 1.25; white-space: normal; overflow: visible; text-overflow: clip; }
.nh-nav .nh-mega__feature-link:hover .nh-mega__feature-title { color: var(--nh-primary); text-decoration: underline; }

/* Spalte 2: Ressorts als saubere Liste */
.nh-nav .nh-mega__sub { border-left: 1px solid var(--nh-line); padding-left: 28px; }
.nh-nav .nh-mega__heading { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nh-muted); margin: 0 0 12px; }
.nh-nav .nh-mega__sublist { gap: 0; }
.nh-nav .nh-mega__sublink { display: block; padding: 10px 0; font-size: 1rem; font-weight: 600; color: var(--nh-text); border-bottom: 1px solid var(--nh-line); white-space: normal; overflow: visible; text-overflow: clip; text-decoration: none; background: none; }
.nh-nav .nh-mega__sublink:hover, .nh-nav .nh-mega__sublink:focus-visible { color: var(--nh-primary); text-decoration: underline; background: none; }
.nh-nav .nh-mega__subitem--all .nh-mega__sublink { font-weight: 800; color: var(--nh-primary); }
.nh-nav .nh-mega__subitem--l2 .nh-mega__sublink, .nh-nav .nh-mega__subitem--l3 .nh-mega__sublink { padding-left: 14px; font-size: .92rem; font-weight: 500; color: var(--nh-muted); }

/* Spalte 3: aktuelle Meldungen als gleich große Karten */
.nh-nav .nh-mega__news { min-width: 0; }
.nh-nav .nh-mega__news .nh-mega__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nh-nav .nh-mega__item { min-width: 0; }
.nh-nav .nh-mega__item a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--nh-line); border-radius: 12px; overflow: hidden; color: var(--nh-text); text-decoration: none; }
.nh-nav .nh-mega__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0; border-radius: 0; }
.nh-nav .nh-mega__item span { display: block; padding: 12px 14px 16px; font-size: 1rem; font-weight: 700; line-height: 1.3; white-space: normal; overflow: visible; text-overflow: clip; color: var(--nh-text); }
.nh-nav .nh-mega__item a:hover span, .nh-nav .nh-mega__item a:focus-visible span { color: var(--nh-primary); text-decoration: underline; }
.nh-nav .nh-mega__item a:hover { border-color: var(--nh-primary); }
.nh-nav .nh-mega__empty { font-size: 1rem; }
.nh-nav .nh-mega__empty a { color: var(--nh-primary); font-weight: 700; }

/* ---- Mega-Menü im Stil des Mockups: Bild links, Spalten mit Überschriften und Pfeil-Links ---- */
@media (min-width: 900px) {
    .nh-nav .nh-mega__inner { grid-template-columns: 250px minmax(0, 1fr); column-gap: 36px; row-gap: 26px; padding: 26px 28px 30px; }
    .nh-nav .nh-mega__inner:has(.nh-mega__sub) .nh-mega__feature { grid-column: 1; grid-row: 1; }
    .nh-nav .nh-mega__sub { grid-column: 2; grid-row: 1; border-left: 0; padding-left: 0; }
    .nh-nav .nh-mega__news { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--nh-line); padding-top: 22px; }
    .nh-nav .nh-mega__inner:not(:has(.nh-mega__sub)) .nh-mega__news { grid-column: 2; grid-row: 1; }

    /* Feature-Spalte */
    .nh-nav .nh-mega__feature-title { font-size: 1.1rem; }
    .nh-nav .nh-mega__feature img { aspect-ratio: 4 / 3; }

    /* Spalten (Bereiche der zweiten Ebene) */
    .nh-nav .nh-mega__sub .nh-mega__heading { display: none; }
    .nh-nav .nh-mega__sublist:has(.nh-mega__group) { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 32px; align-items: start; }
    .nh-nav .nh-mega__subitem--all { grid-column: 1 / -1; margin-bottom: 6px; }
    .nh-nav .nh-mega__sublist:not(:has(.nh-mega__group)) .nh-mega__sublink { border-bottom: 1px solid var(--nh-line); }
    .nh-nav .nh-mega__group { min-width: 0; }
    .nh-nav .nh-mega__sublink--group { display: block; padding: 0 0 10px; margin-bottom: 4px; font-size: 1.05rem; font-weight: 800; color: var(--nh-primary); border-bottom: 2px solid var(--nh-primary); text-decoration: none; background: none; }
    .nh-nav .nh-mega__sublink--group:hover { text-decoration: underline; }
    .nh-nav .nh-mega__nested { list-style: none; margin: 0 0 18px; padding: 0; }
    .nh-nav .nh-mega__nested .nh-mega__sublink { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: .98rem; font-weight: 600; color: var(--nh-text); border-bottom: 1px solid var(--nh-line); }
    .nh-nav .nh-mega__nested .nh-mega__sublink::after { content: "›"; color: var(--nh-primary); font-size: 1.25rem; line-height: 1; font-weight: 700; }
    .nh-nav .nh-mega__nested .nh-mega__sublink:hover { color: var(--nh-primary); text-decoration: underline; }
    .nh-nav .nh-mega__subitem--l2 .nh-mega__sublink, .nh-nav .nh-mega__subitem--l3 .nh-mega__sublink { padding-left: 14px; font-size: .92rem; font-weight: 500; color: var(--nh-muted); }
}

/* Schnellliste unter dem Bild im Mega-Menü */
.nh-nav .nh-mega__quick { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--nh-line); }
.nh-nav .nh-mega__quick li { border-bottom: 1px solid var(--nh-line); }
.nh-nav .nh-mega__quick a { display: flex; align-items: center; gap: 10px; padding: 9px 2px; color: var(--nh-text); font-size: .95rem; font-weight: 600; text-decoration: none; }
.nh-nav .nh-mega__quick a svg { flex: 0 0 auto; color: var(--nh-primary); }
.nh-nav .nh-mega__quick a:hover, .nh-nav .nh-mega__quick a:focus-visible { color: var(--nh-primary); text-decoration: underline; }

/* ---- Mega-Menü wie im Mockup: Spalten nebeneinander, Symbol-Überschriften, Pfeil-Links ---- */
.nh-topbar__inner > span, .nh-topbar__inner > time { display: inline-flex; align-items: center; gap: 6px; }
.nh-topbar svg { flex: 0 0 auto; }
@media (min-width: 900px) {
    .nh-nav .nh-mega__inner:has(.nh-mega__group) .nh-mega__news { display: none; }
    .nh-nav .nh-mega__inner:has(.nh-mega__group) { grid-template-columns: 260px minmax(0, 1fr); padding: 24px 24px 28px; }
    .nh-nav .nh-mega__sublist:has(.nh-mega__group) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 26px; }
    .nh-nav .nh-mega__sublink--group { display: flex; align-items: center; gap: 8px; padding: 0 0 10px; margin-bottom: 2px; border-bottom: 0; font-size: 1.02rem; font-weight: 800; color: var(--nh-primary); }
    .nh-nav .nh-mega__sublink--group::after { content: none; }
    .nh-nav .nh-mega__icon { flex: 0 0 auto; }
    .nh-nav .nh-mega__group > .nh-mega__nested { position: relative; }
    .nh-nav .nh-mega__nested .nh-mega__sublink { border-bottom: 1px solid var(--nh-line); }
    .nh-nav .nh-mega__nested li:first-child .nh-mega__sublink { border-top: 1px solid var(--nh-line); }
}

/* Mega-Menü ohne Spalten (noch keine Unterpunkte im Menü): Bild links, Meldungen rechts in kleinen Karten */
@media (min-width: 900px) {
    .nh-nav .nh-mega__inner:not(:has(.nh-mega__group)) { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto auto; padding: 24px 24px 28px; }
    .nh-nav .nh-mega__inner:not(:has(.nh-mega__group)) .nh-mega__feature { grid-column: 1; grid-row: 1 / span 2; }
    .nh-nav .nh-mega__inner:not(:has(.nh-mega__group)) .nh-mega__sub { grid-column: 2; grid-row: 1; }
    .nh-nav .nh-mega__inner:not(:has(.nh-mega__group)) .nh-mega__news { grid-column: 2; grid-row: 2; border-top: 0; padding-top: 0; }
    .nh-nav .nh-mega__inner:not(:has(.nh-mega__group)) .nh-mega__news .nh-mega__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .nh-nav .nh-mega__inner:not(:has(.nh-mega__group)) .nh-mega__news .nh-mega__heading { margin-top: 18px; }
    .nh-nav .nh-mega__news .nh-mega__item img { aspect-ratio: 16 / 10; }
    .nh-nav .nh-mega__news .nh-mega__item span { font-size: .92rem; padding: 10px 12px 12px; }
    .nh-nav .nh-mega__feature img { aspect-ratio: 16 / 10; }
}

/* Startseite Desktop: Karussell hat feste Höhe, das Bild wird eingepasst (kein hohes Hochformat mehr) */
@media (min-width: 900px) {
    .nh-top__main > .nh-hero.nh-slider { flex: 0 0 auto; height: 470px; }
    .nh-top__main > .nh-hero.nh-slider .nh-slider__track,
    .nh-top__main > .nh-hero.nh-slider .nh-slide,
    .nh-top__main > .nh-hero.nh-slider .nh-hero__media { height: 100%; min-height: 0; }
    .nh-top__main > .nh-hero.nh-slider .nh-hero__img { position: absolute; inset: 0; }
    .nh-top__main > .nh-hero.nh-slider .nh-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}

/* Seitenleiste: Kästen Newsletter und App, Meistgelesen mit großen Nummern */
.nh-side-box { background: #fff; border: 1px solid var(--nh-line); border-radius: 12px; padding: 18px; margin-top: 16px; }
.nh-side-box__title { font-size: 1.15rem; font-weight: 800; color: var(--nh-dark); margin: 0 0 8px; }
.nh-side-box__text { margin: 0 0 12px; font-size: .95rem; color: var(--nh-muted); line-height: 1.45; }
.nh-side-box__stores { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.nh-side-box .nh-btn { font-size: .9rem; padding: 9px 14px; }
.nh-side-box--news form { display: grid; gap: 8px; }
.nh-mostread__list { counter-reset: nhmr; list-style: none; padding: 0; margin: 0; }
.nh-mostread__item { counter-increment: nhmr; display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: start; }
.nh-mostread__item::before { content: counter(nhmr); font-size: 1.5rem; font-weight: 800; color: var(--nh-primary); line-height: 1; }

/* Videos auf der Startseite: Karten mit Bild, die zu YouTube verlinken (kein Einbetten, kein Tracking) */
.nh-videos { margin-top: 36px; }
.nh-video-card { background: #fff; border: 1px solid var(--nh-line); border-radius: 12px; overflow: hidden; min-width: 0; }
.nh-video-card__link { display: flex; flex-direction: column; height: 100%; color: var(--nh-text); text-decoration: none; }
.nh-video-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0f1b33; }
.nh-video-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nh-video-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(16, 54, 117, .92); color: #fff; display: grid; place-items: center; font-size: 20px; }
.nh-video-card__title { display: block; padding: 12px 14px 4px; font-weight: 700; line-height: 1.3; }
.nh-video-card__more { display: block; padding: 0 14px 14px; color: var(--nh-primary); font-weight: 700; font-size: .92rem; }
.nh-video-card__link:hover .nh-video-card__title, .nh-video-card__link:focus-visible .nh-video-card__title { text-decoration: underline; color: var(--nh-primary); }

/* Mobil: Teaser zweispaltig, Titel des Karussells über die volle Breite */
@media (max-width: 899px) {
    .nh-top__main > .nh-teasers .nh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .nh-hero--media .nh-hero__caption { max-width: 100%; }
}

/* Videos als Reels-Leiste: hochkant, horizontal wischbar, verlinkt zu YouTube */
.nh-reels { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch; }
.nh-reels .nh-video-card { flex: 0 0 190px; scroll-snap-align: start; border-radius: 14px; }
.nh-reels .nh-video-card__media { aspect-ratio: 9 / 16; border-radius: 14px 14px 0 0; }
.nh-reels .nh-video-card__title { font-size: .98rem; padding: 10px 12px 2px; }
.nh-reels .nh-video-card__more { padding: 0 12px 12px; font-size: .85rem; }
@media (min-width: 900px) {
    .nh-videos .nh-reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
    .nh-videos .nh-reels .nh-video-card { flex: none; }
    .nh-videos .nh-reels .nh-video-card__media { aspect-ratio: 9 / 12; }
}

/* Videofenster */
.nh-video-dialog { width: min(900px, 94vw); padding: 14px; border: 0; border-radius: 14px; background: #0b172b; color: #fff; }
.nh-video-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.nh-video-dialog__close { display: block; margin: 0 0 10px auto; padding: 8px 12px; border: 0; border-radius: 8px; background: #fff; color: var(--nh-text); font-weight: 700; cursor: pointer; }
.nh-video-dialog__player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.nh-video-dialog__extern { display: inline-block; margin-top: 10px; color: #fff; font-weight: 700; }

/* Social-Karten */
.nh-community { margin-top: 36px; }
.nh-community__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.nh-community__card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--nh-line); border-radius: 12px; background: #fff; color: var(--nh-text); text-decoration: none; }
.nh-community__card strong { font-size: 1.1rem; color: var(--nh-primary); }
.nh-community__card span { color: var(--nh-muted); font-size: .95rem; }
.nh-community__card b { margin-top: 8px; color: var(--nh-primary); font-size: .92rem; }
.nh-community__card:hover, .nh-community__card:focus-visible { border-color: var(--nh-primary); }

/* WhatsApp-Banner */
.nh-wa-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 22px 24px; border-radius: 14px; background: var(--nh-dark); color: #fff; }
.nh-wa-banner h2 { font-size: 1.25rem; margin: 0 0 4px; color: #fff; }
.nh-wa-banner p { margin: 0; color: #dbe5f5; }
.nh-wa-banner .nh-btn { background: #fff; color: var(--nh-dark); }

/* Angleichung an die Vorlage: runde Karten, Teilen-Link, schwebender WhatsApp-Button (ohne Verlauf) */
.nh-card, .nh-video-card, .nh-community__card, .nh-side-box { border-radius: 14px; }
.nh-card, .nh-video-card { box-shadow: 0 3px 12px rgba(16, 54, 117, .08); }
.nh-share { color: #1f7a45; font-weight: 700; text-decoration: none; }
.nh-share:hover, .nh-share:focus-visible { text-decoration: underline; }
.nh-wa-float { position: fixed; right: 16px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px; background: #1f7a45; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.nh-wa-float:focus-visible { outline-color: #fff; }
@media (max-width: 899px) { .nh-wa-float { bottom: 96px; } }

/* Mobil: Hauptnavigation bleibt in der Breite des Bildschirms, nur die Leiste scrollt. */
@media (max-width: 899px) {
  .nh-nav { max-width: 100%; overflow: hidden; }
  .nh-nav__list { width: 100%; max-width: 100%; }
}
/* Mobil: Startseiten-Spalten und Hero-Slider dürfen nicht breiter als der Bildschirm werden. */
.nh-top, .nh-top__main, .nh-top__side, .nh-hero, .nh-slider { min-width: 0; max-width: 100%; }
.nh-slider__track { max-width: 100%; overflow: hidden; }
.nh-slide { min-width: 0; max-width: 100%; }
@media (max-width: 899px) { .nh-top { grid-template-columns: minmax(0, 1fr); } }
.nh-hero, .nh-hero__media, .nh-hero__img, .nh-hero img { max-width: 100%; }
.nh-hero__media img, .nh-hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .nh-grid--4, .nh-teasers .nh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nh-teasers { min-width: 0; }
}
@media (max-width: 899px) { .nh-home { grid-template-columns: minmax(0, 1fr); } }
.nh-home > * { min-width: 0; max-width: 100%; }

/* Rubrik immer als eigene Zeile über der Überschrift, links bündig. */
.nh-hero__caption .nh-kicker { display: table; max-width: 100%; margin: 0 0 10px; }
.nh-hero__caption .nh-hero__title { display: block; }

/* Weitere Topthemen direkt unter dem Slider: größer und besser lesbar. */
.nh-top__main > .nh-teasers { margin-top: 18px; }
.nh-top__main > .nh-teasers .nh-card { border-radius: 14px; overflow: hidden; }
.nh-top__main > .nh-teasers .nh-card__img img,
.nh-top__main > .nh-teasers .nh-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.nh-top__main > .nh-teasers .nh-card__title { font-size: 1.2rem; line-height: 1.25; font-weight: 800; margin: 8px 0 4px; }
.nh-top__main > .nh-teasers .nh-card__title a { color: var(--nh-text, #171717); text-decoration: none; }
.nh-top__main > .nh-teasers .nh-card__body { padding: 14px 16px 16px; }
@media (max-width: 899px) {
  .nh-top__main > .nh-teasers .nh-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nh-top__main > .nh-teasers .nh-card__title { font-size: 1.35rem; }
}
@media (min-width: 900px) {
  .nh-top__main > .nh-teasers .nh-grid { gap: 18px; }
  .nh-top__main > .nh-teasers .nh-card__title { font-size: 1.1rem; }
}
.nh-top__main > .nh-teasers .nh-card > *:not(img):not(picture):not(.nh-card__img) { margin-left: 16px; margin-right: 16px; }
.nh-top__main > .nh-teasers .nh-card > *:not(img):not(picture):not(.nh-card__img):last-child { margin-bottom: 16px; }
.nh-side-box--community { border-left: 4px solid #25D366; }
.nh-side-box--community .nh-btn { background: #25D366; color: #171717; }
.nh-side-box--community .nh-btn:focus-visible { outline: 3px solid #171717; outline-offset: 2px; }

/* Slider: mehr Abstand zwischen Rand und Schrift. */
.nh-hero__caption { padding: 22px 26px !important; }
@media (min-width: 900px) { .nh-hero__caption { padding: 28px 36px !important; } }

/* Weitere Topthemen rücken dichter an den Block darunter (Werbung). */
.nh-top__main > .nh-teasers { margin-bottom: 0; }
.nh-top__main > .nh-teasers + * { margin-top: 10px; }
