/* ===================== VIEWS ===================== */
/* Ab hier: Styles für die einzelnen Bildschirme/Seiten der App, jeweils
   mit eigenem Mini-Kommentar (Hero, Fälle, Fall-Detail, Wizard, ...). */
.view{ display:none; animation:fade .25s ease; }
.view.active{ display:block; }
@keyframes fade{ from{opacity:.4; transform:translateY(4px);} to{opacity:1; transform:none;} }

/* Hero — der große Begrüßungs-Block ganz oben im Dashboard mit der
   "Schaden melden"-Einladung und der dekorativen Haus-Illustration. */
.hero-card{
  background:linear-gradient(120deg,#153f36,#0d3f36 65%,#0a322b); color:#fff; border-radius:30px;
  padding:44px 48px; display:grid; grid-template-columns:1.3fr .7fr; min-height:270px; overflow:hidden;
  position:relative; box-shadow:var(--shadow);
}
.hero-card::after{ content:''; position:absolute; width:320px; height:320px; border:1px solid rgba(255,255,255,.12); border-radius:50%; right:-100px; top:-160px; box-shadow:0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.025); }
.hero-copy{ position:relative; z-index:2; max-width:600px; }
.pill{ display:inline-flex; background:rgba(223,246,184,.14); color:var(--accent); border:1px solid rgba(223,246,184,.2); padding:7px 12px; border-radius:99px; font-size:11.5px; font-weight:600; }
.hero-copy h2{ font-size:clamp(28px,4vw,42px); margin:16px 0 8px; line-height:1.05; letter-spacing:-1.2px; }
.hero-copy p{ max-width:520px; color:rgba(255,255,255,.7); font-size:15px; line-height:1.6; margin:0 0 22px; }
.hero-visual{ position:relative; display:grid; place-items:center; z-index:1; }
.home-shape{ width:150px; height:118px; border-radius:18px 18px 8px 8px; background:#eef6e9; position:relative; transform:translateY(14px) rotate(-2deg); box-shadow:16px 16px 0 rgba(223,246,184,.15); }
.home-shape::before{ content:''; position:absolute; width:112px; height:112px; background:#eef6e9; transform:rotate(45deg); left:19px; top:-49px; border-radius:16px 4px 0 4px; }
.window,.door{ position:absolute; z-index:2; background:var(--accent-strong); border-radius:6px; }
.window{ width:28px; height:28px; top:40px; }
.w1{ left:22px; } .w2{ right:22px; }
.door{ width:36px; height:50px; bottom:0; left:57px; background:#286454; }
.status-float{ position:absolute; z-index:3; bottom:14px; right:4px; background:var(--surface); color:var(--ink); border-radius:14px; padding:9px 12px; box-shadow:var(--shadow); font-size:11.5px; font-weight:600; }
.status-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; background:#59a670; }
@media(max-width:900px){ .hero-card{ grid-template-columns:1fr; padding:32px 26px; min-height:0; border-radius:24px; } .hero-visual{ display:none; } .hero-copy h2{ font-size:30px; } }

/* case-grid (dashboard) — die Fallkarten, die im Dashboard unter dem Hero
   angezeigt werden (nur die 1-2 wichtigsten offenen Fälle, nicht alle). */
.case-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.case-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 6px 24px rgba(15,57,48,.035); padding:22px; cursor:pointer; transition:.2s; }
.case-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.case-card.urgent{ border-top:3px solid #e89458; }
.case-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.case-number{ color:var(--muted); font-size:11.5px; font-weight:700; letter-spacing:.02em; }
.case-card h3{ margin:5px 0 0; font-size:17px; }
.case-card>p.desc{ color:var(--muted); line-height:1.5; font-size:13px; min-height:36px; margin:8px 0 0; }
.progress-row{ display:grid; grid-template-columns:repeat(8,1fr); gap:4px; margin:18px 0; }
.progress-row span{ height:5px; border-radius:5px; background:var(--brand-2); }
.progress-row i{ height:5px; border-radius:5px; background:var(--surface-soft); display:block; font-style:normal; }
.case-meta{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:13px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.case-meta strong, .appointment-box strong{ font-size:12.5px; display:block; margin-top:2px; }
.meta-label{ color:var(--muted); font-size:10.5px; display:block; }
.appointment-box{ display:flex; align-items:center; gap:9px; padding:12px; border-radius:14px; background:var(--surface-soft); margin:16px 0 0; }
.appointment-box>span{ font-size:18px; }
.card-link{ border:0; background:transparent; color:var(--brand-2); font-weight:700; cursor:pointer; padding:14px 0 0; font-size:13px; }
@media(max-width:760px){ .case-grid{ grid-template-columns:1fr; } }

.dashboard-bottom-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:16px; margin-top:16px; }
.dashboard-empty-hint{ color:var(--muted); font-size:12.5px; margin-top:14px; }
.panel{ padding:22px; }
.panel-heading{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.panel-heading h3{ margin:3px 0 0; font-size:16px; }
.appointment-list{ display:grid; margin-top:14px; }
.appointment-item{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:13px 0; border-top:1px solid var(--line); }
.date-tile{ width:48px; height:50px; border-radius:13px; background:var(--surface-soft); display:grid; place-content:center; text-align:center; }
.date-tile strong{ font-size:17px; line-height:1; }
.date-tile span{ font-size:9px; color:var(--muted); margin-top:2px; }
.appointment-item>div:nth-child(2) strong{ display:block; font-size:13.5px; }
.appointment-item>div:nth-child(2) span{ display:block; color:var(--muted); font-size:11.5px; margin-top:3px; }
.mini-avatar{ width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:var(--mini-default-bg); color:var(--brand-2); font-size:10px; font-weight:700; flex-shrink:0; }
.mini-avatar.admin{ background:var(--mini-admin-bg); }
.mini-avatar.service{ background:var(--mini-service-bg); }
.counter{ background:var(--danger-bg); color:var(--danger); font-size:10px; font-weight:700; border-radius:99px; padding:5px 9px; }
.counter.neutral{ background:var(--surface-soft); color:var(--muted); }
.message-preview{ display:grid; grid-template-columns:auto 1fr; gap:10px; padding:14px 0; border-top:1px solid var(--line); }
.message-preview:first-of-type{ margin-top:12px; }
.message-preview strong{ font-size:12.5px; }
.message-preview p{ margin:3px 0; color:var(--muted); font-size:11.5px; line-height:1.4; }
.message-preview div span{ color:#93a19b; font-size:10px; }
@media(max-width:900px){ .dashboard-bottom-grid{ grid-template-columns:1fr; } }

/* Fälle list — die vollständige Liste aller eigenen Fälle inkl. Filter
   (Alle / In Bearbeitung / Abgeschlossen). */
.filter-tabs{ display:flex; gap:8px; margin-bottom:16px; overflow:auto; }
.filter-tab{ border:1px solid var(--line); background:var(--surface); border-radius:99px; padding:9px 13px; font-weight:600; font-size:12px; white-space:nowrap; }
.filter-tab.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.filter-tab span{ opacity:.65; margin-left:4px; }
.cases-list{ display:grid; gap:11px; }
.case-list-item{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 6px 24px rgba(15,57,48,.035); padding:17px; display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:15px; transition:.2s; }
.case-list-item:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.case-icon{ width:50px; height:50px; border-radius:15px; display:grid; place-items:center; background:var(--surface-soft); font-size:20px; flex-shrink:0; }
.case-list-copy h3{ font-size:15px; margin:4px 0 0; }
.case-list-copy p{ margin:4px 0 0; color:var(--muted); font-size:11.5px; }
.case-list-status{ text-align:right; }
.case-list-status small{ display:block; color:var(--muted); font-size:10.5px; margin-top:4px; }
.round-arrow{ border:1px solid var(--line); background:var(--surface); width:36px; height:36px; border-radius:50%; }
@media(max-width:760px){
  .case-list-item{ grid-template-columns:auto 1fr auto; }
  .case-list-status{ grid-column:2/3; text-align:left; }
  .case-list-item .round-arrow{ grid-row:1/3; grid-column:3; }
}

/* Fall detail — die Fallakte selbst: Status-Timeline, Chat, Termin-Karte
   mit Bestätigen/Verschieben, Dokumente-Liste und (bei Abschluss) die
   Bewertungs-Box. Zweispaltiges Layout: Hauptspalte + Seitenleiste. */
.back-btn{ border:0; background:transparent; color:var(--muted); padding:0; margin-bottom:18px; font-size:13px; font-weight:600; }
.detail-heading{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.detail-heading h2{ font-size:28px; margin:4px 0; }
.detail-heading p{ color:var(--muted); margin:0; font-size:13.5px; }
.detail-grid{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr); gap:16px; }
.detail-main{ display:grid; gap:16px; }
.detail-side{ display:grid; gap:16px; align-content:start; }
@media(max-width:900px){ .detail-grid{ grid-template-columns:1fr; } }

.timeline{ margin-top:18px; }
.timeline-item{ position:relative; display:grid; grid-template-columns:34px 1fr; gap:12px; min-height:64px; }
.timeline-item:not(:last-child)::after{ content:''; position:absolute; left:16px; top:34px; bottom:0; width:2px; background:var(--line); }
.timeline-item>span{ width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--surface-soft); color:var(--muted); font-weight:700; z-index:1; font-size:13px; }
.timeline-item.done>span{ background:var(--brand); color:#fff; }
.timeline-item.active>span{ background:var(--accent); color:var(--brand); box-shadow:0 0 0 5px rgba(184,227,108,.18); }
.timeline-item strong{ display:block; font-size:13.5px; margin-top:1px; }
.timeline-item small{ display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.timeline-item.active strong{ color:var(--brand-2); }
.timeline-item .stepbtn{ margin-top:8px; }
.status-actions{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.status-actions button{ padding:8px 14px; font-size:12.5px; }

.chat-panel{ overflow:hidden; }
.participants{ font-size:11px; color:var(--muted); }
.chat-scroll{ max-height:320px; overflow-y:auto; }
.system-message{ background:var(--surface-soft); color:var(--muted); font-size:11px; padding:9px 12px; border-radius:10px; text-align:center; margin:16px 0; }
.chat-message{ display:flex; gap:9px; margin:11px 0; align-items:flex-end; }
.chat-message.outgoing{ justify-content:flex-end; }
.bubble{ max-width:75%; background:var(--surface-soft); border-radius:4px 16px 16px 16px; padding:11px 13px; }
.outgoing .bubble{ background:var(--bubble-out-bg); border-radius:16px 4px 16px 16px; }
.bubble strong{ font-size:11px; }
.bubble p{ font-size:13px; line-height:1.45; margin:4px 0; }
.bubble small{ display:block; color:#88958f; font-size:9px; text-align:right; }
.chat-input{ display:grid; grid-template-columns:1fr auto; gap:8px; border-top:1px solid var(--line); padding-top:15px; margin-top:15px; }
.chat-input input{ border:1px solid var(--line); background:var(--surface-2); color:var(--ink); border-radius:12px; padding:11px 13px; min-width:0; }
.send-btn{ border:0; border-radius:12px; background:var(--brand); color:#fff; padding:0 16px; font-weight:700; }

.info-panel .eyebrow{ margin-bottom:8px; }
.info-row{ display:flex; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid var(--line); font-size:12px; }
.info-row span{ color:var(--muted); }
.info-row strong{ text-align:right; font-size:12px; }
.info-row small{ color:var(--muted); font-weight:500; }
.info-row.highlight{ margin:8px -8px 0; padding:12px 10px; border:0; border-radius:12px; background:var(--highlight-bg); }
.appointment-detail .eyebrow{ margin-bottom:12px; }
.termin-actions{ margin-top:16px; display:grid; gap:8px; }
.termin-pending{ margin-top:14px; }
.termin-pending p{ font-size:11.5px; color:var(--muted); margin-top:6px; line-height:1.5; }
.termin-form{ margin-top:14px; }
.termin-form input, .termin-form textarea{ display:block; width:100%; border:1px solid var(--line); background:var(--surface-2); color:var(--ink); border-radius:12px; padding:10px 12px; resize:vertical; }
.termin-form input + input, .termin-form textarea{ margin-top:8px; }
.termin-form-footer{ margin-top:12px; border-top:0; padding-top:0; }
.termin-confirmed-tag{ margin-top:14px; }
.proposal-note{ background:var(--highlight-bg); border-radius:14px; padding:13px 15px; margin-bottom:16px; font-size:12.5px; line-height:1.5; }
.proposal-note-info{ background:var(--info-bg); }
.proposal-note em{ display:block; margin-top:5px; color:var(--muted); font-style:italic; }

.day-mode-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.daymode-btn{ border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:14px; padding:14px 10px; font-weight:700; font-size:13px; text-align:center; line-height:1.4; }
.daymode-btn small{ font-weight:400; color:var(--muted); }
.daymode-btn.selected{ border-color:var(--brand-2); background:var(--selected-bg); }
.weekday-chips{ display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.weekday-chip{ width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--surface); color:var(--ink); font-weight:700; font-size:12px; }
.weekday-chip.selected{ border-color:var(--brand-2); background:var(--brand-2); color:#fff; }
.time-presets{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.preset-chip{ border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:99px; padding:8px 13px; font-size:12px; font-weight:600; }
.preset-chip:hover{ border-color:var(--brand-2); }
.time-range-row{ display:flex; align-items:center; gap:10px; margin-top:10px; }
.time-range-row input{ flex:1; border:1px solid var(--line); background:var(--surface-2); color:var(--ink); border-radius:12px; padding:10px 12px; }
.time-range-row span{ color:var(--muted); font-size:12.5px; }
.big-date{ display:flex; align-items:center; gap:12px; }
.big-date>span{ font-size:30px; font-weight:800; color:var(--brand); }
.big-date strong, .big-date small{ display:block; }
.big-date small{ color:var(--muted); margin-top:2px; }
.document-row{ width:100%; border:0; border-top:1px solid var(--line); background:transparent; display:grid; grid-template-columns:32px 1fr auto; gap:10px; align-items:center; padding:12px 0; text-align:left; }
.document-row>span{ width:30px; height:30px; border-radius:9px; background:var(--surface-soft); display:grid; place-items:center; font-size:9px; font-weight:700; }
.document-row strong, .document-row small{ display:block; }
.document-row strong{ font-size:12px; }
.document-row small{ font-size:10px; color:var(--muted); margin-top:2px; }
.document-row i{ font-style:normal; color:var(--muted); }
.document-row.has-photo{ cursor:zoom-in; }
.document-row-thumb{ padding:0; overflow:hidden; }
.document-row-thumb img{ width:100%; height:100%; object-fit:cover; border-radius:9px; }
.documents-empty-hint{ color:var(--muted); font-size:12px; }
.add-photo-label{ margin-top:10px; display:flex; align-items:center; justify-content:center; }
.add-photo-input{ display:none; }

/* Wizard — der 5-Schritte-Assistent zum Melden eines neuen Schadens:
   Kategorie/Vorlage → Ort & Beschreibung & Fotos → Dringlichkeit →
   Verfügbarkeit → Zusammenfassung/Absenden. */
.wizard-wrap{ max-width:600px; }
.wizard-heading{ margin:4px 0 0; font-size:26px; }
.wiz-card{ padding:28px 30px; }
.stepper{ display:grid; grid-template-columns:repeat(5,32px) 1fr; grid-auto-flow:column; align-items:center; margin:24px 0 6px; gap:0; }
.stepper-flex{ display:flex; align-items:center; margin:24px 0 6px; }
.stepper-flex span{ width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:var(--surface-soft); color:var(--muted); font-size:12px; font-weight:700; flex-shrink:0; }
.stepper-flex span.active{ background:var(--brand); color:#fff; }
.stepper-flex i{ flex:1; height:2px; background:var(--line); font-style:normal; }
.wiz-card h3{ font-size:21px; margin:22px 0 4px; }
.wiz-card>p.sub{ color:var(--muted); font-size:13px; margin:0 0 20px; }
.category-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.template-grid{ display:flex; flex-wrap:wrap; gap:8px; }
.template-chip{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:12px; padding:10px 14px; font-size:12.5px; font-weight:600; }
.template-chip:hover{ border-color:var(--brand-2); }
.template-chip span{ font-size:15px; }
.wiz-divider{ display:flex; align-items:center; gap:10px; margin:22px 0 4px; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.wiz-divider::before, .wiz-divider::after{ content:''; flex:1; height:1px; background:var(--line); }
.category-card{ border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:14px; padding:16px; display:flex; align-items:center; gap:10px; text-align:left; font-weight:700; font-size:13.5px; }
.category-card span{ font-size:19px; }
.category-card.selected{ border-color:var(--brand-2); background:var(--selected-bg); box-shadow:inset 0 0 0 1px var(--brand); }
.field-label{ display:block; font-size:12px; font-weight:700; margin:16px 0 7px; }
.field-label:first-child{ margin-top:0; }
.wiz-card select, .wiz-card textarea, .wiz-card input[type=text]{ display:block; width:100%; border:1px solid var(--line); background:var(--surface-2); color:var(--ink); border-radius:12px; padding:12px; resize:vertical; }
.upload-box{ width:100%; border:1px dashed var(--line); background:var(--surface-2); border-radius:14px; padding:20px; display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--muted); cursor:pointer; }
.upload-box strong{ color:var(--brand-2); }
.upload-box span{ font-size:10px; }
.photo-thumbs{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.photo-thumb{ position:relative; width:64px; height:64px; border-radius:12px; overflow:hidden; border:1px solid var(--line); }
.photo-thumb img{ width:100%; height:100%; object-fit:cover; display:block; cursor:zoom-in; }
.photo-thumb button{ position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%; border:0; background:rgba(0,0,0,.55); color:#fff; font-size:11px; line-height:1; display:grid; place-items:center; }
.wizard-photo-section{ margin-top:14px; }
.wizard-photo-input{ display:none; }
.field-label-spaced{ margin-top:20px; }
.urgency-list{ display:grid; gap:10px; }
.urgency-option{ display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:center; border:1px solid var(--line); border-radius:14px; padding:14px; text-align:left; background:var(--surface); color:var(--ink); }
.urgency-option.selected{ border-color:var(--brand-2); background:var(--selected-bg); }
.urgency-icon{ width:34px; height:34px; border-radius:12px; background:var(--surface-soft); display:grid; place-items:center; font-weight:800; }
.urgency-option strong, .urgency-option small{ display:block; }
.urgency-option small{ color:var(--muted); font-weight:400; margin-top:3px; }
.urgency-option.danger .urgency-icon{ background:var(--danger-bg); color:var(--danger); }
.summary-row{ display:flex; justify-content:space-between; padding:10px 0; border-top:1px solid var(--line); font-size:13px; gap:14px; }
.summary-row:first-child{ border-top:none; }
.summary-row span:first-child{ color:var(--muted); flex-shrink:0; }
.summary-row-value-right{ text-align:right; }
.wiz-footer{ display:flex; justify-content:space-between; gap:10px; margin-top:26px; padding-top:16px; border-top:1px solid var(--line); }
.wiz-footer button{ min-width:110px; }

/* Kalender — Monatsraster links, Liste der anstehenden Termine rechts.
   Die Termine kommen direkt aus den Fällen, es gibt keinen separaten
   Kalender-Datensatz. */
.calendar-layout{ display:grid; grid-template-columns:1.35fr .65fr; gap:16px; }
.calendar-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.calendar-header h3{ margin:0; font-size:16px; }
.calendar-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.weekdays span{ text-align:center; color:var(--muted); font-size:10px; font-weight:700; padding:6px; }
.days span{ aspect-ratio:1; min-height:44px; display:grid; place-items:center; border-radius:12px; font-size:12px; position:relative; }
.days span.today{ border:1px solid var(--brand); font-weight:700; }
.days span.selected{ background:var(--brand); color:#fff; }
.days span.muted-day{ color:#b9c2bd; }
.event-day i{ position:absolute; width:4px; height:4px; background:var(--accent-strong); bottom:6px; border-radius:50%; font-style:normal; }
.selected i{ background:var(--accent); }
.agenda-card h3{ margin:4px 0 14px; font-size:16px; }
.agenda-item{ display:grid; grid-template-columns:50px 1fr; gap:12px; padding:13px 0; border-top:1px solid var(--line); }
.agenda-time{ font-weight:800; color:var(--brand); font-size:13px; }
.agenda-item strong{ font-size:13px; }
.agenda-item p{ font-size:11.5px; color:var(--muted); margin:3px 0; }
.agenda-empty-hint{ color:var(--muted); font-size:12.5px; }
@media(max-width:900px){ .calendar-layout{ grid-template-columns:1fr; } }

/* Kontakte — Kachel-Ansicht der Ansprechpartner (Hausverwaltung,
   Dienstleister) mit Anruf-Link (tel:) und Direkt-Chat-Button. */
.contact-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.contact-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 6px 24px rgba(15,57,48,.035); padding:22px; transition:.2s; }
.contact-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.contact-avatar{ width:46px; height:46px; border-radius:15px; display:grid; place-items:center; background:var(--surface-soft); font-weight:800; color:var(--brand); }
.contact-avatar.admin{ background:var(--mini-admin-bg); }
.contact-avatar.service{ background:var(--mini-service-bg); }
.contact-label{ display:inline-block; margin:14px 0 4px; color:var(--brand-2); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.contact-card h3{ margin:0; font-size:15px; }
.contact-card p.desc{ font-size:11.5px; line-height:1.5; color:var(--muted); min-height:44px; margin:6px 0 12px; }
.contact-card-top{ display:flex; justify-content:space-between; align-items:flex-start; }
.contact-label-chat{ margin-bottom:6px; }
.chat-panel-narrow{ max-width:640px; }
.chat-empty-hint{ color:var(--muted); font-size:12.5px; }
.contact-actions{ display:flex; gap:8px; }
.contact-actions button, .contact-actions a{ border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:10px; padding:8px 10px; font-size:11px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; flex:1; }
.contact-actions a:hover, .contact-actions button:hover{ border-color:var(--brand-2); }
@media(max-width:760px){ .contact-grid{ grid-template-columns:1fr; } }

/* Profil — Name/Wohnung bearbeiten, Dark-/Light-Mode-Schalter,
   Sprachumschalter (DE/EN) und der Einstieg in die Admin-Testansicht. */
.profile-card{ max-width:440px; padding:24px; }
.profile-card .avatar-lg{ width:52px; height:52px; font-size:17px; margin-bottom:14px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12px; font-weight:700; margin-bottom:6px; }
.field input{ width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--ink); font-size:13.5px; }
.field-tight{ margin-bottom:6px; }
.profile-save-btn{ margin-top:8px; }
.profile-reset-btn{ margin-top:10px; }
.theme-switch{ display:flex; gap:8px; }
.theme-switch .filter-tab{ flex:1; text-align:center; }
.admin-box{ max-width:440px; margin-top:16px; padding:18px 20px; border:1.5px dashed var(--line); border-radius:var(--radius); background:var(--surface-soft); }
.admin-box .lbl{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:700; margin-bottom:8px; }
.admin-box p{ font-size:12px; color:var(--muted); margin-bottom:12px; line-height:1.5; }

