/* =====================================================================
   Ansichten: Kunde und Angebot erstellen
   ===================================================================== */

.kunde__name { font-size: clamp(24px, 5.5vw, 32px); overflow-wrap: anywhere; }
.kunde__kopf { display: flex; flex-direction: column; gap: 16px; }
.kunde__daten { font-size: 14px; margin: 0; }
.kunde__freitext { white-space: pre-line; overflow-wrap: anywhere; }
.kunde__ki { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.kunde__ki p { margin: 4px 0 0; }
details.kunde__ki summary { cursor: pointer; min-height: 32px; list-style-position: inside; }
.kunde__ki-vorschau {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 400; white-space: pre-line; overflow-wrap: anywhere;
}
details.kunde__ki[open] .kunde__ki-vorschau { display: none; }
.angebote__frueher > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 650; color: var(--muted); }
.angebote__frueher[open] > summary { margin-bottom: 12px; }

/* Kontaktknöpfe: Anrufen, WhatsApp, E-Mail, Adresse */
.kontaktknoepfe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .kontaktknoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kontaktknopf { min-height: 48px; padding: 10px 12px; }
.kontaktknopf--aus { opacity: .55; cursor: not-allowed; }
/* Anruf erfassen und WhatsApp gesendet: direkt unter Anrufen und WhatsApp, damit man nach dem Telefonat nicht scrollen muss */
.erfassen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -6px; }
.erfassen__knopf { min-height: 48px; padding: 10px 12px; }

/* Aktionen */
.aktionsraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.aktionsraster__knopf { justify-content: flex-start; min-height: 48px; }

/* Angebote */
.angebot { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); display: flex; flex-direction: column; gap: 14px; }
.angebot--verworfen { opacity: .7; }
.angebot h3 { font-size: 17px; }
.angebot__werte, .angebot__eingang .definitionen { font-size: 14px; margin: 0; }
.angebot__eingang { padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.angebot__eingang strong { display: block; margin-bottom: 6px; }
.angebot__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.angebot__knoepfe .btn { min-height: 44px; }
.angebot__pdfhinweis:empty { display: none; }
.angebot__pdfhinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.angebot__pdfhinweis p { margin: 0; font-size: 13px; }

/* Zeitleiste eines Angebots */
.schrittleiste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.schrittleiste li { position: relative; padding-top: 28px; text-align: center; font-size: 12.5px; color: var(--muted); min-width: 0; }
.schrittleiste li::before { content: ''; position: absolute; top: 8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--card); border: 3px solid var(--line-2); z-index: 1; }
.schrittleiste li::after { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line-2); }
.schrittleiste li:first-child::after { display: none; }
.schrittleiste li[data-zustand='fertig']::before { background: var(--ok); border-color: var(--ok); }
.schrittleiste li[data-zustand='fertig']::after { background: var(--ok); }
.schrittleiste li[data-zustand='fertig'] .schrittleiste__text { color: var(--text); }
.schrittleiste__text { display: block; font-weight: 700; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.schrittleiste__zeit { display: block; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .schrittleiste li { font-size: 11.5px; } }
.schrittleiste__punkt { display: none; }

/* Verlauf */
.zeitstrahl { list-style: none; margin: 0; padding: 0; }
.zeitstrahl__eintrag { position: relative; padding: 0 0 18px 20px; border-left: 2px solid var(--line-2); margin-left: 6px; display: flex; flex-direction: column; gap: 3px; }
.zeitstrahl__eintrag::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid var(--card); }
.zeitstrahl__eintrag:last-child { padding-bottom: 0; }
.zeitstrahl__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.zeitstrahl__titel { overflow-wrap: anywhere; }
.zeitstrahl__text { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.zeitstrahl__text summary { cursor: pointer; min-height: 32px; }
.zeitstrahl__text p { margin: 6px 0 0; }
.zeitstrahl__technisch { font-size: 12.5px; color: var(--muted); }
.zeitstrahl__technisch summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.zeitstrahl__technisch p { margin: 2px 0; font-family: var(--mono); overflow-wrap: anywhere; }

/* Angebot erstellen */
.angebot-erstellen__schritte { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.angebot-erstellen__knoepfe { margin: 4px 0 12px; }
.angebot-erstellen .feld__hinweis { margin-top: 8px; }
.angebot-erstellen .bestaetigung { margin-bottom: 6px; }
