/* AS Gastpost – Aussehen.
   Aufbau, Maße, Schrift, Rundungen 1:1 nach Smoobu (am 16.11.2026 im angemeldeten Smoobu gemessen, Werte in
   notizen/oberflaeche.md). Nur die Farben sind gegen die AlegraStay-Farbwelt aus AS Do getauscht. */

@font-face{
  font-family:"Manrope";
  src:url("/static/fonts/Manrope.ttf") format("truetype");
  font-weight:200 800;
  font-style:normal;
  font-display:swap;
}

:root{
  /* AlegraStay-Farben (AS Do) – in Klammern die Smoobu-Farbe, die sie ersetzen */
  --brand:#1e330a;        /* (#0f62fe Smoobu-Blau: aktive Icons, eigene Blasen, Senden) */
  --on-brand:#ffffff;
  --brand-hell:#d6dbd0;   /* (#d0e2ff Hellblau der Pillen-Knöpfe) */
  --auswahl:#e8ebe5;      /* (#edf5ff gewähltes Gespräch) */
  --flaeche:#f3f4f1;      /* (#f2f5fa graue Flächen) */
  --linie:#d9ddd3;        /* (#dde1e6 Rahmenlinien) */
  --ink:#1f241b;          /* (#21272a Text) */
  --muted:#545a4e;        /* (#6d757d Nebentext) */
  --gast-blase:#eceee8;   /* (#d8f8fe Hellcyan der Gast-Blasen) */
  --ok-hell:#e5f0dc; --ok:#2f6b12;            /* (#c9f0aa / #2b5a07 „Gebucht“) */
  --rot:#d42a1f; --rot-hell:#fdeceb; --rot-ink:#9a1b13;   /* (#ed0e2b) */
  --gelb-hell:#fdf0cf; --gelb-ink:#5e4100;
  --weiss:#ffffff;
  --font:"Manrope",-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",Roboto,sans-serif;
  --sl-breite:72px;
  color-scheme:light;
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--weiss);color:var(--ink);font-family:var(--font);font-size:14px;line-height:21px;font-weight:400;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
h1,h2,h3,p{margin:0}
[hidden]{display:none !important}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.unsichtbar{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Knöpfe (Smoobu: Pille 33 px, 14/20 w600, Innenabstand 6,5/16) ---------- */
.knopf{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:33px;padding:6.5px 16px;border-radius:100px;
  font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;border:1px solid transparent}
.knopf .ic{width:16px;height:16px}
.knopf-hell{background:var(--brand-hell);color:var(--brand)}
.knopf-hell:hover{filter:brightness(.96)}
.knopf-rand{border-color:var(--ink);color:var(--ink)}
.knopf-rand:hover{background:var(--flaeche)}
.knopf-rand.gewaehlt{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.knopf-voll{background:var(--brand);color:var(--on-brand)}
.knopf-breit{width:100%;min-height:44px;font-size:16px}
.icon-knopf{display:inline-grid;place-items:center;width:33px;height:33px;border-radius:100px;color:var(--ink);flex:none}
.icon-knopf:hover:not(:disabled){background:var(--flaeche)}
.icon-knopf:disabled{color:var(--muted);opacity:.45;cursor:not-allowed}
.fehlerbox{background:var(--rot-hell);color:var(--rot-ink);border-radius:8px;padding:8px 12px;font-size:14px;line-height:20px;font-weight:500}

/* ---------- Anmeldung ---------- */
.anmelden{min-height:100%;display:grid;place-items:center;padding:24px 16px;background:var(--flaeche)}
.anmelde-karte{width:100%;max-width:400px;background:var(--weiss);border-radius:24px;padding:40px 32px 32px;display:flex;flex-direction:column;gap:16px}
.anmelde-logo{align-self:flex-start;border-radius:50%}
.anmelde-karte h1{font-size:24px;line-height:40px;font-weight:600}
.anmelde-unter{color:var(--muted);font-weight:500;margin-top:-12px}
.feld{display:flex;flex-direction:column;gap:6px;font-weight:600}
.feld input{border:1px solid var(--linie);border-radius:8px;height:44px;padding:0 12px;font-size:16px;font-weight:500;background:var(--weiss)}
.feld input:focus{outline:2px solid var(--brand);outline-offset:-1px;border-color:var(--brand)}

/* ---------- Grundgerüst: Icon-Seitenleiste + Inhalt ---------- */
.app{height:100%;height:100dvh;display:flex;overflow:hidden}
.seitenleiste{flex:none;width:var(--sl-breite);background:var(--weiss);border-right:1px solid var(--linie);
  padding:16px 0 16px 16px;display:flex;flex-direction:column;gap:13px}
.sl-logo{width:40px;height:40px;border-radius:50%}
.sl-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.sl-knopf{display:grid;place-items:center;width:40px;height:40px;color:var(--ink);border-radius:8px}
.sl-knopf:hover{background:var(--flaeche)}
.sl-knopf.aktiv{color:var(--brand)}
.sl-knopf.aktiv .ic{stroke-width:2}
.sl-knopf.aus{color:var(--muted);opacity:.4;cursor:not-allowed}
.sl-knopf.aus:hover{background:none}
.sl-unten{margin-top:auto}

.rahmen{flex:1;min-width:0;display:flex;flex-direction:column}
.kopfleiste{flex:none;display:flex;align-items:center;gap:8px;background:var(--weiss);padding:16px 24px 32px;min-height:81px}
.kl-logo,.kl-abmelden{display:none}
.suche{display:flex;align-items:center;gap:8px;width:296px;height:32px;padding:4px 8px;border:1px solid var(--linie);border-radius:8px;background:var(--weiss);color:var(--muted)}
.suche input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:14px;font-weight:500;color:var(--ink);padding:0}
.suche:focus-within{border-color:var(--brand)}
.stand{margin-left:auto;font-size:12px;line-height:16px;font-weight:500;color:var(--muted);white-space:nowrap}
.stand::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ok);margin-right:6px;vertical-align:0}
.stand.alt{color:var(--rot-ink);font-weight:700}
.stand.alt::before{background:var(--rot)}
.ich{display:inline-flex;align-items:center;gap:6px;margin-left:16px;font-weight:600;color:var(--ink)}
.warnung{flex:none;background:var(--rot);color:var(--weiss);padding:8px 24px;font-weight:500;display:flex;flex-wrap:wrap;gap:4px 8px}
.hinweis-beispiel{flex:none;background:var(--gelb-hell);color:var(--gelb-ink);padding:4px 24px;font-size:12px;line-height:16px;font-weight:600}

