/* MedEngel website ⇄ app (app.medengel.de): registration, login and portal blocks.
   Built on the tokens of site.css; loaded after site.css and footer.css. */
:root { --ab-green: #1F6B52; --ab-dark: #14231F; --ab-ivory: #F6F4EE; --ab-amber: #E8A33D; --ab-line: rgba(20,35,31,.12); }

/* "Konto" button in the header turns into "Mein Konto" when the app cookie hint is present */
.header-actions .btn-account { gap: 8px; }
.header-actions .btn-account svg { width: 18px; height: 18px; }

/* Join block: replaces the old short application form */
.app-join { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; background: var(--ab-dark); color: #F6F4EE; border-radius: 28px; padding: 56px; position: relative; overflow: hidden; }
.app-join::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(243,199,122,.22); pointer-events: none; }
.app-join .eyebrow { color: #F3C77A; }
.app-join .h2 { color: #fff; margin: 10px 0 14px; }
.app-join .h2 em { color: #F3C77A; }
.app-join .lead { color: #cfdcd6; }
.app-steps { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; counter-reset: as; }
.app-steps li { counter-increment: as; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.app-steps li::before { content: counter(as); width: 40px; height: 40px; border-radius: 50%; background: rgba(243,199,122,.14); color: #F3C77A; font-weight: 700; display: grid; place-items: center; font-size: 17px; }
.app-steps b { display: block; color: #fff; font-size: 17px; }
.app-steps span { color: #b9c9c2; font-size: 15px; }
.app-join .btn-row { gap: 12px; flex-wrap: wrap; }
.btn-ghost-light { border: 1.5px solid rgba(246,244,238,.4); color: #F6F4EE; background: transparent; }
.btn-ghost-light:hover { border-color: #F6F4EE; }
.app-join .small-links { margin-top: 18px; font-size: 15px; color: #b9c9c2; }
.app-join .small-links a { color: #F3C77A; }

/* Phone with a real app screenshot */
.app-phone { position: relative; justify-self: center; width: min(300px, 100%); }
.app-phone .frame { border-radius: 42px; padding: 10px; background: #0b1512; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.06); }
.app-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.app-phone .tag { position: absolute; left: -26px; bottom: 54px; background: #F6F4EE; color: var(--ab-dark); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; gap: 8px; align-items: center; }
.app-phone .tag i { width: 10px; height: 10px; border-radius: 50%; background: #2fb37a; display: inline-block; }

/* Facilities: account card next to the quick form */
.acct-card { background: var(--ab-dark); color: #F6F4EE; border-radius: 24px; padding: 36px; }
.acct-card .eyebrow { color: #F3C77A; }
.acct-card .h2 { color: #fff; margin: 8px 0 12px; }
.acct-card p { color: #cfdcd6; }
.acct-list { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.acct-list li { display: flex; gap: 10px; align-items: flex-start; color: #e6ede9; }
.acct-list svg { width: 20px; height: 20px; flex: none; color: #F3C77A; margin-top: 3px; }
.acct-card .note { font-size: 14px; color: #9fb5ab; margin-top: 16px; }
.acct-card .note a { color: #F3C77A; }
.form-head { grid-column: 1 / -1; margin-bottom: 4px; }
.form-head h3 { margin: 0 0 4px; font-size: 20px; }
.form-head p { margin: 0; color: #5b6b66; font-size: 15px; }

/* Portal gateway (Mitarbeiterportal) */
.portal-app { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-app a { background: #fff; border: 1px solid var(--ab-line); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; color: var(--ab-dark); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.portal-app a:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,35,31,.08); border-color: rgba(31,107,82,.4); }
.portal-app .ic { width: 44px; height: 44px; border-radius: 12px; background: #EAF3EE; color: var(--ab-green); display: grid; place-items: center; flex: none; }
.portal-app .ic svg { width: 22px; height: 22px; }
.portal-app b { display: block; font-size: 16px; }
.portal-app span span { color: #5b6b66; font-size: 14px; }
.portal-login { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Homepage band: one app for everything */
.app-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.app-band .feat { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.app-band .feat li { display: flex; gap: 10px; align-items: flex-start; }
.app-band .feat svg { width: 22px; height: 22px; color: var(--ab-green); flex: none; margin-top: 2px; }
.app-band .phones { display: flex; justify-content: center; gap: 18px; }
.app-band .phones .app-phone { width: 46%; }
.app-band .phones .app-phone:nth-child(2) { margin-top: 48px; }

@media (max-width: 900px) {
  .app-join { grid-template-columns: 1fr; padding: 36px 24px; gap: 36px; border-radius: 22px; }
  .app-phone .tag { left: 8px; }
  .app-join .app-phone { width: 250px; }
  .app-join .btn-row .btn { width: 100%; justify-content: center; }
  .app-band { grid-template-columns: 1fr; }
  .portal-app { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .portal-app { grid-template-columns: 1fr; }
  .app-band .feat { grid-template-columns: 1fr; }
  .acct-card { padding: 26px 22px; }
}
.form-wrap > .acct-card { position: sticky; top: 110px; align-self: start; }
