/* Page layout */
html {
  height: 100%;
  overflow-x: hidden;
  background-color: #0f172a;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fff;
}

body.min-vh-100,
.min-vh-100 {
  min-height: 100% !important;
  min-height: 100svh !important;
  min-height: -webkit-fill-available !important;
}

.page-content {
  flex: 1 0 auto;
}

/* Navbar */
.site-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1e293b !important;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.site-brand:hover {
  opacity: 0.85;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d6efd 0%, #4f8cff 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.brand-text {
  color: #334155;
}

.site-navbar .navbar-toggler {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-navbar .navbar-toggler-icon {
  width: 1.35em;
  height: 1.35em;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.site-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569 !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  margin: 0.15rem 0.1rem;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.site-navbar .nav-link i {
  font-size: 1rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.08);
}

.site-navbar .nav-link:hover i,
.site-navbar .nav-link:focus i {
  opacity: 1;
}

.site-navbar .nav-link.active {
  color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.12);
  font-weight: 600;
}

.site-navbar .nav-link.active i {
  opacity: 1;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-navbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-navbar-icon:hover {
  border-color: #cbd5e1;
  background: #fff;
  color: #0d6efd;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.btn-navbar-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-navbar-auth--login {
  border: 1px solid #0d6efd;
  color: #0d6efd;
  background: transparent;
}

.btn-navbar-auth--login:hover {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
}

.btn-navbar-auth--logout {
  border: 1px solid #e2e8f0;
  color: #64748b;
  background: #f8fafc;
}

.btn-navbar-auth--logout:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
  }

  .navbar-actions {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
    justify-content: flex-start;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 55%, #0b1220 100%);
  color: #cbd5e1;
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #4f8cff, #38bdf8);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(35%, -35%);
}

.footer-main {
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-mark {
  width: 2rem;
  height: 2rem;
  font-size: 0.65rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.01em;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 28rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links a i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-links a:hover i {
  opacity: 1;
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.15);
}

.footer-bottom a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Fixed overlays and trailing scripts must not affect page height */
body > .bezahlt-modal,
body > script {
  flex: 0 0 auto;
}
