/*
Theme Name: Familienhund Frankfurt
Theme URI: https://familienhund-frankfurt.de
Author: Modern Redesign
Description: Ein modernes, barrierefreies Redesign der Website des Familienhund e.V. Frankfurt. Klassisches WordPress-Theme (PHP-Templates) auf Basis der Original-Gestaltung: Blau-/Grautöne des Vereins, Hunde-Logo, klare Typografie. Deckt alle Originalseiten ab: Unser Verein, Aktuelles, Trainingsplatz, Gruppen/Termine, Bilder, Kontakt, Impressum, Datenschutz.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: familienhund
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ---------------------------------------------------------------
   Design tokens
   Colours are taken from the original site (styles/style1.css):
     #abc  page background   (soft steel blue)
     #bde  masthead band     (pale blue)
     #118  nav / links       (deep blue)
     #689  footer            (slate blue)
     #d3d3d3 sidebar block
   The redesign keeps this identity but modernises spacing,
   typography and contrast.
   --------------------------------------------------------------- */
:root {
  --fh-blue-deep: #1155aa;
  --fh-blue: #1a66c4;
  --fh-blue-dark: #0d3f80;
  --fh-blue-soft: #e8f1fb;
  --fh-slate: #446688;
  --fh-slate-dark: #2f4a63;
  --fh-ink: #16202b;
  --fh-body: #33414f;
  --fh-muted: #5d7085;
  --fh-line: #dbe4ee;
  --fh-bg: #f5f8fc;
  --fh-white: #ffffff;
  --fh-accent: #e8712b;

  --fh-radius: 14px;
  --fh-radius-sm: 9px;
  --fh-shadow: 0 1px 2px rgba(22, 32, 43, .06), 0 6px 20px rgba(22, 32, 43, .07);
  --fh-shadow-lg: 0 4px 10px rgba(22, 32, 43, .08), 0 18px 44px rgba(22, 32, 43, .12);
  --fh-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fh-width: 1140px;
}

