/*
Theme Name: Reichert Steuerberatung
Theme URI: https://reichert-steuerberatung.de
Author: Reichert Steuerberatung
Description: Modernes, individuelles WordPress-Theme fuer Juergen Reichert Steuerberatung (ACF-gestuetzt).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: reichert
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root{
  --color-navy:        #1c3680;
  --color-navy-light:  #33509e;
  --color-navy-dark:   #132456;
  --color-navy-tint:   #eef1fb;
  --color-gold:        #d9a441;
  --color-gold-light:  #fdd594;
  --color-gold-dark:   #b3822f;
  --color-ink:         #2b2f36;
  --color-body:        #4a4f58;
  --color-muted:       #767c88;
  --color-line:        #e6e8ee;
  --color-surface:     #ffffff;
  --color-surface-alt: #f6f7fb;
  --color-surface-navy:#122152;

  --font-heading: 'PT Sans', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  --container: 1200px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(20, 30, 70, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 30, 70, 0.10);
  --shadow-lg: 0 24px 64px rgba(20, 30, 70, 0.16);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  /* German compound words (Jahresabschluss, Wirtschaftsprüfung, …) have no
     spaces to break at. Without this, one gets clipped by any ancestor with
     overflow:hidden (e.g. the services-grid cards) instead of wrapping —
     inherited so it covers every heading/paragraph/card title site-wide. */
  overflow-wrap: break-word;
}
img{ max-width: 100%; height: auto; display: block; }
/* Safety net: an <svg> with no CSS/HTML size defaults to ~300x150 in browsers.
   Every icon in this theme has an explicit size rule that overrides this via
   higher selector specificity — this just stops a missed one from rendering huge. */
