/* Hallo Rottweil: Signet auf Artikeln, Logo und Menü im Hallo-Kopf. Farben und Schrift aus dem Theme. */
:root {
    --nrwz-hallo-green: #88b04b;
    --nrwz-hallo-green-paper: #f3f8ec;
}

/* Signet unter dem NRWZ-Kopf, nur sichtbar bei Herkunft aus dem Portal. */
.nrwz-hallo-signet[hidden] { display: none !important; }
.nrwz-hallo-signet {
    background: var(--nrwz-hallo-green-paper);
    border-bottom: 2px solid var(--nrwz-hallo-green);
}
.nrwz-hallo-signet__inner {
    max-width: var(--rb-width, 1280px);
    margin: 0 auto;
    padding: 0 20px;
}
.nrwz-hallo-signet__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    color: inherit;
    font: inherit;
    font-size: .95rem;
    text-decoration: none;
}
.nrwz-hallo-signet__logo { display: block; width: auto; height: 20px; }
.nrwz-hallo-signet__label::before { content: '← '; }
.nrwz-hallo-signet__link:hover .nrwz-hallo-signet__label { text-decoration: underline; }
.nrwz-hallo-signet__link:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 599px) {
    .nrwz-hallo-signet__inner { padding: 0 12px; }
    .nrwz-hallo-signet__logo { height: 16px; }
    .nrwz-hallo-signet__link { font-size: .875rem; gap: .5rem; }
}
/* Per [nrwz_hallo_zurueck] im Artikel gesetzt: wie eine Kachel im Text. */
.entry-content .nrwz-hallo-signet, .single-content .nrwz-hallo-signet { margin: 0 0 1.2rem; border: 1px solid var(--nrwz-hallo-green); border-radius: .3rem; }

/* Logo im Hallo-Kopf. */
/* Block nur so breit wie das Logo, damit die Kooperationszeile umbricht und das Menü daneben Platz hat. */
.nrwz-hallo-brand { display: flex; flex-direction: column; gap: .35rem; max-width: var(--nrwz-hallo-logo-width, 420px); }
.nrwz-hallo-brand__logo { display: block; line-height: 0; }
/* Breite über width statt max-width: Theme/Elementor setzen img { max-width: 100% } mit höherem Vorrang. */
.nrwz-hallo-brand .nrwz-hallo-brand__logo img { display: block; width: min(100%, var(--nrwz-hallo-logo-width, 420px)); max-width: 100%; height: auto; }
.nrwz-hallo-brand__tagline { margin: 0; font-size: .875rem; line-height: 1.35; opacity: .8; }
@media (max-width: 599px) {
    .nrwz-hallo-brand .nrwz-hallo-brand__logo img { width: min(100%, var(--nrwz-hallo-logo-width-mobile, 240px)); } /* 0.11.2: einzeiliges Logo, 240 px; das gestapelte nur unter 300 px */
    .nrwz-hallo-brand { max-width: 100%; gap: .25rem; }
    .nrwz-hallo-brand__tagline { font-size: .66rem; line-height: 1.35; max-width: none; }
}

