*{box-sizing:border-box}body{margin:0;background:#f3f5f7;color:#102e47;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif}header{background:#102e47;color:white;padding:20px max(18px,calc((100vw - 900px)/2));font-size:20px;font-weight:700}header small{font-size:13px;font-weight:400}main{max-width:740px;margin:75px auto;padding:0 18px}.panel{background:white;border-radius:17px;padding:32px;box-shadow:0 8px 36px #0d2c4610}h1{margin:0 0 14px;font-size:29px}p{line-height:1.6;color:#42596b}.tag{display:inline-block;background:#fff0e7;color:#9e4b20;padding:6px 12px;border-radius:20px;font-size:13px;font-weight:700;margin-bottom:12px}button{background:#102e47;color:white;border:0;border-radius:9px;padding:13px 18px;font-weight:700;font-size:15px;cursor:pointer;margin:8px 8px 8px 0}button.secondary{background:#e9eef3;color:#102e47}button:disabled{opacity:.5;cursor:not-allowed}#status{white-space:pre-wrap;background:#f2f5f8;padding:14px;border-radius:9px;line-height:1.5;margin-top:16px;font-size:14px;overflow-wrap:anywhere}.muted{font-size:13px;color:#657b8b}#profile{font-weight:700}@media(max-width:520px){main{margin:32px auto}.panel{padding:22px}button{width:100%;margin:5px 0}}
main{max-width:920px}.toolbar{display:flex;gap:10px;margin:18px 0}.toolbar input,.toolbar select{font:inherit;border:1px solid #ccd5dc;border-radius:8px;padding:12px;min-width:0}.toolbar input{flex:1}.customer{border:1px solid #e0e6eb;border-radius:12px;padding:15px;margin:10px 0;background:#fff}.customer summary{cursor:pointer;font-weight:700}.customer .meta{font-size:13px;color:#586e7e;margin:6px 0}.offer{border-top:1px solid #e5e9ed;padding-top:10px;margin-top:10px;font-size:14px}.offer a{color:#14557d;margin-right:12px;overflow-wrap:anywhere}.toolbar select{max-width:220px}@media(max-width:520px){.toolbar{flex-direction:column}.toolbar select{max-width:none}}
.status-pill{display:inline-block;font-size:12px;font-weight:700;padding:4px 9px;margin:0 0 7px;border-radius:20px}.status-pill.green{background:#e3f4d8;color:#28600f}.status-pill.red{background:#ffe1df;color:#a11a1a}.status-pill.orange{background:#fff0d2;color:#8d4a00}.status-pill.unknown{background:#eef0f3;color:#334455}

.summary-info{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;font-size:13px;color:#516779;margin:8px 0}.summary-info .status-pill{margin:0}.customer-detail{margin-top:8px}.offer-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:7px}.offer-head .status-pill{margin:0}.field{margin:5px 0;overflow-wrap:anywhere}.field-label{font-weight:650;color:#42596b}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.actions a{display:inline-block;padding:7px 10px;border-radius:8px;background:#edf3f7;text-decoration:none}.customer:not([open]) .customer-detail{display:none}.customer summary{display:list-item}.customer-name{font-weight:750}@media(max-width:520px){.customer{padding:12px}.summary-info{gap:7px}}

.customer summary{list-style:none;position:relative;padding-left:21px}.customer summary::-webkit-details-marker{display:none}.customer summary:before{content:'▸';position:absolute;left:0;top:0}.customer[open] summary:before{content:'▾'}.summary-address{font-size:14px;font-weight:400;margin:8px 0;color:#263f53}.summary-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 3px}.summary-actions a{font-weight:650;font-size:13px;display:inline-block;padding:9px 12px;border-radius:9px;background:#e9f0f5;color:#102e47;text-decoration:none}.customer summary a:hover{text-decoration:underline}.customer .customer-detail{border-top:1px solid #e5e9ed;margin-top:12px}.customer .offer{padding-top:13px}

/* V3: mobile Lesbarkeit und lange Bemerkungen */
.offer .field{line-height:1.55;white-space:pre-wrap}.offer .field-label{white-space:normal}.summary-actions a:focus-visible,.actions a:focus-visible{outline:3px solid #e49a65;outline-offset:2px}.customer summary{overflow-wrap:anywhere}.customer .offer:last-child{padding-bottom:4px}@media(max-width:520px){main{padding:0 10px}.panel{padding:16px}.customer{padding:12px}.summary-actions a{padding:10px 12px}.offer-head{gap:7px}}

/* V4: mobile-first Suche, Filter und Sprachsteuerung */
.app-toolbar{position:sticky;top:0;z-index:5;background:#fff;padding:10px 0 12px;border-bottom:1px solid #e6ebef;margin-top:12px}
.search-row{display:flex;gap:8px;align-items:stretch}
.search-row input{flex:1;min-width:0;font:inherit;border:1px solid #cbd7e0;border-radius:11px;padding:13px 14px;min-height:48px}
button.voice-button{margin:0;background:#e9eef3;color:#102e47;border:1px solid #dce5eb;white-space:nowrap;padding:11px 14px}
button.voice-button.listening{background:#ffe3d7;color:#8b3100;box-shadow:0 0 0 2px #f7b88b}
.filter-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:10px}
.filter-label{display:flex;flex:1;flex-direction:column;gap:4px;min-width:150px;font-size:12px;font-weight:700;color:#42596b}
.filter-label select{width:100%;font:inherit;font-size:14px;font-weight:500;background:#fff;border:1px solid #cbd7e0;border-radius:9px;padding:11px;min-height:44px;color:#102e47}
button.reset-button{margin:0;background:#f1f5f8;color:#102e47;font-size:13px;padding:12px;min-height:44px}
.voice-hint{margin:6px 0 0;font-size:12px}.voice-hint:empty{display:none}
.customer{scroll-margin-top:160px}.customer summary{padding-top:2px;padding-bottom:2px}.customer summary:focus-visible{outline:3px solid #e49a65;outline-offset:3px}
@media(max-width:600px){header{padding:13px 16px;font-size:18px}header small{font-size:12px}main{margin:0 auto;padding:0;max-width:none}.panel{border-radius:0;box-shadow:none;padding:17px 12px;min-height:100vh}h1{font-size:25px}.panel>p{font-size:14px}.app-toolbar{margin-left:-4px;margin-right:-4px;padding:10px 4px}.search-row input{font-size:16px}.filter-row{gap:8px}.filter-label{min-width:calc(50% - 4px)}button.reset-button{width:100%;margin:0}.voice-button span{display:none}button.voice-button{width:52px;padding:9px}.customer{padding:13px 11px;margin:8px 0}.customer-name{font-size:15px}.summary-actions a{min-height:44px;display:inline-flex;align-items:center}.summary-address{font-size:13px}.offer{font-size:13px}#status{font-size:12px}.panel>button{width:100%;margin:4px 0}}

/* V5: Verbindungsinformationen unterhalb der Kundenliste */
.connection-info{margin-top:30px;padding:18px 0 3px;border-top:1px solid #dce5eb;color:#657b8b}
.connection-info h2{font-size:14px;margin:0 0 8px;color:#42596b}
.connection-info p{font-size:12px;line-height:1.55;margin:7px 0;color:#657b8b}
.summary-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:520px){.summary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.summary-actions a{font-size:12px;padding:9px 5px;text-align:center;overflow-wrap:anywhere}}