.arbeitsplatz{flex:1;min-height:0;display:flex}

/* ---------- Nachrichten-Liste (Smoobu: Spalte mit 32/16/16 Innenabstand) ---------- */
.postfach{flex:none;width:clamp(340px,36%,625px);display:flex;flex-direction:column;min-height:0;padding:32px 16px 16px;background:var(--weiss)}
.pf-kopf{display:flex;align-items:center;gap:12px;flex:none}
.pf-kopf h1{font-size:24px;line-height:40px;font-weight:600;flex:1}
.zaehler{background:var(--rot);color:var(--weiss);border-radius:10px;padding:0 6px;font-size:14px;line-height:20px;font-weight:600}
.pf-filter{display:flex;gap:16px;margin-top:24px;flex:none;flex-wrap:wrap}
.pf-liste{flex:1;min-height:0;overflow-y:auto;margin:24px -16px 0 0;padding:0 16px 0 0;overscroll-behavior:contain}
.liste-hinweis{padding:32px 16px;text-align:center;color:var(--muted);font-weight:500}

.eintrag{display:flex;gap:16px;width:100%;text-align:left;padding:16px;border-radius:16px;color:var(--ink);font-size:16px;line-height:23px;font-weight:600}
.eintrag:hover{background:var(--flaeche)}
.eintrag.aktiv{background:var(--auswahl)}
.avatar{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:16px;line-height:23px;font-weight:600}
.av-0{background:var(--auswahl);color:var(--brand)}
.av-1{background:var(--gelb-hell);color:var(--gelb-ink)}
.av-2{background:var(--ok-hell);color:var(--ok)}
.av-3{background:var(--rot-hell);color:var(--rot-ink)}
.av-4{background:var(--brand-hell);color:var(--ink)}
.e-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.e-zeile{display:flex;align-items:center;gap:16px;min-width:0}
.e-name{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.e-name span{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.e-zeit{flex:none;font-size:14px;line-height:20px;font-weight:500;color:var(--muted)}
.e-wartet{flex:none;font-size:14px;line-height:20px;font-weight:600;color:var(--weiss);background:var(--rot);border-radius:10px;padding:0 6px}
.e-vorschau,.e-meta{font-size:14px;line-height:20px;font-weight:500;color:var(--muted)}
.e-vorschau{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.e-vorschau .wir{color:var(--ink)}
.e-meta{display:flex;justify-content:space-between;gap:16px}
.e-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Kanal-Zeichen (Smoobu: 20 px rund, im Kopf 24 px) */
.kanal-ic{flex:none;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;color:var(--weiss);font-size:11px;line-height:1;font-weight:800}
.kanal-booking{background:#003580}
.kanal-airbnb{background:#ff5a5f}
.kanal-direkt{background:var(--brand)}

/* ---------- Gespräch ---------- */
.gespraech{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--flaeche)}
.leer{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px;text-align:center}
.leer img{border-radius:50%}
.leer h2{font-size:22px;line-height:28px;font-weight:600}
.leer p{max-width:340px;font-weight:500;color:var(--ink)}
.g-inhalt{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--weiss)}
.g-kopf{flex:none;display:flex;align-items:center;gap:8px;padding:20px 16px 21px;min-height:65px}
.g-kopf .kanal-ic{width:24px;height:24px;font-size:13px}
.g-kopf h2{font-size:16px;line-height:23px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zurueck{display:none}
.g-leiste{flex:none;background:var(--flaeche);border-top:1px solid var(--linie);border-bottom:1px solid var(--linie)}
.g-leiste-knopf{width:100%;display:flex;align-items:center;gap:16px;padding:16px;text-align:left;min-height:53px}
.g-leiste-knopf .pfeil{margin-left:auto;transform-origin:50% 50%;transform-box:fill-box}
.g-leiste-knopf[aria-expanded="true"] .pfeil{transform:rotate(180deg)}
.g-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0}
.chip{display:inline-flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:500;color:var(--ink);white-space:nowrap}
.chip .ic{width:16px;height:16px}
.status{font-size:12px;line-height:16px;font-weight:600;padding:2px 4px;border-radius:4px;border:1px solid var(--ok-hell);background:var(--ok-hell);color:var(--ok)}
.status.storniert{background:var(--rot-hell);border-color:var(--rot-hell);color:var(--rot-ink)}

/* Buchungs-Karte (Smoobu „Buchung:“-Karte: rund 24, Zeilen Name links / Wert rechts) */
.info{flex:none;background:var(--flaeche);border-bottom:1px solid var(--linie);padding:16px;max-height:55%;overflow-y:auto}
.karte{background:var(--weiss);border-radius:24px;padding:24px}
.karte h3{font-size:20px;line-height:28px;font-weight:600;margin-bottom:16px}
.info-liste{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px 24px;font-size:16px;line-height:23px;font-weight:500}
.info-liste dt{color:var(--ink)}
.info-liste dd{margin:0;text-align:right;overflow-wrap:anywhere}
.info-liste dd.notiz{white-space:pre-wrap}
.info-liste a{color:var(--brand);font-weight:600}

/* Verlauf (Smoobu: Abstand 16, Blasen rund 16, Innenabstand 16, max. 60 %) */
.verlauf{flex:1;min-height:0;overflow-y:auto;padding:16px 16px 16px;display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain}
.tag{flex:none;align-self:center;font-size:12px;line-height:16px;font-weight:600;color:var(--muted)}
.zeile{flex:none;display:flex;gap:4px;max-width:60%;align-items:flex-start}
.zeile.gast{align-self:flex-start}
.zeile.uns{align-self:flex-end;flex-direction:row-reverse}
.b-avatar{flex:none;width:40px;display:flex;justify-content:center}
.b-avatar span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center}
.gast .b-avatar span{background:var(--gast-blase);color:var(--ink)}
.uns .b-avatar span{background:var(--brand);color:var(--on-brand)}
.b-avatar .ic{width:18px;height:18px}
.blase{min-width:0;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px}
.gast .blase{background:var(--gast-blase);color:var(--ink)}
.uns .blase{background:var(--brand);color:var(--on-brand)}
.b-betreff{font-size:12px;line-height:16px;font-weight:700;opacity:.8}
.b-text{font-size:14px;line-height:20px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}
.b-text.zu{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.b-fuss{display:flex;justify-content:flex-end;align-items:center;gap:32px}
.b-mehr{font-size:12px;line-height:16px;font-weight:600;color:inherit;text-decoration:underline;padding:4px 0}
.b-zeit{font-size:12px;line-height:16px;font-weight:500}
.verlauf-hinweis{color:var(--muted);text-align:center;padding:32px 16px;font-weight:500}

/* Antwortleiste (Smoobu: graue Leiste 8/16, Eingabe als weiße Pille) */
.antwort{flex:none;background:var(--flaeche);padding:8px 16px calc(8px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:8px}
.antwort-zeile{display:flex;align-items:flex-end;gap:8px}
.antwort-zeile > .icon-knopf{margin-bottom:7px}
.eingabe{flex:1;min-width:0;background:var(--weiss);border:1px solid var(--linie);border-radius:24px;padding:12px 16px;display:flex}
.eingabe:focus-within{border-color:var(--brand)}
.eingabe textarea{flex:1;min-width:0;border:0;outline:0;resize:none;background:none;padding:0;font-size:16px;line-height:23px;font-weight:500;max-height:40vh;color:var(--ink)}
.senden{margin-bottom:7px;background:var(--brand);color:var(--on-brand)}
.senden:disabled{background:var(--flaeche);color:var(--muted);border-color:transparent;cursor:default}
.antwort .senden:disabled{background:var(--brand-hell)}
.bald-hinweis{font-size:12px;line-height:16px;font-weight:500;color:var(--muted);padding-left:82px}

/* ---------- Handy (schmal): Liste und Gespräch als eigene Seiten ---------- */
@media (max-width: 859px){
  .seitenleiste{display:none}
  .kopfleiste{flex-wrap:wrap;padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 12px;min-height:0;gap:8px 8px;border-bottom:1px solid var(--linie)}
  .kl-logo{display:block;border-radius:50%}
  .kl-abmelden{display:inline-grid;width:40px;height:40px}
  #neu-laden{padding:0;width:40px;min-height:40px}
  #neu-laden span{display:none}
  #neu-laden .ic{width:20px;height:20px}
  .suche{flex:1 1 0;min-width:0;width:auto;height:40px}
  .suche input{font-size:16px}
  .ich{display:none}
  .stand{order:5;width:100%;margin-left:0}
  .warnung,.hinweis-beispiel{padding-left:16px;padding-right:16px}
  .postfach,.gespraech{flex:1;width:100%}
  .postfach{padding:16px 16px 0}
  .pf-filter{margin-top:12px;gap:8px}
  .pf-filter .knopf{min-height:40px}
  .pf-liste{margin-top:12px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .eintrag{padding:16px 12px;gap:12px}
  body[data-ansicht="liste"] .gespraech{display:none}
  body[data-ansicht="gespraech"] .postfach,
  body[data-ansicht="gespraech"] .kopfleiste{display:none}
  .zurueck{display:inline-grid;width:40px;height:40px;margin-left:-8px}
  .g-kopf{padding:calc(env(safe-area-inset-top,0px) + 8px) 16px 8px;min-height:56px}
  .g-leiste-knopf{padding:12px 16px;gap:12px}
  .g-chips{gap:6px 12px}
  .info{padding:12px}
  .karte{padding:20px;border-radius:16px}
  .info-liste{font-size:15px;line-height:22px;gap:12px 16px}
  .verlauf{padding:16px 12px}
  .zeile{max-width:88%}
  .b-avatar{display:none}
  .antwort{padding-left:8px;padding-right:8px}
  .antwort-zeile{gap:4px}
  .antwort-zeile > .icon-knopf{width:40px;height:40px;margin-bottom:5px}
  .senden{width:48px;min-height:48px;padding:0;margin-bottom:0}
  .senden span{display:none}
  .senden .ic{width:20px;height:20px}
  .bald-hinweis{padding-left:8px}
}
@media (min-width: 860px){
  .verlauf{padding:16px 16px 24px}
}
