/* Hero-Seiten: Hub-Landing (Allgaeu) und Projekt-Login (Banff). */

.hero-page {
  display: flex; flex-direction: column; min-height: 100dvh;
  background: #0b0f14; color: #fff;
}
.hero { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0b0f14; }
.hero picture, .hero-img { width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; animation: hero-in 1.4s ease-out both; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .12) 32%, rgba(0, 0, 0, .34) 70%, rgba(0, 0, 0, .72) 100%);
}
@keyframes hero-in { from { transform: scale(1.04); opacity: .6; } to { transform: none; opacity: 1; } }

.hero-main {
  position: relative; z-index: 1; flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  padding: clamp(56px, 13vh, 132px) 20px 40px;
}
.hero-main-centered { justify-content: center; padding-top: 32px; gap: 24px; }
.hero-header { display: grid; gap: 10px; justify-items: center; text-align: center; animation: fade-up .7s var(--ease-sheet) both; }
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 4.75rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.04;
  color: #fff; text-shadow: 0 2px 28px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .25);
}
.hero-sub { font-size: 1.2rem; font-weight: 400; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }

/* Login-Karte */
.login-card {
  width: 100%; max-width: 380px; padding: 30px 26px 26px;
  border-radius: var(--r-l); box-shadow: var(--sh-2); color: var(--c-text); text-align: center;
  animation: fade-up .7s var(--ease-sheet) .12s both;
}
.wordmark-card {
  font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
  color: var(--c-text); text-shadow: none;
}
.login-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.015em; }
.login-hint { color: var(--c-text-2); font-size: var(--fs-callout); margin: 6px 0 20px; }
.login-form { display: grid; gap: 12px; }
.login-form .input { min-height: 48px; text-align: center; font-size: var(--fs-body); }
.login-form .form-error { margin: -2px 0 0; }
.login-form .btn { min-height: 48px; }
/* "Angemeldet bleiben": zentriert wie der Rest der Karte, Text linksbuendig
   umbrechend, Touch-Hoehe bleibt (base.css .check). */
.login-form .check {
  justify-content: center; min-height: 36px; padding: 0 2px;
  color: var(--c-text-2); font-size: var(--fs-caption); line-height: 1.3; text-align: left;
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.login-form .check input { flex: 0 0 auto; margin: 0; cursor: pointer; }
.login-form .check:hover { color: var(--c-text); }

/* Projekt-Kacheln */
.projects { width: 100%; max-width: 720px; display: grid; gap: 18px; justify-items: center; animation: fade-up .7s var(--ease-sheet) .12s both; }
.projects-title {
  font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8); text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.tiles { width: 100%; display: grid; gap: 16px; }
.tile {
  position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden;
  border-radius: var(--r-l); background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-2); color: var(--c-text); text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-fast), box-shadow var(--dur-fast) var(--ease-fast);
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, .28); text-decoration: none; }
.tile:active { transform: translateY(-1px) scale(.995); }
.tile-media img { width: 100%; height: 184px; object-fit: cover; object-position: center 45%; }
.tile-body { display: grid; gap: 6px; align-content: center; padding: 18px 64px 20px 20px; }
.tile-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.tile-tagline { color: var(--c-text-2); font-size: var(--fs-callout); line-height: 1.4; }
.tile-arrow {
  position: absolute; right: 18px; bottom: 20px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: #fff;
  font-size: 1.1rem; font-weight: 600; transition: transform var(--dur-fast) var(--ease-fast);
}
.tile:hover .tile-arrow { transform: translateX(3px); }
@media (min-width: 700px) {
  .tile { grid-template-columns: 260px 1fr; }
  .tile-media img { height: 100%; min-height: 168px; }
  .tile-body { padding: 22px 72px 22px 24px; }
  .tile-arrow { bottom: auto; top: 50%; transform: translateY(-50%); }
  .tile:hover .tile-arrow { transform: translate(3px, -50%); }
}
.logout-form { margin-top: 4px; }
.btn-on-dark {
  color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, .2); }

/* Fusszeile */
.hero-footer {
  position: relative; z-index: 1; padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  text-align: center; font-size: var(--fs-caption);
}
.hero-footer-tiny { font-size: .75rem; }
.footer-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: rgba(255, 255, 255, .72); }
.footer-links a { color: inherit; }
.footer-links a:hover { color: #fff; }

@media (max-width: 420px) {
  .hero-main { padding-top: clamp(40px, 9vh, 72px); gap: 26px; }
  .login-card { padding: 26px 20px 22px; }
}
