/* Template petriheil – Anglerverein „Petri-Heil“ e.V. Neckarhausen
   Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO-freundlich). */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --ph-blue: #1D5DA5;
  --ph-blue-dark: #154780;
  --ph-blue-soft: #E8EEF6;
  --ph-line: #B8C7DB;
  --ph-text: #1F2933;
  --ph-muted: #5B6675;
  --ph-bg: #FFFFFF;
  --ph-bg-alt: #F3F5F8;
  --ph-radius: 10px;
  --ph-wrap: 1180px;
  --ph-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --ph-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ph-bg); color: var(--ph-text); font: 16px/1.6 var(--ph-body); }
img { max-width: 100%; height: auto; }
a { color: var(--ph-blue); text-underline-offset: 2px; }
a:hover { color: var(--ph-blue-dark); }
:focus-visible { outline: 3px solid var(--ph-blue); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--ph-head); color: var(--ph-blue); line-height: 1.15; margin: 1.4em 0 .5em; }
h1 { font-size: 2.4rem; font-weight: 800; margin-top: 0; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

.ph-wrap { width: 100%; max-width: var(--ph-wrap); margin: 0 auto; padding: 0 20px; }

/* Sprunglink für Tastatur/Screenreader */
.ph-skip { position: absolute; left: -9999px; top: 8px; background: var(--ph-blue); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.ph-skip:focus { left: 12px; }

/* ---------- Kopf wie im Briefkopf ---------- */
.ph-topbar { background: var(--ph-blue); color: #fff; font-size: .85rem; }
.ph-topbar a { color: #fff; }
.ph-topbar .ph-wrap { padding-top: 6px; padding-bottom: 6px; }

.ph-header { background: #fff; }
.ph-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 18px; }
.ph-brand { display: flex; flex-direction: column; text-decoration: none; flex: 1; min-width: 0; padding-bottom: 14px; border-bottom: 3px solid var(--ph-blue); }
.ph-brand__kicker { font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; color: var(--ph-muted); }
.ph-brand__title { font-family: var(--ph-body); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.15; color: var(--ph-blue); }
.ph-brand__sub { font-size: .9rem; color: var(--ph-muted); margin-top: 4px; }
.ph-logo { flex: 0 0 auto; line-height: 0; }
.ph-logo img { width: 112px; height: 112px; object-fit: contain; }

/* ---------- Hauptnavigation ---------- */
.ph-nav { background: var(--ph-blue); }
.ph-nav__inner { display: flex; align-items: center; gap: 16px; }
.ph-nav__menu { flex: 1; }
.ph-nav ul { list-style: none; margin: 0; padding: 0; }
.ph-nav__menu > ul, .ph-nav__menu .mod-menu { display: flex; flex-wrap: wrap; }
.ph-nav__menu li { position: relative; }
.ph-nav__menu a, .ph-nav__menu .mod-menu__heading, .ph-nav__menu .mod-menu__separator {
  display: block; padding: 14px 16px; color: #fff; text-decoration: none;
  font-family: var(--ph-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase;
}
.ph-nav__menu a:hover, .ph-nav__menu .current > a, .ph-nav__menu .active > a { background: var(--ph-blue-dark); color: #fff; }
.ph-nav__menu .current > a { box-shadow: inset 0 -4px 0 #fff; }
/* Untermenüs */
.ph-nav__menu ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--ph-line); border-top: 3px solid var(--ph-blue); box-shadow: 0 10px 24px rgba(20, 40, 70, .14); z-index: 50; }
.ph-nav__menu li:hover > ul, .ph-nav__menu li:focus-within > ul { display: block; }
.ph-nav__menu ul ul a { color: var(--ph-text); text-transform: none; font-family: var(--ph-body); font-weight: 400; font-size: .95rem; letter-spacing: 0; padding: 10px 16px; }
.ph-nav__menu ul ul a:hover { background: var(--ph-blue-soft); color: var(--ph-blue); }
.ph-nav__search input { border: 0; border-radius: 6px; padding: 8px 12px; font: inherit; min-width: 200px; }

.ph-nav__toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; color: #fff; padding: 14px 0; font-family: var(--ph-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.ph-nav__bars, .ph-nav__bars::before, .ph-nav__bars::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; }
.ph-nav__bars::before, .ph-nav__bars::after { content: ""; position: absolute; left: 0; }
.ph-nav__bars::before { top: -7px; }
.ph-nav__bars::after { top: 7px; }

/* ---------- Banner ---------- */
.ph-banner img { display: block; width: 100%; max-height: 460px; object-fit: cover; }

/* ---------- Inhalt ---------- */
.ph-page { padding-top: 28px; padding-bottom: 56px; }
.ph-breadcrumbs { font-size: .85rem; color: var(--ph-muted); margin-bottom: 18px; }
.ph-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ph-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ph-line); }
.ph-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.has-sidebar .ph-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.ph-main > :first-child { margin-top: 0; }

/* Joomla-Beiträge */
.page-header h1, .page-header h2, .item-title { margin-top: 0; }
.article-info, .ph-meta { color: var(--ph-muted); font-size: .85rem; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.article-info dt { display: none; }
.article-info dd { margin: 0; }
.blog-item, .com-content-category-blog__item { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--ph-line); }
.readmore a, .btn, button.btn, input[type="submit"] {
  display: inline-block; background: var(--ph-blue); color: #fff; border: 0; border-radius: 6px; padding: 10px 18px;
  font-family: var(--ph-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.readmore a:hover, .btn:hover { background: var(--ph-blue-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ph-blue); box-shadow: inset 0 0 0 2px var(--ph-blue); }

blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--ph-blue); background: var(--ph-blue-soft); }
hr { border: 0; border-top: 1px solid var(--ph-line); margin: 32px 0; }

table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
th { background: var(--ph-blue-soft); color: var(--ph-blue); text-align: left; font-weight: 700; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--ph-line); vertical-align: top; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  font: inherit; padding: 9px 12px; border: 1px solid var(--ph-line); border-radius: 6px; width: 100%; max-width: 480px; background: #fff;
}
label { font-weight: 700; }

/* Hinweis-Box (Beschluss / Info) – Klasse im Editor: ph-info */
.ph-info { background: var(--ph-blue-soft); border-left: 4px solid var(--ph-blue); padding: 14px 18px; border-radius: 0 var(--ph-radius) var(--ph-radius) 0; margin: 1.5em 0; }

/* Joomla-Systemmeldungen */
joomla-alert, .alert { display: block; padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; background: var(--ph-blue-soft); border-left: 4px solid var(--ph-blue); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.pagination .page-link { display: block; padding: 6px 12px; border: 1px solid var(--ph-line); border-radius: 6px; text-decoration: none; }
.pagination .active .page-link { background: var(--ph-blue); color: #fff; border-color: var(--ph-blue); }

/* ---------- Module als Karten ---------- */
.ph-card { background: #fff; border: 1px solid #E1E6ED; border-radius: var(--ph-radius); padding: 20px 22px; margin-bottom: 24px; }
.ph-card__title { margin: 0 0 12px; font-size: 1.35rem; padding-bottom: 8px; border-bottom: 2px solid var(--ph-blue); }
.ph-card ul { padding-left: 18px; margin: 0; }
.ph-card li + li { margin-top: 6px; }
.ph-sidebar .ph-card { background: var(--ph-bg-alt); border-color: transparent; }

.ph-bottom { background: var(--ph-bg-alt); padding: 40px 0 16px; }
.ph-bottom__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

/* ---------- Fußzeile wie im Briefkopf ---------- */
.ph-footer { border-top: 3px solid var(--ph-blue); background: #fff; color: var(--ph-muted); font-size: .9rem; }
.ph-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px 0 20px; }
.ph-footer__grid p { margin: 0; }
.ph-footer__head { color: var(--ph-blue); font-weight: 700; margin-bottom: 4px !important; }
.ph-footer__modules { grid-column: 1 / -1; }
.ph-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ph-line); padding: 14px 0 22px; font-size: .82rem; }
.ph-footer__menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.ph-footer__menu a { color: var(--ph-muted); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .has-sidebar .ph-layout { grid-template-columns: minmax(0, 1fr); }
  .ph-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ph-logo img { width: 76px; height: 76px; }
  .ph-brand__kicker { letter-spacing: .2em; }
  .ph-nav__toggle { display: inline-flex; }
  .ph-nav__inner { flex-wrap: wrap; }
  .ph-nav__menu { display: none; flex-basis: 100%; padding-bottom: 10px; }
  .ph-nav.is-open .ph-nav__menu { display: block; }
  .ph-nav__menu > ul, .ph-nav__menu .mod-menu { flex-direction: column; }
  .ph-nav__menu ul ul { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding-left: 14px; }
  .ph-nav__menu ul ul a { color: #fff; }
  .ph-nav__menu ul ul a:hover { background: var(--ph-blue-dark); color: #fff; }
  .ph-nav__search { flex-basis: 100%; padding-bottom: 12px; }
  .ph-nav__search input { width: 100%; }
  h1 { font-size: 2rem; }
}

@media print {
  .ph-nav, .ph-topbar, .ph-sidebar, .ph-banner, .ph-skip { display: none !important; }
  body { font-size: 10pt; }
}

/* ---------- Startseite: Begrüßung, Aktuelles, Kacheln (ab 1.2.0) ---------- */
.ph-hero { background: var(--ph-bg-alt); border-bottom: 1px solid #E1E6ED; }
.ph-hero__inner { max-width: var(--ph-wrap); margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.ph-hero h1, .ph-hero h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 2.9rem); }
.ph-hero p { font-size: 1.08rem; margin: 0 0 22px; color: var(--ph-text); }
.ph-hero__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ph-radius); box-shadow: 0 12px 30px rgba(20, 40, 70, .14); }

.ph-news { display: flex; gap: 18px; align-items: flex-start; background: var(--ph-blue-soft); border-left: 5px solid var(--ph-blue); border-radius: 0 var(--ph-radius) var(--ph-radius) 0; padding: 18px 22px; margin: 0 0 32px; }
.ph-news__label { flex: 0 0 auto; font-family: var(--ph-head); font-weight: 800; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ph-blue); border-radius: 4px; padding: 3px 10px; margin-top: 2px; }
.ph-news p { margin: 0; }
.ph-news p + p { margin-top: 6px; }

.ph-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 8px 0 12px; }
.ph-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; background: #fff; border: 1px solid #E1E6ED; border-top: 4px solid var(--ph-blue); border-radius: var(--ph-radius); text-decoration: none; color: var(--ph-text); transition: box-shadow .15s ease, transform .15s ease; }
.ph-tile:hover, .ph-tile:focus-visible { box-shadow: 0 10px 24px rgba(20, 40, 70, .12); transform: translateY(-2px); color: var(--ph-text); }
.ph-tile__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ph-blue-soft); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; }
.ph-tile__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-tile__title { font-family: var(--ph-head); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--ph-blue); }
.ph-tile__text { font-size: .95rem; color: var(--ph-muted); margin: 0; }
.ph-tile__more { margin-top: auto; padding-top: 6px; font-family: var(--ph-head); font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-blue); }
.ph-tile__more::after { content: " →"; }
.ph-tile--external .ph-tile__more::after { content: " ↗"; }

