/* Vorschau-Hülle für die drei Startseiten-Entwürfe.
   Bewusst neutral gehalten (Graustufen), damit die Leiste nicht mit den
   Entwürfen konkurriert und erkennbar nicht zum Entwurf gehört. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #202225;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Leiste ---------- */

.leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
  padding: 0 20px;
  background: #202225;
  color: #E8E9EA;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.leiste__titel {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.leiste__firma {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.leiste__zusatz {
  font-size: 12px;
  color: #9A9DA1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schalter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, .07);
  border-radius: 8px;
}

.schalter a {
  display: block;
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #C9CBCE;
  text-decoration: none;
  white-space: nowrap;
}

.schalter a:hover { background: rgba(255, 255, 255, .09); color: #fff; }

.schalter a[aria-current="page"] {
  background: #F2600C;
  color: #fff;
}

.schalter a.schalter__haupt { color: #fff; }
.schalter a.schalter__haupt[aria-current="page"] { color: #fff; }

.leiste__aktion {
  font-size: 13px;
  font-weight: 600;
  color: #9A9DA1;
  text-decoration: none;
  white-space: nowrap;
}

.leiste__aktion:hover { color: #fff; }

/* ---------- Bühne ---------- */

.buehne {
  position: relative;
  height: calc(100% - 56px);
  overflow: hidden;
  background: #2A2C2F;
}

.buehne iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Auf schmalen Bildschirmen den Entwurf in voller Desktop-Breite rendern und
   herunterskalieren. Die Entwürfe sind reine Desktop-Layouts ohne
   Media Queries — ohne das hier zerfallen sie auf dem Handy.
   Den genauen Faktor setzt vorschau.js; die Werte hier sind der Rückfall,
   falls kein JavaScript läuft. */
@media (max-width: 1200px) {
  .buehne:not([data-skalieren="nein"]) { overflow: auto; -webkit-overflow-scrolling: touch; }

  .buehne:not([data-skalieren="nein"]) iframe {
    width: 1440px;
    height: 3000px;
    transform: scale(.5);
    transform-origin: 0 0;
  }
}

.buehne[data-skaliert="ja"] iframe {
  width: 1440px;
  transform-origin: 0 0;
}

/* ---------- Hinweisstreifen ---------- */

.hinweis {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(32, 34, 37, .94);
  color: #D7D9DB;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

/* Blendet sich nach ein paar Sekunden selbst aus, damit er den Entwurf
   nicht dauerhaft verdeckt. */
@media (max-width: 1200px) {
  .buehne[data-skalieren="nein"] ~ .hinweis { display: none; }
  .hinweis {
    display: block;
    animation: hinweis-weg .4s ease-in 6s forwards;
  }
}

@keyframes hinweis-weg {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .hinweis { animation-duration: .01s; }
}

/* ---------- Leiste auf kleinen Bildschirmen ---------- */

@media (max-width: 720px) {
  .leiste { height: auto; padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .leiste__zusatz, .leiste__aktion { display: none; }
  /* Alle Entwuerfe muessen erreichbar bleiben - lieber umbrechen als abschneiden. */
  .schalter { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; }
  .schalter a { flex: 1 1 auto; text-align: center; padding: 9px 12px; font-size: 12.5px; }
  .buehne { height: calc(100% - 96px); }
}
