/* Portal-only visual refresh. No changes to authentication or app permissions. */
:root {
  --ink: #233f40;
  --muted: #596d6c;
  --green: #285f59;
  --line: #d9e2de;
  --paper: #f5f5f0;
}
body { background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.portal-header { background: #fffefa; padding: 22px max(5vw,24px); gap: 24px; border-bottom: 1px solid var(--line); }
:root .brand img { width: 240px; height: 80px; }
.header-mission .mission-title { color: var(--ink); font-size: clamp(19px,2vw,26px); letter-spacing: -.5px; }
.header-mission .mission-copy { color: var(--muted); }
.header-mission .mission-title span, .header-mission .mission-copy span { color: #78938b; }
.account-security { color: var(--green); line-height: 1.5; }
main { max-width: 1240px; padding: 56px 32px 72px; }
.login-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(36px,6vw,84px); min-height: 560px; }
.welcome { position: relative; isolation: isolate; padding: 20px 0; }
.welcome::before { content: ""; position: absolute; z-index: -1; inset: 10% 0 auto auto; width: min(80%,360px); aspect-ratio: 1; background: url('/assets/tl-symbol.png') center / contain no-repeat; opacity: .045; pointer-events: none; }
.welcome h1 { font-size: clamp(36px,4.2vw,56px); line-height: 1.15; letter-spacing: -1.8px; font-weight: 550; }
.intro { color: var(--muted); line-height: 1.75; }
.tags { max-width: 480px; gap: 8px; }
.tags span { background: #eaf0ea; color: #425e57; border-color: #d8e2d9; padding: 7px 13px; }
.login-card { border-radius: 24px; padding: clamp(26px,3.5vw,44px); background: #fffefa; box-shadow: 0 18px 50px #233f400a; }
.login-logo { width: 58px; height: 58px; margin-bottom: 24px; }
.login-card h2 { font-weight: 600; letter-spacing: -.7px; }
input { background: #fff; border-color: #baccc5; border-radius: 10px; }
button.primary { background: #285f59; border-radius: 10px; min-height: 50px; font-weight: 600; }
button.primary:hover { background: #1e4b47; }
.quiet { background: #fffefa; border-color: #c9d8d1; }
.section-heading { padding: 8px 0 22px; margin-bottom: 18px; align-items: center; }
.section-heading h1 { font-size: clamp(27px,3vw,36px); line-height: 1.25; letter-spacing: -.9px; font-weight: 600; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading>p { font-size: 14px; }
.apps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
/* Undo earlier saturated per-app overrides; reserve accent colour for the icon. */
.apps .app[href] { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 30px; background: #fffefa; border: 1px solid #d7e1db; border-radius: 20px; box-shadow: 0 4px 18px #233f4005; gap: 0; }
.apps .app[href]:hover { border-color: #91afa3; box-shadow: 0 12px 28px #233f400d; outline: none; transform: translateY(-2px); }
.apps .app .card-top { display: flex; justify-content: space-between; align-items: center; align-self: stretch; margin: 0 0 23px; }
.apps .app .arrow { display: block; font-size: 21px; color: #648078 !important; }
.apps .app .app-icon { width: 50px; height: 50px; border-radius: 14px; background: #e8efea !important; color: #355d50 !important; font-size: 24px; }
.apps .app[href*="app=anmeldung"] .app-icon,
.apps .app[href*="app=bibelschueler"] .app-icon { background: #e6eeef !important; color: #345d68 !important; }
.apps .app[href*="app=newsletter"] .app-icon,
.apps .app[href*="app=gastsprecher"] .app-icon { background: #f1ece2 !important; color: #766143 !important; }
.apps .app>.eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: 1.3px; margin: 0 0 8px; color: #526e64 !important; }
.apps .app>h2 { font-size: clamp(23px,2.3vw,28px); font-weight: 600; line-height: 1.3; letter-spacing: -.55px; margin: 0 0 12px; color: #233f40 !important; }
.apps .app>p:not(.eyebrow) { font-size: 14px; line-height: 1.7; margin: 0 0 24px; color: #596d6c !important; max-width: none; }
.apps .app>.open { margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid #e4eae5; font-size: 13px; line-height: 1.5; color: #285f59 !important; }
.apps .app>h2, .apps .app>p, .apps .app>.open { min-width: 0; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.notice { background: #eaf0ea; border-left: 3px solid #8ca99b; border-radius: 0 14px 14px 0; padding: 20px 24px; color: #49615a; line-height: 1.75; }
.notice p+p { margin-top: 10px; }
.admin-entry { background: #fffefa; border-color: #d7e1db; padding: 24px 28px; line-height: 1.7; }
footer { background: transparent; border-color: var(--line); }
a:focus-visible, button:focus-visible, input:focus-visible, .apps .app:focus-visible { outline: 3px solid #285f59; outline-offset: 5px; }
@media(max-width:1000px) {
  .portal-header { flex-wrap: wrap; }
  .header-mission { order: 3; flex-basis: 100%; }
}
@media(max-width:760px) {
  .portal-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 18px; }
  .portal-header .brand { grid-column: 1 / -1; }
  .portal-header .account-security { grid-column: 1; }
  .portal-header form { grid-column: 2; margin: 0; }
  .portal-header .header-mission { grid-column: 1 / -1; order: 3; margin-top: 4px; }
  main { padding: 32px 24px 48px; }
  .login-grid { grid-template-columns: minmax(0,1fr); gap: 28px; min-height: 0; }
  .welcome h1 br { display: none; }
  .welcome { padding: 0; }
  .welcome h1 { max-width: 570px; }
  .apps { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .section-heading { display: block; padding-bottom: 12px; }
  .section-heading>p { margin-top: 12px; }
}
@media(max-width:480px) {
  .portal-header { padding: 18px 20px; gap: 12px; }
  :root .brand img { width: 185px; height: 64px; }
  .portal-header .account-security { font-size: 12px; max-width: 100%; }
  .portal-header form { margin-left: 0; }
  .header-mission .mission-title { font-size: 21px; }
  .header-mission p { overflow-wrap: anywhere; }
  main { padding: 28px 18px 42px; }
  .welcome h1 { font-size: 36px; letter-spacing: -1.3px; }
  .login-card { padding: 26px 24px; border-radius: 20px; }
  .apps .app[href] { padding: 26px; border-radius: 18px; }
  .apps .app>h2 { font-size: 24px; }
  .notice { padding: 18px 20px; }
  .admin-entry { padding: 22px; }
}
@media(prefers-reduced-motion:reduce) {
  .apps .app[href] { transition: none; }
  .apps .app[href]:hover { transform: none; }
}

/* Stronger light/dark hierarchy in one petrol/sage colour family. */
body { background: #dfe8e2; }
.portal-header { background: #edf2ed; border-bottom-color: #bdcec3; }
.welcome { background: #234c48; color: #f6f8f2; padding: clamp(28px,4vw,46px); border-radius: 24px; }
.welcome .eyebrow { color: #c2d9c9; }
.welcome .intro { color: #e0ebe3; }
.welcome h1 { font-size: clamp(34px,3.6vw,48px); letter-spacing: -1.5px; }
.welcome::before { top: auto; bottom: 22px; right: 15px; width: 82%; filter: brightness(0) invert(1); opacity: .055; }
.welcome .tags span { background: #365e55; border-color: #628273; color: #f0f5ed; }
.login-card { background: #f1f4ed; border-color: #b6cbbd; }
.section-heading { background: #234c48; color: #f6f8f2; padding: 30px 32px; border-radius: 20px; margin-bottom: 26px; }
.section-heading .eyebrow { color: #c2d9c9; }
.section-heading>p { color: #e0ebe3; }
.apps .app[href] { background: #c9dbd0; border-color: #a9c2b2; box-shadow: 0 5px 18px #234c4808; }
.apps .app[href]:nth-child(even) { background: #e7eee5; border-color: #b9cbbc; }
.apps .app[href] .app-icon { background: #28564d !important; color: #f4f7ed !important; }
.apps .app[href]:hover { background: #bfd4c7; border-color: #668f7b; }
.apps .app>.open { border-top-color: #9bb7a6; }
.notice { background: #c5d7ca; border-left-color: #527b65; color: #304f42; }
.admin-entry { background: #28564d; color: #f4f7ed; border-color: #28564d; }
.admin-entry:hover { background: #1f453e; border-color: #1f453e; }
footer { background: #d2dfd5; border-color: #b5c9ba; color: #3e5d4c; }
@media(max-width:760px) {
  .welcome { padding: 30px; }
  .section-heading { padding: 26px; }
}
@media(max-width:480px) {
  .welcome { padding: 26px 24px; border-radius: 20px; }
  .welcome h1 { font-size: 34px; }
  .section-heading { padding: 25px 24px; }
}
