/* HGP Landingpage
   Tokens, Klassen und Breakpoints sind aus dem HGP-Kundenportal uebernommen
   (prototyp/assets/css/styles.css), damit beide Seiten identisch wirken.
   Das @font-face-Mapping ist bewusst so uebernommen wie im Portal. */

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fira-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fira-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fira-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fira-sans-500.ttf") format("truetype");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/fira-sans-800.ttf") format("truetype");
}

@font-face {
  font-family: "Fira Sans";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/fira-sans-900.ttf") format("truetype");
}

:root {
  --bg: #e9f3f5;
  --bg-soft: #f5f6f6;
  --surface: #ffffff;
  --surface-2: #f5f6f6;
  --text: #2e3233;
  --muted: #5c6668;
  --line: #e2e5e6;
  --teal: #00718f;
  --teal-dark: #004b5f;
  /* clr-blue-25 der Gothaer-Seite, Rand- und Textfarbe ihrer Secondary-Buttons */
  --teal-deep: #00546b;
  /* clr-blue-45, Fuellfarbe der Gothaer-Buttons im Hover */
  --teal-fill: #157c98;
  --mint: #d4e7ec;
  --coral: #e95450;
  --coral-dark: #c00d08;
  --radius: 4px;
  --font: "Fira Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  /* Sprungziele nicht unter den sticky Header schieben: Headerhoehe 97px + Luft. */
  scroll-padding-top: 113px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1492px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 40;
  padding: 12px 18px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Brand-Variante B: rein typografisch */

.brand--type {
  gap: 14px;
}

.brand--type .brand-word {
  color: var(--teal-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.brand--type .brand-rule {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.brand--type .brand-name {
  font-size: 16px;
  font-weight: 700;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.nav a {
  padding: 8px 2px;
}

.nav a:hover {
  color: var(--teal-dark);
}

/* Buttons */

.btn {
  min-width: 134px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 15px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  transition: .18s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Icon-Wrapper ausblocken, sonst waechst der Button ueber die 54px der Gothaer-Buttons hinaus. */
.btn [data-icon] {
  display: flex;
}

.btn--primary {
  color: #fff;
  background: var(--coral);
}

.btn--primary:hover {
  background: #e5322d;
}

/* Entspricht dem Secondary-Button der Gothaer-Seite
   (.button--secondary.button--color-primary): weisse Flaeche, Rand und Text in
   clr-blue-25, Hover auf clr-blue-90, Active auf clr-blue-85. */
.btn--outline {
  border-color: var(--teal-deep);
  background: #fff;
  color: var(--teal-deep);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--teal-fill);
  background: var(--teal-fill);
  color: #fff;
}

.btn--outline:active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.btn--compact {
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 16px;
}

@media (min-width: 768px) {
  .btn {
    min-width: 170px;
    min-height: 64px;
    padding: 18px 20px;
    font-size: 20px;
    line-height: 26px;
  }

  .btn--compact {
    min-width: 0;
    min-height: 52px;
    padding: 14px 20px;
    font-size: 17px;
  }
}

/* Hero */

.hero {
  background: linear-gradient(90deg, #fff 0%, #fff 50%, var(--bg) 50%, var(--bg) 100%);
}

.hero__inner {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: stretch;
  gap: clamp(32px, 5vw, 64px);
  padding: 0;
}

.hero__inner > div:first-child {
  align-self: center;
  max-width: 600px;
  min-width: 0;
  padding: 64px 0;
}

.hero__inner > div:last-child {
  align-self: stretch;
  min-width: 0;
}

.hero-visual {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 4px;
  background: url("../img/hgp-hero.webp") center / cover no-repeat;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Typografie */

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.16;
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  max-width: 12.5em;
  font-size: clamp(34px, 3.1vw, 48px);
  font-weight: 700;
}

/* Ueberschriften nicht silbentrennen: sonst entstehen "Fi-nanz" und "Ansprechpart-ner". */
h1,
h2,
h3 {
  hyphens: manual;
}

h2 {
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.35;
  max-width: 600px;
}

.muted {
  color: var(--muted);
}

/* Sections */

.section {
  padding: 64px 0;
}

.section--white {
  background: #fff;
}

.section--mint {
  background: var(--mint);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section__head p {
  color: var(--muted);
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards */

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.card__body {
  padding: 32px;
}

.hgp-info-card {
  position: relative;
  min-height: 274px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.hgp-info-card .card__body {
  min-height: 274px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 36px 32px;
  text-align: center;
}

.hgp-info-card .icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 0 28px;
  color: var(--teal-dark);
}

.hgp-info-card .icon-box svg {
  width: 34px;
  height: 34px;
}

.hgp-info-card h3 {
  max-width: 360px;
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.22;
}

.hgp-info-card p {
  max-width: 380px;
  margin-top: 20px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.hgp-info-card .btn {
  margin-top: 24px;
}

/* Die ganze Karte ist der Link, der Button muss beim Karten-Hover mitgehen. */
a.hgp-info-card:hover .btn--outline {
  border-color: var(--teal-fill);
  background: var(--teal-fill);
  color: #fff;
}

/* Kontakt */

/* Teamfoto und Personen-Card starten auf gleicher Hoehe. Die Card steht
   schmaler als die Bildspalte, dazwischen bleibt deutlich Luft. */
.contact-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.team-photo {
  width: 100%;
  /* height: auto ist noetig, weil das height-Attribut im HTML sonst die aspect-ratio schlaegt. */
  height: auto;
  aspect-ratio: 3 / 2;
  margin-bottom: 30px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center center;
}

.team-block .lead {
  max-width: 560px;
}

/* Personen-Card nach dem Muster von versicherung.gothaer.de/hgp/ansprechpartner:
   weisse Flaeche ohne Rahmen, rechteckiges Portrait links, das oben ueber die
   Kartenkante hinausragt, darunter Name, Funktion, Qualifikation und
   Kontaktzeilen als Links in clr-blue-40. */
.person-card {
  margin-top: 72px;
  padding: 0 40px 40px;
  border-radius: 3px;
  background: #fff;
}

.person-card__photo {
  width: min(58%, 240px);
  /* height: auto ist noetig, weil das height-Attribut im HTML sonst die aspect-ratio schlaegt. */
  height: auto;
  aspect-ratio: 3 / 4;
  margin-top: -72px;
  margin-bottom: 26px;
  object-fit: cover;
  object-position: center top;
}

.person-card h3 {
  font-size: 26px;
  line-height: 1.2;
}

.person-card__role {
  margin-top: 6px;
  font-size: 18px;
}

.person-card__qualification {
  margin-top: 20px;
  font-size: 18px;
}

.person-card__contacts {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.person-card__contacts a {
  display: flex;
  align-items: center;
  color: var(--teal);
  font-size: 18px;
}

.person-card__contacts a:hover {
  text-decoration: underline;
}

/* Leerer Icon-Slot bei der E-Mail-Zeile haelt die Einrueckung wie im Original. */
.person-card__icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  margin-right: 8px;
}

.person-card__icon svg {
  width: 22px;
  height: 22px;
}

.person-card .contact-actions {
  margin-top: 28px;
}

/* Kontaktleiste nach dem Muster der Gothaer-Agenturseite: oben drei Infospalten,
   darunter eine Trennlinie und eine Reihe quadratischer Aktionsbuttons. */
.contact-bar {
  margin-top: 40px;
  border-radius: 3px;
  background: #fff;
}

.contact-bar__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 40px;
}

.contact-bar__item {
  display: flex;
  align-items: start;
  gap: 12px;
}

.contact-bar__icon {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--teal);
}

.contact-bar__icon svg {
  width: 22px;
  height: 22px;
}

.contact-bar__item p {
  font-size: 17px;
  line-height: 1.5;
}

.contact-bar__item a {
  color: var(--teal);
}

.contact-bar__item a:hover {
  text-decoration: underline;
}

.contact-bar__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  padding: 30px 40px 34px;
  border-top: 1px solid var(--line);
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--teal);
  font-size: 17px;
  line-height: 1.3;
}

.contact-action__icon {
  width: 62px;
  height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--teal-fill);
  color: #fff;
  transition: .18s ease;
}

.contact-action__icon svg {
  width: 30px;
  height: 30px;
}

a.contact-action:hover {
  text-decoration: underline;
}

a.contact-action:hover .contact-action__icon {
  background: var(--teal);
}

/* Fax ist keine anklickbare Aktion, nur die Nummer. */
.contact-action--static {
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Social */

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  transition: .18s ease;
}

.social-card:hover {
  border-color: var(--teal);
}

.social-card .icon-box {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
}

.social-card .icon-box svg {
  width: 24px;
  height: 24px;
}

.social-card strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.social-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

/* Abschluss-CTA */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band p {
  margin-top: 14px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
  max-width: 640px;
}

/* Footer */

.footer {
  padding: 34px 0;
  background: #fff;
  color: var(--text);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.footer a {
  color: var(--teal);
}

.footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Varianten-Vorschau (nur intern, nicht Teil der Live-Seite) */

.variant-preview {
  padding: 40px 0 8px;
}

.variant-preview h2 {
  font-size: 24px;
}

.variant-preview p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
  max-width: 760px;
}

.variant-frame {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.variant-frame .topbar {
  position: static;
}

.brand-logo-slot {
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px dashed #bfdbe3;
  border-radius: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Breakpoints */

/* Vier Wegweiser-Karten werden unter ~1180px zu schmal fuer zwei Textzeilen,
   die Aktionslabels der Kontaktleiste brechen dort ebenfalls um. */
@media (max-width: 1180px) {
  .grid--4,
  .contact-bar__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    background: #f6fbfb;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .hero__inner > div:first-child {
    padding: 0;
  }

  .grid--4,
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Auf schmalen Spalten wieder gleichmaessig aufteilen, sonst wird die Card zu eng. */
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .contact-bar__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    display: block;
  }

  .cta-band .btn {
    margin-top: 26px;
  }
}

@media (max-width: 720px) {
  /* Header wird hier zweizeilig und damit 188px hoch. */
  html {
    scroll-padding-top: 204px;
  }

  .container {
    width: min(100% - 24px, 1160px);
  }

  .topbar__inner,
  .section__head,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__inner {
    padding: 14px 0;
    gap: 14px;
  }

  .topbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero__inner {
    min-height: auto;
    padding: 38px 0;
  }

  .hero-visual {
    min-height: 240px;
  }

  .section {
    padding: 48px 0;
  }

  .grid--4,
  .grid--2,
  .social-grid,
  .contact-bar__info,
  .contact-bar__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-bar__info {
    padding: 26px 24px;
  }

  .contact-bar__actions {
    padding: 24px 24px 28px;
  }

  .card__body {
    padding: 24px;
  }

  .team-photo {
    margin-bottom: 24px;
  }

  .person-card {
    padding: 0 24px 24px;
  }

  .footer__inner {
    gap: 18px;
  }
}
