    :root {
      --bg-gradient: radial-gradient(circle at top left, #1e293b 0, #020617 45%, #020617 100%);
      --accent-cloud: #38bdf8;
      --accent-n8n:   #22c55e;
      --accent-home:  #f97316;
      --accent-pdf:   #f59e0b;
      --card-bg: rgba(15, 23, 42, 0.8);
      --card-border: rgba(148, 163, 184, 0.25);
      --muted: #94a3b8;
      --fg: #e5e7eb;
      --fg-strong: #f9fafb;
      --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
      --radius-xl: 1.5rem;
      --transition-fast: 180ms ease-out;
      --status-online: #22c55e;
      --status-degraded: #facc15;
      --status-offline: #ef4444;
    }

    @font-face {
      font-family: "Noto Sans";
      src: url("/assets/fonts/NotoSans-Regular-latin.woff2") format("woff2");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Noto Sans";
      src: url("/assets/fonts/NotoSans-Bold-latin.woff2") format("woff2");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      overflow-x: hidden;
    }

    body {
      font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-gradient);
      color: var(--fg);
      -webkit-font-smoothing: antialiased;
      display: block;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    .shell {
      width: 100%;
      min-height: 100vh;
      margin: 0;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
    }

    /* Diffuses Light Glow */
    .glow {
      position: absolute;
      inset: -20%;
      pointer-events: none;
      opacity: 0.5;
      background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18) 0, transparent 55%),
        radial-gradient(circle at 90% 0%, rgba(244, 114, 182, 0.22) 0, transparent 60%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.15) 0, transparent 55%);
      filter: blur(6px);
      z-index: 0;
    }

    .panel {
        position: relative;
        z-index: 1;
        background: linear-gradient(
                135deg,
                rgba(15, 23, 42, 0.9),
                rgba(15, 23, 42, 0.75)
        );
        border-radius: 0;
        border: 1px solid rgba(148, 163, 184, 0.35);
        box-shadow: var(--shadow-soft);
        padding: 2rem 3vw 2.25rem;
        backdrop-filter: blur(22px) saturate(140%);
        overflow: hidden;         /* NEU: Bild bleibt innerhalb der runden Ecken */
        min-height: 100vh;
    }

    .panel-content {
      width: min(96vw, 1200px);
      margin: 0 auto;
    }

    /* Bild-Hintergrund in der Panel-Box */
    .panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("/abend_ueber_chemnitz.png");
        background-size: cover;
        background-position: center;
        opacity: 0.38;
        filter: saturate(115%) contrast(1.05);
        z-index: 0;
    }

    /* optional: leichter dunkler Overlay, damit Text gut lesbar bleibt */
    .panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
                135deg,
                rgba(15, 23, 42, 0.88),
                rgba(15, 23, 42, 0.6)
        );
        z-index: 0;
    }

    /* Inhalt der Box über das Bild legen */
    .panel > * {
        position: relative;
        z-index: 1;
    }

    @media (min-width: 768px) {
      .panel {
        padding: 2.2rem 2.4rem 2.4rem;
      }
    }

    .header {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
      margin-bottom: 1.4rem;
    }

    @media (min-width: 768px) {
      .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.8rem;
      }
    }

    .header-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-image img {
        display: block;
        max-height: 52px;
        width: auto;
        border-radius: 999px;              /* macht aus dem Bild eine „Badge“-Form */
        object-fit: cover;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(148, 163, 184, 0.4);
        background: radial-gradient(circle at top, #020617, #020617);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .logo-circle {
      width: 40px;
      height: 40px;
      border-radius: 999px;
      background: conic-gradient(from 200deg, #22c55e, #38bdf8, #a855f7, #22c55e);
      padding: 1px;
      position: relative;
    }

    .logo-inner {
      width: 100%;
      height: 100%;
      border-radius: inherit;
      background: radial-gradient(circle at 30% 0, #0f172a, #020617);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #e5e7eb;
      font-weight: 600;
      font-size: 0.9rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .brand-text h1 {
      font-size: 1.3rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--fg-strong);
    }

    .brand-text p {
      font-size: 0.78rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .subtitle {
      margin-top: 0.6rem;
      font-size: 0.9rem;
      color: var(--muted);
      max-width: 30rem;
    }

    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.85rem;
      margin-top: 0.2rem;
    }

    @media (min-width: 900px) {
      .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (min-width: 1200px) {
      .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    a.card {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.45rem;
      padding: 1.15rem 1.1rem;
      border-radius: var(--radius-xl);
      background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.5), rgba(15, 23, 42, 0.95));
      border: 1px solid var(--card-border);
      text-decoration: none;
      color: inherit;
      overflow: hidden;
      transform: translateY(0);
      transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
    }

    a.card::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      background: radial-gradient(circle at top, rgba(248, 250, 252, 0.2), transparent 55%);
      transition: opacity var(--transition-fast);
    }

    a.card:hover::before {
      opacity: 1;
    }

    a.card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
      border-color: rgba(148, 163, 184, 0.6);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;
      margin-bottom: 0.35rem;
      flex-wrap: wrap;
    }

    .card-title {
      font-size: 0.78rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      padding: 0.25rem 0.85rem;
      border-radius: 999px;
      border-width: 1px;
      border-style: solid;
      background: rgba(15, 23, 42, 0.8);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      color: var(--fg-strong);
    }

    .chip-cloud {
      color: rgba(56, 189, 248, 0.95);
      border-color: rgba(56, 189, 248, 0.5);
    }

    .chip-n8n {
      color: rgba(34, 197, 94, 0.95);
      border-color: rgba(34, 197, 94, 0.5);
    }

    .chip-home {
      color: rgba(249, 115, 22, 0.95);
      border-color: rgba(251, 146, 60, 0.55);
    }

    .chip-pdf {
      color: rgba(245, 158, 11, 0.95);
      border-color: rgba(245, 158, 11, 0.55);
    }

    .card-body {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .card-footer {
      margin-top: 0.6rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.78rem;
      color: rgba(148, 163, 184, 0.9);
      gap: 0.55rem;
      flex-wrap: wrap;
    }

    .footer-meta {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .card-status {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.22rem 0.65rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.65);
      font-size: 0.72rem;
      line-height: 1.2;
      text-transform: none;
      letter-spacing: 0.04em;
      transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    }

    .card-status .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: currentColor;
      box-shadow: 0 0 12px currentColor;
    }

    .card-status[data-state="pending"] {
      color: var(--muted);
      border-color: rgba(148, 163, 184, 0.45);
      background: rgba(15, 23, 42, 0.7);
      box-shadow: none;
    }

    .card-status[data-state="online"] {
      color: var(--status-online);
      border-color: rgba(34, 197, 94, 0.45);
      background: rgba(34, 197, 94, 0.08);
      box-shadow: 0 12px 30px rgba(34, 197, 94, 0.18);
    }

    .card-status[data-state="degraded"] {
      color: var(--status-degraded);
      border-color: rgba(250, 204, 21, 0.45);
      background: rgba(250, 204, 21, 0.12);
      box-shadow: 0 12px 30px rgba(250, 204, 21, 0.18);
    }

    .card-status[data-state="offline"] {
      color: var(--status-offline);
      border-color: rgba(239, 68, 68, 0.45);
      background: rgba(239, 68, 68, 0.12);
      box-shadow: 0 12px 30px rgba(239, 68, 68, 0.22);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .pill-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
    }

    .pill-dot.cloud {
      background: var(--accent-cloud);
      box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
    }

    .pill-dot.n8n {
      background: var(--accent-n8n);
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    }

    .pill-dot.home {
      background: var(--accent-home);
      box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
    }

    .pill-dot.pdf {
      background: var(--accent-pdf);
      box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    }

    .arrow {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      opacity: 0.85;
      transition: transform var(--transition-fast), opacity var(--transition-fast);
    }

    a.card:hover .arrow {
      transform: translateX(2px);
      opacity: 1;
    }

    .footer {
      margin-top: 0.7rem;
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      color: var(--muted);
      gap: 0.5rem;
      opacity: 0.85;
    }

    .footer span {
      white-space: nowrap;
    }

    .legal-footer {
      margin-top: 0.8rem;
      display: flex;
      justify-content: center;
      gap: 0.6rem;
      font-size: 0.75rem;
      color: var(--muted);
    }

    .legal-link {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      padding-bottom: 0.15rem;
      transition: color var(--transition-fast), border-color var(--transition-fast);
    }

    .legal-link:hover {
      color: var(--fg-strong);
      border-color: rgba(245, 158, 11, 0.6);
    }

    .legal-divider {
      opacity: 0.6;
    }

    .legal-modal {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      background: rgba(2, 6, 23, 0.75);
      backdrop-filter: blur(6px);
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-fast);
      z-index: 30;
    }

    .legal-modal.is-open {
      opacity: 1;
      pointer-events: auto;
    }

    .legal-card {
      width: min(92vw, 760px);
      max-height: 85vh;
      overflow-y: auto;
      background: rgba(15, 23, 42, 0.95);
      border-radius: 1rem;
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: var(--shadow-soft);
      padding: 1.4rem 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .legal-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .legal-title {
      font-size: 0.95rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--fg-strong);
    }

    .legal-close {
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.7);
      color: var(--fg);
      border-radius: 999px;
      padding: 0.35rem 0.8rem;
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      transition: border-color var(--transition-fast), transform var(--transition-fast);
    }

    .legal-close:hover {
      transform: translateY(-1px);
      border-color: rgba(245, 158, 11, 0.6);
    }

    .legal-section {
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.6;
    }

    .legal-section[hidden] {
      display: none;
    }

    .legal-section h4 {
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--fg-strong);
      margin-top: 0.2rem;
    }

    .legal-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      padding: 0;
      margin: 0;
    }

    body.modal-open {
      overflow: hidden;
    }

    @media (max-width: 480px) {
      .brand-text h1 {
        font-size: 1.05rem;
      }
      .subtitle {
        font-size: 0.85rem;
      }
    }
