  :root {
    --pink: #ff3d78;
    --pink-deep: #d81f5c;
    --teal: #00c2b4;
    --yellow: #ffd23f;
    --jungle: #0b6e4f;
    --ink: #14151a;
    --paper: #ffffff;
    --snow: #f5f4f0;
    --muted: #8a8f98;
    --line: #e6e4dd;
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; height: 100vh; height: 100dvh; background: var(--snow); color: var(--ink);
    font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
    overflow: hidden;
  }
  h1, h2, h3 { font-family: 'Baloo 2', -apple-system, sans-serif; font-weight: 700; margin: 0; }

  .shell { max-width: 460px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; background: var(--snow); }

  .header {
    background: linear-gradient(120deg, var(--pink), var(--pink-deep) 60%, var(--jungle));
    color: var(--paper);
    padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-start;
    flex-shrink: 0;
  }
  .header h1 { font-size: 22px; letter-spacing: 0.3px; }
  .header p { margin: 2px 0 0; font-size: 12px; color: #ffe4ee; }
  .header button {
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.4); color: var(--paper);
    padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; font-family: 'Inter', sans-serif;
  }
  .header button:hover { background: rgba(255,255,255,0.3); }

  /* -- Querformat: Header wird zur schmalen Seitenleiste statt Kopfzeile -- */
  @media (orientation: landscape) {
    .shell {
      flex-direction: row; max-width: 900px; margin: 0 auto;
      /* Footer-Navigation liegt in .content und sitzt damit automatisch
         unter dem Inhaltsbereich rechts der Seitenleiste. */
    }

    .header {
      --sidebar-w: 168px;
      width: var(--sidebar-w); flex-shrink: 0; height: 100%;
      flex-direction: column; align-items: flex-start; justify-content: flex-start;
      gap: 16px; overflow-y: auto; padding: 16px 14px;
    }
    .header h1 { font-size: 18px; }
    .header p { font-size: 10px; line-height: 1.4; }
    .header button { width: 100%; }
  }

  .content { flex: 1; overflow: hidden; display: flex; flex-direction: column; position: relative; }

  .msg {
    font-size: 13px; padding: 10px 12px; border-radius: 8px; margin: 12px 16px 0;
    border-left: 3px solid transparent; flex-shrink: 0;
  }
  .msg.error { background: #ffe3ea; color: var(--pink-deep); border-color: var(--pink-deep); }
  .msg.ok { background: #e2f7f0; color: var(--jungle); border-color: var(--jungle); }

  .auth-scroll { flex: 1; overflow-y: auto; padding: 20px; }

  .auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
  .auth-tab {
    flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
    padding: 10px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted);
    font-family: inherit;
  }
  .auth-tab.active { background: var(--pink); color: #fff; border-color: var(--pink); }

  .nav-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
    cursor: pointer;
  }
  .nav-card:hover { border-color: var(--pink); }
  .nav-card-emoji { font-size: 28px; flex-shrink: 0; }
  .nav-card-title { font-weight: 700; font-size: 15px; }
  .nav-card-sub { font-size: 12px; color: var(--muted); }

  .badge {
    position: absolute; top: 10px; right: 14px; background: var(--pink); color: #fff;
    border-radius: 50%; min-width: 20px; height: 20px; padding: 0 5px;
    font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px var(--paper);
  }

  .panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
    padding: 18px; margin-bottom: 18px;
  }
  .panel h3 { font-size: 17px; margin-bottom: 12px; }
  .panel-note { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }

  label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  input, textarea, select {
    width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
    font-size: 14px; margin-bottom: 12px; background: var(--snow); color: var(--ink);
    font-family: inherit;
  }
  input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

  .code-input-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
  .code-input-row input { width: auto; flex: 1; margin-bottom: 0; }
  .code-paste-btn {
    flex-shrink: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
    color: var(--ink); font-size: 13px; padding: 9px 12px; cursor: pointer; white-space: nowrap;
    font-family: inherit;
  }
  .code-paste-btn:hover { background: var(--snow); }

  .btn {
    display: inline-block; border: none; border-radius: 24px; padding: 10px 18px;
    font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
    margin-right: 8px; margin-bottom: 4px;
  }
  .btn-primary { background: var(--pink); color: var(--paper); }
  .btn-primary:hover { background: var(--pink-deep); }
  .btn-quiet { background: transparent; color: var(--pink-deep); border: 1px solid var(--line); }
  .btn-quiet:hover { border-color: var(--pink); }

  .totp-box {
    font-family: 'Inter', monospace; font-size: 14px; letter-spacing: 0.5px;
    background: var(--snow); border: 1px dashed var(--line); padding: 10px 12px;
    border-radius: 6px; word-break: break-all; margin-bottom: 4px;
  }
  .qr-wrap {
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    padding: 14px; display: flex; justify-content: center; margin-bottom: 10px;
  }

  .hidden { display: none !important; }

  /* -- Vollbild-Feed -- */
  #mainView { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }

  .admin-delete-btn {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.35);
    font-size: 16px; cursor: pointer;
  }

  .refresh-fab {
    position: absolute; top: 12px; left: 12px; z-index: 55;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.35);
    color: #fff; font-size: 18px; cursor: pointer;
  }

  .queue-banner {
    background: #fff6df; border-bottom: 1px solid var(--yellow); color: #7a5c14;
    font-size: 13px; padding: 10px 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .queue-banner button { font-size: 12px; padding: 6px 12px; margin: 0; }

  #feed {
    flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; scroll-behavior: smooth;
    background: var(--ink);
  }
  .feed-empty, .feed-loading {
    color: var(--muted); font-size: 14px; padding: 40px 20px; text-align: center; background: var(--snow);
  }

  .photo-screen {
    position: relative; height: 100%; width: 100%; scroll-snap-align: start;
    overflow: hidden; background: #000;
  }
  .photo-backdrop {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: blur(35px) brightness(0.55) saturate(1.15);
    transform: scale(1.15); /* verdeckt die durch den Weichzeichner leicht ausgefransten Ränder */
  }
  .photo-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

  /* Admin-Menü: ein Button oben auf der Startseite, Menü klappt von unten auf */
  .admin-menu-btn { display: block; width: 100%; margin: 16px 0 16px; }
  .admin-sheet-overlay {
    position: fixed; inset: 0; z-index: 150; background: rgba(20,21,26,0.55);
    display: flex; align-items: flex-end; justify-content: center;
  }
  .admin-sheet {
    background: var(--paper); width: 100%; max-width: 520px;
    border-radius: 18px 18px 0 0; padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
    max-height: 85vh; overflow-y: auto; animation: adminSheetIn .2s ease-out;
  }
  @keyframes adminSheetIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .admin-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 16px;
  }
  .admin-sheet-close {
    width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--snow);
    font-size: 16px; cursor: pointer; color: var(--ink);
  }
  .admin-item {
    display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
    padding: 14px 10px; border: none; background: none; border-radius: 10px;
    font: inherit; font-size: 16px; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer;
  }
  .admin-item:hover, .admin-item:active { background: var(--snow); }
  .admin-item.hidden { display: none; }
  .admin-item-danger { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--pink-deep); }

  /* Link-Button in Startseiten-Texten: [[Text]](https://…) */
  a.landing-btn, .landing-body a.landing-btn {
    display: inline-block; margin: 4px 0; text-decoration: none; color: #fff;
    text-align: center; max-width: 100%; box-sizing: border-box;
  }

  /* Startseiten-Editor: Abfrage-Optionen */
  .landing-pref-edit { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
  .landing-opt-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
  .landing-opt-row input { flex: 1; margin: 0; }
  .landing-opt-row button { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; font-size: 14px; }
  .landing-opt-row button:disabled { opacity: .35; cursor: default; }
  .landing-opt-add { margin: 2px 0 12px; }
  .landing-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
  .landing-check input { width: auto; margin: 0; }

  /* Angepinntes Startbild ganz oben im Feed (gleicher Hintergrund wie der Splash) */
  .pinned-screen {
    background: linear-gradient(180deg, #f2f9fd 0%, #d9eef9 55%, #bfe0f2 100%);
  }
  .pinned-screen .photo-full { padding: 8% 6% 22%; box-sizing: border-box; }
  .pinned-caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
    text-align: center; color: var(--ink);
  }
  .pinned-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; }
  .pinned-hint  { font-size: 14px; color: #44505c; }

  .action-bar {
    position: absolute; right: 12px; bottom: 130px; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
  }
  .action-btn { background: none; border: none; cursor: pointer; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .action-emoji { font-size: 30px; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45)); transition: transform 0.15s; }
  .action-btn:active .action-emoji { transform: scale(1.25); }
  .action-count { color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
  .heart-active .action-emoji { color: var(--pink); }

  .bottom-panel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 18px 68px 18px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.35) 60%, transparent);
  }
  .comment-list-inline {
    max-height: 30vh; min-height: 40px; overflow-y: auto; margin-bottom: 10px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.5) transparent;
  }
  .comment-list-inline::-webkit-scrollbar { width: 5px; }
  .comment-list-inline::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.5); border-radius: 3px; }
  .comment-list-inline::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }
  .comment-item-inline {
    font-size: 13px; margin-bottom: 7px; line-height: 1.4; color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); display: flex; align-items: flex-start; gap: 6px;
  }
  .cmt-avatar {
    width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; margin-top: 1px; background: rgba(255,255,255,0.2);
  }
  .comment-item-inline .who { color: var(--yellow); font-weight: 700; margin-right: 4px; }
  .comment-empty-inline { font-size: 12px; color: #ffffffcc; margin-bottom: 10px; }
  .cmt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .cmt-reactions { display: flex; gap: 5px; }
  .cmt-react {
    display: inline-flex; align-items: center; gap: 2px;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px; padding: 1px 7px; font-size: 11px; line-height: 1.6;
    color: #fff; cursor: pointer; text-shadow: none;
  }
  .cmt-react.is-zero { opacity: 0.55; }
  .cmt-react.is-mine {
    opacity: 1; background: var(--pink); border-color: var(--pink);
  }
  .cmt-react-count { font-weight: 700; min-width: 0; }
  .cmt-react:disabled { cursor: wait; }

  /* Emoji-Schnellleiste im Kommentar-Dialog */
  .emoji-quick-bar {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 4px;
  }
  .emoji-quick {
    font-size: 22px; line-height: 1; padding: 6px 0; border-radius: 10px;
    background: var(--snow, #f4f4f4); border: 1px solid var(--line, #ddd); cursor: pointer;
  }
  .emoji-quick:active { transform: scale(0.9); }

  .avatar-preview {
    width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
    display: block; margin: 0 auto;
  }
  .inline-comment-form { display: flex; gap: 8px; }
  .inline-comment-form input {
    margin-bottom: 0; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
  }
  .inline-comment-form input::placeholder { color: rgba(255,255,255,0.75); }
  .btn-send {
    background: var(--pink); color: #fff; border: none; border-radius: 50%;
    width: 38px; height: 38px; flex-shrink: 0; font-size: 15px; cursor: pointer;
  }

  /* -- Footer-Navigation: Zurück/Links · Auslöser (Mitte) · Rechts -- */
  .bottom-nav {
    flex-shrink: 0; position: relative; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    padding: 6px 14px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  }
  .bottom-nav.on-dark { background: var(--ink); border-top-color: rgba(255,255,255,0.08); box-shadow: none; }
  .nav-side { display: flex; align-items: center; gap: 4px; min-width: 0; }
  .nav-left { justify-content: flex-start; }
  .nav-right { justify-content: flex-end; }

  .nav-btn {
    position: relative; background: none; border: none; cursor: pointer; color: var(--ink);
    font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 6px; border-radius: 12px; min-width: 54px;
  }
  .nav-btn:hover { background: var(--snow); }
  .nav-ico { font-size: 21px; line-height: 1; }
  .nav-lbl { font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .nav-btn .badge {
    top: -2px; right: 4px; background: var(--pink); border: none;
    font-size: 10px; min-width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--paper);
  }

  /* Schlanker Zurück-Pfeil */
  .nav-back { width: 44px; height: 44px; min-width: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .nav-back svg {
    width: 26px; height: 26px; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  /* Home-Button: Superbude-Haus als Maske, übernimmt die Textfarbe
     (weiß auf der dunklen Foto-Leiste, dunkel auf den hellen Seiten) */
  .home-house {
    width: 27px; height: 27px; display: block; background-color: currentColor;
    -webkit-mask: url(/home-house.png) center / contain no-repeat;
    mask: url(/home-house.png) center / contain no-repeat;
  }
  .on-dark .nav-btn { color: var(--paper); }
  .on-dark .nav-btn:hover { background: rgba(255,255,255,0.1); }

  /* Roter Auslöser, ragt leicht über die Leiste hinaus */
  .shutter-btn {
    width: 64px; height: 64px; border-radius: 50%; margin-top: -24px;
    background: var(--pink); border: 4px solid var(--paper);
    box-shadow: 0 3px 12px rgba(0,0,0,0.3); cursor: pointer;
  }
  .shutter-btn:hover { background: var(--pink-deep); }
  .on-dark .shutter-btn { border-color: var(--paper); }

  /* Kommentar-Stift: kleiner, rechts */
  .comment-fab {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--paper); color: var(--pink-deep); border: 3px solid var(--pink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); cursor: pointer;
    font-size: 17px; display: flex; align-items: center; justify-content: center; padding: 0;
  }
  .comment-fab:hover { background: var(--snow); }

  /* -- Fokus-Modus: Foto tippen -> alle Einblendungen weg -- */
  .focus-close {
    position: fixed; top: 14px; right: 14px; z-index: 200;
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; color: #111; border: none; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  }
  body.focus-mode .header,
  body.focus-mode .refresh-fab,
  body.focus-mode #queueBanner,
  body.focus-mode #msgBox,
  body.focus-mode .action-bar,
  body.focus-mode .bottom-panel,
  body.focus-mode .bottom-nav { display: none !important; }
  .photo-full { cursor: pointer; }

  .capture-overlay {
    position: fixed; inset: 0; background: rgba(20,21,26,0.88);
    display: flex; align-items: center; justify-content: center; z-index: 100;
    padding: 20px;
  }
  .capture-card {
    background: var(--paper); border-radius: 16px; padding: 18px;
    max-width: 380px; width: 100%;
  }
  .capture-card img {
    width: 100%; max-height: 320px; object-fit: contain; background: var(--snow);
    border-radius: 10px; margin-bottom: 14px;
  }
  .capture-actions { display: flex; justify-content: flex-end; gap: 8px; }

  .camera-view {
    position: fixed; inset: 0; background: #000; z-index: 300;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .camera-view video, .camera-view canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  }
  .camera-view video { visibility: hidden; }
  .camera-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; z-index: 2; text-align: center; padding: 0 30px;
  }
  .mask-picker {
    position: absolute; bottom: 110px; left: 0; right: 0; z-index: 3;
    display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; justify-content: flex-start;
  }
  .mask-btn {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.4);
    font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .mask-btn.active { border-color: var(--pink); background: rgba(255,255,255,0.3); }
  .camera-capture-btn {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 66px; height: 66px; border-radius: 50%; background: var(--pink);
    border: 4px solid #fff; cursor: pointer;
  }
  .camera-gallery-btn {
    position: absolute; bottom: 31px; left: calc(50% - 112px); z-index: 3;
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(0,0,0,0.45); border: 2px solid rgba(255,255,255,0.75); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    cursor: pointer; padding: 0; font-family: inherit;
  }
  .camera-gallery-btn svg {
    width: 22px; height: 22px; fill: none; stroke: currentColor;
    stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  }
  .camera-gallery-btn span { font-size: 9px; font-weight: 700; letter-spacing: .2px; }
  .camera-gallery-btn:active { transform: scale(0.94); }
  .camera-switch-btn {
    position: absolute; top: 16px; left: 16px; z-index: 3;
    width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 16px; cursor: pointer;
  }

  /* -- Querformat: Masken-Leiste wird zur seitlichen Spalte, Auslöser
     wandert an den Rand statt die Spalte zu verdecken -- */
  @media (orientation: landscape) {
    .mask-picker {
      top: 64px; bottom: 64px; left: 14px; right: auto; width: 60px;
      flex-direction: column; overflow-x: hidden; overflow-y: auto;
      justify-content: flex-start; padding: 4px 0;
    }
    .camera-capture-btn {
      left: auto; right: 28px; bottom: 50%; transform: translateY(50%);
    }
    .camera-gallery-btn { left: auto; right: 35px; bottom: calc(50% - 112px); }
  }

  /* -- Startseite: gerenderte Blöcke + In-App-Editor (Admin) -- */
  .landing-body p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
  .landing-body p:last-child { margin-bottom: 12px; }
  .landing-body a { color: var(--pink-deep); }
  .md-muted { color: var(--muted); }
  .landing-note { margin: 4px 0 0; }

  .landing-editing { padding-bottom: 110px; }
  .landing-edit-block { border: 2px dashed var(--line); transition: border-color .2s, opacity .2s; }
  .landing-edit-block:focus-within { border-color: var(--teal); border-style: solid; }
  .landing-edit-block.is-hidden { opacity: .55; }
  .landing-edit-block.is-hidden:focus-within { opacity: 1; }
  .landing-edit-block textarea { resize: vertical; min-height: 70px; line-height: 1.5; font-family: inherit; }
  .landing-flash { animation: landingFlash 1s ease-out; }
  @keyframes landingFlash { from { box-shadow: 0 0 0 4px var(--yellow); } to { box-shadow: 0 0 0 0 transparent; } }

  .landing-edit-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: -4px 0 12px;
  }
  .landing-type-chip {
    font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
    background: var(--snow); color: var(--jungle); border-radius: 12px; padding: 4px 10px;
  }
  .landing-edit-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .landing-edit-actions button {
    width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--paper); font-size: 15px; cursor: pointer; padding: 0;
  }
  .landing-edit-actions button:hover:not(:disabled) { border-color: var(--pink); }
  .landing-edit-actions button:disabled { opacity: .3; cursor: default; }

  .landing-help { margin: 4px 0 0; line-height: 1.6; }
  .landing-help code { background: var(--snow); border-radius: 4px; padding: 1px 5px; font-size: 11px; color: var(--ink); }

  .landing-preview-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    color: var(--muted); margin: 6px 0 6px;
  }
  .landing-preview {
    background: var(--snow); border-radius: 10px; padding: 14px; pointer-events: none;
  }
  .landing-preview h3 { font-size: 17px; margin-bottom: 10px; }
  .landing-preview input, .landing-preview select { background: var(--paper); }

  .landing-add-row { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 16px; }
  .landing-add-row .btn { margin: 0; width: 100%; }

  .landing-editor-bar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
    width: 100%; max-width: 460px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ink); color: var(--paper);
    box-shadow: 0 -6px 24px rgba(0,0,0,.18); border-radius: 16px 16px 0 0;
  }
  .landing-editor-bar .btn { margin: 0; padding: 9px 14px; font-size: 13px; }
  .landing-editor-bar .btn-quiet { color: var(--paper); border-color: rgba(255,255,255,.3); }
  .landing-editor-status { flex: 1 1 100%; font-size: 12px; color: var(--yellow); }
  .landing-editor-bar .btn-primary { flex: 1; }
  @media (orientation: landscape) {
    .landing-editor-bar { left: calc(168px + (100vw - 168px) / 2); max-width: 560px; }
  }

  /* -- Teilen (1.16.0) -- */
  .nav-ico-svg {
    width: 21px; height: 21px; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .share-card { text-align: center; }
  .share-qr { display: flex; justify-content: center; margin: 4px 0 12px; min-height: 220px; }
  .share-card .share-qr img, .share-card .share-qr canvas {
    width: 220px; height: 220px; max-height: none; margin: 0;
    background: #fff; border: 10px solid #fff; border-radius: 12px; box-sizing: content-box;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
  }
  .share-link {
    font-size: 12px; color: var(--muted); word-break: break-all; margin-bottom: 12px;
    font-family: ui-monospace, Consolas, monospace;
  }
  .share-actions { justify-content: center; flex-wrap: wrap; }

  /* -- Aufforderung "Als App speichern" -- */
  .install-banner {
    position: fixed; z-index: 400; left: 12px; right: 12px;
    top: calc(12px + env(safe-area-inset-top, 0px));
    max-width: 440px; margin: 0 auto;
    display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; align-items: center;
    background: var(--paper); color: var(--ink); border-radius: 16px; padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28); border: 1px solid var(--line);
    animation: installIn .35s ease-out both;
  }
  .install-banner.hidden { display: none; }
  @keyframes installIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  .install-icon { width: 48px; height: 48px; border-radius: 11px; }
  .install-text { font-size: 13px; line-height: 1.4; }
  .install-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
  .install-text .ios-share {
    display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin: 0 1px;
    fill: none; stroke: #0a84ff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  }
  .install-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
  .install-actions .btn { padding: 8px 14px; font-size: 13px; width: auto; margin: 0; }