/* Menü im Hallo-Kopf: Desktop rechts neben dem Logo (Elementor-Container), mobil darunter und wischbar. */
.nrwz-hallo-menu__list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nrwz-hallo-menu__list a {
    display: inline-block;
    padding: .45rem .6rem; /* schmal genug für eine Zeile neben dem Logo bei 1100 px */
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    font: inherit;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.nrwz-hallo-menu__list a:hover { border-color: var(--g-color, #bb2727); color: var(--g-color, #bb2727); }
.nrwz-hallo-menu__list .current-menu-item > a,
.nrwz-hallo-menu__list a[aria-current="page"] {
    border-color: var(--g-color, #bb2727);
    background: var(--g-color, #bb2727);
    color: #fff;
}
.nrwz-hallo-menu__list a:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 767px) {
    .nrwz-hallo-menu { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .nrwz-hallo-menu::-webkit-scrollbar { display: none; }
    .nrwz-hallo-menu__list { flex-wrap: nowrap; padding-bottom: 2px; }
    .nrwz-hallo-menu__list a { font-size: .875rem; padding: .4rem .75rem; }
}

/* Hallo-Seiten ohne Elementor (Termine): Foxiz-Rahmen 1140 px mit je 20 px Rand = 1100 px Inhalt,
   wie die Elementor-Blöcke der Stadt-, Kreis- und LGS-Seite. Nur auf Seiten mit dem Hallo-Kopf. */
body:has(.nrwz-hallo-brand) .single-page > .rb-small-container { max-width: 1140px; }

/* Die NRWZ-Leiste im Hallo-Kopf (Container mit dem foxiz-logo) pflegt die Redaktion in Elementor.
   Das Plugin setzt dort bewusst keine Regeln mehr (bis 0.9.7: Höhe 40 px, Logo 24 px). */

/* 0.11.2: Rhythmus und Knöpfe der Hallo-Seiten (Elementor). Gilt nur auf Seiten mit Hallo-Kopf.
   Trennlinien bekommen Luft, statt 10 px vor dem nächsten Abschnitt zu kleben. */
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con:is(:has(> .e-con-inner > .elementor-widget-divider:only-child), :has(> .elementor-widget-divider:only-child)) { padding-block: 26px; }
@media (max-width: 767px) {
    body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header):not(.elementor-location-footer) > .e-con:is(:has(> .e-con-inner > .elementor-widget-divider:only-child), :has(> .elementor-widget-divider:only-child)) { padding-block: 14px; }
}
/* Ein Knopfstil für „weiter zu …“: Umriss in der Akzentfarbe, im LGS-Kasten grün. */
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header) .elementor-widget-button .elementor-button { background: transparent; color: var(--g-color, #bb2727); border: 2px solid currentColor; border-radius: 6px; font-weight: 700; }
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header) .elementor-widget-button .elementor-button:is(:hover, :focus-visible) { background: transparent; color: var(--g-color, #bb2727); text-decoration: underline; text-underline-offset: .18em; }
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header) :is(#landesgartenschau, #kooperation, #lgs) .elementor-widget-button .elementor-button { color: #2f6b3a; }
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header) .elementor-widget-button .elementor-button .elementor-button-text { color: inherit; }

/* 0.11.3: Abschnittstitel der Hallo-Seiten wie Zeitungsrubriken. Gilt für Foxiz-Überschriften und die Plugin-Bausteine
   (beide im Markup „block-h heading-layout-3“), nur auf Seiten mit Hallo-Kopf, nicht in Kopf und Fuß.
   Georgia kursiv in der Akzentfarbe, roter Strich in Titelbreite auf einer dünnen Linie; im LGS-Kasten grün. */
body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h { margin-top: 30px; margin-bottom: 18px; }
body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-inner { align-items: flex-end; border-bottom: 1px solid #1a1a1a; }
body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-title { font-family: Georgia, "Times New Roman", serif; }
body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-title :is(a, span) {
    margin-bottom: -1px; padding-bottom: 8px; border-bottom: 3px solid var(--g-color, #bb2727);
    color: var(--g-color, #bb2727); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-style: italic; font-weight: 700;
    letter-spacing: -.01em; line-height: 1.15; text-transform: none;
}
body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-title a::after { content: "›"; display: inline-block; margin-left: .3em; font-style: normal; font-weight: 400; transition: transform .2s; }
body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-title a:hover::after { transform: translateX(4px); }
/* Titel in schmalen Spalten (z. B. „Termine der Landesgartenschau“) etwas kleiner, damit sie nicht umbrechen. */
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header) .e-con .e-con .e-con .block-h .heading-title :is(a, span) { font-size: clamp(1.15rem, 1.6vw, 1.3rem); }
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header) :is(#landesgartenschau, #kooperation, #lgs) .block-h .heading-inner { border-bottom-color: #2f6b3a; }
body:has(.nrwz-hallo-brand) .elementor:not(.elementor-location-header) :is(#landesgartenschau, #kooperation, #lgs) .block-h .heading-title :is(a, span) { color: #2f6b3a; border-bottom-color: #2f6b3a; }
@media (max-width: 767px) {
    body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h { margin-top: 22px; }
    body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-title :is(a, span) { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
    body:has(.nrwz-hallo-brand) .block-h .heading-title a::after { transition: none; }
}
/* 0.11.4: Titel als Block in der Zeile, damit „›“ bei umbrechenden Titeln am letzten Wort bleibt. Auf dem Handy steht die
   Foxiz-Unterzeile (z. B. „Mitteilungen der Stadtverwaltung Rottweil“) über dem Titel statt ihn auf zwei Zeilen zu drücken. */
body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-title :is(a, span) { display: inline-block; }
@media (max-width: 767px) {
    body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-inner { flex-wrap: wrap; }
    body:has(.nrwz-hallo-brand) :is(.elementor:not(.elementor-location-header):not(.elementor-location-footer), .entry-content) .block-h .heading-tagline { flex: 1 0 100%; order: -1; margin: 0 0 4px; text-align: left; }
}
