/* Target-group selection pages (/treuhand, later /versicherungen): two cards + grouped link list.
   Uses the site's tokens (Inter, --title-color, --body-color, --smoke-color, --border-color) and buttons.
   Loaded only on the selection pages. Markup: partials/zielgruppen-auswahl.php */

.zg-selection { padding-top: 60px; }
.zg-season { margin: 0 0 32px; }
/* The seasonal sentence is client copy: keep it visible on small screens too
   (the shared .seasonal-strip hides it below 576px on the homepage). */
.zg-season .seasonal-strip__text { display: block; }

/* ---------- two equal cards */
.zg-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.zg-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 100%;
  padding: 36px 32px 32px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--white-color);
  color: var(--body-color);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.zg-card:hover,
.zg-card:focus-visible {
  border-color: var(--title-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
  color: var(--body-color);
}
.zg-card:focus-visible { outline: 2px solid var(--title-color); outline-offset: 3px; }
.zg-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--smoke-color);
  color: var(--title-color);
  font-size: 28px;
}
.zg-card__title {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--title-color);
}
.zg-card__text { margin: 0; font-size: 16px; line-height: 1.6; }
.zg-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zg-chip {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--smoke-color2);
  font-size: 13px;
  line-height: 1.4;
  color: var(--title-color);
}
.zg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 10px;
  background: var(--title-color);
  color: var(--white-color);
  font-family: var(--title-font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.zg-card__cta i { font-size: 20px; transition: transform .2s ease; }
.zg-card:hover .zg-card__cta i { transform: translateX(4px); }

/* ---------- grouped service link list */
.zg-overview {
  margin-top: 64px;
  padding: 56px 0;
  background: var(--smoke-color);
}
/* The section after the grey list (contact band / Online-Mandat) follows at a regular distance
   instead of the full 120px section space. */
.zg-overview + .space-top { padding-top: 80px; }
.zg-overview__heading {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
  color: var(--title-color);
}
.zg-overview__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
  align-items: start;
}
.zg-overview__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--theme-color);
}
.zg-overview__list { list-style: none; margin: 0; padding: 0; }
.zg-overview__list li { border-bottom: 1px solid var(--border-color); }
.zg-overview__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--title-color);
  font-weight: 500;
  text-decoration: none;
}
.zg-overview__list a i { color: var(--theme-color); font-size: 20px; transition: transform .2s ease; }
.zg-overview__list a:hover i,
.zg-overview__list a:focus-visible i { transform: translateX(4px); color: var(--title-color); }
.zg-overview__list a:focus-visible { outline: 2px solid var(--title-color); outline-offset: 2px; }

/* ---------- responsive */
@media (max-width: 991.98px) {
  .zg-card { padding: 30px 24px 26px; }
  .zg-card__title { font-size: 23px; }
}
@media (max-width: 767.98px) {
  .zg-selection { padding-top: 40px; }
  .zg-cards { grid-template-columns: 1fr; gap: 18px; }
  .zg-card__cta { align-self: stretch; justify-content: center; }
  .zg-overview { margin-top: 48px; padding: 40px 0; }
  .zg-overview + .space-top { padding-top: 56px; }
  .zg-overview__cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 575px) {
  .zg-card { padding: 26px 20px 22px; }
  .zg-card__title { font-size: 21px; }
  .zg-overview__heading { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .zg-card, .zg-card__cta i, .zg-overview__list a i { transition: none; }
  .zg-card:hover, .zg-card:focus-visible { transform: none; }
}

/* =====================================================================
   Target-group pages (/treuhand/privatpersonen, /treuhand/unternehmen,
   /versicherungen/privatpersonen, /versicherungen/unternehmen)
   Markup: partials/zielgruppen-seite.php
   ===================================================================== */
.zg-page { padding-top: 60px; }
/* Client copy must appear exactly as written ("Treuhand für Privatpersonen"): the theme capitalises
   every word of .breadcumb-title, so switch that off on the pages that load this stylesheet. */
.breadcumb-title { text-transform: none; }

/* large highlight tile (e.g. Steuererklärung) */
.zg-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 28px;
  margin-bottom: 56px;
  padding: 36px 36px;
  border-radius: 14px;
  background: var(--title-color);
  color: var(--white-color);
}
.zg-highlight__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  color: var(--white-color);
  font-size: 32px;
}
.zg-highlight__title { margin: 0 0 8px; font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--white-color); }
.zg-highlight__text { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.6; }
.zg-highlight__actions { display: flex; flex-direction: column; gap: 12px; }
.zg-highlight__actions .global-btn { min-height: 48px; padding: 16px 26px; text-align: center; }

