/* IGC Swiss Landingpage: gemeinsame Teile (Nav, Hero, Überschriften, Grund-Sektionen, Footer).
   Gehört dem Art-Director. Builder schreiben nur in css/sec-<id>.css. */

body { font-stretch: 100%; background: var(--paper); color: var(--ink); }
::selection { background: #c7d2e3; color: var(--ink); }
.nw { white-space: nowrap; }

/* Display-Schrift: breit, kräftig, ohne Silbentrennung */
.d, main h2 { font-family: var(--font-display); font-weight: var(--d-weight); font-stretch: var(--d-stretch); letter-spacing: var(--d-track); line-height: .94; hyphens: manual; -webkit-hyphens: manual; }
main h2 { font-size: var(--t-h2-d); max-width: 18ch; }
/* gesperrte Labels nur an Bildern, Formularen und Tabellenköpfen, nie über einer Überschrift */
.label { font-size: var(--t-label-d); font-weight: 600; letter-spacing: .16em; font-stretch: 112%; text-transform: uppercase; }

/* Gründe der Sektionen */
.ground-paper { background: var(--paper); color: var(--ink); }
.ground-white { background: var(--white); color: var(--ink); }
.ground-blue { background: var(--igc-blue); color: var(--on-blue);
  --bg: var(--igc-blue); --ink: var(--on-blue); --muted: var(--on-blue-soft); --action: var(--white); --action-ink: var(--igc-blue); }
.ground-blue .btn--primary { background: var(--white); color: var(--igc-blue); }
html .ground-blue .btn.btn--primary:hover { background: var(--paper); color: var(--igc-blue); }

/* Buttons: eckig, gefüllt (data-buttons="solid", data-radius="sharp") */
.btn { border-radius: 0; font-weight: 600; }
.btn--primary { height: 52px; padding-inline: 28px; }
html .btn.btn--primary:hover { background: var(--igc-blue-deep); }

/* ---------------- Nav: Papier; über dem Hero (ab 768 px) durchsichtig mit weißem Logo (Jacques 2026-11-09) ---------------- */
header.nav { background: var(--paper); transition: background-color .2s ease, border-color .2s ease; }
.nav__logo { position: relative; }
.nav__logo img { width: 52px; height: 52px; }
.nav__logo .logo--white { position: absolute; left: 0; top: 0; display: none; }
.nav__actions { margin-left: auto; }
.nav__actions .btn { transition: background-color .2s ease, color .2s ease, opacity .2s ease-out; }
@media (min-width: 1024px) {
  header.nav.is-over { background: transparent; border-bottom-color: transparent; box-shadow: none; }
  header.nav.is-over .logo--white { display: block; }
  header.nav.is-over .logo--blue { visibility: hidden; }
}
/* Alle Breiten: der Nav-Button bleibt verborgen, solange der Hero mit seinem eigenen Button sichtbar ist */
header.nav .nav__actions .btn { visibility: visible; }
header.nav.is-over .nav__actions .btn { opacity: 0; visibility: hidden; transition: opacity .2s ease-out, visibility 0s .2s; }

/* ---------------- Hero ab 768 px: Bild randlos, harte Logo-Fläche unten links, H1 weiß darauf (Jacques 2026-11-09) ---------------- */
main > .hero--full { position: relative; height: 100svh; min-height: 720px; padding: 0; overflow: hidden; background: #0b1a30; color: #fff;
  --edge-l: max(var(--gut), (100vw - var(--container)) / 2); }
main > .hero--full > .wrap { position: relative; z-index: 3; height: 100%; display: block; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 34%;
  transform: scale(calc(1 + (min(var(--p, 1), 2) - 1) * .06)); transform-origin: 40% 35%; }
/* ruhige lineare Verläufe, höchstens 40 %: oben für das weiße Logo der Nav, unten für Kurztext und Button rechts (kein Halo, kein Radialverlauf) */
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--shade), .40) 0, rgba(var(--shade), 0) 190px),
    linear-gradient(to top, rgba(var(--shade), .40) 0, rgba(var(--shade), .34) 22%, rgba(var(--shade), .12) 46%, rgba(var(--shade), 0) 62%); }

