:root {
    --bg: #FFF6EC;
    --bg-soft: #FFEFE0;
    --surface: #FFFFFF;
    --surface-2: #FFFBF6;
    --ink: #17120D;
    --ink-soft: #5F564B;
    --ink-faint: #8C8378;
    --line: rgba(23, 18, 13, .10);
    --line-strong: rgba(23, 18, 13, .18);
    --accent: #FF7000;
    --accent-2: #FFB020;
    --gradient: linear-gradient(135deg, #FF7000 0%, #FF9A1F 55%, #FFC53D 100%);
    --shadow: 0 1px 2px rgba(23,18,13,.05), 0 12px 32px -18px rgba(23,18,13,.35);
    --shadow-hover: 0 2px 4px rgba(23,18,13,.06), 0 24px 48px -22px rgba(255,112,0,.45);
    --radius: 20px;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0C0B09;
      --bg-soft: #13100C;
      --surface: #16130F;
      --surface-2: #1C1813;
      --ink: #F8F2E9;
      --ink-soft: #B6AC9E;
      --ink-faint: #8A8175;
      --line: rgba(255, 246, 236, .10);
      --line-strong: rgba(255, 246, 236, .20);
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -20px rgba(0,0,0,.9);
      --shadow-hover: 0 2px 6px rgba(0,0,0,.5), 0 28px 56px -24px rgba(255,140,0,.35);
      color-scheme: dark;
    }
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: rgba(255,112,0,.22); }

  /* Hintergrund: weiche Farbwolken, sehr langsam bewegt */
  .aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .aurora span {
    position: absolute; display: block; border-radius: 50%;
    filter: blur(72px); opacity: .42;
    animation: float 26s ease-in-out infinite alternate;
  }
  .aurora span:nth-child(1) { width: 46vmax; height: 46vmax; top: -18vmax; left: -8vmax;
    background: radial-gradient(circle at 30% 30%, #FF8A2B, #FF7000 60%, transparent 72%); }
  .aurora span:nth-child(2) { width: 38vmax; height: 38vmax; top: 4vmax; right: -12vmax;
    background: radial-gradient(circle at 60% 40%, #FFC53D, #FFB020 55%, transparent 70%);
    animation-delay: -9s; opacity: .34; }
  .aurora span:nth-child(3) { width: 34vmax; height: 34vmax; bottom: -14vmax; left: 32%;
    background: radial-gradient(circle at 50% 50%, #FFD3A8, #FF9A1F 60%, transparent 72%);
    animation-delay: -17s; opacity: .20; }
  @media (prefers-color-scheme: dark) {
    .aurora span { opacity: .30; }
    .aurora span:nth-child(2) { opacity: .22; }
    .aurora span:nth-child(3) { opacity: .16; }
  }
  @keyframes float {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(4vmax, 5vmax, 0) scale(1.14); }
  }
  @media (prefers-reduced-motion: reduce) {
    .aurora span { animation: none; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  }

  .wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

  /* Kopfzeile */
  header.top {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease;
  }
  header.top.stuck { border-bottom-color: var(--line); }
  .top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.015em; }
  .mark {
    width: 28px; height: 28px; border-radius: 9px; background: var(--gradient);
    display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(255,112,0,.9);
  }
  .mark svg { width: 15px; height: 15px; }
  .brand small { display: block; font-weight: 450; font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0; }
  .top-actions { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
  .status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; }
  .status i { width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 3px rgba(46,158,91,.16); }

  /* Hero */
  .hero { padding: 76px 0 30px; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent);
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
  }
  h1 {
    margin: 22px 0 0; font-size: clamp(2.5rem, 6.4vw, 4.6rem);
    line-height: 1.02; letter-spacing: -.035em; font-weight: 640; max-width: 20ch;
  }
  h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .lede { margin: 20px 0 0; font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--ink-soft); max-width: 56ch; }

  /* Suche und Filter */
  .controls { margin: 34px 0 0; display: flex; flex-direction: column; gap: 14px; }
  .search {
    position: relative; display: flex; align-items: center;
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: 16px; box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .search:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow); }
  .search svg { width: 18px; height: 18px; margin-left: 16px; color: var(--ink-faint); flex: none; }
  .search input {
    flex: 1; appearance: none; background: none; border: 0; outline: 0;
    font: inherit; color: var(--ink); padding: 15px 14px;
  }
  .search input::placeholder { color: var(--ink-faint); }
  .search kbd {
    margin-right: 12px; font: inherit; font-size: 12px; color: var(--ink-faint);
    border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
    padding: 2px 7px; background: var(--surface-2);
  }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    appearance: none; cursor: pointer; font: inherit; font-size: 13.5px;
    color: var(--ink-soft); background: transparent;
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px;
    transition: all .18s ease;
  }
  .chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
  .chip[aria-pressed="true"] {
    color: #fff; border-color: transparent; background: var(--gradient); font-weight: 560;
    box-shadow: 0 8px 20px -12px rgba(255,112,0,.9);
  }

  /* Karten */
  .grid {
    margin: 30px 0 0; padding: 0; list-style: none;
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 22px 22px 20px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow); overflow: hidden; height: 100%;
    transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
  }
  .card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: var(--gradient); opacity: 0; transition: opacity .22s ease;
  }
  .card:hover, .card:focus-within {
    transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong));
    box-shadow: var(--shadow-hover);
  }
  .card:hover::before, .card:focus-within::before { opacity: 1; }
  .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .card h2 { margin: 0; font-size: 1.16rem; font-weight: 620; letter-spacing: -.02em; }
  .card h2 a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
  .tag {
    flex: none; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px;
    background: var(--surface-2); white-space: nowrap;
  }
  .card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
  .card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px;
  }
  .url { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink-faint); }
  .url b { color: var(--ink); font-weight: 560; }
  .go { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 570; }
  .go svg { width: 14px; height: 14px; transition: transform .2s ease; }
  .card:hover .go svg { transform: translate(2px, -2px); }

  /* Karten erscheinen gestaffelt, unabhängig vom Scrollen */
  @keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
  .card { animation: cardIn .5s cubic-bezier(.2,.7,.3,1) backwards; }

  .empty {
    grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: var(--ink-soft);
    border: 1px dashed var(--line-strong); border-radius: var(--radius);
  }
  .empty b { color: var(--ink); }

  /* Fuß */
  footer.foot {
    margin: 72px 0 0; padding: 28px 0 46px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
    color: var(--ink-faint); font-size: 13.5px;
  }
  footer .foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
  footer a:hover { color: var(--ink); }
  .hint { font-size: 12.5px; color: var(--ink-faint); }
  .hint code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

  @media (max-width: 560px) {
    .hero { padding: 52px 0 18px; }
    .status { display: none; }
    .grid { grid-template-columns: 1fr; }
    .top-actions { font-size: 12.5px; }
  }

/* Wechsellink Business ↔ Privat in der Kopfzeile */
.navlink {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 560; color: var(--ink-soft); background: var(--surface-2);
  transition: color .18s ease, border-color .18s ease;
}
.navlink svg { width: 13px; height: 13px; transition: transform .2s ease; }
.navlink:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.navlink:hover svg { transform: translateX(2px); }
