:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.14), transparent 30%),
    radial-gradient(circle at right top, rgba(32, 201, 151, 0.10), transparent 24%),
    #eef3fb;
  color: #1f2937;
}
:root {
  --app-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --title-font: "Plus Jakarta Sans", var(--app-font);
  --title-color: #326fc4;
  color-scheme: light;
  font-family: var(--app-font);
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.14), transparent 30%),
    radial-gradient(circle at right top, rgba(32, 201, 151, 0.10), transparent 24%),
    #eef3fb;
  color: #1f2937;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
  min-height: 100vh;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem;
  backdrop-filter: blur(20px);
  background: rgba(238, 243, 251, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.topbar-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.app-title {
  font-family: var(--title-font);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--title-color);
  text-wrap: balance;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.header-customer-name {
  margin-left: auto;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
}

.install-btn {
  border-radius: 999px;
  padding-inline: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #0d6efd;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.profile-button:hover,
.profile-button:focus-visible {
  transform: translateY(-1px);
  background-color: #f8fbff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.push-toggle-button {
  color: #dc3545;
}

.push-toggle-button.push-toggle-active {
  color: #198754;
}

.push-toggle-button.push-toggle-inactive {
  color: #dc3545;
}

.push-toggle-button i,
.profile-button i {
  font-size: 1.15rem;
  line-height: 1;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 12rem;
  padding: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  z-index: 60;
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu-item {
  display: block;
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  color: #0f172a;
  font-weight: 600;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: #eef4ff;
}

.profile-menu-action {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.app-main {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-card,
.section-card,
.action-card,
.shell-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.98), rgba(37, 99, 235, 0.88));
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-heading {
  margin-top: 0.9rem;
  font-family: var(--title-font);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-text {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-action-btn {
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.hero-status {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  color: #ffffff;
  font-weight: 800;
  flex: 0 0 3rem;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card small {
  color: #64748b;
}

.section-card {
  padding: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.section-title {
  font-family: var(--title-font);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--title-color);
}

.shell-card {
  overflow: hidden;
}

.card {
  border: none;
}

.card-body {
  padding: 1.25rem;
}

.card-body p {
  margin: 0;
  color: #57616e;
}

.card-body ul,
.card-body ol {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
  font-size: inherit;
  font-family: inherit;
  color: #57616e;
}

.card-body ul li,
.card-body ol li {
  font-size: inherit;
  font-family: inherit;
  color: #57616e;
}

.badge {
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card-image {
  display: block;
  width: 100%;
  max-height: 50%;
  object-fit: cover;
  border-radius: 0.85rem;
}

.status-card,
.header-status,
.d-block.d-lg-none {
  display: none;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.text-primary {
  color: #0d6efd !important;
}

.ablesung-image-thumb {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #f8fafc;
}

.ablesung-image-button {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0.85rem;
}

.image-overlay[hidden] {
  display: none;
}

.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.image-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(4px);
}

.image-overlay-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.image-overlay-preview {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.image-overlay-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

@media (max-width: 767.98px) {
  .topbar {
    align-items: flex-start;
    padding-inline: 0.85rem;
  }

  .topbar-actions {
    gap: 0.5rem;
  }

  .profile-button {
    width: 2.65rem;
    height: 2.65rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-card,
  .hero-card {
    border-radius: 24px;
  }
}

@media (min-width: 992px) {
  .app-main {
    padding-top: 1rem;
  }
}