/* ÖWR Tirol – Ergänzungen zum owr.at-Design (aus tirol.css von tirol.owr.at + Block-Editor-Anpassungen) */

.tabelle-alle-abschnitte {
	scroll-margin-top: var(--anchor-scroll-margin-top);
}

.einsatzstelle-link .sub-menu li a::after {
	content: "\00a0- Einsatzstelle";
}

/* Block-Editor: Absätze/Überschriften innerhalb der ÖWR-Bausteine ohne Standard-Abstände */
.drei-karten p.drei-karten-titel,
.drei-karten p.drei-karten-untertitel,
.lerne-schwimmen-box p.drei-karten-titel,
.lerne-schwimmen-box p.drei-karten-untertitel,
.hast-du-fragen-titel p,
.hast-du-fragen-text p:last-child,
.home-bundesland-text p:last-child {
	margin: 0;
}
.wp-block-group.drei-karten,
.wp-block-group.lerne-schwimmen-box {
	margin-block: 0;
}

/* Seiteninhalt (Block-Editor) – Grundtypografie wie owr.at ".text-standard" */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content .wp-block-group > p {
	font-size: var(--text-standard-font-size);
	line-height: var(--text-standard-line-height);
	color: var(--text);
}
.entry-content h2:not([class*="ueberschrift"]) { font-size: var(--ueberschrift-xl-font-size); font-weight: var(--ueberschrift-xl-font-weight); line-height: var(--ueberschrift-xl-line-height); color: var(--ueberschrift); margin-top: var(--ueberschrift-margin-top); }
.entry-content h3:not([class*="ueberschrift"]) { font-size: var(--ueberschrift-gross-font-size); font-weight: var(--ueberschrift-gross-font-weight); line-height: var(--ueberschrift-gross-line-height); color: var(--ueberschrift); margin-top: var(--ueberschrift-margin-top); }
.entry-content h4:not([class*="ueberschrift"]) { font-size: var(--ueberschrift-mittel-font-size); font-weight: var(--ueberschrift-mittel-font-weight); line-height: var(--ueberschrift-mittel-line-height); color: var(--ueberschrift); }
.entry-content img { height: auto; max-width: 100%; }
.entry-content .wp-block-image figcaption { font-size: var(--text-extra-klein-font-size); color: var(--text); }
.entry-content ul:not([class]) { padding-left: 1.4em; list-style: disc; }
.entry-content ol:not([class]) { padding-left: 1.4em; }

/* Standard-Buttons des Block-Editors im ÖWR-Stil */
.entry-content .wp-block-button__link,
.owr-home-content .wp-block-button__link {
	background: var(--button-01);
	color: #fff;
	border-radius: 40px;
	padding: 13px 28px;
	font-weight: 500;
	text-decoration: none;
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--button-01);
	border: 2px solid var(--button-01);
}

/* Unterstrich-Element als eigenständiger Block */
hr.unterstrich-seiten-titel,
hr.unterstrich-ueberschrift-gross {
	border: 0;
	border-top: 1px solid var(--text);
	margin: 0 0 30px 0;
	width: 100px;
}

/* News-Karten ohne Beitragsbild */
.news-card__image img { width: 100%; height: 100%; object-fit: cover; }

/* Popup: rechtliche Links unter der Auswahl */
.popup-menu-impressum-container { margin-top: 20px; }

/* Einsatzstellen-Grid: Logo als Wappen-Ersatz kleiner */
.bundesland-box-wappen img[src$="owr-logo.svg"] { width: 65px; }

/* Kein Titel auf Startseiten-Inhalt */
.owr-home-content > .container-normal:first-child { margin-top: 0; }

/* Unterstützer-Logos ohne intrinsische Größe (SVG) begrenzen */
.logo-kooperationen-home img[src$=".svg"] { max-width: 150px; max-height: 150px; }

/* Dropdowns auch per Tipp/Klick (Touch-Geräte, Tablets) */
.owr-header-nav-menu ul li.is-open > ul { display: flex; visibility: visible; opacity: 1; transition: none; }
.bundesleitung-link.is-open .sub-menu,
.einsatzstelle-link.is-open .sub-menu { display: block; visibility: visible; opacity: 1; transition: none; }

/* ---------- Notruf im Popup-Menü -------------------------------------------
 * Der Header bleibt bewusst unverändert. Am Smartphone steht die Notrufnummer
 * daher ganz oben im Menü – als erstes Element, noch vor den Menüpunkten.
 * Ruhig gestaltet: Telefon-Icon, ausgeschriebene Nummer, kein Warnsymbol,
 * keine Animation. Ein Notruf ist eine gewünschte Handlung, kein Fehlerzustand.
 * -------------------------------------------------------------------------- */
.popup-menu-notruf {
	display: flex; align-items: center; gap: 14px;
	margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
	background: #C8102E; color: #fff !important; text-decoration: none !important;
	transition: background-color .18s ease-out;
}
.popup-menu-notruf:hover, .popup-menu-notruf:focus { color: #fff !important; background: #A50D26; }
.popup-menu-notruf:focus-visible { outline: 3px solid #0D2A50; outline-offset: 2px; }
.popup-menu-notruf__icon {
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.18);
}
.popup-menu-notruf__zeilen { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.popup-menu-notruf__nummer { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.popup-menu-notruf__text { display: block; font-size: .8125rem; line-height: 1.35; color: rgba(255,255,255,.92); }

@media (prefers-reduced-motion: reduce) {
	.popup-menu-notruf { transition: none; }
}