/* ------------------------- Reset ------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fh-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fh-body);
  background: var(--fh-bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--fh-blue-deep); text-decoration: none; }
a:hover { color: var(--fh-blue-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  color: var(--fh-ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.35em; }
li { margin-bottom: .45em; }
hr {
  border: 0;
  border-top: 1px solid var(--fh-line);
  margin: 2.2rem 0;
}
blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--fh-blue);
  background: var(--fh-blue-soft);
  border-radius: 0 var(--fh-radius-sm) var(--fh-radius-sm) 0;
}
table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--fh-line); text-align: left; vertical-align: top; }
th { background: var(--fh-blue-soft); color: var(--fh-ink); font-weight: 700; }
figure { margin: 1.5rem 0; }
figcaption { font-size: .87rem; color: var(--fh-muted); margin-top: .5rem; text-align: center; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; }
pre { background: #f0f4f9; padding: 1rem; border-radius: var(--fh-radius-sm); overflow-x: auto; }
:focus-visible { outline: 3px solid var(--fh-accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------- Layout ------------------------- */
.fh-container { width: 100%; max-width: var(--fh-width); margin-inline: auto; padding-inline: 22px; }
.fh-narrow { max-width: 800px; }
.fh-section { padding: clamp(2.6rem, 5vw, 4.4rem) 0; }
.fh-section--tint { background: var(--fh-white); }
.fh-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--fh-blue-dark); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--fh-radius-sm) 0;
}
.fh-skip-link:focus { left: 0; color: #fff; }

/* ------------------------- Topbar ------------------------- */
.fh-topbar {
  background: var(--fh-slate-dark);
  color: #dce6f0;
  font-size: .88rem;
}
.fh-topbar__inner {
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem;
  align-items: center; justify-content: space-between;
  padding: .5rem 0;
}
.fh-topbar a { color: #fff; }
.fh-topbar a:hover { color: #cfe2f7; }
.fh-topbar__group { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center; }
.fh-topbar__item { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.fh-topbar svg { width: 15px; height: 15px; flex: none; fill: currentColor; opacity: .9; }

/* ------------------------- Header ------------------------- */
.fh-header {
  background: var(--fh-white);
  border-bottom: 1px solid var(--fh-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 3px rgba(22, 32, 43, .05);
}
/* Anchors the absolutely-positioned mobile nav panel below the header. */
.fh-header { position: sticky; }
.fh-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; min-height: 82px;
}
.fh-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; min-width: 0; }
.fh-brand:hover { text-decoration: none; }
/* The original logo artwork already contains the wordmark, so it is used on
   its own — no duplicated text next to it. `max-width:100%` plus a flex parent
   that may shrink keeps the header inside the viewport on small phones
   (the artwork is 750x104, so 58px tall would otherwise be ~420px wide). */
.fh-brand__logo {
  height: 58px; width: auto; max-width: 100%;
  object-fit: contain; object-position: left center;
}
.fh-brand__text { display: flex; flex-direction: column; }
.fh-brand__name {
  font-size: 1.32rem; font-weight: 800; color: var(--fh-blue-deep);
  line-height: 1.15; letter-spacing: -.02em;
}
.fh-brand__tag { font-size: .8rem; color: var(--fh-muted); line-height: 1.3; }

/* ------------------------- Navigation ------------------------- */
.fh-nav { display: flex; align-items: center; min-width: 0; }
.fh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem; align-items: center; justify-content: flex-end; }
.fh-nav li { margin: 0; position: relative; }
.fh-nav a {
  display: block; padding: .55rem .62rem; border-radius: var(--fh-radius-sm);
  color: var(--fh-ink); font-weight: 600; font-size: .9rem;
  transition: background .16s ease, color .16s ease;
  white-space: nowrap;
}
.fh-nav a:hover { background: var(--fh-blue-soft); color: var(--fh-blue-dark); text-decoration: none; }
.fh-nav .current-menu-item > a,
.fh-nav .current_page_item > a,
.fh-nav .current-menu-parent > a,
.fh-nav .current-page-ancestor > a { background: var(--fh-blue-deep); color: #fff; }
.fh-nav .current-menu-item > a:hover { background: var(--fh-blue-dark); color: #fff; }

/* Dropdowns */
.fh-nav .sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius-sm);
  box-shadow: var(--fh-shadow-lg); padding: .4rem; display: none; flex-direction: column; gap: .1rem;
}
.fh-nav li:hover > .sub-menu,
.fh-nav li:focus-within > .sub-menu { display: flex; }
.fh-nav .sub-menu a { font-weight: 500; font-size: .9rem; padding: .5rem .7rem; }

/* Mobile toggle */
.fh-nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--fh-blue-deep); color: #fff; border: 0; cursor: pointer;
  padding: .6rem .95rem; border-radius: var(--fh-radius-sm);
  font: inherit; font-weight: 600; font-size: .92rem;
}
.fh-nav-toggle:hover { background: var(--fh-blue-dark); }
.fh-nav-toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------- Hero ------------------------- */
.fh-hero {
  position: relative;
  background: linear-gradient(135deg, var(--fh-slate-dark) 0%, var(--fh-blue-deep) 55%, var(--fh-slate) 100%);
  color: #fff;
  overflow: hidden;
}
.fh-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 78% 15%, rgba(255,255,255,.16), transparent 58%);
  pointer-events: none;
}
.fh-hero__inner { position: relative; z-index: 2; padding: clamp(2.8rem, 6vw, 5rem) 0; }
.fh-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.fh-hero h1 { color: #fff; margin-bottom: .5rem; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.fh-hero__kicker {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .3rem .85rem; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem;
}
.fh-hero__lead { font-size: clamp(1.02rem, .95rem + .45vw, 1.22rem); color: #eaf2fb; max-width: 62ch; }
.fh-hero__media img { border-radius: var(--fh-radius); box-shadow: var(--fh-shadow-lg); width: 100%; object-fit: cover; }
.fh-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Buttons */
.fh-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 100px;
  font-weight: 700; font-size: .96rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .14s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.fh-btn:hover { text-decoration: none; transform: translateY(-2px); }
.fh-btn--primary { background: #fff; color: var(--fh-blue-dark); box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.fh-btn--primary:hover { background: #f0f6fd; color: var(--fh-blue-dark); }
.fh-btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.fh-btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.fh-btn--solid { background: var(--fh-blue-deep); color: #fff; }
.fh-btn--solid:hover { background: var(--fh-blue-dark); color: #fff; }
.fh-btn--outline { border-color: var(--fh-blue-deep); color: var(--fh-blue-deep); background: #fff; }
.fh-btn--outline:hover { background: var(--fh-blue-soft); color: var(--fh-blue-dark); }
.fh-btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

/* ------------------------- Page hero (subpages) ------------------------- */
.fh-pagehead {
  background: linear-gradient(135deg, var(--fh-slate-dark), var(--fh-blue-deep));
  color: #fff; padding: clamp(2.2rem, 4.5vw, 3.4rem) 0;
}
.fh-pagehead h1 { color: #fff; margin: 0; }
.fh-pagehead__sub { color: #d9e6f5; margin: .6rem 0 0; font-size: 1.05rem; max-width: 70ch; }
.fh-pagehead__meta { color: #c3d6ec; font-size: .88rem; margin-top: .8rem; }

/* Breadcrumbs */
.fh-crumbs { font-size: .85rem; color: var(--fh-muted); padding: 1rem 0 0; }
.fh-crumbs a { color: var(--fh-muted); }
.fh-crumbs a:hover { color: var(--fh-blue-deep); }
.fh-crumbs span[aria-current] { color: var(--fh-ink); font-weight: 600; }

/* ------------------------- Cards / grids ------------------------- */
.fh-grid { display: grid; gap: 1.5rem; }
.fh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Grid/flex children default to min-width:auto, which refuses to shrink below
   their content (e.g. an <img width="700">). Allow them to shrink so nothing
   can push the layout wider than the viewport. */
.fh-grid > * { min-width: 0; }
.fh-grid img { max-width: 100%; height: auto; }

.fh-card {
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius);
  padding: 1.6rem; box-shadow: var(--fh-shadow);
  transition: transform .16s ease, box-shadow .18s ease;
}
.fh-card:hover { transform: translateY(-3px); box-shadow: var(--fh-shadow-lg); }
.fh-card h3 { margin-top: 0; }
.fh-card > :last-child { margin-bottom: 0; }
.fh-card--flush { padding: 0; overflow: hidden; }
.fh-card--flush img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fh-card--flush .fh-card__body { padding: 1.3rem 1.5rem; }

/* Icon feature card */
.fh-feature { display: flex; gap: 1rem; align-items: flex-start; }
.fh-feature__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--fh-blue-soft); color: var(--fh-blue-deep);
  display: grid; place-items: center;
}
.fh-feature__icon svg { width: 23px; height: 23px; fill: currentColor; }
.fh-feature h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.fh-feature p { margin-bottom: 0; font-size: .95rem; }

/* Section heading */
.fh-heading { margin-bottom: 2rem; }
.fh-heading__eyebrow {
  display: block; color: var(--fh-blue); font-weight: 700; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: .5rem;
}
.fh-heading h2 { margin-bottom: .5rem; }
.fh-heading p { color: var(--fh-muted); font-size: 1.03rem; margin-bottom: 0; max-width: 68ch; }

/* Stat strip */
.fh-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.fh-stat {
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius);
  padding: 1.3rem 1.4rem; text-align: center;
}
.fh-stat__num { display: block; font-size: 1.85rem; font-weight: 800; color: var(--fh-blue-deep); line-height: 1.1; }
.fh-stat__label { font-size: .87rem; color: var(--fh-muted); }

/* Notice / callout */
.fh-notice {
  background: var(--fh-blue-soft); border: 1px solid #cfe1f6; border-left: 5px solid var(--fh-blue-deep);
  border-radius: 0 var(--fh-radius-sm) var(--fh-radius-sm) 0;
  padding: 1.15rem 1.4rem; margin: 1.6rem 0;
}
.fh-notice > :last-child { margin-bottom: 0; }
.fh-notice h3 { margin-top: 0; font-size: 1.08rem; }
.fh-notice--warn { background: #fff6ec; border-color: #f6dcc2; border-left-color: var(--fh-accent); }

/* ------------------------- People (Vorstand) ------------------------- */
.fh-people { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.fh-person {
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius);
  overflow: hidden; box-shadow: var(--fh-shadow); display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .18s ease;
}
.fh-person:hover { transform: translateY(-3px); box-shadow: var(--fh-shadow-lg); }
.fh-person__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; background: var(--fh-blue-soft); }
.fh-person__body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.fh-person__role { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-blue); }
.fh-person__name { font-size: 1.1rem; font-weight: 700; color: var(--fh-ink); margin: 0; }
.fh-person__meta { font-size: .87rem; color: var(--fh-muted); margin: 0; }
.fh-person__mail { margin-top: auto; padding-top: .7rem; font-size: .9rem; font-weight: 600; word-break: break-word; }

/* ------------------------- Schedule / groups ------------------------- */
.fh-schedule { display: grid; gap: 1.1rem; }
.fh-slot {
  display: grid; grid-template-columns: 155px 1fr; gap: 1.3rem; align-items: start;
  background: #fff; border: 1px solid var(--fh-line); border-left: 5px solid var(--fh-blue);
  border-radius: var(--fh-radius-sm); padding: 1.15rem 1.35rem;
  transition: box-shadow .16s ease, border-left-color .16s ease;
}
.fh-slot:hover { box-shadow: var(--fh-shadow); border-left-color: var(--fh-accent); }
.fh-slot__when { font-weight: 800; color: var(--fh-blue-deep); font-size: .96rem; }
.fh-slot__when small { display: block; font-weight: 600; color: var(--fh-muted); font-size: .82rem; }
.fh-slot__trainer { font-weight: 700; color: var(--fh-ink); margin-bottom: .2rem; }
.fh-slot__desc { font-size: .94rem; margin-bottom: .35rem; }
.fh-slot__contact { font-size: .88rem; }
.fh-slot > div > :last-child { margin-bottom: 0; }

/* ------------------------- Downloads ------------------------- */
.fh-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.fh-download {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius-sm);
  padding: 1rem 1.2rem; box-shadow: var(--fh-shadow);
  transition: transform .14s ease, border-color .16s ease;
}
.fh-download:hover { transform: translateY(-2px); border-color: var(--fh-blue); text-decoration: none; }
.fh-download svg { width: 30px; height: 30px; fill: var(--fh-blue-deep); flex: none; }
.fh-download__label { font-weight: 700; color: var(--fh-ink); font-size: .96rem; line-height: 1.3; }
.fh-download__hint { font-size: .82rem; color: var(--fh-muted); }

/* ------------------------- Gallery ------------------------- */
.fh-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.fh-album {
  display: flex; flex-direction: column; gap: .55rem;
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius-sm);
  padding: 1.05rem 1.2rem; box-shadow: var(--fh-shadow);
  transition: transform .14s ease, border-color .16s ease;
}
.fh-album:hover { transform: translateY(-3px); border-color: var(--fh-blue); text-decoration: none; }
.fh-album__icon { width: 34px; height: 34px; color: var(--fh-blue); }
.fh-album__icon svg { width: 100%; height: 100%; fill: currentColor; }
.fh-album__title { font-weight: 700; color: var(--fh-ink); font-size: .98rem; margin: 0; line-height: 1.35; }
.fh-album__hint { font-size: .82rem; color: var(--fh-muted); margin: 0; }

/* Video list */
.fh-videos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: .9rem; }
.fh-videos li { margin: 0; }
.fh-videos a {
  display: flex; align-items: center; gap: .7rem; background: #fff;
  border: 1px solid var(--fh-line); border-radius: var(--fh-radius-sm);
  padding: .9rem 1.1rem; font-weight: 600; box-shadow: var(--fh-shadow);
}
.fh-videos a:hover { border-color: var(--fh-blue); text-decoration: none; }
.fh-videos svg { width: 22px; height: 22px; fill: var(--fh-blue-deep); flex: none; }

