/*
 * Ein Knopf-System fuer alle Seiten.
 *
 * Vorher gemessen (auf /waermepumpe): Hoehen 48 / 51 / inline, Schriftgroessen 16 / 13 / 12 / 11,
 * Schriftschnitte 650 / 600 / 550 / 400, Pfeile 26 / 20 / 18 px mit Strichstaerke 1.65 und 1.75,
 * Radien 999px / 100px. Jede Seite hatte ihre eigene Knopfform.
 *
 * Diese Datei vereinheitlicht die FORM (Hoehe, Radius, Schrift, Polster, Abstand, Pfeil).
 * Primary buttons use white content on Galvanek orange; secondary fills stay distinct.
 * Geladen in src/routes/__root.tsx, gilt damit fuer jede Seite.
 */

:root {
  --ga-cta-hoehe: 52px;
  --ga-cta-polster: 0 26px;
  --ga-cta-schrift: 15px;
  --ga-cta-gewicht: 600;
  --ga-cta-abstand: 10px;
  --ga-cta-pfeil: 18px;
  --ga-cta-pfeil-bild: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>');
  --ga-cta-uebergang: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

/*
 * Die Durchsetzung laeuft ueber !important. Begruendung: die Seiten-Stylesheets stammen aus
 * vier verschiedenen Bauphasen und setzen Knopfmasse mit hoher Spezifitaet (gemessen: sieben
 * verschiedene Knopfformen auf EINER Seite). Ein Design-System, das sich dagegen nur mit
 * verdoppelten Klassen wehrt, verliert an der naechsten Stelle wieder. Betroffen sind
 * ausschliesslich Form-Eigenschaften — Farbe und Fuellung bleiben unangetastet.
 */
.b-button,
.wp26-button,
.wp26-button-strong,
.wp26-all-stories,
.nav-cta,
.lf-cta,
.tc-cta,
.gl-consult,
a.button,
button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--ga-cta-abstand) !important;
  min-height: var(--ga-cta-hoehe) !important;
  padding: var(--ga-cta-polster) !important;
  border-radius: 999px !important;
  font-size: var(--ga-cta-schrift) !important;
  font-weight: var(--ga-cta-gewicht) !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--ga-cta-uebergang),
    box-shadow var(--ga-cta-uebergang),
    background-color var(--ga-cta-uebergang),
    border-color var(--ga-cta-uebergang);
}

/* Gleiche Bewegung auf jedem Knopf. */
.b-button:hover,
.wp26-button:hover,
.wp26-button-strong:hover,
.wp26-all-stories:hover,
.nav-cta:hover,
.lf-cta:hover,
.tc-cta:hover,
.gl-consult:hover,
a.button:hover,
button.button:hover {
  transform: translateY(-1px);
}

/* Ein Pfeil in einer Groesse und einer Strichstaerke — das war der sichtbarste Bruch. */
.b-button svg,
.wp26-button svg,
.wp26-button-strong svg,
.wp26-all-stories svg,
.nav-cta svg,
.lf-cta svg,
.tc-cta svg,
.gl-consult svg,
a.button svg,
button.button svg,
.text-link svg,
.g-link svg,
.ls-inline-more svg {
  width: var(--ga-cta-pfeil) !important;
  height: var(--ga-cta-pfeil) !important;
  flex: none;
  stroke-width: 1.75 !important;
  transition: transform var(--ga-cta-uebergang);
}

.b-button:hover svg,
.wp26-button:hover svg,
.wp26-all-stories:hover svg,
.nav-cta:hover svg,
.lf-cta:hover svg,
.tc-cta:hover svg,
.gl-consult:hover svg,
a.button:hover svg,
button.button:hover svg,
.text-link:hover svg,
.g-link:hover svg,
.ls-inline-more:hover svg {
  transform: translateX(3px);
}

/* Textlinks: eine Form statt drei. */
.text-link,
.g-link,
.ls-inline-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.text-link:hover,
.g-link:hover,
.ls-inline-more:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Kleine Steuerknoepfe behalten ihre eigene Groesse. */
.gm-map-tools .b-button,
.gm-map-tools button,
.gm-map-reset,
.gm-attribution,
.icon-button,
.lf-playback,
.ls-logo-pause,
.gw-zoom button {
  min-height: 0 !important;
  padding: revert !important;
  gap: revert !important;
  font-size: revert !important;
  border-radius: revert !important;
}

