:root {
  --c-text: #212529;
  --c-muted: #6c757d;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  --focus: 0 0 0 3px rgba(11, 99, 182, 0.35);
}

body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  position: relative;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
}

.lead {
  color: var(--c-muted);
  font-weight: 400;
}
/* Cards / Buttons */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: currentColor;
  transition: width 0.3s ease;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.card:hover::before {
  width: 100%;
}
.card-body {
  padding: 1.5rem;
}
.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.icon-wrap {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}
.icon-main {
  font-size: 1.8rem;
}
.btn {
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.btn-primary:focus {
  box-shadow: var(--focus);
}

/* Helper */
.muted {
  color: var(--c-muted);
}
.ext-note {
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* Farbklassen */
.pneumo {
  color: #0b63b6;
}
.sleep {
  color: #6f42c1;
}

/* Akzent-Seitenleiste */

.card-side {
  position: relative;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.card-side::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 6px;
  background: currentColor;
  border-radius: 12px 0 0 12px;
}
.card-side .card-body {
  padding: 1.25rem 1.25rem 1.25rem 1rem;
}

/* Badge-Header */
.card-badge {
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding-top: 0.75rem;
  box-shadow: var(--shadow);
}
.card-badge .badge-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.04);
  margin-left: auto;
  margin-right: 0.5rem;
}
.card-badge .icon-main {
  font-size: 1.4rem;
}

/* Header-Balken */
.card-topbar {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}
.card-topbar .bar {
  height: 6px;
  background: currentColor;
}
.card-topbar .card-body {
  padding: 1.25rem;
}

/* Split-Layout */
.card-split {
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card-split .right {
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.03), transparent);
  border-left: 1px solid #f1f3f5;
  border-radius: 0 14px 14px 0;
}
.card-split .icon-main {
  font-size: 2rem;
  opacity: 0.9;
}

/* Glassmorphism */
.card-glass {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.card-glass .card-body {
  padding: 1.25rem 1.5rem;
}

/* Kompakt-Liste */
.card-line {
  border: 1px solid #e9ecef;
  border-radius: 10px;
}
.card-line .rowline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}
.card-line .rowline + .rowline {
  border-top: 1px dashed #e9ecef;
}
.card-line .pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Klickbare Karten (ganze Fläche als Link) */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.card-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.card-link .topbar {
  height: 6px;
  background: currentColor;
}
.card-link .body {
  padding: 1.25rem;
}
.card-link .title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.card-link .meta {
  color: var(--c-muted);
  margin: 0;
}
.card-link .icon {
  font-size: 1.8rem;
  opacity: 0.95;
}

.bg-sleep {
  background-image: radial-gradient(circle farthest-corner at 3.2% 49.6%, rgba(80, 12, 139, 0.87) 0%, rgba(161, 10, 144, 0.72) 83.6%);
}
.bg-pneumo {
  background: var(--bs-primary);
}

.bg-sleep {
  background: #6f42c1;
}
