/* Wattgeflüster-App (Handy). Farben, Status-Farben und Schriftstufen: /shared/basis.css
   Schriftgrößen App: 13 px klein (Status, Leiste) · 15 px Nebentext · 18 px Text · 20 px Überschriften · ab 24 px große Zahlen */
:root {
    --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; height: 100%; }
  body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 18px; line-height: 1.4;
         color: var(--text); background: var(--bg); }
  button, input, select, textarea { font: inherit; color: inherit; }
  .app { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }

  /* Kopfzeile */
  header { background: var(--dblau); color: #fff; padding: calc(12px + var(--safe-t)) 12px 14px; position: sticky; top: 0; z-index: 10; }
  .hrow { display: flex; align-items: center; gap: 6px; min-height: 44px; }
  .iconbtn { background: transparent; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
  .iconbtn:active { background: var(--dblau-1); }
  .hlogo { height: 38px; width: 38px; flex: none; display: block; }
  .net { margin-top: 6px; font-size: 15px; background: var(--gelb); color: var(--dblau); font-weight: 600; border-radius: 10px; padding: 6px 10px; display: none; }
  .net.show { display: block; }

  main { flex: 1; padding: 16px 16px calc(120px + var(--safe-b)); }
  h2 { font-size: 20px; margin: 22px 0 10px; color: var(--dblau); }
  h2:first-child { margin-top: 4px; }
  .muted { color: var(--muted); font-size: 15px; }
  .card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px rgba(0,42,82,.10); margin-bottom: 14px; }

  /* Großer Melde-Button */
  .bigcta { width: 100%; border: 0; border-radius: 20px; background: var(--gruen); color: var(--dblau); padding: 22px 20px;
            display: flex; align-items: center; gap: 16px; text-align: left; box-shadow: 0 4px 14px rgba(0,42,82,.18); }
  .bigcta:active { transform: scale(.99); }
  .bigcta .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--gruen-2); display: grid; place-items: center; flex: none; }
  .bigcta b { display: block; font-size: 24px; }
  .bigcta span { font-size: 15px; display: block; margin-top: 2px; }

  /* Bereiche auf der Übersicht */
  .panel { border-radius: var(--radius); padding: 14px; margin-top: 18px; }
  .panel-wish { background: var(--gelb-5); border: 2px solid var(--gelb-2); }
  .panel-mine { background: var(--card); box-shadow: 0 1px 3px rgba(0,42,82,.10); }
  .phead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .phead h2 { margin: 0; font-size: 20px; }
  .phead small { display: block; color: var(--muted); font-size: 15px; }
  .picon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
  .panel-wish .picon { background: var(--gelb); color: var(--dblau); }
  .panel-mine .picon { background: var(--blau); color: #fff; }

  /* Wunschliste */
  .wish { display: flex; gap: 12px; align-items: center; width: 100%; background: var(--card); border: 1.5px solid var(--gelb-2); border-radius: 14px;
          padding: 12px 10px 12px 14px; margin-bottom: 8px; text-align: left; min-height: 60px; color: var(--text); }
  .wish:last-child { margin-bottom: 0; }
  .wish .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
  .wish small { display: block; color: var(--muted); font-size: 15px; }
  .wish svg { flex: none; color: var(--blau); }

  /* Liste der Meldungen */
  .item { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; margin-bottom: 10px; color: var(--text); }
  .panel-mine .item { border-radius: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--grau-4) !important; }
  .panel-mine .item:last-child { border-bottom: 0 !important; padding-bottom: 2px; }
  .thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--grau-4); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--blau); }
  .thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
  .item .meta { flex: 1; min-width: 0; }
  .item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pill { font-size: 13px; margin-top: 4px; }
  .st-neutral { background: var(--grau-4); color: var(--muted); }
  .linkbtn { background: none; border: 0; color: var(--blau); font-weight: 600; padding: 10px 4px; min-height: 44px; }

  /* Formular */
  .sec { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,42,82,.10); }
  .sec h3 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
  .num { width: 28px; height: 28px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
  .sec p.hint { margin: 0 0 12px 38px; color: var(--muted); font-size: 15px; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .row3 .btn { flex-direction: column; gap: 4px; padding: 10px 6px; min-height: 72px; font-size: 15px; }
  .btn { border: 0; border-radius: var(--radius-btn); min-height: 56px; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
  .btn-primary { background: var(--gelb); color: var(--dblau); }
  .btn-sea { background: var(--blau); color: #fff; }                 /* Hauptaktion: btn-primary · weitere: btn-sea / btn-soft · Löschen: btn-outline-red */
  .btn-soft { background: var(--blau-5); color: var(--dblau); }
  .btn:disabled { background: var(--grau-4) !important; color: var(--muted) !important; }
  .btn:active:not(:disabled) { filter: brightness(.95); }
  .media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .media-grid:empty { display: none; }
  .mtile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--grau-4); }
  .mtile img, .mtile video { width: 100%; height: 100%; object-fit: cover; }
  .mtile .x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
  .mtile.prep { display: grid; place-items: center; text-align: center; padding: 6px; font-size: 13px; color: var(--muted); animation: blink 1.2s infinite; }
  @keyframes blink { 50% { opacity: .5; } }
  .mtile .badge { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; border-radius: 6px; padding: 1px 6px; display: inline-flex; align-items: center; gap: 4px; }

  .rec { display: flex; align-items: center; gap: 14px; }
  .recbtn { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 3px 10px rgba(0,42,82,.20); }
  .recbtn.on { background: var(--danger); animation: pulse 1.2s infinite; }
  @keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(187,23,13,.5)} 70%{box-shadow:0 0 0 16px rgba(187,23,13,0)} 100%{box-shadow:0 0 0 0 rgba(187,23,13,0)} }
  .rec .info b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
  .audio-box { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
  .audio-box audio { flex: 1; min-width: 0; height: 44px; }
  textarea:focus, input:focus, select:focus { outline: 3px solid var(--blau-3); border-color: var(--blau); }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  details.fold summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-weight: 700; font-size: 18px; }
  details.fold summary::-webkit-details-marker { display: none; }
  details.fold .ftitle { flex: 1; }
  details.fold .fval { font-size: 15px; font-weight: 600; color: var(--muted); }
  details.fold .chev { flex: none; color: var(--muted); transition: transform .2s; }
  details.fold[open] .chev { transform: rotate(180deg); }
  .chipsel { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; min-height: 48px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
  .chipsel .dot { width: 12px; height: 12px; border-radius: 50%; }
  .chipsel[aria-pressed="true"] { border-color: var(--dblau); background: var(--dblau); color: #fff; }
  .seg { display: grid; gap: 8px; }
  .segbtn { border: 2px solid var(--line); background: #fff; border-radius: 14px; min-height: 52px; padding: 10px 14px; text-align: left; font-weight: 600; }
  .segbtn[aria-pressed="true"] { border-color: var(--dblau); background: var(--blau-5); }
  .warn { margin-top: 10px; background: var(--gelb-4); color: var(--dblau); border-radius: 12px; padding: 10px 12px; font-size: 15px; display: none; }
  .warn.show { display: block; }
  .req { color: var(--orange); font-weight: 700; }

  label.f { display: block; font-weight: 600; margin-bottom: 6px; }
  /* Eingabefelder (alle gleich) */
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
    width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit; }
  textarea { min-height: 0; resize: vertical; margin-top: 12px; }
  input:disabled, select:disabled, textarea:disabled { background: var(--grau-5); color: var(--dblau-1); }

  .sticky { position: fixed; left: 0; right: 0; bottom: 0; background: var(--grau-5); backdrop-filter: blur(6px);
            padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); z-index: 20; }
  .sticky .inner { max-width: 528px; margin: 0 auto; }
  .sticky .btn { min-height: 62px; font-size: 20px; }
  .stickyrow { display: flex; gap: 10px; }
  .stickyrow .btn { flex: 1 1 0; min-width: 0; }                      /* Bearbeiten und Löschen gleich breit */
  .facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 15px; }
  .facts dt { color: var(--muted); font-weight: 600; }
  .facts dd { margin: 0; overflow-wrap: anywhere; }
  .flabel { color: var(--muted); font-weight: 600; font-size: 15px; margin: 12px 0 2px; }
  .ftext { margin: 0; white-space: pre-wrap; font-size: 15px; }
  .sticky .why { text-align: center; font-size: 15px; color: var(--muted); margin-top: 6px; }
  .sticky .why:empty { display: none; }

  /* Fertig-Ansicht */
  .done { text-align: center; padding-top: 30px; }
  .done .big { width: 110px; height: 110px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
  .done h2 { font-size: 24px; }

  /* Dialog & Toast */
  .overlay { position: fixed; inset: 0; background: rgba(0,42,82,.55); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
  .overlay.show { display: flex; }
  .dialog { background: #fff; width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 22px 18px calc(18px + var(--safe-b)); }
  .dialog h3 { margin: 0 0 8px; font-size: 20px; }
  .dialog .row2 { margin-top: 18px; }
  .toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--safe-b)); background: var(--dblau); color: #fff;
           padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 90%; }
  .toast.show { opacity: 1; }
  .tip h3 { margin: 0 0 6px; font-size: 20px; color: var(--dblau); }
  .tip ol { margin: 0; padding-left: 22px; }
  .tip ol li { margin-bottom: 8px; }
  .faq { border-top: 1px solid var(--grau-4); }
  .faq:first-of-type { border-top: 0; }
  .faq summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 600; cursor: pointer; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary span { flex: 1; }
  .faq summary .chev { flex: none; color: var(--muted); transition: transform .2s; }
  .faq[open] summary .chev { transform: rotate(180deg); }
  .faq p, .faq ul { margin: 0 0 12px; color: var(--muted); }
  .tip h4 { margin: 18px 0 8px; font-size: 18px; color: var(--dblau); }
  .tip p.lead { margin: 0 0 10px; color: var(--muted); }
  .tip figure { margin: 0; }
  .tip figure img { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--grau-4); cursor: zoom-in; }
  .tip figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
  .strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -16px 0; padding: 0 16px 8px; -webkit-overflow-scrolling: touch; }
  .strip figure { flex: 0 0 62%; scroll-snap-align: start; }
  .step { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gelb); color: var(--dblau); margin-bottom: 4px; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grid3 figure img { aspect-ratio: 1; object-fit: cover; }
  .verdict { font-weight: 700; font-size: 15px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
  .verdict.no { color: var(--rot); }
  .verdict.yes { color: var(--dblau); }
  .hint-box { background: var(--gelb-5); border: 1.5px solid var(--gelb-2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 15px; }
  .tip-contact { background: var(--dblau); color: #fff; }
  .tip-contact h3 { color: #fff; }
  .tip-contact p { margin: 0 0 12px; color: var(--dblau-5); }
  .tip-contact .btn { text-decoration: none; }
  .lightbox { position: fixed; inset: 0; z-index: 80; background: var(--dblau); display: none; flex-direction: column; align-items: center; justify-content: center;
              padding: calc(16px + var(--safe-t)) 12px calc(16px + var(--safe-b)); }
  .lightbox.show { display: flex; }
  .lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
  .lightbox div { color: #fff; margin-top: 10px; text-align: center; font-size: 15px; }
  .lightbox button { position: absolute; top: calc(10px + var(--safe-t)); right: 8px; }
  .tip ul { margin: 0; padding-left: 20px; }
  .tip li { margin-bottom: 6px; }

  /* Kartenauswahl */
  .mapov { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: none; flex-direction: column; }
  .mapov.show { display: flex; }
  .mhead { background: var(--dblau); color: #fff; padding: calc(8px + var(--safe-t)) 6px 8px 16px; display: flex; align-items: center; gap: 8px; }
  .mhead b { flex: 1; font-size: 20px; }
  .mapwrap { position: relative; flex: 1; min-height: 220px; }
  #mapEl { position: absolute; inset: 0; background: var(--grau-4); }
  .crosshair { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -44px 0 0 -22px; z-index: 500; pointer-events: none;
               color: var(--danger); filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
  .mpanel { padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); display: grid; gap: 10px; }
  .mpanel .coord { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; text-align: center; min-height: 21px; }
  .pasterow { display: flex; gap: 8px; }
  .pasterow input { flex: 1; min-width: 0; }
  .pasterow .btn { width: auto; min-height: 52px; }
  .locinfo { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: var(--blau-5); border-radius: 12px; padding: 8px 6px 8px 12px; color: var(--dblau); }
  .locinfo span { flex: 1; font-size: 15px; font-variant-numeric: tabular-nums; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Aktuell gesucht: ungelesen + Einzelansicht */
.wish.unread b { font-weight: 800; }
.wish .pill { margin-top: 6px; }
.wishfull h2 { margin: 10px 0 4px; font-size: 24px; }
.wishfull .wishtext { margin-top: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.wishfull .wishtext a { color: var(--blau); }
.pushcard { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--rot); }
.pushcard > svg { color: var(--rot); flex: none; margin-top: 2px; }
.btn-red { background: var(--rot); color: #fff; }                 /* bestätigt Löschen/Verwerfen im Dialog */
.pushbtns { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.pushbtns .btn { width: auto; min-height: 44px; padding: 8px 18px; }

/* Übersicht: gleichmäßige Abstände, leere Bereiche nehmen keinen Platz ein */
.home { display: flex; flex-direction: column; gap: 16px; }
.home > * { margin: 0 !important; }
.home > div:empty { display: none; }
.home > div > .card { margin-bottom: 0; }
.home > div > .panel { margin-top: 0; }

/* Anmeldung */
.lhint { margin: 12px 0 0; padding-left: 20px; font-size: 15px; color: var(--muted); }
.lhint li { margin-bottom: 4px; }
.lsubmit { margin-top: 14px; }
.lmsg { margin: 8px 0 4px; min-height: 0; color: var(--rot); font-size: 15px; text-align: center; }
.lmsg:empty { display: none; }
input.invalid { border-color: var(--rot); outline: 3px solid var(--rot-5); }

/* Gesperrte Meldung */
.lockcard { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.lockcard > svg { flex: none; color: var(--muted); margin-top: 2px; }

/* Link zum Archiv auf der Startseite */
.archtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--grau-4); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.archtabs button { border: 0; background: transparent; border-radius: 10px; min-height: 44px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.archtabs button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,42,82,.15); }
.archlink { display: block; width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.archlink .phead { margin-bottom: 0; }
.archlink .go { margin-left: auto; color: var(--muted); display: flex; }
.archive .item + .item { margin-top: 10px; }

/* Neu bei der Station / dem Projekt */
.panel-feed { background: var(--card); box-shadow: 0 1px 3px rgba(0,42,82,.10); }
.panel-feed .picon { background: var(--blau); color: #fff; }   /* wie Stationsarchiv */
.feedlist .item { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; margin: 0; padding: 10px 0; border-radius: 0; }
.feedlist .item + .item { border-top: 1px solid var(--grau-4); }
button.mtile { border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
/* Große Ansicht: Vorschau, Video */
.lbbody { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lbbody img, .lbbody video { max-width: 100%; max-height: 78vh; border-radius: 10px; background: #000; }
.lbbody img.blurry { filter: blur(6px); }
.lbinfo { margin-top: 14px; color: #fff; text-align: center; min-width: 220px; }

/* Profil: Benachrichtigungen – rot solange aus, blau wenn aktiv */
#pushSetting.push-off { background: var(--rot); color: #fff; }
#pushSetting.push-on { background: var(--blau); color: #fff; }
#pushSetting > b { display: flex; align-items: center; gap: 8px; }
.btn-onred { background: #fff; color: var(--rot); }
.btn-onblue { background: transparent; color: #fff; border: 2px solid #fff; }

/* Hauptamt: für welche Station ein Wunsch gilt */
.wishfor { color: var(--blau) !important; font-weight: 600; }

/* ---------- Feste Leiste unten (alle Seiten): Tipps & Hilfe · Datenschutz · Profil ---------- */
.footbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: rgba(240,241,242,.94); backdrop-filter: blur(6px);
           border-top: 1px solid var(--line); padding: 8px 16px calc(8px + var(--safe-b)); }
.footbar .inner { max-width: 528px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.footbar button { background: var(--card); border: 0; border-radius: 14px; height: 64px; padding: 6px 4px; line-height: 1.1; text-align: center; box-shadow: 0 1px 3px rgba(0,42,82,.10);
                  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--dblau); }
.footbar button i { display: grid; place-items: center; color: var(--blau); font-style: normal; }
.footbar button svg { width: 22px; height: 22px; }
.footbar button[aria-current] { background: var(--blau); color: #fff; }
.footbar button[aria-current] i { color: #fff; }
.footbar button:active:not(.soon) { background: var(--blau-5); }
.footbar button.soon { opacity: .55; }                       /* noch ohne Funktion (wie Kacheln „Bald verfügbar“) */

body.tb main { padding-bottom: calc(104px + var(--safe-b)); }
body.tb.st main { padding-bottom: calc(194px + var(--safe-b)); }
body.tb .sticky { bottom: calc(81px + var(--safe-b)); padding-bottom: 12px; }
body.tb .toast { bottom: calc(100px + var(--safe-b)); }
body.tb.st .toast { bottom: calc(184px + var(--safe-b)); }
.archlink small b { color: var(--dblau); }
.nowrap { white-space: nowrap; }

/* ---------- Kopfzeile: Logo + Name (immer, führt zur Übersicht), rechts daneben „‹ Seitentitel“ ---------- */
.brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; padding: 2px 4px 2px 0; border-radius: 12px; flex: none; }
.brand span { font-size: 18px; font-weight: 600; white-space: nowrap; }          /* gleich wie der Seitentitel daneben */
.crumb { display: flex; align-items: center; gap: 0; min-width: 0; flex: 1; border-left: 1px solid rgba(255,255,255,.35); padding-left: 4px; }
.crumb h1 { font-size: 18px; font-weight: 600; margin: 0 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- Karten: Titel, Hinweise, Profil ---------- */
.ctitle { font-size: 20px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: inherit; }
.card > .ctitle { color: var(--dblau); }
.note { font-size: 15px; margin: 10px 0 0; color: inherit; opacity: .9; }
.card > .note { color: var(--muted); opacity: 1; }
.btn-outline-red { background: var(--card); color: var(--rot); border: 2px solid var(--rot); }
.profbtns .btn { min-height: 52px; font-size: 15px; }

/* ---------- Im Browser: alles Antippbare zeigt beim Darüberfahren, dass es klickbar ist ---------- */
button:not(:disabled), [role="button"] { cursor: pointer; }
@media (hover: hover) {
  .footbar button:hover:not([aria-current]):not(.soon) { background: var(--blau-5); }
  .brand:hover { background: var(--dblau-1); }
  .bigcta:hover { filter: brightness(1.04); }
  .archlink:hover, .item:hover, .wish:hover { filter: brightness(.97); }
  .btn:hover:not(:disabled) { filter: brightness(1.06); }
}
#pushSetting > .ctitle, #pushSetting > .note { color: #fff; opacity: 1; }
.pushcard .ctitle { color: var(--dblau); margin-bottom: 2px; }

/* ---------- Startseite: Module von TidenHub ---------- */
.hubhello { margin: 4px 0 14px; }
.hub .pushcard { margin-bottom: 14px; }
.modgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mod { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; border: 0; border-radius: 20px;
       padding: 16px 14px 14px; min-height: 150px; background: var(--blau-5); color: var(--dblau); box-shadow: 0 1px 3px rgba(0,42,82,.12); }
.mod .mic { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--blau); display: grid; place-items: center; }
.mod .mname { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; hyphens: auto; overflow-wrap: anywhere; }
.mod .mtext { font-size: 15px; color: var(--dblau-1); line-height: 1.3; }
.mod .mclamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mod .msoon { margin-top: auto; font-size: 13px; font-weight: 700; background: #fff; color: var(--blau); border-radius: 999px; padding: 2px 10px; }
.mod .mbadge { position: absolute; top: 14px; right: 14px; background: var(--orange); color: #fff; font-size: 13px; border-radius: 999px; padding: 1px 8px; }
.mod.soon { opacity: .55; }
.mod:active:not(.soon) { transform: scale(.98); }
@media (hover: hover) { .mod:not(.soon):hover { filter: brightness(1.05); } }

/* Profil oben rechts (Startseite) */
.profbtn { margin-left: auto; background: rgba(255,255,255,.12); border-radius: 50%; }
.profbtn:hover { background: rgba(255,255,255,.2); }
.profbtn[aria-current] { background: rgba(255,255,255,.32); }

/* Aktuell gesucht: Nachricht nur eine Zeile unter dem Betreff */
.wish > span { min-width: 0; }
.wish .wnote { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Startseite: Neuigkeiten von der Website */
.newscard { background: var(--card); border-radius: var(--radius); padding: 14px 16px 6px; box-shadow: 0 1px 3px rgba(0,42,82,.10); margin-bottom: 14px; }
.nhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--blau); }
.nhead h3 { margin: 0; font-size: 20px; color: var(--dblau); flex: 1; }
.nhead a { font-size: 15px; font-weight: 600; color: var(--blau); text-decoration: none; }
.nlist { list-style: none; margin: 0; padding: 0; }
.nlist li + li { border-top: 1px solid var(--grau-4); }
.nlist a { display: flex; gap: 12px; align-items: center; padding: 9px 0; color: inherit; text-decoration: none; }
.nlist img, .nlist .nimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--grau-4); display: grid; place-items: center; color: var(--muted); }
.ntext { min-width: 0; display: flex; flex-direction: column; }
.ntext b { font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ntext small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntext .ndate { font-size: 13px; }

/* Chronik: Lesemodus (PDF.js) und Wissen (Links zur Website) */
.reader { position: relative; }
.rstage { height: calc(100dvh - 150px - var(--safe-t) - var(--safe-b)); min-height: 320px; overflow: hidden; display: grid; place-items: center;
          background: var(--grau-4); border-radius: var(--radius); touch-action: pan-y; }
.rstage.zoomed { overflow: auto; place-items: start; touch-action: pan-x pan-y; }
/* Seite selbst scrollt in der Chronik nicht: Lesefläche füllt genau den Platz unter der Kopfzeile.
   Ungezoomt verschiebt sich nichts (Wischen = blättern), gezoomt scrollt nur die Seite der Chronik in sich. */
body.lesen { overflow: hidden; overscroll-behavior: none; }
body.lesen .app { height: 100dvh; min-height: 0; }
body.lesen main { display: flex; flex-direction: column; min-height: 0; padding-bottom: calc(16px + var(--safe-b)); }
body.lesen .reader { flex: 1; min-height: 0; display: flex; }
body.lesen .rstage { flex: 1; height: auto; min-height: 0; }
body.lesen .rstage:not(.zoomed) { touch-action: none; }
.rstage canvas { display: block; background: #fff; box-shadow: 0 2px 10px rgba(0,42,82,.18); transform-origin: center; }
.rload { color: var(--muted); font-size: 15px; padding: 20px; text-align: center; }
.rbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; background: var(--dblau); color: #fff;
        border-radius: 999px; padding: 4px 6px; box-shadow: 0 4px 14px rgba(0,42,82,.3); }
.rbar button { background: none; border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.rbar button:disabled { opacity: .35; }
.rbar button svg { width: 22px; height: 22px; }
.rbar span#rPage { min-width: 74px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rbar .rsep { width: 1px; height: 24px; background: rgba(255,255,255,.3); margin: 0 4px; }
.wlink { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
         box-shadow: 0 1px 3px rgba(0,42,82,.10); color: inherit; text-decoration: none; }
.wlink .wic { width: 44px; height: 44px; border-radius: 50%; background: var(--gruen-4); color: var(--gruen-text); display: grid; place-items: center; flex: none; }
.wlink .wtx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wlink .wtx small { color: var(--muted); font-size: 15px; }
.wlink > svg { color: var(--muted); flex: none; }
@media (hover: hover) { .wlink:hover { filter: brightness(.98); } }

/* ---------- Modul Gruppenbuchung ---------- */
.segchips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--grau-4); border-radius: 14px; padding: 4px; margin-bottom: 12px; }
.segchips button { border: 0; background: transparent; border-radius: 10px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--muted); }
.segchips button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,42,82,.15); }
.gbsel { margin-bottom: 12px; }
.gbitem { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 0; border-radius: var(--radius);
          padding: 12px 12px 12px 0; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,42,82,.10); overflow: hidden; color: inherit; }
.gbitem > svg { color: var(--muted); flex: none; }
.gbitem.off { opacity: .6; }
.gbdate { flex: none; width: 92px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
          background: var(--blau-5); color: var(--dblau); padding: 6px 4px; }
.gbdate b { font-size: 15px; line-height: 1.2; }
.gbdate span { font-size: 13px; color: var(--dblau-1); margin-top: 2px; }
.gbmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gbmain b { font-size: 18px; line-height: 1.25; }
.gbmain small { font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbmeta { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.gbmeta .muted { font-size: 13px; }
.gbhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gbvhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gbv { border-left: 5px solid var(--blau); }
.row3n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.row3n .f { font-size: 15px; }
.gbform .row2 > *, .row3n > * { min-width: 0; }
.gbform input[type=date], .gbform input[type=time] { min-width: 0; width: 100%; -webkit-appearance: none; appearance: none; display: block; }
.gbsug { position: relative; }
.gbsuglist { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
             box-shadow: 0 6px 18px rgba(0,42,82,.18); overflow: hidden; }
.gbsuglist button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--grau-4);
                    background: transparent; padding: 10px 12px; min-height: 52px; color: inherit; font-size: 15px; }
.gbsuglist button:last-child { border-bottom: 0; }
.gbsuglist button small { font-size: 13px; color: var(--muted); }
.gbsuglist .none { padding: 12px; font-size: 15px; color: var(--muted); }
.gbdeb { font-size: 13px; margin-top: 6px; min-height: 0; }
.gbdeb .ok { color: var(--gruen-text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.gbdeb svg { width: 16px; height: 16px; }
.gbart { display: block; font-size: 13px; margin-top: 6px; }
.gbsec { font-size: 15px; color: var(--muted); font-weight: 700; margin: 18px 4px 8px; }
.gbdeb .new { color: var(--blau); font-weight: 600; }
.gbtip { font-size: 13px; margin: 10px 0 0; }
.gblk { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gblk button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; min-height: 40px; font-size: 15px; color: inherit; }
.gblk button[aria-pressed="true"] { background: var(--blau-5); border-color: var(--blau); font-weight: 600; }
.gbbest { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gbbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gbbtns .btn { flex: 1; min-width: 130px; width: auto; margin: 0; }
.gbbtns .btn svg { width: 20px; height: 20px; }
.gbbtns .busy { opacity: .5; pointer-events: none; }
.gbfile { display: flex; align-items: center; gap: 10px; background: var(--grau-5); border-radius: 12px; padding: 10px; margin-top: 8px; }
.gbfile > span { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--blau-5); color: var(--dblau); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.gbfile div { min-width: 0; display: flex; flex-direction: column; }
.gbfile b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbfile small { font-size: 13px; color: var(--muted); }
.gbvbest { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grau-4); }
.gbpick { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: #fff;
          border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 18px; color: var(--text); line-height: 1.3; }
.gbpick span { white-space: normal; overflow-wrap: anywhere; }
.gbpick svg { flex: none; color: var(--muted); transform: rotate(90deg); }
.gbpick.empty span { color: var(--muted); }
.gbpick:disabled { background: var(--grau-5); }
.gbopts { display: grid; gap: 6px; margin-top: 6px; }
.gbopts button { text-align: left; white-space: normal; overflow-wrap: anywhere; background: var(--grau-5); border: 1.5px solid transparent; border-radius: 12px;
                 padding: 10px 12px; min-height: 48px; font: inherit; font-size: 16px; color: inherit; line-height: 1.3; }
.gbopts button[aria-pressed="true"] { background: var(--blau-5); border-color: var(--blau); font-weight: 600; }
.gbanr { margin: 4px 0 8px; }

/* Newsletter: Hinweis beim Beitrag und Abo-Button */
.nlbox { margin: 10px 0 0; padding: 10px 12px; background: var(--grau-5); border-radius: 12px; display: grid; gap: 10px; }
.nlbtn { width: 100%; justify-content: center; text-decoration: none; }

/* ---------- Community: Timeline (Beiträge wie bei Instagram) ---------- */
.footbar button i { position: relative; }
.fbadge { position: absolute; top: -6px; left: calc(50% + 6px); background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; font-style: normal;
          line-height: 18px; min-width: 18px; padding: 0 5px; border-radius: 999px; text-align: center; box-shadow: 0 0 0 2px var(--card); }
.cmh { margin: 4px 0 10px; }
.cmend { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 0 16px; }
.cmempty { text-align: left; }