@media (max-width: 720px) {
  :root {
    --ga-cta-hoehe: 50px;
    --ga-cta-polster: 0 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b-button,
  .wp26-button,
  .nav-cta,
  .lf-cta,
  .tc-cta,
  .gl-consult,
  a.button,
  button.button,
  .text-link svg,
  .g-link svg {
    transition: none;
  }
}

/* Jeder Handlungsaufruf traegt denselben Pfeil — auch wo im Markup keiner steht. */
.b-button:not(:has(svg))::after,
.wp26-button:not(:has(svg))::after,
.nav-cta:not(:has(svg))::after,
.lf-cta:not(:has(svg))::after,
.tc-cta:not(:has(svg))::after,
.gl-consult:not(:has(svg))::after,
a.button:not(:has(svg))::after,
button.button:not(:has(svg))::after {
  content: "";
  width: var(--ga-cta-pfeil);
  height: var(--ga-cta-pfeil);
  flex: none;
  background: currentColor;
  -webkit-mask: var(--ga-cta-pfeil-bild) center / contain no-repeat;
  mask: var(--ga-cta-pfeil-bild) center / contain no-repeat;
  transition: transform var(--ga-cta-uebergang);
}

.b-button:not(:has(svg)):hover::after,
.wp26-button:not(:has(svg)):hover::after,
.nav-cta:not(:has(svg)):hover::after,
.lf-cta:not(:has(svg)):hover::after,
.tc-cta:not(:has(svg)):hover::after,
.gl-consult:not(:has(svg)):hover::after,
a.button:not(:has(svg)):hover::after,
button.button:not(:has(svg)):hover::after {
  transform: translateX(3px);
}

/* Eine Zeile fuer einen Handlungsaufruf am Ende einer Sektion. */
.ga-cta-zeile {
  display: flex;
  justify-content: center;
  margin: 36px auto 0;
  padding-inline: 24px;
}

/* One primary-action colour contract across the historical and React page families. */
.nav-cta,
.b-button:not(.b-button-outline),
.wp26-button:not(.wp26-secondary),
.wp26-button-strong,
.lf-cta,
.gl-consult,
.tc-cta,
.co-button:not(.co-secondary),
.fs-action:not(.fs-secondary),
.cs26-button,
a.button:not(.secondary):not(.ghost),
button.button:not(.secondary):not(.ghost) {
  color: #fff !important;
}
.nav-cta svg,
.b-button:not(.b-button-outline) svg,
.wp26-button:not(.wp26-secondary) svg,
.lf-cta svg,
.gl-consult svg,
.co-button:not(.co-secondary) svg,
.fs-action:not(.fs-secondary) svg,
.cs26-button svg {
  color: inherit !important;
}
.header .text-link,
.header .g-link,
.header .mega-panel .eyebrow,
.header .mega-service a > svg,
.footer .lr-footer-consult > svg {
  color: var(--gk-orange, #ee671f) !important;
}
.header .text-link > svg { color: inherit !important; }
.header #menu-caption[hidden] { display: none !important; }
#privacy-dialog,
#video-dialog {
  position: fixed;
  inset: 0;
  margin: auto !important;
  max-height: calc(100svh - 32px);
}
#privacy-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 28px;
  border-radius: 20px;
  color: var(--gk-ink, #181b20);
}
#privacy-dialog p { line-height: 1.6; }
#privacy-dialog .text-link { font-size: 13px !important; }
@media (max-width: 600px) {
  #privacy-dialog { padding: 22px; }
  .header a.nav-cta { font-size: 12px !important; white-space: nowrap; min-height: 44px !important; padding: 0 14px !important; gap: 8px !important; }
  .header a.nav-cta > svg { display: block !important; width: 16px !important; height: 16px !important; }
}

/* Consultation band (29.09.2026): home bands + the site-wide rhythm (src/components/site/ctaRhythm.ts). */
.hc-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 48px;
  margin: clamp(40px, 6vw, 72px) auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px);
  border-radius: 28px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(238, 103, 31, 0.14), transparent 55%),
    #fff7f1;
  border: 1px solid #f6dccb;
  font-family: "Instrument Sans", Arial, sans-serif;
  color: #16181a;
}
.hc-kicker {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4501a;
}
.hc-band h2 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.hc-copy > p:not(.hc-kicker):not(.hc-proof) {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
  color: #4a5158;
}
.hc-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #4a5158;
}
.hc-proof span {
  display: inline-flex;
  gap: 1px;
  color: #1e9e5a;
}
.hc-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 250px;
}
.hc-primary,
.hc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.hc-primary {
  background: #ee671f;
  color: #fff;
  box-shadow: 0 10px 26px rgba(238, 103, 31, 0.28);
}
.hc-primary:hover {
  background: #d95a17;
  transform: translateY(-1px);
}
.hc-secondary {
  background: #fff;
  color: #16181a;
  border: 1px solid #e6e1da;
}
.hc-secondary:hover {
  border-color: #16181a;
}

@media (max-width: 760px) {
  .hc-band {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 16px;
    width: auto;
    border-radius: 22px;
  }
  .hc-actions {
    min-width: 0;
  }
}
.hc-proof span {
  letter-spacing: 1px;
  font-size: 13px;
}
.hc-primary span[aria-hidden] {
  font-size: 18px;
  line-height: 1;
}
/* Own width: sub pages have no .g-wrap container. */
.hc-band {
  width: min(1240px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .hc-band {
    width: calc(100% - 32px);
  }
}

/* 29.09.2026: a band inside a narrow article column stacks text over buttons (heading had 199 px). */
.hc-band.hc-narrow {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}
.hc-band.hc-narrow h2 {
  font-size: clamp(26px, 2.6vw, 34px);
}