/* ------------------------- Contact ------------------------- */
.fh-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.fh-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.fh-contact-list li { margin: 0; display: flex; gap: .8rem; align-items: flex-start; }
.fh-contact-list svg { width: 19px; height: 19px; fill: var(--fh-blue-deep); flex: none; margin-top: .22rem; }
.fh-contact-list strong { color: var(--fh-ink); }
.fh-trainers { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); gap: 1rem; }
.fh-trainer {
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius-sm);
  padding: 1.1rem 1.25rem; box-shadow: var(--fh-shadow);
}
.fh-trainer__name { font-weight: 700; color: var(--fh-ink); margin-bottom: .3rem; }
.fh-trainer__line { font-size: .92rem; margin: 0; }
.fh-trainer__line a { word-break: break-word; }

/* ------------------------- Maps ------------------------- */
.fh-map {
  border: 0; width: 100%; height: 400px; border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow); display: block;
}

/* ------------------------- Entry content ------------------------- */
.fh-content > :first-child { margin-top: 0; }
.fh-content h2 { margin-top: 2.2rem; }
.fh-content h3 { margin-top: 1.8rem; }
.fh-content img { border-radius: var(--fh-radius-sm); }
.fh-content ul, .fh-content ol { margin-bottom: 1.2rem; }
.fh-content .wp-block-image img { border-radius: var(--fh-radius-sm); }
.fh-content table { font-size: .95rem; }

