/* Startseite als Portal (DES-17 D, Optima 1:1). Quelle: Optimierungen/rahmen/03-startseite/build.py (variante_D, fuss_d). Lädt nur auf der Startseite. */
.sg-portal { margin: 0; }
.sg-portal-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-portal-h { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px; min-height: calc(100vh - 96px); min-height: max(560px, calc(100svh - 96px));   /* kein Kopf (DES-17), unten die Rechtszeile */ color: #fff; overflow: hidden; margin: 0; }
.sg-portal-h > * { margin: 0; }
.sg-portal-hg { position: absolute; inset: 0; margin: 0; }
.sg-portal-hg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-portal-h::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(30 35 43 / 55%); transition: background .3s; }
/* Abdunklung über dem Foto, Titel und Logo darüber (vorher lag das Foto über der Abdunklung, SP-03) */
.sg-portal-t, .sg-portal-logo, .sg-portal-wort { z-index: 2; }
.sg-portal-h:hover::before, .sg-portal-h:focus-within::before { background: rgb(30 35 43 / 35%); }
.sg-portal-t { width: 100%; display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 48px; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; text-align: center; color: #fff; }
.sg-portal-t::before, .sg-portal-t::after { content: ""; flex: 1; border-bottom: 2px solid rgb(255 255 255 / 85%); }
.sg-portal-t a { color: #fff; text-decoration: none; }
.sg-portal-t a::after { content: ""; position: absolute; inset: 0; }   /* die ganze Hälfte ist der Link: bezieht sich auf .sg-portal-h, der Titel selbst darf nicht position: relative sein (Lukas 26.11.: Klick aufs Bild führte nicht zur Marke) */
.sg-portal-logo, .sg-portal-wort { pointer-events: none; }   /* Klick aufs Logo geht an den Link darunter */
.sg-portal-t a:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.sg-portal-logo, .sg-portal-wort { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; margin: 0; }
.sg-portal-logo img { width: 100px; height: auto; filter: brightness(0) invert(1); }   /* weiß wie Fassung, bis die weiße Logodatei da ist (K-ST7) */
.sg-portal-wort { font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.5px; color: #fff; }
@media (max-width: 760px) {
  .sg-portal-split { grid-template-columns: minmax(0, 1fr); }
  .sg-portal-h { min-height: 422px; padding: 24px 16px; }
  .sg-portal-t { font-size: 26px; gap: 12px; }
  .sg-portal-logo, .sg-portal-wort { bottom: 14px; }
  .sg-portal-logo img { width: 84px; }
}

/* DES-62 (Lukas 26.11.): festes Portal ohne Scrollen und ohne Fuß, am Handy zwei Hälften übereinander; beide Logos; ohne Rechtslinks, reines Portal (Lukas 26.11.) */
html:has(.sg-portal), body:has(.sg-portal) { height: 100%; overflow: hidden; }
.sg-portal { position: relative; }
.sg-portal-split { height: 100vh; height: 100svh; }
.sg-portal-h { min-height: 0; height: 100%; }
.sg-portal-logo, .sg-portal-wort { bottom: 36px; }
.sg-portal-logo img { width: 110px; }
.sg-portal-logo--waldin img { width: 170px; filter: none; }
@media (max-width: 760px) {
  .sg-portal-split { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .sg-portal-h { min-height: 0; padding: 16px; }
  .sg-portal-logo, .sg-portal-wort { bottom: 20px; }
  .sg-portal-logo img { width: 84px; }
  .sg-portal-logo--waldin img { width: 132px; }
}
.sg-portal { position: fixed; inset: 0; }
.sg-portal-split { height: 100%; }
.sg-portal .sg-portal-split { margin: 0 !important; }
