/* Zentrale Anmeldung (digitalgemeinde.at): eigene Anordnung auf der Gestaltung der Anmeldeseite.
   Mittig und immer auf derselben Höhe, damit zwischen Anmeldung, Code, Übersicht und Sicherheit nichts springt. */
.anmeldung { align-items: start; padding-top: calc(clamp(32px, 12vh, 120px) + var(--oben, 0px)); }
.anmeldung-inhalt { max-width: 440px; margin: 0 auto; }
.portal-inhalt { width: 100%; }
.portal-inhalt h1 { font-size: clamp(24px, 5vw, 30px); line-height: 1.15; margin: 14px 0 22px; letter-spacing: -0.01em; }
.portal-inhalt h2 { font-size: 17px; margin: 26px 0 8px; color: var(--text-auf-asphalt); }
.portal-inhalt p { color: var(--text-auf-asphalt); line-height: 1.5; }
.portal-inhalt .haken { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; font-weight: 400; line-height: 1.4; }
.portal-inhalt .haken input { width: auto; margin-top: 3px; }
.portal-oder { text-align: center; color: var(--text-auf-asphalt-leise) !important; margin: 18px 0 10px; font-size: 14px; }
.portal-microsoft { width: 100%; }

/* Anwendungen: dunkle Kacheln mit gelbem Akzent */
.portal-anwendungen { display: grid; gap: 10px; margin: 0 0 18px; }
.portal-anwendung { position: relative; display: block; padding: 16px 44px 16px 18px; border-radius: 12px; text-decoration: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text-auf-asphalt);
  transition: border-color .15s, background .15s; }
.portal-anwendung b { display: block; font-size: 17px; color: var(--text-auf-asphalt); }
.portal-anwendung span { display: block; margin-top: 3px; color: var(--text-auf-asphalt-leise); font-size: 14px; }
.portal-anwendung::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px;
  color: var(--text-auf-asphalt-leise); transition: color .15s, right .15s; }
.portal-anwendung:hover, .portal-anwendung:focus-visible { border-color: var(--signal); background: rgba(255, 255, 255, 0.09); outline: none; }
.portal-anwendung:hover::after, .portal-anwendung:focus-visible::after { color: var(--signal); right: 14px; }

.portal-zeile { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.portal-zeile > * { flex: 1 1 auto; }

/* Einrichtung des zweiten Faktors */
.portal-qr { display: block; width: 200px; height: 200px; margin: 10px auto 14px; background: #fff; padding: 10px; border-radius: 10px; }
.portal-geheimnis { font-family: ui-monospace, monospace; word-break: break-all; background: rgba(255, 255, 255, 0.08);
  padding: 8px 10px; border-radius: 8px; letter-spacing: .04em; }
.portal-codes { columns: 2; font-family: ui-monospace, monospace; font-size: 16px; padding-left: 22px; color: var(--text-auf-asphalt); }
.portal-hinweis { background: rgba(255, 209, 0, .14); border-left: 4px solid var(--signal); padding: 10px 12px; border-radius: 8px; }

/* Sicherheit: angemeldete Geräte */
.portal-geraete { list-style: none; padding: 0; margin: 6px 0 10px; }
.portal-geraete li { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 10px 0; display: flex; justify-content: space-between;
  gap: 10px; align-items: center; color: var(--text-auf-asphalt); }
.portal-geraete small { display: block; color: var(--text-auf-asphalt-leise); margin-top: 2px; }
.portal-geraete .knopf-normal { flex: none; }

/* Handy: Markierung mit Abstand zum Inhalt */
@media (max-width: 560px) {
  .anmeldung { padding-left: 20px; padding-right: 36px; }
  .portal-codes { columns: 1; }
}
/* Liste der Passkeys */
.portal-liste { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .5rem; }
.portal-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 1px solid var(--linie, #d5dbdf); border-radius: 10px; }
.portal-liste li > span { flex: 1 1 14rem; }
.portal-liste li small { color: var(--text-leise, #5c656d); }

/* Aktuelle Gemeinde in der Übersicht */
.portal-gemeinde { display: flex; align-items: center; gap: .5rem; margin: -.4rem 0 1rem; color: var(--text-leise, #5c656d); }
.portal-gemeinde select { font: inherit; font-weight: 700; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--linie, #d5dbdf); background: var(--flaeche, #fff); color: var(--text, #1c1f22); }
.portal-gemeinde b { color: var(--text, #1c1f22); }
/* Gemeindeauswahl: nie breiter als der Bildschirm (am Handy lange Namen gekürzt) */
.portal-gemeinde { flex-wrap: wrap; max-width: 100%; }
.portal-gemeinde select { min-width: 0; max-width: 100%; flex: 1 1 12rem; text-overflow: ellipsis; }
@media (max-width: 600px) { .portal-gemeinde select { width: 100%; flex-basis: 100%; } }