/* ------------------------- Footer ------------------------- */
.fh-footer { background: var(--fh-slate-dark); color: #c6d5e5; margin-top: 0; }
.fh-footer a { color: #e3edf8; }
.fh-footer a:hover { color: #fff; }
.fh-footer__main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.2rem;
  padding: clamp(2.4rem, 4.5vw, 3.4rem) 0;
}
.fh-footer h3 {
  color: #fff; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}
.fh-footer p { font-size: .93rem; margin-bottom: .7rem; }
.fh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fh-footer li { margin: 0; font-size: .93rem; }
.fh-footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
/* The logo artwork includes the wordmark; show it on a white plate so it stays
   legible against the dark footer. */
.fh-footer__brand img { height: 52px; width: auto; background: #fff; padding: 5px 9px; border-radius: 8px; }
.fh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.16); padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; justify-content: space-between;
  font-size: .87rem;
}
.fh-footer__bottom-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.fh-footer__contact { display: grid; gap: .5rem; }
.fh-footer__contact-item { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.fh-footer__contact-item svg { width: 16px; height: 16px; fill: #9fbcd8; flex: none; margin-top: .2rem; }

/* ------------------------- Gallery / albums ------------------------- */
.fh-albumgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}
.fh-albumcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--fh-line); border-radius: var(--fh-radius);
  overflow: hidden; box-shadow: var(--fh-shadow); text-decoration: none;
  transition: transform .16s ease, box-shadow .18s ease, border-color .16s ease;
}
.fh-albumcard:hover { transform: translateY(-4px); box-shadow: var(--fh-shadow-lg); border-color: var(--fh-blue); text-decoration: none; }
.fh-albumcard__media { position: relative; display: block; background: var(--fh-blue-soft); }
.fh-albumcard__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fh-albumcard__count {
  position: absolute; right: .7rem; bottom: .7rem;
  background: rgba(13, 63, 128, .9); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .25rem .6rem; border-radius: 100px; backdrop-filter: blur(3px);
}
.fh-albumcard__body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.fh-albumcard__title { font-weight: 700; color: var(--fh-ink); font-size: 1rem; line-height: 1.35; }
.fh-albumcard__hint { font-size: .86rem; color: var(--fh-blue); font-weight: 600; margin-top: auto; }

/* Photo grid inside one album */
.fh-photogrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .9rem;
}
.fh-photo { margin: 0; }
.fh-photo__link {
  display: block; overflow: hidden; border-radius: var(--fh-radius-sm);
  box-shadow: var(--fh-shadow); background: var(--fh-blue-soft);
  transition: transform .16s ease, box-shadow .18s ease;
}
.fh-photo__link:hover { transform: translateY(-3px) scale(1.012); box-shadow: var(--fh-shadow-lg); }
.fh-photo__link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ------------------------- Lightbox ------------------------- */
body.fh-lightbox-open { overflow: hidden; }
.fh-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 16, 24, .93);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.fh-lightbox[hidden] { display: none; }
.fh-lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.fh-lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: var(--fh-radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  background: #111;
}
.fh-lightbox__caption { color: #cfe0f2; font-size: .9rem; letter-spacing: .04em; }
.fh-lightbox__close,
.fh-lightbox__nav {
  position: absolute; background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.3); cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.fh-lightbox__close:hover,
.fh-lightbox__nav:hover { background: rgba(255,255,255,.3); transform: scale(1.06); }
.fh-lightbox__close { top: 1.2rem; right: 1.2rem; font-size: 1.9rem; }
.fh-lightbox__nav--prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.fh-lightbox__nav--next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.fh-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.fh-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.06); }

