/* Die Rechberger-Gruppe unten rechts (templates/_gruppe.html).

   Schlicht und fest: kein schwebender Kasten über dem Inhalt (Felix,
   19.11.2026), sondern Name und drei Logos am Ende der Seite, rechtsbündig.
   Ist die Seite kurz, steht die Leiste trotzdem ganz unten — die Bühne
   füllt die Fensterhöhe, die Leiste schiebt sich ans Ende.

   Eigene Datei, weil sie in Cockpit, Anmeldung und Handy-Anmeldung steht —
   drei Seiten mit verschiedenen Grundstilen. */

.gruppe-leiste {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.gruppe-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b757d;
  white-space: nowrap;
}

.gruppe-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 16px;
  border-left: 1px solid rgb(0 0 0 / 0.12);
}

.gruppe-logos img {
  display: block;
  width: auto;
  height: 34px;
}

/* Die Wohnraum-Marke trägt drei Schriftzeilen und wirkt sonst kleiner. */
.gruppe-logos img:first-child { height: 37px; }

/* --- Cockpit: am Ende der Bühne -------------------------------------------- */

.buehne {
  display: flex;
  flex-direction: column;
}

.buehne > .inhalt { flex: 1 0 auto; }

.buehne > .gruppe-leiste {
  margin: 8px 0 0;
  padding: 18px 30px 22px;
  border-top: 1px solid var(--sep, rgb(0 0 0 / 0.07));
}

/* Die Logos sind für hellen Grund gemacht; im dunklen Bild bekommen sie
   eine helle Unterlage, damit Schrift und Farben lesbar bleiben. */
:root[data-design="dunkel"] .gruppe-logos img {
  padding: 3px 6px;
  border-radius: 6px;
  background: #f4f6f7;
}

/* --- Anmeldung: unten in der rechten Spalte -------------------------------- */

.anmeldung-form .gruppe-leiste {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.anmeldung-form .gruppe-logos {
  gap: clamp(14px, 2.4vw, 28px);
  padding-left: 0;
  border-left: 0;
}

.anmeldung-form .gruppe-logos img { height: clamp(32px, 3.2vw, 46px); }
.anmeldung-form .gruppe-logos img:first-child { height: clamp(35px, 3.5vw, 50px); }

/* Die Handy-Anmeldung hat keine Spalten: dort steht die Leiste am Ende. */
body > .gruppe-leiste {
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px auto 24px;
  padding: 0 16px;
}

/* --- Schmal ------------------------------------------------------------- */

@media (max-width: 900px) {
  .buehne > .gruppe-leiste { justify-content: center; padding: 18px 16px 22px; }
  .anmeldung-form .gruppe-leiste { position: static; margin: 36px auto 0; }
  .anmeldung-form .gruppe-logos img { height: 36px; }
  .anmeldung-form .gruppe-logos img:first-child { height: 40px; }
}

@media (max-width: 480px) {
  .buehne > .gruppe-leiste { flex-direction: column; gap: 10px; }
  .gruppe-logos { padding-left: 0; border-left: 0; }
}

@media print {
  .gruppe-leiste { display: none; }
}


/* --- Schriftzug der Rechberger Gruppe (templates/_schriftzug.html) ---------
   Text statt Bild: Das gelieferte Logo ist 311 px breit und wurde auf dem
   Foto der Anmeldung unscharf und blass. Nachgebaut aus seinen Teilen —
   kräftiges „RECHBERGER", darunter „GRUPPE" gesperrt in Olivgrün zwischen
   zwei Linien. Schrift lokal (Raleway, SIL OFL), nichts wird nachgeladen. */

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/Raleway-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/Raleway-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

span.schriftzug {
  display: inline-flex;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  align-self: flex-start;
  width: max-content;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 34px;
  line-height: 1;
}
.schriftzug span { padding: 0; }

/* Doppelt benannt, damit Regeln wie `.rail-marke span` (cockpit.css) den
   Schriftzug nicht verkleinern oder umfärben. */
.schriftzug .schriftzug-name {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.schriftzug .schriftzug-zeile {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 0.22em;
  font-weight: 700;
  font-size: 0.34em;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.schriftzug .schriftzug-zeile span { margin-right: -0.42em; font: inherit; color: inherit; letter-spacing: inherit; }   /* Sperrung hinter dem letzten Buchstaben */
.schriftzug-zeile i { flex: 1; height: 1.5px; background: currentColor; opacity: 0.85; }

.schriftzug-dunkel .schriftzug-name { color: #282c2f; }
.schriftzug-dunkel .schriftzug-zeile { color: #838f45; }

/* Auf dem Foto: reines Weiß, Grün aufgehellt, ein weicher Schatten trennt
   die Schrift vom unruhigen Hintergrund. */
span.schriftzug-hell { font-size: 54px; text-shadow: 0 2px 14px rgb(0 0 0 / 0.45), 0 1px 2px rgb(0 0 0 / 0.35); }
.schriftzug-hell .schriftzug-name { color: #fff; }
.schriftzug-hell .schriftzug-zeile { color: #c9d98a; }
.schriftzug-hell .schriftzug-zeile i { box-shadow: 0 1px 6px rgb(0 0 0 / 0.35); }

@media (max-width: 760px) {
  span.schriftzug-hell { font-size: 38px; }
}