.is-home .ph-page { padding-top: 32px; }
.is-home .ph-main > .page-header, .is-home .com-content-featured > .page-header { display: none; }
@media (max-width: 760px) {
  .ph-hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px 32px; }
  .ph-hero__img { order: -1; aspect-ratio: 16 / 9; }
  .ph-news { flex-direction: column; gap: 8px; }
}

/* Kachel-Symbole (als Maske, Farbe folgt der Vereinsfarbe) */
.ph-tile__icon::before { content: ''; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ph-ico) center / contain no-repeat; mask: var(--ph-ico) center / contain no-repeat; }
.ph-tile__icon { font-size: 0; }
.ph-ico-verein { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M15.5 14.2c3 .2 5.5 2.6 5.5 5.8'/%3E%3C/svg%3E"); }
.ph-ico-pruefung { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h4'/%3E%3C/svg%3E"); }
.ph-ico-gewaesser { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8c2-2 4-2 6 0s4 2 6 0 4-2 6 0M2 13c2-2 4-2 6 0s4 2 6 0 4-2 6 0M2 18c2-2 4-2 6 0s4 2 6 0 4-2 6 0'/%3E%3C/svg%3E"); }
.ph-ico-projekte { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 6-14 14-14 0 8-6 14-14 14zM5 19l7-7'/%3E%3C/svg%3E"); }
.ph-ico-gastkarten { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v4a2 2 0 0 0 0 4v4H4v-4a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14 7v2M14 11v2M14 15v2'/%3E%3C/svg%3E"); }
.ph-ico-mitglied { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2.2'/%3E%3Cpath d='M6 16c.6-1.5 1.8-2.3 3-2.3s2.4.8 3 2.3M14 10h4M14 13h4'/%3E%3C/svg%3E"); }
.ph-ico-spenden { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.ph-ico-solar { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.ph-ico-aktuelles { --ph-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11l3 3v13H5z'/%3E%3Cpath d='M8 10h8M8 14h8M8 18h5'/%3E%3C/svg%3E"); }

/* ---------- Beitragsinhalte (Migration 1.2.0) ---------- */
.ph-main .com-content-article p a.btn + a.btn { margin-left: 8px; }
.ph-figure { margin: 1.4em 0; }
.ph-figure img { display: block; width: 100%; max-width: 760px; border-radius: var(--ph-radius); }
.ph-figure figcaption { font-size: .9rem; color: var(--ph-muted); margin-top: 6px; }
.ph-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 1.4em 0; }
.ph-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.ph-partners { display: flex; flex-wrap: wrap; gap: 16px; margin: 1em 0; }
.ph-partners img { max-width: 220px; }
.ph-bank { background: var(--ph-bg-alt); border-left: 4px solid var(--ph-blue); border-radius: 0 var(--ph-radius) var(--ph-radius) 0; padding: 14px 18px; }
.ph-note { font-size: .88rem; color: var(--ph-muted); }
.ph-downloads { list-style: none; padding: 0; }
.ph-downloads li { margin: 0 0 8px; }
.ph-downloads a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ph-downloads a::before { content: "PDF"; font: 800 .75rem/1 var(--ph-head); letter-spacing: .06em; color: #fff; background: var(--ph-blue); border-radius: 4px; padding: 4px 6px; }
.ph-fishlist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ph-fishlist li { background: var(--ph-blue-soft); color: var(--ph-blue-dark); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .92rem; }
.lead { font-size: 1.15rem; }

.ph-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 1em 0; }
.ph-person { background: #fff; border: 1px solid #E1E6ED; border-radius: var(--ph-radius); padding: 16px; text-align: center; }
.ph-person img, .ph-person__noimg { display: block; width: 120px; height: 150px; object-fit: cover; border-radius: 8px; margin: 0 auto 12px; background: var(--ph-bg-alt); }
.ph-person p { margin: 0; }
.ph-person__role { font: 700 .95rem/1.2 var(--ph-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ph-blue); }
.ph-person__name { font-weight: 700; margin-top: 4px !important; }
.ph-person__mail { font-size: .85rem; word-break: break-all; margin-top: 4px !important; }

.ph-imgcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 1.4em 0; }
.ph-imgcard { display: flex; flex-direction: column; background: #fff; border: 1px solid #E1E6ED; border-radius: var(--ph-radius); overflow: hidden; text-decoration: none; color: var(--ph-text); transition: box-shadow .15s ease, transform .15s ease; }
.ph-imgcard:hover { box-shadow: 0 10px 24px rgba(20, 40, 70, .12); transform: translateY(-2px); color: var(--ph-text); }
.ph-imgcard img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ph-imgcard__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.ph-imgcard__title { font: 700 1.35rem/1.1 var(--ph-head); color: var(--ph-blue); }
.ph-imgcard__text { font-size: .92rem; color: var(--ph-muted); }

@media (max-width: 760px) {
  .ph-table { display: block; overflow-x: auto; }
  .ph-main .com-content-article p a.btn + a.btn { margin: 8px 0 0; }
}

/* Untermenü-Schalter von Joomla 5/6 (mod_menu) */
.ph-nav__menu li.parent { display: flex; align-items: stretch; }
.ph-nav__menu li.parent > ul { flex-basis: 100%; }
.mod-menu__toggle-sub { display: inline-flex; align-items: center; background: none; border: 0; padding: 0 10px 0 0; margin-left: -8px; color: #fff; cursor: pointer; }
.mod-menu__toggle-sub .icon-chevron-down { display: block; width: 8px; height: 8px; margin: 0 !important; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s ease; }
.mod-menu__toggle-sub[aria-expanded="true"] .icon-chevron-down { transform: rotate(225deg) translateY(-1px); }
.ph-nav__menu .mod-menu__toggle-sub[aria-expanded="true"] + ul, .ph-nav__menu li.show-menu > ul { display: block; }
.ph-nav__menu ul ul ul { position: static; display: block !important; min-width: 0; border: 0; box-shadow: none; padding-left: 14px; background: transparent; }
.ph-nav__menu ul ul li.parent { display: block; }
.ph-nav__menu ul ul .mod-menu__toggle-sub { display: none; }
@media (max-width: 900px) {
  .ph-nav__menu li.parent { display: block; }
  .mod-menu__toggle-sub { display: none; }
  .ph-nav__menu ul ul { display: block !important; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.is-home .blog-featured > .page-header, .is-home .com-content-featured .page-header { display: none; }
.ph-breadcrumbs .mod-breadcrumbs__divider { display: none; }
.ph-breadcrumbs .mod-breadcrumbs__divider + li::before { content: none; }
.ph-breadcrumbs ol { padding: 0 !important; }
.ph-gallery a { display: block; border-radius: 8px; overflow: hidden; }
.ph-gallery a img { transition: transform .2s ease; }
.ph-gallery a:hover img { transform: scale(1.03); }
.ph-version { color: var(--ph-muted); opacity: .8; white-space: nowrap; }

/* Mittlere Bildschirmbreiten: Menü bleibt einzeilig */
@media (min-width: 901px) and (max-width: 1180px) {
  .ph-nav__menu a { padding: 14px 10px; font-size: 1rem; letter-spacing: .02em; }
  .mod-menu__toggle-sub { padding-right: 6px; margin-left: -6px; }
}

/* Videos (eigene Videodatei oder YouTube per Zwei-Klick-Lösung) */
.ph-main video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-width: 860px; border-radius: var(--ph-radius); background: #000; margin: 1.4em 0; }
.ph-video-box { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; margin: 1.4em 0; border-radius: var(--ph-radius); overflow: hidden; background: var(--ph-blue-dark); color: #fff; }
.ph-video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph-video-consent { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 24px 28px; background: linear-gradient(135deg, var(--ph-blue-dark), var(--ph-blue)); }
.ph-video-title { margin: 0; font: 700 1.5rem/1.15 var(--ph-head); }
.ph-video-note { margin: 0; font-size: .88rem; max-width: 560px; opacity: .92; }
.ph-video-note a { color: #fff; }
.ph-video-consent .btn { background: #fff; color: var(--ph-blue); }
.ph-video-consent .btn::before { content: "▶"; margin-right: 8px; }
@media (max-width: 760px) { .ph-video-consent { padding: 16px; } .ph-video-title { font-size: 1.2rem; } .ph-video-note { font-size: .8rem; } }