/* ------------------------- Members area ------------------------- */
.fh-memberbar { background: var(--fh-blue-soft); border-bottom: 1px solid #cfe1f6; }
.fh-memberbar__inner {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  align-items: center; justify-content: space-between;
  padding: .6rem 0; font-size: .9rem;
}
.fh-memberbar__label { display: inline-flex; align-items: center; gap: .45rem; color: var(--fh-slate-dark); }
.fh-memberbar__label svg { width: 15px; height: 15px; fill: var(--fh-blue-deep); flex: none; }
.fh-memberbar__links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.fh-memberbar__links a { font-weight: 600; }

.fh-membercard {
  display: flex; flex-direction: column; gap: .5rem;
  text-decoration: none; color: inherit;
}
.fh-membercard:hover { text-decoration: none; }
.fh-membercard h3 { margin: .4rem 0 0; font-size: 1.08rem; }
.fh-membercard__more { margin-top: auto; padding-top: .6rem; color: var(--fh-blue); font-weight: 600; font-size: .9rem; }

/* Badge used on the page header for members-only pages */
.fh-pagehead .fh-hero__kicker { margin-bottom: .8rem; }

/* ------------------------- WP core alignment helpers ------------------------- */
.alignleft { float: left; margin: .4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.aligncenter { margin-inline: auto; }
.alignwide { margin-inline: -40px; max-width: calc(100% + 80px); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .87rem; color: var(--fh-muted); text-align: center; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal;
}
.fh-404 { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.fh-404__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--fh-blue-soft); line-height: 1; margin: 0; }

/* ------------------------- Responsive ------------------------- */
@media (max-width: 1100px) {
  .fh-hero__grid { grid-template-columns: 1fr; }
  .fh-hero__media { order: -1; }
  .fh-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fh-people { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fh-footer__main { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fh-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Mobile nav */
  .fh-nav-toggle { display: inline-flex; }
  .fh-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--fh-line);
    box-shadow: var(--fh-shadow-lg); padding: .8rem 22px 1.2rem;
  }
  .fh-nav.is-open { display: block; }
  .fh-nav ul { flex-direction: column; align-items: stretch; gap: .12rem; }
  .fh-nav a { padding: .72rem .85rem; font-size: 1rem; }
  .fh-nav .sub-menu {
    position: static; display: flex; box-shadow: none; border: 0;
    border-left: 2px solid var(--fh-line); border-radius: 0;
    margin: .1rem 0 .3rem .9rem; padding: 0 0 0 .35rem;
  }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* minmax(0,1fr) rather than 1fr: a bare 1fr keeps an implicit min-content
     floor, so a wide image inside could still force horizontal scrolling. */
  .fh-grid--2, .fh-grid--3, .fh-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .fh-people { grid-template-columns: minmax(0, 1fr); }
  .fh-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .fh-footer__main { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .fh-slot { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .fh-header__inner { min-height: 68px; padding: .6rem 0; gap: .6rem; }
  /* Keep the logo small enough that the menu button always fits beside it. */
  .fh-brand { flex: 1 1 auto; overflow: hidden; }
  .fh-brand__logo { height: 38px; width: auto; max-width: 100%; }
  .fh-brand__name { font-size: 1.1rem; }
  .fh-brand__tag { display: none; }
  .fh-nav-toggle { flex: none; }
  .fh-topbar__inner { justify-content: flex-start; font-size: .82rem; }
  .alignleft, .alignright { float: none; margin: 1rem auto; }
  .alignwide { margin-inline: 0; max-width: 100%; }
  .fh-map { height: 300px; }

  /* Galleries: two comfortable columns on phones. */
  .fh-photogrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
  .fh-albumgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .fh-lightbox { padding: .6rem; }
  .fh-lightbox__close { top: .6rem; right: .6rem; width: 40px; height: 40px; }
  .fh-lightbox__nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .fh-lightbox__nav--prev { left: .5rem; }
  .fh-lightbox__nav--next { right: .5rem; }
  .fh-lightbox__img { max-height: 74vh; }
  .fh-memberbar__inner { font-size: .85rem; }
}

@media print {
  .fh-topbar, .fh-header, .fh-footer, .fh-hero__actions, .fh-nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}