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

    :root {
      --accent:       #3f96c8;
      --accent-hover: #2f82b2;
      --accent-light: #e8f5f8;
      --bg:           #f5f8fb;
      --surface:      #ffffff;
      --surface-soft: #eef6f7;
      --border:       #cadbe6;
      --border-strong:#8eb4c9;
      --text:         #183b56;
      --text-muted:   #54708a;
      --teal:         #1f9a9d;
      --teal-light:   #dff5f3;
      --warn:         #B45309;
      --warn-bg:      #FFFBEB;
      --radius:       12px;
      --radius-sm:    8px;
      --shadow:       0 1px 2px rgba(15,35,58,.05), 0 12px 28px rgba(15,35,58,.06);
      --status-open:     #16a34a;
      --status-open-bg:  #dcfce7;
      --status-none:     #6b7280;
      --status-none-bg:  #f3f4f6;
      --status-wait:     #B45309;
      --status-wait-bg:  #FFFBEB;
      --verified:        #1D4ED8;
      --verified-bg:     #DBEAFE;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background: linear-gradient(180deg, #eef6f7 0, var(--bg) 280px);
      color: var(--text);
      font-size: 14px;
      line-height: 1.55;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
    }

    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      min-height: 44px;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      background: var(--surface);
      color: #12638f;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: background .15s, border-color .15s;
      white-space: nowrap;
      flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
      margin: 12px 24px 0;
    }
    .back-btn:hover { background: var(--accent-light); border-color: var(--border-strong); }


    main {
      flex: 1;
      padding: 32px 24px 48px;
      max-width: 820px;
      width: 100%;
      margin: 0 auto;
    }

    #loading, #error-msg {
      text-align: center;
      padding: 60px 24px;
      color: var(--text-muted);
      font-size: 15px;
    }
    #error-msg { color: #dc2626; }

    .spinner {
      width: 32px; height: 32px;
      border: 3px solid var(--border);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin .7s linear infinite;
      margin: 0 auto 16px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    #detail-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-top: 3px solid #59b7c6;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 28px 32px;
      display: none;
    }

    .detail-name {
      font-size: 20px;
      font-weight: 700;
      color: #12638f;
      line-height: 1.3;
      margin-bottom: 6px;
    }

    .badge-warn {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      background: var(--warn-bg);
      color: var(--warn);
      border: 1px solid #fde68a;
      border-radius: 4px;
      padding: 2px 8px;
      margin-bottom: 16px;
    }

    .section-title {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .6px;
      color: var(--text-muted);
      margin: 24px 0 10px;
      padding-bottom: 6px;
      border-bottom: 1px solid #e2edf2;
    }

    .field-grid {
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 6px 12px;
    }

    .field-label {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      padding-top: 1px;
    }

    .field-value {
      font-size: 13px;
      color: var(--text);
      word-break: break-word;
    }
    .field-value.empty { color: var(--text-muted); font-style: italic; }

    .tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
    .tag {
      font-size: 11px;
      font-weight: 600;
      border-radius: 4px;
      padding: 2px 8px;
    }
    .tag-vf { background: #dceefb; color: #155e8f; }
    .tag-gb { background: var(--teal-light); color: #0f766e; }
    .tag-vs { background: #F3F4F6; color: #374151; }

    .source-box {
      margin-top: 28px;
      padding: 14px 18px;
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-left: 4px solid #59b7c6;
      border-radius: var(--radius);
      font-size: 13px;
    }
    .source-box strong { display: block; margin-bottom: 4px; }
    .source-box a {
      color: #12638f;
      word-break: break-all;
    }
    .source-box a:hover { text-decoration: underline; }

    #site-footer {
      background: #143452;
      padding: 10px 24px;
      text-align: center;
      font-size: 12px;
      color: #7ab8d9;
      flex-shrink: 0;
    }
    #site-footer a { color: #a8c8e0; text-decoration: none; }
    #site-footer a:hover { text-decoration: underline; color: #ffffff; }

    #site-footer {
      padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    /* ── Angebots-Status ── */
    .verified-box {
      background: #eef6ff;
      border: 1px solid #c8ddf2;
      border-left: 4px solid #2f82b2;
      border-radius: var(--radius);
      padding: 14px 18px;
      font-size: 13px;
      margin-bottom: 20px;
      color: var(--verified);
    }
    .verified-box strong { display: block; margin-bottom: 4px; font-size: 13px; }

    .angebot-status-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }
    .angebot-pill-large {
      font-size: 13px;
      font-weight: 600;
      border-radius: 20px;
      padding: 5px 14px;
    }
    .angebot-open { background: var(--status-open-bg); color: var(--status-open); }
    .angebot-none { background: var(--status-none-bg); color: var(--status-none); }
    .angebot-wait { background: var(--status-wait-bg); color: var(--status-wait); }

    .angebot-termin-detail { font-size: 13px; color: var(--text-muted); }

    .angebot-attribution {
      margin-top: 10px;
      font-size: 12px;
      color: var(--text-muted);
      font-style: italic;
    }

    @media (max-width: 600px) {
      .back-btn { margin: 10px 12px 0; }
      main { padding: 16px 12px 40px; }
      #detail-card { padding: 18px 16px; }
      .field-grid { grid-template-columns: 1fr; gap: 1px; }
      .field-label { color: var(--text-muted); font-size: 11px; margin-top: 10px; text-transform: uppercase; letter-spacing: .4px; }
      .source-box { padding: 12px 14px; font-size: 12px; }
    }