svg{ width: 1em; height: 1em; }
a{ color: var(--color-navy); text-decoration: none; transition: color .18s ease; }
a:hover{ color: var(--color-gold-dark); }
ul, ol{ padding: 0; margin: 0; }
p{ margin: 0 0 1.1em; }
p:last-child{ margin-bottom: 0; }
button{ font-family: inherit; }

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1{ font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); }
h2{ font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem); }
h3{ font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem); }
h4{ font-size: 1.2rem; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow{ max-width: var(--container-narrow); }

.section{ padding: var(--space-xl) 0; }
.section--tight{ padding: var(--space-lg) 0; }
.section--alt{ background: var(--color-surface-alt); }
.section--navy{ background: var(--color-surface-navy); color: #cdd6ef; }
.section--navy h1, .section--navy h2, .section--navy h3{ color: #fff; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-gold-dark);
  margin-bottom: 0.9em;
}
.eyebrow::before{
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

.lede{
  font-size: 1.15rem;
  color: var(--color-ink);
  font-weight: 600;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9em 1.7em;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.2;
}
.btn-primary{ background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.btn-primary:hover{ background: var(--color-navy-dark); border-color: var(--color-navy-dark); color: #fff; }
.btn-gold{ background: var(--color-gold); color: var(--color-navy-dark); border-color: var(--color-gold); }
.btn-gold:hover{ background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: #fff; }
.btn-outline{ background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline:hover{ background: var(--color-navy); color: #fff; }
.btn-outline-light{ background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover{ background: #fff; color: var(--color-navy); border-color: #fff; }
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }

.btn-phone{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
}
.btn-phone svg{ width: 20px; height: 20px; color: var(--color-gold-dark); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Longhand on purpose: this div is also `.container` (for the 24px side
     padding). A shorthand `padding: 14px 0` here would overwrite that
     container's horizontal padding with 0 — which is exactly what was
     pinning the logo/nav-toggle to the screen edges. */
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo{ display: flex; align-items: center; }
.site-logo img{ height: 70px; width: auto; }

.header-actions{ display: flex; align-items: center; gap: 22px; }
.header-contact{ display: flex; align-items: center; gap: 18px; }
.header-icon-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy-tint);
  color: var(--color-navy);
  flex-shrink: 0;
}
.header-icon-link svg{ width: 18px; height: 18px; }
.header-icon-link:hover{ background: var(--color-navy); color: #fff; }

.main-nav{ display: flex; align-items: center; }
.main-nav ul{ display: flex; align-items: center; list-style: none; gap: 2px; }
.main-nav > ul > li{ position: relative; }
.main-nav > ul > li > a{
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current_page_ancestor > a,
.main-nav > ul > li.current-menu-ancestor > a{ color: var(--color-navy); background: var(--color-navy-tint); }

.main-nav li.menu-item-has-children{ position: relative; }
.main-nav li.menu-item-has-children > a::after{
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
}
.main-nav .sub-menu{
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  transform: translateY(6px);
  transition: all .18s ease;
  flex-direction: column;
  z-index: 20;
}
.main-nav li.menu-item-has-children:hover > .sub-menu,
.main-nav li.menu-item-has-children:focus-within > .sub-menu{
  visibility: visible; opacity: 1; transform: translateY(0);
}
.main-nav .sub-menu li a{
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}
.main-nav .sub-menu li a:hover{ background: var(--color-navy-tint); color: var(--color-navy); }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg{ width: 20px; height: 20px; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  /* Capped with min(): plain vh blows up on any tall-narrow viewport (not
     just phones — a tablet in portrait has the same problem), because vh
     scales with height alone and ignores aspect ratio. The px cap keeps the
     hero content-sized on tall screens instead of eating the whole viewport. */
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--color-navy-dark);
}
.hero-slides{ position: absolute; inset: 0; }
.hero-slide{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active{ opacity: 1; }
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(19,36,86,.92) 0%, rgba(19,36,86,.78) 40%, rgba(19,36,86,.45) 100%);
  z-index: 1;
}
.hero-content{ position: relative; z-index: 2; max-width: 640px; padding: var(--space-lg) 0; }
.hero-content .eyebrow{ color: var(--color-gold-light); }
.hero-content .eyebrow::before{ background: var(--color-gold-light); }
.hero-content h1{ color: #fff; margin-bottom: 0.4em; }
.hero-content p{ font-size: 1.2rem; color: #dfe4f5; margin-bottom: 1.8em; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero-dots{
  position: relative; z-index: 2;
  display: flex; gap: 8px; margin-top: 2.2rem;
}
.hero-dots button{
  width: 34px; height: 4px; border-radius: 4px; border: 0;
  background: rgba(255,255,255,.35); cursor: pointer; padding: 0;
}
.hero-dots button.is-active{ background: var(--color-gold-light); }

.hero--compact{ min-height: min(46vh, 420px); }

/* breadcrumb */
.breadcrumb{
  position: relative; z-index: 2;
  font-size: 0.85rem; font-weight: 600;
  color: #b9c3e6; margin-bottom: 1.2rem;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a{ color: #b9c3e6; }
.breadcrumb a:hover{ color: #fff; }
.breadcrumb span.sep{ opacity: .6; }

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar{
  background: var(--color-navy-tint);
  padding: 22px 0;
}
.trust-bar ul{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  list-style: none;
  justify-content: center;
}
.trust-bar li{
  display: flex; align-items: flex-start; justify-content: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.98rem;
  /* A badge long enough to wrap (e.g. "Engagiertes Team bestens
     qualifizierter Mitarbeiter") gets shrunk to fill the whole row width by
     the wrapping flex parent, unlike its short siblings — without its own
     justify-content:center that left it looking left-aligned next to the
     centered short badges. align-items:flex-start pins the icon to the top
     line instead of floating between two wrapped lines. */
}
.trust-bar li svg{ width: 20px; height: 20px; color: var(--color-gold-dark); flex-shrink: 0; }

/* =========================================================
   INTRO / CONTENT-BLOCK LAYOUT (split image+text)
   ========================================================= */
.intro-logos{ margin: 1.8em 0; }
.intro-logos-featured{ display: flex; justify-content: flex-start; margin-bottom: 1.4em; }
.intro-logos-featured img{ max-height: 64px; width: auto; }
.intro-logos-row{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intro-logos-row .partner-logo{ min-height: 90px; padding: 18px; }
.intro-logos-row img{ max-height: 44px; }

.intro-lead{ margin-bottom: var(--space-md); }
.intro-lead .rich-text{ max-width: none; }
.intro-lead .rich-text p{ max-width: none; }

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.split--reverse .split-body{ order: 2; }
.split--reverse .split-media{ order: 1; }
.split--sidebar{ grid-template-columns: 2fr 1fr; }
.split-media img{ border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.split-body ul.check-list{ margin: 1.4em 0; }
.split-actions{ display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 1.6em; }

.check-list{ list-style: none; display: grid; gap: 12px; }
.check-list li{
  display: flex; align-items: flex-start; gap: 12px;
  font-weight: 600; color: var(--color-ink);
}
.check-list li svg{
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  color: var(--color-gold-dark);
}

.info-card{
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 32px 34px;
  margin-top: 1.8em;
}
.split-media--card .info-card{ margin-top: 0; box-shadow: var(--shadow-sm); }

.sidebar-card{
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.sidebar-label{
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.6em;
}
.sidebar-phone{
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-navy);
  line-height: 1.15;
}
.sidebar-phone:hover{ color: var(--color-gold-dark); }
.sidebar-divider{ border: 0; border-top: 1px solid var(--color-line); margin: 1.6em 0; }
.sidebar-card .check-list{ gap: 14px; }
.sidebar-contact-lines{ list-style: none; display: grid; gap: 14px; margin: 0; }
.sidebar-contact-lines li{ display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.sidebar-contact-lines svg{ width: 20px; height: 20px; color: var(--color-navy); flex-shrink: 0; }
.sidebar-contact-lines a{ color: var(--color-ink); font-weight: 600; font-size: 15px; line-height: 1.2; }
.sidebar-contact-lines a:hover{ color: var(--color-navy); }
@media (max-width: 980px){
  .sidebar-contact-lines li{ white-space: normal; align-items: flex-start; }
  .sidebar-contact-lines svg{ margin-top: 2px; }
}
.sidebar-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 1.8em;
  padding: 0.9em 1.7em;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: var(--color-navy);
  transition: background .2s ease;
}
.sidebar-link:hover{ background: var(--color-navy-dark); color: #fff; }
.sidebar-link svg{ width: 16px; height: 16px; color: #fff; }
.info-card ul{ list-style: none; display: grid; gap: 12px; }
.info-card li{ display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--color-ink); }
.info-card li svg{ width: 20px; height: 20px; color: var(--color-navy); flex-shrink: 0; margin-top: 2px; }
.info-card a{ color: var(--color-ink); }
.info-card a:hover{ color: var(--color-navy); }

/* =========================================================
   BENEFITS GRID (two-column bullet list block)
   ========================================================= */
.benefits{
  background: var(--color-surface-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.benefits h3{ color: #fff; max-width: 760px; margin-bottom: 1.2em; }
.benefits-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; }
.benefits-grid .check-list li{ color: #e7ebf8; }
.benefits-grid .check-list li svg{ color: var(--color-gold-light); }
.benefits-footer{ margin-top: 2rem; }

/* =========================================================
   SERVICES GRID
   ========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--space-md);
}
.service-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  color: #fff;
  background: linear-gradient(155deg, var(--color-navy-light) 0%, var(--color-navy) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card-bg{
  position:absolute; inset:0;
  background-size: cover; background-position: center;
  opacity: .45;
}
.service-card::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(19,36,86,.85) 0%, rgba(19,36,86,.15) 55%, rgba(19,36,86,.05) 100%);
}
.service-card-body{
  position: absolute;
  top: 26px; left: 26px; right: 26px;
  z-index: 1;
}
.service-card-body h3{ color: #fff; font-size: 1.2rem; margin-bottom: .3em; }
.service-card-body span{ display: inline-flex; align-items: center; gap: 6px; color: var(--color-gold-light); font-weight: 700; font-size: 0.92rem; }
.service-card:hover .service-card-body span{ color: #fff; }
.service-card-body svg{ width: 15px; height: 15px; flex-shrink: 0; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% -10%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(120deg, var(--color-navy-light) 0%, var(--color-navy-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 20px 45px -18px rgba(19, 36, 86, 0.55);
}
.cta-banner::before{
  content: "";
  position: absolute;
  top: -60%; right: -8%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-banner h3{
  position: relative;
  color: #fff; margin: 0; max-width: 620px;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
}
.cta-banner .btn{ position: relative; flex-shrink: 0; }
.cta-banner.is-gold{
  background:
    radial-gradient(circle at 88% -10%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(120deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-navy-dark);
  box-shadow: 0 20px 45px -18px rgba(179, 130, 47, 0.55);
}
.cta-banner.is-gold::before{ background: rgba(255,255,255,.18); }
.cta-banner.is-gold h3{ color: var(--color-navy-dark); }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline{ position: relative; margin-top: var(--space-md); padding-left: 28px; border-left: 3px solid var(--color-line); }
.timeline-item{ position: relative; padding-bottom: 2.4rem; }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content:"";
  position:absolute; left: -37px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-gold); border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-gold);
}
.timeline-year{
  font-family: var(--font-heading); font-weight: 700; color: var(--color-navy);
  font-size: 1.15rem; margin-bottom: .3em; display: block;
}

/* =========================================================
   TEAM
   ========================================================= */
.featured-person{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-lg);
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
  align-items: start;
  margin-top: var(--space-md);
}
.featured-person img{ border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 3/3.4; object-fit: cover; width: 100%; }
.featured-person .role{ color: var(--color-gold-dark); font-weight: 700; margin-bottom: 1em; }
.featured-person > div{ max-width: 680px; }
.detail-label{ display: block; font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5em; }
.person-detail-list{ display: grid; gap: 10px; margin: 1.4em 0; }
.person-detail-list dt{ font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; }
.person-detail-list dd{ margin: 0 0 .6em; }
.featured-person .check-list{ margin-top: 1.6em; }

.team-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: var(--space-md);
}
.team-card{ display: flex; flex-direction: column; text-align: center; }
.team-card .photo{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1.08;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  background: var(--color-navy-tint);
}
.team-card .photo img{ width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.team-card:hover .photo img{ transform: scale(1.04); }
.team-card h4{ margin-bottom: .2em; font-size: 1.02rem; }
.team-card .role{ font-size: 0.86rem; color: var(--color-muted); min-height: 2.6em; margin-bottom: .8em; }
.team-card-actions{ display: flex; justify-content: center; gap: 10px; margin-top: auto; padding-top: .6em; border-top: 1px solid var(--color-line); }
.team-icon-link{
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-navy-tint); color: var(--color-navy); flex-shrink: 0;
}
.team-icon-link svg{ width: 15px; height: 15px; }
.team-icon-link:hover{ background: var(--color-navy); color: #fff; }

/* =========================================================
   PARTNER LOGOS
   ========================================================= */
.partner-logo{
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}
.partner-logo img{ max-height: 60px; width: auto; filter: grayscale(15%); }
.partners-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  margin-top: var(--space-md);
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq{ margin-top: var(--space-md); display: grid; gap: 12px; max-width: var(--container-narrow); }
.faq-item{ border: 1px solid var(--color-line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content: "+";
  font-size: 1.4rem;
  color: var(--color-gold-dark);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item .faq-answer{ padding: 0 22px 20px; color: var(--color-body); }

/* =========================================================
   DOWNLOADS
   ========================================================= */
.downloads-list{ margin-top: var(--space-md); display: grid; gap: 14px; }
.download-item{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
}
.download-item strong{ color: var(--color-ink); font-family: var(--font-heading); }
.download-item .btn{ padding: 0.6em 1.3em; font-size: 0.9rem; }

/* =========================================================
   LINKS LIST (Wichtige Links)
   ========================================================= */
.link-groups{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-top: var(--space-md); }
.link-group h4{ margin-bottom: .8em; padding-bottom: .5em; border-bottom: 2px solid var(--color-line); }
.link-group ul{ list-style: none; display: grid; gap: 10px; }
.link-group a{ font-weight: 600; }
.link-group a::before{ content: "→ "; color: var(--color-gold-dark); }

/* =========================================================
   CONTACT / FORM BLOCK
   ========================================================= */
.contact-block{ display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-lg); align-items: start; }
.contact-hours{ margin-top: 1.2em; }
.contact-hours dt{ font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); }
.contact-hours dd{ margin: 0 0 .8em; }
.contact-portrait{ margin-top: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.map-embed{
  margin-top: var(--space-lg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-embed iframe{ width: 100%; height: 450px; border: 0; display: block; }
@media (max-width: 640px){
  .map-embed iframe{ height: 300px; }
}
.contact-form-wrap{
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.contact-form-wrap h3{ margin-bottom: .3em; }

/* wpcf7 styling */
.wpcf7 label{ display: block; font-weight: 700; font-family: var(--font-heading); color: var(--color-navy); margin-bottom: 6px; font-size: 0.92rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea{
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  margin-bottom: 18px;
  transition: border-color .18s ease;
}
.wpcf7 input:focus, .wpcf7 textarea:focus{ outline: none; border-color: var(--color-navy); }
.wpcf7 textarea{ min-height: 130px; resize: vertical; }
.wpcf7 .wpcf7-acceptance{ margin-bottom: 18px; display: block; font-size: 0.88rem; color: var(--color-muted); }
.wpcf7 .wpcf7-list-item{ margin: 0; }
.wpcf7-form-control-wrap{ display:block; }
.wpcf7-not-valid-tip{ color: #c0392b; font-size: 0.85rem; margin-top: -12px; margin-bottom: 14px; }
.wpcf7 input[type=submit]{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  padding: 0.9em 1.9em; border-radius: 100px; border: 2px solid var(--color-navy);
  background: var(--color-navy); color: #fff; cursor: pointer; transition: all .2s ease;
}
.wpcf7 input[type=submit]:hover{ background: var(--color-navy-dark); border-color: var(--color-navy-dark); }
.wpcf7-response-output{ border-radius: var(--radius-sm) !important; margin: 18px 0 0 !important; padding: 14px 18px !important; }
.wpcf7-spinner{ margin-left: 10px; }

/* Address info block (Anfahrt) */
.address-info-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: var(--space-md); }
.address-info-card{ background: var(--color-surface-alt); border-radius: var(--radius); padding: 26px 28px; }
.address-info-card h4{ display: flex; align-items: center; gap: 10px; margin-bottom: .5em; }
.address-info-card svg{ width: 22px; height: 22px; color: var(--color-gold-dark); }
.address-line{ display: flex; align-items: center; gap: 10px; font-weight: 600; }
.address-line svg{ width: 20px; height: 20px; color: var(--color-navy); flex-shrink: 0; }

/* Family sibling nav (Leistung / Über uns / Regional groups) */
.family-nav{ margin: -0.6rem 0 var(--space-md); }
.family-nav-list{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.family-nav-list a{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--color-surface-alt);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--color-line);
}
.family-nav-list a:hover{ border-color: var(--color-navy); color: var(--color-navy); }
.family-nav-list a.is-active{ background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

/* Rich text (legal pages) */
.rich-text{ max-width: var(--container-narrow); }
.rich-text h2{ margin-top: 1.6em; }
.rich-text h3{ margin-top: 1.3em; font-size: 1.2rem; }
.rich-text ul{ margin: 1em 0; padding-left: 1.3em; }
.rich-text li{ margin-bottom: .5em; }
.rich-text p{ max-width: 68ch; }
.split-body .rich-text p{ max-width: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--color-surface-navy); color: #b9c3e6; padding-top: var(--space-xl); }
.footer-top{ display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-lg); padding-bottom: var(--space-lg); }
.footer-brand img{ height: 120px; margin-bottom: 18px; }
.footer-brand p{ color: #9aa5cc; font-size: 0.95rem; }
.footer-col h4{ color: #fff; font-size: 1rem; margin-bottom: 1.1em; }
.footer-col ul{ list-style: none; display: grid; gap: 10px; }
.footer-col a{ color: #b9c3e6; font-size: 0.95rem; }
.footer-col a:hover{ color: #fff; }
.footer-col .btn-gold, .footer-col .btn-gold:hover{ font-size: 1rem; }
.footer-col .btn-gold{ color: var(--color-navy-dark); }
.footer-col .btn-gold:hover{ color: #fff; }
.footer-icon-list{ list-style: none; display: grid; gap: 14px; }
.footer-icon-list li{ display: flex; gap: 12px; align-items: flex-start; }
.footer-icon-list svg{ width: 18px; height: 18px; color: var(--color-gold-light); flex-shrink: 0; margin-top: 3px; }
.footer-jobs-btn{ margin-top: 14px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8891b8;
}
.footer-bottom a{ color: #8891b8; }
.footer-bottom a:hover{ color: #fff; }
.footer-legal{ display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal li{ list-style: none; margin: 0; }
.footer-col ul li{ list-style: none; }

/* =========================================================
   MISC
   ========================================================= */
.skip-link{ position: absolute; left: -9999px; top: 0; background: var(--color-navy); color: #fff; padding: 12px 20px; z-index: 10000; }
.skip-link:focus{ left: 12px; top: 12px; }

.page-content > *:first-child{ margin-top: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .main-nav{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .split, .contact-block{ grid-template-columns: 1fr; }
  .split-media{ order: -1 !important; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .team-grid{ grid-template-columns: repeat(3, 1fr); }
  .partners-grid{ grid-template-columns: repeat(2, 1fr); }
  .intro-logos-row{ grid-template-columns: repeat(2, 1fr); }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .featured-person{ grid-template-columns: 1fr; }
  .featured-person img{ max-width: 260px; }
  .benefits-grid, .link-groups, .address-info-grid{ grid-template-columns: 1fr; }
  /* A tablet in portrait is just as tall-narrow as a phone, so it needs the
     same vh cap as the phone breakpoint below, not the wide-desktop value. */
  .hero{ min-height: min(60vh, 560px); }
  .hero--compact{ min-height: min(40vh, 360px); }
  /* 5.5rem/3rem top+bottom per section adds up fast once a page has 6-8 of
     them stacked — on a narrow screen that's mostly empty space between
     sections rather than content. */
  .section{ padding: 3.5rem 0; }
  .section--tight{ padding: 2.25rem 0; }
  /* Centering a badge that wraps to 2 lines fought the layout (its text span
     stretches to fill the row, leaving nothing to center against) and never
     looked right next to the ones that fit on one line. A left-aligned
     stacked list sidesteps that entirely and reads as a cleaner checklist. */
  .trust-bar ul{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .trust-bar li{ justify-content: flex-start; }
  /* Wrapped pills of uneven width leave a ragged "2 then 1 then 1" layout.
     Smaller pills fit more per row, which shortens and evens out the wrap
     (still a plain wrapping list — no horizontal scroll). */
  .family-nav-list{ gap: 8px; }
  .family-nav-list a{ font-size: 0.82rem; padding: 7px 14px; }
}
@media (max-width: 640px){
  body{ font-size: 16px; }
  .header-contact .btn-phone span{ display: none; }
  /* Two columns left each service card ~150px wide — barely room for the
     image or title. One column per row reads far cleaner on a phone. */
  .services-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .footer-brand{ display: flex; flex-direction: column; align-items: center; text-align: center; }
  .cta-banner{ flex-direction: column; text-align: center; padding: 2.2rem; }
  .family-nav{ display: none; }
  .contact-form-wrap{ padding-left: 1.5rem; padding-right: 1.5rem; }
  .section{ padding: 2.5rem 0; }
  .section--tight{ padding: 1.75rem 0; }
  .hero{ min-height: min(58vh, 480px); }
  .hero--compact{ min-height: min(38vh, 320px); }
  .site-logo img{ height: 52px; }
  .featured-person img{ max-width: 100%; }
  .person-detail-list{ grid-template-columns: 1fr; }
  .cta-banner .btn{ width: 100%; justify-content: center; }
  .site-footer{ padding-top: var(--space-lg); }
}

/* Mobile nav drawer */
.mobile-nav{
  position: fixed; inset: 0; z-index: 1200;
  background: var(--color-surface-navy);
  color: #fff;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
}
.mobile-nav.is-open{ transform: translateX(0); }
.mobile-nav-header{ display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav-header img{ height: 40px; }
.mobile-nav-close{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink: 0; }
.mobile-nav-close svg{ width: 18px; height: 18px; }
.mobile-nav ul{ list-style: none; padding: 12px 12px 40px; }
.mobile-nav > ul > li{ border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav a{ display: block; padding: 14px 12px; color: #fff; font-family: var(--font-heading); font-weight: 700; }
.mobile-nav .sub-menu{ list-style: none; padding-left: 14px; display: none; }
.mobile-nav li.is-expanded > .sub-menu{ display: block; }
.mobile-nav .sub-menu a{ font-weight: 600; font-size: .95rem; color: #cdd6ef; padding: 10px 12px; }
.mobile-nav-toggle-caret{ float: right; }
.mobile-nav-overlay-lock{ overflow: hidden; }