.hero__copy { position: absolute; left: 0; right: 0; bottom: 64px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
/* die Fläche: IGC-Blau aus dem Logo, von der linken Bildkante bis Spalte 7, unten bündig, 48 px über der H1 */
.hero__plate { grid-column: 1 / span 7; grid-row: 1; align-self: stretch; z-index: 0; background: var(--igc-blue);
  margin: -48px 0 -64px calc(-1 * var(--edge-l)); }
.hero__copy h1 { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 1; margin: 0; color: #fff; padding-right: 40px; }
.hero__copy h1 .big { display: block; font-size: var(--t-hero); line-height: .92; white-space: nowrap; }
.hero__copy h1 .small { display: block; margin-top: 16px; font-family: var(--font-text); font-weight: 450; font-stretch: 100%; letter-spacing: -0.012em; font-size: clamp(20px, 1.5vw + 6px, 28px); line-height: 1.15; max-width: 26ch; color: var(--on-blue); }
/* rechts: Kurztext, Button, Telefonzeile auf dem reduzierten Verlauf */
.hero__side { grid-column: 8 / span 5; grid-row: 1; align-self: end; position: relative; z-index: 1; }
.hero__lead { font-size: 16px; line-height: 1.55; color: var(--on-blue); max-width: 46ch; font-weight: 500; }
.hero__side .btn-row { margin-top: 22px; }
.hero__side .btn--primary { background: #fff; color: var(--igc-blue); }
html .hero__side .btn.btn--primary:hover { background: var(--paper); color: var(--igc-blue); }
.hero__tel { margin-top: 14px; font-size: 14px; color: var(--on-blue); }
.hero__tel > a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Eintritt ab 768 px: die Fläche wischt von links ein (700 ms), danach steigt die H1. Ruht unter reduzierter Bewegung. */
@keyframes plate-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .mo .hero--full .hero__plate { animation: plate-wipe .7s var(--ease-out) both; }
  .mo .hero--full .hero__copy .big, .mo .hero--full .hero__copy .small { animation: rise .56s var(--ease-out) both; }
  .mo .hero--full .hero__copy .l1  { animation-delay: .40s; }
  .mo .hero--full .hero__copy .l1b { animation-delay: .44s; }
  .mo .hero--full .hero__copy .l2  { animation-delay: .48s; }
  .mo .hero--full .hero__copy .small { animation-delay: .52s; }
  .mo .hero--full .hero__side { animation: rise .56s var(--ease-out) .56s both; }
}

/* ---------------- Sektionen: Hüllen ---------------- */
main > section > .wrap > h2:first-child { margin-bottom: var(--s-7, 48px); }

/* ---------------- Footer ---------------- */
footer.closing { background: var(--white); color: var(--ink); }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; align-content: start; }
.foot__brand { grid-column: 1 / span 3; display: grid; gap: 16px; align-content: start; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.foot__brand img { width: 56px; height: 56px; }
.foot__brand a { color: var(--igc-blue); text-decoration: underline; text-underline-offset: 2px; }
/* Telefon und E-Mail im Footer: eigene Zeile, das Element selbst 44 px hoch */
.foot__brand .foot__line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; min-height: 44px; margin-top: -8px; }
.foot__brand .foot__line a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__notes { grid-column: 5 / span 6; font-size: 13px; line-height: 1.5; color: var(--muted); }
.foot__notes li + li { margin-top: 8px; }
/* Spaltenköpfe normal geschrieben, keine gesperrten Versalien */
.foot__notes h3 { font-family: var(--font-text); font-size: 13.5px; font-weight: 600; letter-spacing: 0; font-stretch: 100%; text-transform: none; color: var(--ink); margin-bottom: 12px; }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.foot__legal a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.foot__legal > span { min-height: 44px; display: inline-flex; align-items: center; }
/* Taste-Kit schreibt „Credits“/„Hide“ hinter Bildnachweise; auf dieser Seite deutsch oder gar nicht */
.credits > summary::after { content: none; }

@media (max-width: 1023px) {
  .foot__brand, .foot__notes { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  /* Telefon und Tablet hochkant (bis 1023 px): die Visualisierung vollständig, im eigenen Seitenverhältnis, Text darunter auf Blau */
  html body main > section.hero--full:has(> .wrap) { height: auto; min-height: 100svh; padding: var(--nav) 0 0; display: flex; flex-direction: column; justify-content: flex-start; background: var(--igc-blue); }
  .hero__media { position: relative; inset: auto; width: 100%; aspect-ratio: 1176 / 734; flex: none; }
  .hero__media img { object-fit: cover; object-position: 50% 50%; transform: none; }
  .hero__shade, .hero__plate { display: none; }
  main > .hero--full > .wrap { height: auto; padding: 28px 0 36px; }
  .hero__copy { position: static; display: block; }
  .hero__copy h1 { grid-column: auto; padding-right: 0; }
  .hero__copy h1 .big { font-size: clamp(32px, 8.6vw, 52px); line-height: .98; }
  .hero__copy h1 .small { font-size: 19px; margin-top: 10px; }
  .hero__side { margin-top: 18px; padding-left: 0; }
  .hero__lead { font-size: 15px; font-weight: 400; }
  .hero__side .btn-row { margin-top: 18px; }
}
@media (max-width: 767px) {
  .hero__side .btn--primary { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { transform: none !important; animation: none !important; }
  .hero__plate, .hero__copy .big, .hero__copy .small, .hero__side { animation: none !important; }
}

/* Tap-Ziel Telefon im Hero (QA R17): Trefferfläche 44 px, Optik unverändert */
/* Inline: das Polster wirkt nur auf die Trefferfläche (Rect 45 px), nicht auf Zeile; die Linie (Hintergrund aus motion.css) bleibt 2 px unter dem Text */
html:not([data-motion="off"]) .hero__tel > a:not([class]) { padding-block: 14px 16px; background-origin: content-box; background-position: right 0 bottom -2px, 0 calc(100% + 2px); }
html:not([data-motion="off"]) .hero__tel > a:not([class]):is(:hover, :focus-visible) { background-position: left 0 bottom -2px, 0 calc(100% + 2px); }

/* Footer: wächst mit dem Inhalt, kein erzwungener Bildschirm */
html footer.closing { height: auto; min-height: 0; }

/* Footer-Links: Unterstreichung direkt am Text statt am Fuß der 44-px-Trefferfläche (Jacques 2026-11-12) */
.foot__brand .foot__line a { background-image: none !important; padding-bottom: 0 !important; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 4px !important; }