/* service groups and tiles */
.zg-group + .zg-group { margin-top: 48px; }
.zg-group__title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 22px;
  font-weight: 700;
  color: var(--title-color);
}
.zg-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.zg-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 26px 24px 22px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--white-color);
  color: var(--body-color);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.zg-tile:hover,
.zg-tile:focus-visible {
  border-color: var(--title-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
  color: var(--body-color);
}
.zg-tile:focus-visible { outline: 2px solid var(--title-color); outline-offset: 3px; }
.zg-tile__title { margin: 0; padding-right: 8px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--title-color); }
.zg-tile__text { margin: 0; font-size: 15px; line-height: 1.6; }
.zg-tile__arrow {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin-top: auto;
  border-radius: 50%;
  background: var(--smoke-color);
  color: var(--title-color);
  font-size: 22px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.zg-tile:hover .zg-tile__arrow,
.zg-tile:focus-visible .zg-tile__arrow { background: var(--title-color); color: var(--white-color); transform: translateX(3px); }

/* notice box (Versicherungs-Check, KMU-Versicherungscheck) */
.zg-notice {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 56px;
  padding: 28px 30px;
  border: 1px solid var(--theme-color2);
  border-radius: 14px;
  background: var(--smoke-color);
}
.zg-notice__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--white-color); color: var(--title-color); font-size: 26px; }
.zg-notice__title { margin: 2px 0 6px; font-size: 20px; font-weight: 700; color: var(--title-color); }
.zg-notice__text { margin: 0; font-size: 16px; line-height: 1.6; }

@media (max-width: 991.98px) {
  .zg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zg-highlight { grid-template-columns: auto minmax(0, 1fr); }
  .zg-highlight__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
  .zg-page { padding-top: 40px; }
  .zg-highlight { grid-template-columns: 1fr; padding: 28px 22px; margin-bottom: 44px; }
  .zg-highlight__title { font-size: 24px; }
  .zg-highlight__actions { flex-direction: column; }
  .zg-highlight__actions .global-btn { width: 100%; }
  .zg-group + .zg-group { margin-top: 40px; }
  .zg-tiles { grid-template-columns: 1fr; }
  .zg-notice { flex-direction: column; padding: 24px 22px; margin-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .zg-tile, .zg-tile__arrow { transition: none; }
  .zg-tile:hover, .zg-tile:focus-visible, .zg-tile:hover .zg-tile__arrow, .zg-tile:focus-visible .zg-tile__arrow { transform: none; }
}

/* Area tag above the audience label (DOCX B3: TREUHAND, VERSICHERUNGEN & VORSORGE) */
.zg-area-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white-color);
  color: var(--title-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.zg-area-tag + .svc-hero-eyebrow { display: block; }
/* non-link tile (e.g. "Für wen wir die Steuererklärung erstellen") */
.zg-tile--static { pointer-events: none; }
.zg-tile--static:hover { border-color: var(--border-color); box-shadow: none; transform: none; }
/* services whose page is not built yet (e.g. business insurance): listed in grey, not clickable */
.zg-overview__planned { display: flex; align-items: center; min-height: 44px; padding: 10px 0; color: #6B6B6B; font-weight: 500; }
.zg-tile--planned .zg-tile__title { color: #4D4D4D; }
