:root {
  --brand: #16883a;
  --brand-600: #11702f;
  --brand-50: #eaf6ed;
  --brand-100: #cdeed5;
  --accent: #16883a;
  --accent-600: #11702f;
  --ink: #18201b;
  --muted: #5f6b63;
  --line: #e6eae7;
  --bg: #f5f7f5;
  --soft: #f3f5f3;
  --card: #ffffff;
  --ok: #1f8a4c;
  --ok-50: #e6f5ec;
  --warn: #b7791f;
  --warn-50: #fdf3e1;
  --danger: #c0392b;
  --danger-50: #fbeae8;
  --star: #f5a524;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 40px rgba(16, 24, 40, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
main.wrap { min-height: calc(100vh - 220px); padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }

/* Topbar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.logo b { color: var(--brand); font-weight: 800; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--brand-50); border-radius: 10px; font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.link { white-space: nowrap; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; position: relative; }
.nav a:hover, .nav button.link:hover { background: var(--bg); text-decoration: none; }
.nav a.active { color: var(--brand); background: var(--brand-50); }
.nav select { width: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.nav a:has(.badge-dot) { padding-right: 24px; }
.badge-dot { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); background: var(--accent); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 1100px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
}

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; color: var(--brand); padding: 0; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd7e0; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 136, 58, .18); }
textarea { min-height: 130px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }
.error-box { background: var(--danger-50); color: var(--danger); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: #b9c6d3; box-shadow: var(--shadow-lg); text-decoration: none; transform: translateY(-1px); }

/* Hero */
.hero { background: linear-gradient(135deg, #0e5c63 0%, #13737b 55%, #1b8a8f 100%); color: #fff; border-radius: 22px; padding: clamp(28px, 6vw, 64px); margin-bottom: 40px; position: relative; overflow: hidden; }
.hero::after { content: '🔨🪚🔧🎨⚡🚿'; position: absolute; right: -20px; bottom: -30px; font-size: 7rem; opacity: .08; letter-spacing: -10px; pointer-events: none; white-space: nowrap; }
.hero h1 { max-width: 720px; }
.hero p.lead { font-size: 1.12rem; max-width: 640px; opacity: .92; margin-bottom: 28px; }
.searchbar { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; max-width: 820px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.searchbar select, .searchbar input { border: 0; background: var(--bg); }
@media (max-width: 720px) { .searchbar { grid-template-columns: 1fr; } }
.hero-alt { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-alt span { opacity: .8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; max-width: 720px; position: relative; z-index: 1; }
.stats div { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px 14px; }
.stats b { display: block; font-size: 1.5rem; }
.stats span { font-size: .85rem; opacity: .85; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.section { margin: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: all .15s; }
.cat-tile:hover { border-color: var(--brand); text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile .ico { font-size: 1.8rem; }
.cat-tile b { font-size: .95rem; }
.cat-tile small { color: var(--muted); font-size: .78rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 4px; }
.feature .ico { font-size: 1.6rem; display: grid; place-items: center; width: 48px; height: 48px; background: var(--brand-50); border-radius: 12px; margin-bottom: 10px; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .features { grid-template-columns: 1fr; } }
.pro-cta { background: var(--ink); color: #fff; border-radius: 20px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pro-cta p { opacity: .8; margin: 0; }

/* Pro cards */
.avatar { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.avatar.lg { width: 88px; height: 88px; font-size: 1.9rem; border-radius: 20px; }
.pro-card { display: flex; gap: 14px; }
.pro-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tag.ok { background: var(--ok-50); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-50); color: var(--warn); border-color: transparent; }
.tag.danger { background: var(--danger-50); color: var(--danger); border-color: transparent; }
.tag.brand { background: var(--brand-50); color: var(--brand); border-color: transparent; }
.tag.accent { background: #fff1e6; color: #b45309; border-color: transparent; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .87rem; margin-top: 6px; }

/* Search layout */
.filters { display: grid; grid-template-columns: 1.2fr 1fr .6fr .8fr 1fr auto; gap: 8px; margin-bottom: 18px; }
@media (max-width: 980px) { .filters { grid-template-columns: 1fr 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.split .map { position: sticky; top: 84px; height: calc(100vh - 110px); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .split .map { position: static; height: 320px; order: -1; } }
.list > * + * { margin-top: 12px; }
.view-toggle { display: none; }

/* Job */
.job-card h3 { margin-bottom: 4px; }
.job-card p { color: var(--muted); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.layout-side { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
@media (max-width: 920px) { .layout-side { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.pre { white-space: pre-wrap; }
.offer { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.offer + .offer { margin-top: 12px; }
.offer.accepted { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-50); }
.offer.rejected { opacity: .6; }
.price { font-size: 1.4rem; font-weight: 800; }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 16px; }
.compare th, .compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.compare th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table-wrap { overflow-x: auto; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: #d6dbe1; cursor: pointer; margin: 0; font-weight: 400; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.notice { background: var(--brand-50); border-radius: 12px; padding: 14px 16px; font-size: .9rem; color: var(--brand-600); }
.notice.accent { background: #fff1e6; color: #8a4510; }

/* Wizard */
.wizard { max-width: 760px; margin: 0 auto; }
.progress { display: flex; gap: 8px; margin: 18px 0 24px; }
.progress div { flex: 1; }
.progress .bar { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.progress .done .bar, .progress .cur .bar { background: var(--brand); }
.progress span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.progress .cur span { color: var(--brand); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 10px; cursor: pointer; text-align: center; font: inherit; color: var(--ink); transition: all .12s; }
.choice:hover { border-color: #9fb3c4; }
.choice.sel { border-color: var(--brand); background: var(--brand-50); }
.choice .ico { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.choice b { font-size: .88rem; font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1px solid #cfd7e0; background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; }
.seg button.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.sel { color: var(--brand); border-color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi b { display: block; font-size: 1.5rem; }
.kpi span { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* Chat */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 170px); min-height: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.chat-item:hover { background: var(--bg); text-decoration: none; }
.chat-item.sel { background: var(--brand-50); }
.chat-item .last { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: var(--brand); }
.bubble time { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 44px; height: 44px; }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } .chat.has-sel .chat-list { display: none; } .chat:not(.has-sel) .chat-main { display: none; } }

/* Auth */
.auth { max-width: 520px; margin: 20px auto; }
.demo-box { margin-top: 20px; font-size: .85rem; }
.demo-box button { margin: 4px 6px 0 0; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--muted); margin-left: 16px; }

/* Toast & loader */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 500; transition: transform .25s; z-index: 2000; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }
.loader { padding: 60px 0; text-align: center; color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { font-size: 2.5rem; display: block; margin-bottom: 8px; }

/* Leaflet */
.leaflet-container { font: inherit; }
.map-pin { background: var(--brand); color: #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.map-pin span { transform: rotate(45deg); font-size: 14px; }
.map-pin.job { background: var(--accent); }

/* --- Erweiterungen --- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 104px; height: 104px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--bg); text-decoration: none; }
.notif.unread { background: var(--brand-50); font-weight: 500; }
.notif-ico { font-size: 1.3rem; width: 28px; text-align: center; flex-shrink: 0; }
.offline-bar { background: var(--warn-50); color: var(--warn); text-align: center; padding: 8px 16px; font-weight: 600; font-size: .9rem; }
.bell-mobile { display: none; position: relative; font-size: 1.3rem; margin-left: auto; padding: 6px 10px; text-decoration: none !important; }
.bell-mobile .badge-dot { top: 0; right: -2px; transform: none; }
@media (max-width: 1100px) { .bell-mobile:not([hidden]) { display: block; } .bell-mobile:not([hidden]) + .burger { margin-left: 4px; } }
.legal h1 { font-size: 1.8rem; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
/* Installierte App: Rand für Notch/Home-Indikator */
@supports (padding: env(safe-area-inset-top)) {
  .topbar { padding-top: env(safe-area-inset-top); }
  .footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* Budget-Regler mit zwei Griffen */
.dual { position: relative; height: 34px; margin: 6px 0 2px; }
.dual-track { position: absolute; left: 0; right: 0; top: 15px; height: 6px; border-radius: 3px; background: var(--line); }
.dual-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--brand); }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.dual input[type=range]::-moz-range-track { background: none; border: 0; }
.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 0; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: grab; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: grab; }
.dual input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(22, 136, 58, .25); }
.dual.off { opacity: .4; }
.dual.off input[type=range]::-webkit-slider-thumb { cursor: default; }
#bud-out { color: var(--brand); }

/* Hinweisleiste der Browser-Demo (GitHub Pages) */
.demo-bar { background: #fff4e8; border-bottom: 1px solid #f6d3b0; color: #6b3d10; font-size: .85rem; padding: 6px 16px; text-align: center; }
.demo-bar b { background: #e67e22; color: #fff; border-radius: 6px; padding: 1px 7px; margin-right: 4px; }
.demo-bar button { margin-left: 6px; font-size: .85rem; }

/* ================= Apuri: App-Look (grün, Leiste unten, Karten wie in der App) ================= */
.i { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.25em; }
body { background: #fff; }
main.wrap { max-width: 1100px; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }

/* Kopfzeile: mobil Menü | Logo | Glocke, Desktop Logo links + Navigation */
.topbar-inner { height: 60px; }
.logo { position: relative; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; padding-top: 8px; color: var(--ink); }
.logo b { color: var(--brand); }
.logo-roof { position: absolute; top: -1px; left: 6px; width: 56px; height: 17px; color: var(--brand); }
.burger { margin: 0; padding: 6px; color: var(--ink); display: none; }
.burger .i { width: 26px; height: 26px; }
.bell-mobile { color: var(--ink); }
.bell-mobile .i { width: 26px; height: 26px; }
.bell-mobile .badge-dot { background: #ef4565; min-width: 10px; height: 10px; padding: 0; top: 4px; right: 8px; font-size: 0; }
.nav .btn-accent { color: #fff; }
.nav a .i { width: 18px; height: 18px; }
@media (max-width: 1100px) {
  .burger { display: block; }
  .topbar-inner { justify-content: space-between; }
  .topbar .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .bell-mobile { margin-left: auto; }
  .bell-mobile:not([hidden]) + .burger { margin-left: 0; }
  .nav { top: 60px; }
}

/* Leiste unten (nur Handy/Tablet) */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); font-size: .7rem; font-weight: 500; padding: 4px 0; position: relative; text-decoration: none !important; }
  .tabbar a .i { width: 24px; height: 24px; }
  .tabbar a.active { color: var(--brand); font-weight: 700; }
  .tabbar a.active .i { stroke-width: 2.3; }
  .tabbar .badge-dot { top: 0; right: calc(50% - 22px); transform: none; background: #ef4565; }
  body { padding-bottom: 76px; }
  .toast { bottom: 90px; }
  .footer { padding-bottom: 20px; }
  main.wrap { padding-top: 14px; }
}

/* Buttons im App-Stil */
.btn { border-radius: 12px; }
.btn-soft { background: var(--brand-100); color: var(--brand-600); font-weight: 700; }
.btn-soft:hover { background: #b9e6c4; }
.btn-xl { padding: 15px 24px; font-size: 1.1rem; border-radius: 14px; width: 100%; }
.btn .i { width: 1.15em; height: 1.15em; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); border-radius: 50%; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
.icon-btn .i { width: 22px; height: 22px; }
.icon-btn.fav-on { color: #e23d5a; }
.icon-btn.fav-on .i { fill: currentColor; }
.card { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }

/* Seitenkopf mit Zurück-Pfeil */
.page-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 1.5rem; }
.page-head .grow { min-width: 0; }

/* Standort */
.locpill { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; margin-bottom: 12px; }
.locpill .i { width: 18px; height: 18px; }
.locpill select { border: 0; background: none; font: inherit; font-weight: 600; padding: 0 2px; width: auto; cursor: pointer; color: var(--ink); }

/* Start: Bild-Hero */
.hero2 { position: relative; border-radius: 20px; color: #fff; padding: clamp(22px, 5vw, 56px) clamp(18px, 5vw, 56px); min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(90deg, rgba(8, 26, 14, .78) 0%, rgba(8, 26, 14, .5) 55%, rgba(8, 26, 14, .1) 100%), url(../img/hero.svg) right center / cover no-repeat, #2d4a35; }
.hero2 h1 { font-size: clamp(1.7rem, 4.6vw, 2.9rem); line-height: 1.12; max-width: 620px; margin-bottom: 10px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero2 p { opacity: .95; margin-bottom: 18px; font-size: 1.02rem; }
.hero-search { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.hero-search .i { color: var(--ink); width: 22px; height: 22px; }
.hero-search input[type=search] { border: 0 !important; box-shadow: none !important; padding: 10px 0 !important; background: none !important; font-size: 1rem; min-width: 0; }
.hero-search .btn { border-radius: 999px; padding: 10px 18px; }
@media (max-width: 560px) { .hero-search .btn { display: none; } }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--ink); }
.suggest a:hover, .suggest a.sel { background: var(--brand-50); text-decoration: none; }
.suggest .i { color: var(--brand); }

.sec { margin: 26px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { font-size: 1.2rem; margin: 0; }
.sec-head a { font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* Leistungs-Kacheln */
.svc-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
@media (max-width: 900px) { .svc-row { grid-template-columns: repeat(4, 1fr); } .svc-row .svc:nth-child(n+5) { display: none; } }
.svc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--soft); border-radius: 14px; padding: 14px 6px; color: var(--ink); text-align: center; font-size: .78rem; font-weight: 600; line-height: 1.2; transition: background .15s, transform .15s; min-height: 92px; }
.svc:hover { background: var(--brand-50); text-decoration: none; transform: translateY(-1px); }
.svc .i { width: 34px; height: 34px; color: var(--brand); stroke-width: 1.6; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc-grid .svc { min-height: 118px; font-size: .92rem; }
.svc-grid .svc .i { width: 40px; height: 40px; }
.svc small { font-weight: 400; color: var(--muted); font-size: .74rem; }

/* Chips (Sortierung, Filter, Reiter) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { text-decoration: none; }
.chip.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip .i { width: 16px; height: 16px; }

/* Betriebs-Karte (Liste) */
.pcard { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; position: relative; }
.pcard + .pcard { margin-top: 10px; }
.pthumb { width: 92px; height: 92px; border-radius: 14px; display: grid; place-items: center; color: #fff; overflow: hidden; flex-shrink: 0; }
.pthumb .i { width: 44px; height: 44px; stroke-width: 1.5; }
.pthumb.sm { width: 52px; height: 52px; border-radius: 12px; }
.pthumb.sm .i { width: 28px; height: 28px; }
.pcard h3 { font-size: 1.05rem; margin: 0 0 2px; padding-right: 34px; }
.pcard h3 a { color: var(--ink); }
.pcard .fav { position: absolute; top: 8px; right: 8px; }
.pline { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--ink); }
.pline > span { display: inline-flex; align-items: center; gap: 4px; }
.pline .i { width: 15px; height: 15px; }
.star-n { font-weight: 600; }
.star-n .i { color: var(--star); fill: var(--star); stroke: var(--star); }
.chips-sm { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.chips-sm span { background: var(--soft); border-radius: 999px; padding: 2px 10px; font-size: .74rem; font-weight: 500; color: var(--ink); }
.chips-sm span.ok { background: var(--brand-50); color: var(--brand-600); font-weight: 700; }
.pcard .btn-soft { width: 100%; padding: 8px 12px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.grid-cards .pcard + .pcard { margin-top: 0; }
@media (max-width: 420px) { .grid-cards { grid-template-columns: 1fr; } .pcard { grid-template-columns: 78px 1fr; } .pthumb { width: 78px; height: 78px; } }

/* Betriebsprofil */
.phero { height: 190px; border-radius: 20px; position: relative; margin-bottom: 46px; display: grid; place-items: center; color: rgba(255,255,255,.22); }
.phero > .i { width: 120px; height: 120px; stroke-width: 1.2; }
.phero .pbadge { position: absolute; left: 18px; bottom: -32px; width: 76px; height: 76px; border-radius: 18px; background: var(--brand); color: #fff; display: grid; place-items: center; border: 4px solid #fff; box-shadow: var(--shadow); }
.phero .pbadge .i { width: 40px; height: 40px; }
.phero .pacts { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.phero .pacts .icon-btn { background: rgba(255,255,255,.92); }
.ptitle { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ptitle h1 { font-size: 1.7rem; margin-bottom: 4px; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; line-height: 1.15; color: var(--ink); flex-shrink: 0; }
.vbadge .i { width: 30px; height: 30px; color: #fff; background: var(--brand); border-radius: 50%; padding: 5px; stroke-width: 2.6; }
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-radius: 14px; margin: 16px 0; }
.feat3 div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; font-size: .8rem; font-weight: 600; }
.feat3 div + div { border-left: 1px solid var(--line); }
.feat3 .i { color: var(--brand); width: 26px; height: 26px; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.checklist .i { color: var(--brand); stroke-width: 2.4; }
.sticky-cta { position: sticky; bottom: 12px; z-index: 5; margin-top: 16px; }
@media (max-width: 900px) { .sticky-cta { bottom: 84px; } }

/* Fertig-Bildschirm (Anfrage gesendet) */
.done-hero { text-align: center; padding: 34px 20px 10px; background: linear-gradient(180deg, var(--brand-50), #fff); border-radius: 20px; }
.done-hero .big { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.done-hero .big .i { width: 48px; height: 48px; stroke-width: 2.6; }
.done-list { background: var(--soft); border-radius: 16px; padding: 6px 18px; margin: 18px 0; text-align: left; }
.done-list div { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.done-list .i { width: 26px; height: 26px; color: var(--brand); }

/* Angebote */
.qcard { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; align-items: start; }
.qcard + .qcard { margin-top: 10px; }
.qcard.accepted { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.qcard.rejected { opacity: .55; }
.qcard .pthumb { width: 76px; height: 76px; }
.qcard h3 { font-size: 1.05rem; margin: 0 0 2px; }
.qprice { text-align: right; }
.qprice b { font-size: 1.35rem; display: block; line-height: 1.1; }
.qprice small { color: var(--muted); font-size: .8rem; }
.qbody { grid-column: 1 / -1; }
.qacts { display: grid; gap: 8px; margin-top: 12px; }
.qacts .btn { width: 100%; }
.qmsg { background: var(--soft); border-radius: 12px; padding: 10px 14px; font-style: italic; margin: 4px 0 0; white-space: pre-wrap; }
@media (max-width: 480px) { .qcard { grid-template-columns: 60px 1fr auto; } .qcard .pthumb { width: 60px; height: 60px; } }

/* Status */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 700; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--brand-100); color: var(--brand-600); }
.pill.open { background: #e0efff; color: #1d4f91; }
.pill.warn { background: #fff1d6; color: #8a5a00; }
.pill.danger { background: var(--danger-50); color: var(--danger); }

/* Meine Projekte */
.proj { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); }
.proj + .proj { margin-top: 10px; }
.proj:hover { text-decoration: none; border-color: #c5d2c8; }
.proj .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.proj .ico .i { width: 30px; height: 30px; }
.proj h3 { font-size: 1rem; margin: 0 0 3px; }
.proj .sub { font-size: .86rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.proj .sub .i { width: 15px; height: 15px; }
.proj > .i { color: var(--muted); }

/* Zuhause-Liste */
.hl-intro { display: flex; gap: 14px; align-items: center; background: var(--brand-50); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.hl-intro > .i { width: 34px; height: 34px; color: var(--brand); }
.hl-intro p { margin: 0; font-size: .9rem; }
@media (max-width: 560px) { .hl-intro { flex-wrap: wrap; } .hl-intro .grow { flex: 1 1 200px; } .hl-intro .btn { width: 100%; } }
.hl-form { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 16px; }
.hl-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.hl-more { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 560px) { .hl-more { grid-template-columns: 1fr 1fr; } .hl-more > :first-child { grid-column: 1 / -1; } }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.task + .task { margin-top: 8px; }
.task.sel { border-color: var(--brand); background: var(--brand-50); }
.task.is-done .ttl { text-decoration: line-through; color: var(--muted); }
.tcheck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b9c4bc; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; margin-top: 1px; }
.tcheck .i { width: 16px; height: 16px; stroke-width: 3; }
.tcheck.on { background: var(--brand); border-color: var(--brand); }
.task .ttl { font-weight: 600; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--ink); }
.task .tmeta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.task .tmeta > span { display: inline-flex; align-items: center; gap: 4px; }
.task .tmeta .i { width: 14px; height: 14px; }
.task .tnote { font-size: .86rem; color: var(--muted); margin-top: 4px; white-space: pre-wrap; }
.task .tside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.prio { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.prio.high { background: #e23d5a; }
.prio.normal { background: #f0a020; }
.prio.low { background: #9aa8a0; }
.selbar { position: sticky; bottom: 12px; z-index: 10; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 18px; margin-top: 14px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .selbar { bottom: 84px; } }
.task-edit { grid-column: 1 / -1; display: grid; gap: 8px; }
.task-edit textarea { min-height: 70px; }
.hl-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 20px 0 8px; }

/* Anfrage aus der Liste */
.from-list { background: var(--brand-50); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.from-list ul { margin: 6px 0 0; padding-left: 20px; }

/* Wizard im App-Stil */
.wizard .card { border-radius: 18px; }
.choice { border-radius: 14px; background: var(--soft); border-color: transparent; }
.choice.sel { border-color: var(--brand); background: var(--brand-50); }
.choice .i { width: 32px; height: 32px; color: var(--brand); display: block; margin: 0 auto 6px; }
.photo-add { width: 76px; height: 76px; border-radius: 14px; background: var(--soft); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); margin: 0; }
.photo-add .i { width: 28px; height: 28px; }
.thumbs .thumb { width: 76px; height: 76px; border-radius: 14px; }

/* Chat */
.bubble { border-radius: 16px; background: var(--soft); border-color: transparent; }
.bubble.me { background: var(--brand-100); color: var(--ink); border-color: transparent; }

/* Leer-Zustände */
.empty > .i { width: 44px; height: 44px; color: var(--brand); display: block; margin: 0 auto 10px; }

/* Karte in der Suche: auf dem Handy nur auf Wunsch */
.map-toggle { display: none; }
@media (max-width: 920px) {
  .map-toggle { display: inline-flex; }
  .split.maptoggle:not(.show-map) .map { display: none; }
  .split.maptoggle .map { height: 300px; }
}
.map, #map { isolation: isolate; }

/* Rasterspalten dürfen schrumpfen (breite Tabellen scrollen dann innerhalb) */
.layout-side > *, .split > * { min-width: 0; }
.qcard h3 a { color: var(--ink); }

/* ================= Vertrauen: Dialoge, Bestätigung, Prüfung, Fotos ================= */
.modal { border: 0; border-radius: 18px; padding: 22px; width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(10, 20, 14, .5); }
.modal:has(.zoomed) { padding: 0; width: auto; max-width: calc(100% - 32px); background: #000; }
.zoomed { display: block; max-width: 100%; max-height: 85vh; }
.modal-x { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); }
.safety { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.safety .link { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.safety .link:hover { color: var(--danger); }
.safety .i { width: 15px; height: 15px; }
.verify-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--brand-50); color: var(--brand-600); padding: 8px 16px; font-size: .88rem; text-align: center; }
.verify-bar[hidden] { display: none; }
.verif { border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), #fff); margin: 14px 0; }
.verif > .row > .i { color: var(--brand); width: 26px; height: 26px; }
.verif .checklist li { padding: 1px 0; }
.pthumb.logo { background: #fff; border: 1px solid var(--line); }
.pthumb.logo img { width: 100%; height: 100%; object-fit: contain; }
.phero.has-photo::after { content: ''; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 40%); pointer-events: none; }
.phero .pbadge.logo { background: #fff; overflow: hidden; }
.phero .pbadge.logo img { width: 100%; height: 100%; object-fit: contain; }
.phero .pacts, .phero .pbadge { z-index: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gallery button { border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb img[data-zoom] { cursor: zoom-in; }
.done-hero.waiting .big { background: #f0a020; }
.chat-head .icon-btn { color: var(--muted); }

/* ================= Aktionen, Radar, Einsatzgebiete ================= */
.deals { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.deal { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; scroll-snap-align: start; }
.deal-img { height: 130px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.deal-img > .i { width: 56px; height: 56px; stroke-width: 1.4; }
.ad-label { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.deal-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.deal-body h3 { font-size: 1rem; margin: 0; }
.deal-body p { margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-body .btn { margin-top: auto; }
.deal-price { font-size: 1.35rem; font-weight: 800; color: var(--brand-600); }
.deal-price small { font-size: .7rem; font-weight: 600; color: var(--muted); }
.radar-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--brand-50); color: var(--brand-600); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: .9rem; }
.radar-bar .i { width: 20px; height: 20px; }
.radar-bar a { margin-left: auto; }
.radar-bar.off { background: var(--soft); }
.radar-bar.off a { margin-left: 0; }
.map-pin.home { background: #e23d5a; }

/* Leaflet setzt position: relative – ohne das würde das Desktop-"top" die Karte auf dem Handy verschieben */
@media (max-width: 920px) { .split .map { top: auto; } }

/* ================= Besichtigung vor Ort ================= */
.visit-pick { display: grid; gap: 8px; background: var(--brand-50); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.visit-pick input:not([type=radio]) { background: #fff; }
.visit-done { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-50); border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.visit-done > .i { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.visit-price { color: var(--brand-600); }
.visit-card h3 .i, .visit-opt .i { color: var(--brand); }

/* ================= Neues Design: Ortsauswahl, Kacheln, Empfehlungen, Entdecken ================= */
button.locpill { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; }
button.locpill:hover span { text-decoration: underline; }
button.locpill .i:last-child { width: 16px; height: 16px; }
.nav-loc { margin: 0 !important; padding: 8px 10px !important; }
.nav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav #lang-sel { padding: 6px 4px; }
@media (max-width: 1100px) { .nav-sep { display: none; } }
.home-loc { font-size: 1.05rem; }
.svc-row.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .svc-row.six { grid-template-columns: repeat(3, 1fr); } .svc-row.six .svc:nth-child(n+5) { display: flex; } }
.freebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--brand-50); border-radius: 16px; padding: 14px 18px; margin: 18px 0; font-weight: 500; }
.freebar > .i { color: var(--brand); width: 26px; height: 26px; }
@media (max-width: 560px) { .freebar .btn { width: 100%; } }
.psvc { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.pwhy { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; color: #8a5a00; background: #fff6e0; border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
.pwhy .i { width: 13px; height: 13px; fill: currentColor; }
.control-box { background: var(--brand-50); border-radius: 18px; padding: 18px 22px; }
.control-box h2 { font-size: 1.2rem; }
.compare-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--brand-50); border-radius: 18px; padding: 20px 24px; margin-top: 18px; }
.compare-box h3 { margin: 0 0 2px; font-size: 1.15rem; }
.compare-box p { margin: 0; color: var(--muted); }
/* Entdecken: Leistungen links, Ergebnisse rechts */
.explore-search { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid #cfd7e0; border-radius: 14px; padding: 6px 6px 6px 16px; margin-bottom: 18px; background: #fff; }
.explore-search input[type=search] { border: 0 !important; box-shadow: none !important; padding: 10px 0 !important; min-width: 0; }
.explore-search > .i { width: 22px; height: 22px; }
.explore { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.explore > * { min-width: 0; }
.ex-side { position: sticky; top: 84px; border-right: 1px solid var(--line); padding-right: 18px; }
.ex-side h3 { font-size: 1.15rem; }
.ex-cat { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.ex-cat:hover { background: var(--soft); text-decoration: none; }
.ex-cat.sel { background: var(--brand-50); font-weight: 700; }
.ex-cat .i { color: var(--brand); width: 22px; height: 22px; }
.ex-side hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.ex-side select { margin-top: 4px; }
.ex-map { height: 340px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 14px; overflow: hidden; }
.ex-main .grid-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ex-back { display: none; }
@media (max-width: 900px) {
  .explore { grid-template-columns: 1fr; }
  .ex-side { display: none; }
  .ex-back { display: inline-grid; }
  .explore-search .btn { display: none; }
}

/* ================= Web-Layout (Desktop): ruhiger Kopf, Fußzeile, Start, Projektkopf, Angebote ================= */
.logo { padding-top: 0; gap: 6px; font-size: 1.45rem; }
.logo-house { width: 30px; height: 30px; color: var(--brand); }
.topbar-inner { height: 68px; }
.nav-main, .nav-right { display: flex; align-items: center; gap: 4px; }
.nav-main { margin-left: 40px; align-self: stretch; }
.nav-right { margin-left: auto; gap: 10px; }
.nav .nav-main a { font-weight: 600; padding: 0 14px; height: 100%; border-radius: 0; background: none; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.nav .nav-main a:hover { background: none; color: var(--brand); }
.nav .nav-main a.active { color: var(--ink); background: none; border-bottom-color: var(--brand); }
.nav .nav-main a:has(.badge-dot) { padding-right: 30px; }
.nav .nav-icon { padding: 8px; border-radius: 50%; }
.nav .nav-icon .i { width: 22px; height: 22px; }
.nav .nav-icon .badge-dot { top: 2px; right: -2px; transform: none; }
.nav-lang { display: inline-flex; align-items: center; gap: 2px; margin: 0; font-weight: 500; color: var(--muted); }
.nav .nav-lang select { border: 0; padding: 4px 2px; background: none; }
.nav .nav-loc { font-weight: 600; }
.umenu { position: relative; }
.umenu summary { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 2px; border-radius: 999px; }
.umenu summary::-webkit-details-marker { display: none; }
.umenu summary > .i { width: 16px; height: 16px; color: var(--muted); }
.uav { width: 38px; height: 38px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
.umenu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; display: grid; }
.nav .umenu-pop a, .umenu-pop button, .umenu-lang { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; margin: 0; text-align: left; width: 100%; }
.nav .umenu-pop a:hover, .umenu-pop button:hover { background: var(--soft); text-decoration: none; }
.umenu-pop .i { width: 18px; height: 18px; color: var(--muted); }
.umenu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; line-height: 1.3; }
.umenu-head span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.nav .umenu-lang select { width: auto; padding: 4px 6px; }
.nav .nav-cta { padding: 9px 16px; font-size: .92rem; }
@media (max-width: 1100px) {
  .nav { gap: 0; }
  .nav-main, .nav-right { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
  .nav-main { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .nav .nav-main a { padding: 10px; border: 0; height: auto; border-radius: 8px; }
  .nav .nav-main a.active { background: var(--brand-50); color: var(--brand-600); }
  .nav .nav-icon { display: none; }
  .umenu summary { display: none; }
  .umenu-pop { position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .umenu:not([open]) > .umenu-pop { display: grid; }
}
@media (max-width: 1100px) { details.umenu > :not(summary) { display: grid !important; } }

/* Fußzeile in Spalten */
.footer { background: #f7f9f7; padding: 40px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; align-items: start; }
.foot-brand p { margin: 10px 0 0; max-width: 280px; }
.foot-col { display: grid; gap: 9px; }
.foot-col h4 { margin: 0 0 4px; color: var(--ink); font-size: .9rem; }
.footer .foot-col a { margin: 0; color: var(--muted); }
.footer .foot-col a:hover { color: var(--brand); }
.footer .logo { font-size: 1.3rem; }
.foot-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; font-size: .82rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Start: Text links, Bild rechts */
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin: 12px 0 8px; }
.home-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 12px; }
.hh-lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 22px; }
.home-hero .hero-search { border: 1px solid #cfd7e0; box-shadow: 0 6px 24px rgba(16, 24, 40, .07); max-width: none; }
.hh-ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .9rem; font-weight: 500; }
.hh-ticks li { display: inline-flex; gap: 6px; align-items: center; }
.hh-ticks .i { color: var(--brand); stroke-width: 2.6; width: 18px; height: 18px; }
.hh-visual { position: relative; min-height: 380px; border-radius: 24px; background: url(../img/hero.svg) center / cover, #2d4a35; display: flex; align-items: flex-end; padding: 22px; overflow: hidden; color: #fff; }
.hh-visual:hover { text-decoration: none; }
.hh-card { background: rgba(10, 30, 17, .86); border-radius: 16px; padding: 16px 20px; display: grid; gap: 6px; backdrop-filter: blur(4px); }
.hh-card b { font-size: 1.4rem; line-height: 1.2; }
.hh-card span { font-size: .88rem; opacity: .9; display: inline-flex; align-items: center; gap: 4px; }
.home-loc { margin-bottom: 18px; }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 18px; }
  .hh-visual { min-height: 170px; }
  .hh-ticks { display: none; }
  .home-hero h1 { font-size: 2rem; }
  .hh-lead { margin-bottom: 14px; }
}

/* Bereiche auf dem Desktop großzügiger */
@media (min-width: 901px) {
  main.wrap { max-width: 1320px; padding-top: 32px; }
  .sec { margin: 44px 0; }
  .sec-head h2 { font-size: 1.45rem; }
  .svc { min-height: 110px; font-size: .9rem; border: 1px solid transparent; }
  .svc:hover { border-color: var(--brand-100); }
  .grid-cards.rec { grid-template-columns: repeat(4, 1fr); }
  .grid-cards.rec .pcard { grid-template-columns: 1fr; padding: 0; overflow: hidden; gap: 12px; }
  .grid-cards.rec .pcard > a:first-child { display: block; }
  .grid-cards.rec .pthumb { width: 100%; height: 140px; border-radius: 0; }
  .grid-cards.rec .pthumb .i { width: 56px; height: 56px; }
  .grid-cards.rec .pcard > div:last-child { padding: 0 14px 14px; display: flex; flex-direction: column; }
  .grid-cards.rec .pcard .fav { top: 8px; right: 8px; background: rgba(255,255,255,.92); }
  .grid-cards.rec .pcard h3 { padding-right: 0; }
  .grid-cards.rec .btn-soft { margin-top: auto; }
  .pro-list { grid-template-columns: 1fr !important; }
  .pro-list .pcard { padding: 16px 200px 16px 16px; grid-template-columns: 104px 1fr; }
  .pro-list .pthumb { width: 104px; height: 104px; }
  .pro-list .pcard .chips-sm { margin-bottom: 0; }
  .pro-list .pcard .btn-soft { position: absolute; right: 16px; bottom: 16px; width: 168px; }
  .pro-list .pcard .fav { top: 12px; right: 12px; }
  .pro-aside { position: sticky; top: 88px; }
  .sticky-cta { display: none; }
  .phero { height: 260px; }
}
.pcard { transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: #cdd8cf; box-shadow: 0 6px 20px rgba(16, 24, 40, .06); }
.cta-card { display: grid; gap: 12px; text-align: center; }
.cta-card b { font-size: 1.15rem; }

/* Projektkopf */
.crumbs { display: flex; gap: 8px; font-size: .92rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { text-decoration: underline; }
.crumbs span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-banner { display: flex; align-items: center; gap: 16px; background: #12301d; color: #fff; border-radius: 18px; padding: 26px 30px; margin-bottom: 24px; }
.job-banner h1 { margin: 0 0 4px; font-size: clamp(1.35rem, 3vw, 2rem); }
.jb-meta { display: flex; gap: 6px; flex-wrap: wrap; opacity: .85; }
.jb-meta span + span::before { content: '·'; margin-right: 6px; }
.jb-status { flex-shrink: 0; }
.jb-btn { border: 1.5px solid rgba(255,255,255,.9); color: #fff; background: none; flex-shrink: 0; }
.jb-btn:hover { background: rgba(255,255,255,.1); }
.jb-back { color: #fff; display: none; margin-left: -6px; }
.jb-back:hover { background: rgba(255,255,255,.1); }
@media (max-width: 900px) {
  .crumbs { display: none; }
  .jb-back { display: inline-grid; }
  .job-banner { padding: 14px 16px; gap: 10px; flex-wrap: wrap; border-radius: 16px; }
  .jb-btn { display: none; }
}
.quotes-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.quotes-layout > * { min-width: 0; }
.q-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.q-filter h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.q-filter hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.qf { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; border-left: 3px solid transparent; padding: 9px 12px; font: inherit; color: var(--ink); cursor: pointer; border-radius: 0 8px 8px 0; text-align: left; }
.qf:hover { background: var(--soft); }
.qf.sel { background: var(--brand-50); border-left-color: var(--brand); font-weight: 700; }
.qf span:last-child { color: var(--muted); }
.q-filter .checkbox { padding: 4px 0; margin: 0; }
.job-details summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: inside; }
.job-details[open] summary { margin-bottom: 12px; }
.q-main > * + * { margin-top: 16px; }
@media (max-width: 900px) {
  .quotes-layout { grid-template-columns: 1fr; }
  .q-side { position: static; order: 2; }
  .q-filter { display: none; }
}
.q-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.q-head h2 { margin: 0; font-size: 1.7rem; }
.q-head .q-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.q-head .q-sort select { width: auto; padding: 8px 12px; }
.q-tabs { display: none; }
@media (max-width: 900px) { .q-tabs { display: flex; } .q-head h2 { font-size: 1.4rem; } .q-head .q-sort { margin-left: 0; width: 100%; } .q-head .q-sort select { flex: 1; } }

/* Angebotskarte: Betrieb | Nachricht | Preis, darunter Aktionen */
.qrow { display: grid; grid-template-columns: 108px minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 6px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.qrow + .qrow { margin-top: 12px; }
.qrow.accepted { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.qrow.rejected { opacity: .6; }
.qrow .pthumb { width: 108px; height: 108px; }
.qrow h3 { font-size: 1.15rem; margin: 2px 0 4px; }
.qrow h3 a { color: var(--ink); }
.qrow .tags { margin-top: 10px; }
.qmsgcol { border-left: 1px solid var(--line); padding-left: 18px; font-size: .92rem; }
.qmsgcol b { display: block; margin-bottom: 2px; }
.qclamp { margin: 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qclamp.open { display: block; }
.qmsgcol .link { font-weight: 600; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.qmsgcol .link .i { width: 16px; height: 16px; }
.qmsgcol .pline { margin-top: 6px; color: var(--muted); }
.qrow .qprice { text-align: right; min-width: 110px; }
.qrow .qprice b { font-size: 1.7rem; }
.qfoot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.qfoot .checkbox { margin: 0; font-weight: 500; }
.qfoot .link { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.qfoot .link .i { width: 18px; height: 18px; }
.qfoot .link.on { color: var(--brand); }
.qfoot .link.on .i { fill: currentColor; }
.qfoot .q-decline { color: var(--muted); }
.qfoot .btn-soft { padding: 9px 18px; }
.qrow .visit-pick, .qrow .visit-done { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .qrow { grid-template-columns: 64px 1fr auto; gap: 4px 12px; padding: 14px; }
  .qrow .pthumb { width: 64px; height: 64px; }
  .qrow h3 { font-size: 1.02rem; }
  .qrow .qprice b { font-size: 1.35rem; }
  .qrow .qprice { min-width: 0; grid-column: 3; grid-row: 1; }
  .qmsgcol { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 6px; }
  .qfoot { gap: 12px; }
  .qfoot .grow { display: none; }
  .qfoot .btn-soft { margin-left: auto; }
}
.cmpbar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px 20px; box-shadow: var(--shadow-lg); }
.cmpbar b { font-size: 1.05rem; }
.cmpbar .link { padding-left: 16px; border-left: 1px solid var(--line); font-weight: 600; }
@media (max-width: 900px) { .cmpbar { bottom: 84px; } .cmpbar .btn { width: 100%; } }
.modal.wide { width: min(860px, calc(100% - 32px)); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; font-weight: 600; color: var(--muted); }
.cmp-table thead th { border-bottom: 0; }
.cmp-who { display: grid; justify-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.cmp-who .pthumb { width: 56px; height: 56px; border-radius: 50%; }
.cmp-price { background: var(--brand-50); border-radius: 12px; padding: 8px; }
.cmp-price b { display: block; font-size: 1.4rem; color: var(--ink); }
.cmp-price small { color: var(--muted); font-weight: 500; }
.cmp-msg { font-size: .85rem; background: var(--soft); border-radius: 10px; padding: 8px 10px; text-align: left; white-space: pre-wrap; }
.qmodal .qprice { text-align: left; }
/* Handy-Menü: Konto-Links direkt statt Aufklapp-Menü */
.nav-acct-m { display: none; }
@media (max-width: 1100px) {
  .nav .umenu { display: none; }
  .nav-acct-m { display: grid; gap: 2px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .nav .nav-acct-m a, .nav-acct-m .umenu-lang, .nav-acct-m .link { display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--ink); font-weight: 500; margin: 0; }
  .nav-acct-m .i { width: 18px; height: 18px; color: var(--muted); }
  .nav-acct-m .umenu-lang select { width: auto; }
}

/* ================= Nachrichten, Benachrichtigungen, Konto und Betriebs-Übersicht im neuen Design ================= */
.card-h { font-size: 1.12rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.av { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .92rem; letter-spacing: .02em; flex-shrink: 0; }
.av.sm { width: 38px; height: 38px; font-size: .82rem; }
.av.lg { width: 76px; height: 76px; font-size: 1.5rem; }
.checkbox .i { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.tag .i { width: 14px; height: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .i { width: 15px; height: 15px; }

/* Nachrichten */
.chat { grid-template-columns: 340px 1fr; height: calc(100vh - 200px); border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.chat-item { display: flex; gap: 12px; align-items: center; border-left: 3px solid transparent; }
.chat-item.sel { border-left-color: var(--brand); }
.ci-body { min-width: 0; flex: 1; display: grid; gap: 1px; }
.ci-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.ci-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-top > span { color: var(--muted); font-size: .76rem; flex-shrink: 0; }
.ci-top .last { min-width: 0; }
.ci-job { display: flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--brand-600); min-width: 0; }
.ci-job .i { width: 14px; height: 14px; flex-shrink: 0; }
.ci-job span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item.unread .last { color: var(--ink); font-weight: 600; }
.ci-top > .ci-n { background: var(--brand); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: .72rem; font-weight: 700; display: grid; place-items: center; align-self: center; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.ch-who { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.ch-who a { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-back { display: none; }
.chat-empty { margin: auto; }
.chat-msgs { background: #f7f9f7; padding: 20px; gap: 6px; }
.bubble { border: 0; border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .07); max-width: min(75%, 560px); }
.bubble.me { border-radius: 18px 18px 6px 18px; }
.bubble time { text-align: right; margin-top: 2px; }
.chat-day { align-self: center; font-size: .74rem; font-weight: 600; color: var(--muted); background: #fff; border-radius: 999px; padding: 2px 12px; margin: 8px 0 4px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.chat-form { align-items: flex-end; gap: 10px; padding: 12px 14px; }
.chat-form textarea { border-radius: 22px; padding: 11px 16px; resize: none; }
.chat-send { width: 44px; height: 44px; border-radius: 50%; padding: 0; flex-shrink: 0; display: grid; place-items: center; }
.chat-send .i { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .ch-back { display: inline-grid; }
  .chat { height: calc(100vh - 250px); min-height: 380px; border-radius: 16px; }
  .chat-msgs { padding: 14px; }
  .bubble { max-width: 86%; }
}

/* Benachrichtigungen */
.notif-list { padding: 0; overflow: hidden; }
.notif { align-items: center; }
.notif.unread { background: #f4faf5; }
.notif-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.notif-ico .i { width: 20px; height: 20px; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }

/* Betriebs-Übersicht */
.proj-price { text-align: right; flex-shrink: 0; display: grid; }
.proj-price b { font-size: 1.2rem; }
.proj-price span { font-size: .78rem; color: var(--muted); }
.checkbox.trade { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.checkbox.trade:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* ================= Bereichsseiten mit Kopfband, volle Breite ================= */
.pagebar, .job-banner, .pro-cta { position: relative; overflow: hidden; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M3.5 12.5 14 4l10.5 8.5M7 10.2v13.3h5.2V18h3.6v5.5H21V10.2' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right -40px bottom -70px / 300px no-repeat, radial-gradient(circle at 85% 0%, #24683d 0%, transparent 55%), linear-gradient(120deg, #10291a 0%, #15402a 100%); }
.pagebar { color: #fff; border-radius: 22px; padding: 26px 30px; margin-bottom: 20px; display: grid; gap: 22px; }
.pb-row { display: flex; align-items: center; gap: 18px; min-width: 0; }
.pb-text { flex: 1; min-width: 0; }
.pb-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fd9ad; margin-bottom: 4px; }
.pagebar h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pb-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; opacity: .85; font-size: .92rem; }
.pb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pb-meta .i { width: 16px; height: 16px; }
.pb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.pb-actions .btn .i { width: 18px; height: 18px; }
.pb-thumb { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.pb-thumb .i { width: 40px; height: 40px; }
.av.xl { width: 76px; height: 76px; font-size: 1.6rem; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.pb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pb-stat { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; }
.pb-stat > .i { width: 26px; height: 26px; color: #9fd9ad; flex-shrink: 0; }
.pb-stat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.pb-stat span { font-size: .82rem; opacity: .75; }
.pagebar.sm { padding: 18px 24px; margin-bottom: 16px; }
.pagebar.sm h1 { font-size: 1.5rem; }
@media (max-width: 760px) {
  .pagebar { padding: 18px; border-radius: 18px; gap: 16px; background-size: 200px, auto, auto; background-position: right -40px bottom -50px, 0 0, 0 0; }
  .pb-row { flex-wrap: wrap; gap: 14px; }
  .pb-actions { width: 100%; }
  .pb-actions .btn { flex: 1; justify-content: center; display: inline-flex !important; }
  .pb-thumb, .av.xl { width: 58px; height: 58px; font-size: 1.25rem; }
  .pb-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pb-stat { padding: 10px 12px; gap: 10px; }
  .pb-stat b { font-size: 1.2rem; }
  .pb-stat > .i { width: 22px; height: 22px; }
}
.ch-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.ch-ico .i { width: 18px; height: 18px; }

/* Inhalt + Seitenspalte */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.dash-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.dash-side .card + .card { margin-top: 0; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } .dash-side { position: static; } }
.strength .st-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.strength h3 { margin: 0 0 2px; }
.strength p { margin: 0; }
.st-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--brand-100) 0); position: relative; }
.st-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.st-ring b { position: relative; font-size: .95rem; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.st-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.st-list li .i { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.st-list li span { flex: 1; }
.st-list li.ok { color: var(--muted); }
.st-list li.ok .i { color: var(--brand); }
.st-list li a { font-weight: 700; font-size: .84rem; }
.sumrow { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sumrow b { font-size: 1.1rem; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; background: var(--brand-50); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.sum-total span { color: var(--brand-600); font-weight: 600; font-size: .9rem; }
.sum-total b { font-size: 1.35rem; }
.dash-grid .proj { padding: 16px 18px; }

/* Konto: zwei Spalten */
.acct-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.acct-cols > .stack > * + * { margin-top: 20px; }
.acct-cols .card + .card { margin-top: 20px; }
.acct-cols h2 { font-size: 1.12rem; }
.acct-danger { border-color: #f1cfca; }
.acct-danger .ch-ico { background: var(--danger-50); color: var(--danger); }
@media (max-width: 900px) { .acct-cols { grid-template-columns: 1fr; } }

/* Benachrichtigungen */
.notif-day { padding: 14px 18px 6px; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: #fafbfa; border-bottom: 1px solid var(--line); }
.notif-ico.k-messages { background: #e0efff; color: #1d4f91; }
.notif-ico.k-reviews { background: #fff1d6; color: #8a5a00; }
.notif-ico.k-jobs { background: #efe9fb; color: #5b3d99; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: #cfd7d1; position: relative; flex-shrink: 0; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Nachrichten: Liste | Verlauf | Auftrag */
.chat { height: calc(100vh - 230px); }
.chat.has-side { grid-template-columns: 330px minmax(0, 1fr) 300px; }
.chat-side { border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; display: grid; gap: 18px; align-content: start; background: #fbfcfb; }
.cs-block { display: grid; gap: 8px; justify-items: start; }
.cs-label { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cs-job { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.cs-job:hover b { text-decoration: underline; }
.cs-job .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.cs-job .ico .i { width: 24px; height: 24px; }
.cs-meta { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.cs-meta .i { width: 15px; height: 15px; }
.cs-who { display: flex; align-items: center; gap: 10px; }
.cs-who div { display: grid; line-height: 1.3; }
.cs-who span { font-size: .85rem; color: var(--muted); }
.cs-block .btn-block { width: 100%; }
.cs-tip { display: flex; gap: 10px; background: var(--brand-50); border-radius: 12px; padding: 12px; font-size: .84rem; color: var(--brand-600); }
.cs-tip .i { width: 20px; height: 20px; flex-shrink: 0; }
.cs-tip p { margin: 0; }
@media (max-width: 1200px) { .chat.has-side { grid-template-columns: 300px minmax(0, 1fr); } .chat-side { display: none; } }
@media (max-width: 760px) { .chat.has-side { grid-template-columns: 1fr; } .chat { height: calc(100vh - 260px); } }
.demo-fail { margin: 48px auto; max-width: 520px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* ================= Breite Bildschirme: den Platz nutzen ================= */
@media (min-width: 901px) {
  .wrap, main.wrap { max-width: 1840px; padding-left: clamp(16px, 2.6vw, 56px); padding-right: clamp(16px, 2.6vw, 56px); }
}
@media (min-width: 901px) {
  .grid-cards.rec { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .deals { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); overflow: visible; }
}
@media (min-width: 1400px) {
  /* Suche: Liste links, Karte bleibt rechts stehen */
  .ex-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 44%); column-gap: 24px; align-content: start; }
  .ex-main > * { grid-column: 1; min-width: 0; }
  .ex-main > .ex-map { grid-column: 2; grid-row: 1 / span 12; position: sticky; top: 84px; height: calc(100vh - 110px); margin: 0; align-self: start; }
  .ex-main .map-toggle { display: none; }
  .dash-grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .chat.has-side { grid-template-columns: 380px minmax(0, 1fr) 360px; }
}
@media (max-width: 900px) { .proj-bar .pb-stats { display: none; } }
@media (min-width: 1200px) {
  /* Projekte und Zuhause-Liste in Spalten statt einer sehr breiten Zeile */
  .proj-grid, .hl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .proj-grid .proj + .proj, .hl-list .task + .task { margin-top: 0; }
  .hl-list > :not(.task) { grid-column: 1 / -1; margin-bottom: 0; }
  .hl-list > .task:has(.task-edit) { grid-column: 1 / -1; }
}
@media (min-width: 1700px) { .proj-grid, .hl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 901px) { .grid-cards.rec { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
@media (min-width: 1400px) {
  /* Start: Angebote und Zuhause-Liste nebeneinander */
  .home-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 0 40px; align-items: start; }
  .home-duo > .sec { min-width: 0; }
}

/* Anfrage-Formular: auf breiten Bildschirmen mit Seitenspalte "So geht es weiter" */
.wiz-side { display: none; }
@media (min-width: 1100px) {
  .wizard.has-side { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .wiz-side { display: block; position: sticky; top: 92px; margin-top: 8px; padding: 24px; border-radius: 20px; color: #fff;
    background: radial-gradient(circle at 100% 0, rgba(46, 160, 90, .35), transparent 60%), linear-gradient(135deg, #10291a, #15402a); }
  .wiz-side h3 { margin: 0 0 16px; font-size: 1.15rem; }
  .wiz-steps { list-style: none; margin: 0; padding: 0; counter-reset: ws; display: grid; gap: 14px; }
  .wiz-steps li { counter-increment: ws; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: .93rem; line-height: 1.4; }
  .wiz-steps li::before { content: counter(ws); width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
  .wiz-ticks { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 8px; font-size: .86rem; }
  .wiz-ticks li { display: flex; gap: 8px; align-items: center; }
  .wiz-ticks .i { color: #9fd9ad; width: 17px; height: 17px; stroke-width: 2.6; }
}
@media (min-width: 901px) { .svc-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .svc-grid .svc { min-height: 132px; } }
@media (max-width: 900px) { .pagebar.nav-only .pb-actions { display: none; } }

/* Icons statt Emojis */
.map-pin span { display: grid; place-items: center; }
.map-pin .i { width: 16px; height: 16px; stroke-width: 2.2; vertical-align: 0; }
.choice .ico .i, .empty .ico .i { width: 30px; height: 30px; color: var(--brand); }
.notice > .i:first-child, .hint > .i:first-child { width: 1.05em; height: 1.05em; }
.kv dt .i { color: var(--muted); }

/* Anmelden, Registrieren, Passwort: links ein Bild, rechts das Formular */
@media (min-width: 1000px) {
  .auth.card { max-width: 1000px; margin: 28px auto; padding: 48px 48px 48px 448px; overflow: hidden; position: relative; min-height: 520px;
    display: flex; flex-direction: column; justify-content: center; border-radius: 24px; }
  .auth.card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 400px;
    background: linear-gradient(180deg, rgba(16, 41, 26, .15), rgba(16, 41, 26, .6)), url(../img/hero.svg) center / cover, #2d4a35; }
}
.auth.wide { max-width: 760px; }
@media (min-width: 1000px) { .auth.card.wide { max-width: 1240px; } }

/* Rechtstexte: Navigation links, Text in Lesebreite */
.legal-wrap { max-width: 1180px; margin: 0 auto; }
.legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.legal-nav h3 { display: none; }
.legal-nav .ex-cat { padding: 7px 12px; border: 1px solid var(--line); font-size: .9rem; }
.legal-nav .ex-cat.sel { border-color: var(--brand-100); }
.legal { line-height: 1.65; }
@media (min-width: 1000px) {
  .legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
  .legal-nav { display: grid; gap: 2px; position: sticky; top: 92px; margin: 0; border-right: 1px solid var(--line); padding-right: 18px; }
  .legal-nav h3 { display: block; font-size: 1.15rem; margin: 0 0 8px; }
  .legal-nav .ex-cat { border: 0; padding: 9px 12px; font-size: 1rem; }
  .legal { padding: 36px 44px; }
}
h2 > .i:first-child { width: 1.1em; height: 1.1em; color: var(--brand); margin-right: 4px; }
td .i { width: 15px; height: 15px; color: var(--muted); }

/* Admin: Startklar-Liste */
.launch { margin-bottom: 18px; }
.launch summary { display: flex; gap: 14px; align-items: center; cursor: pointer; list-style: none; }
.launch summary::-webkit-details-marker { display: none; }
.launch summary > span:last-child { display: grid; gap: 2px; }
.launch-list { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px 24px; }
.launch-list li { align-items: start; }
.launch-list code { margin-left: auto; font-size: .72rem; color: var(--muted); text-align: right; overflow-wrap: anywhere; max-width: 55%; }

/* Hinweis "E-Mail bestätigen": am Handy Icon links neben dem Text statt darüber */
@media (max-width: 700px) {
  .verify-bar { display: grid; grid-template-columns: auto 1fr; text-align: left; justify-content: start; gap: 4px 10px; padding: 10px 16px; }
  .verify-bar > .i { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
  .verify-bar > :not(.i) { grid-column: 2; justify-self: start; }
  .verify-bar span { overflow-wrap: anywhere; }
}

/* Rückfrage-Fenster (statt Browser-Dialog) */
.ask p { margin: 0 0 12px; line-height: 1.5; }
.ask p:first-child { font-weight: 600; font-size: 1.05rem; }
.ask-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
@media (max-width: 480px) { .ask-btns { flex-direction: column-reverse; } .ask-btns .btn { width: 100%; } }
/* Seite hinter einem offenen Fenster nicht mitscrollen */
html:has(dialog[open]) { overflow: hidden; }

/* Bewertung nach erledigtem Auftrag: groß im Hauptbereich statt in der Seitenspalte */
.review-card { margin-bottom: 16px; border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), #fff 120px); }
.review-form { display: grid; gap: 14px; }
.review-form .card-h { margin: 0; }
.rv-stars { display: grid; gap: 8px; }
.rv-stars .row { flex-wrap: nowrap; gap: 12px; }
.rv-main { font-weight: 700; font-size: 1.05rem; }
.rv-main .star-input label { font-size: 2rem; }
.rv-text { display: grid; gap: 10px; }
.rv-text textarea { min-height: 110px; }
@media (min-width: 900px) {
  .review-form { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); column-gap: 32px; }
  .review-form .card-h { grid-column: 1 / -1; }
  .rv-text .btn { justify-self: end; min-width: 220px; }
}
@media (max-width: 899px) { .rv-text .btn { width: 100%; } }

/* Durchsicht: Sortier-Chips in der Suche umbrechen statt abschneiden; Betriebe-Block der Startseite im Kopfband-Stil */
@media (min-width: 901px) { .ex-main .chips { flex-wrap: wrap; overflow: visible; } }
.pro-cta { border-radius: 22px; }
.pro-cta > div:first-child { flex: 1 1 420px; }
.pro-cta h2 { margin: 0 0 6px; }
/* Offene Aufträge: Filter am Handy untereinander statt vier gequetschte Felder */
.filters.jobs-filter { grid-template-columns: 1.2fr 1fr .6fr auto; }
@media (max-width: 700px) { .filters.jobs-filter { grid-template-columns: 1fr auto; } .filters.jobs-filter > :nth-child(-n+2) { grid-column: 1 / -1; } }

/* Talokirja – Historia: Chronik erledigter Arbeiten, druckbar (Hausverkauf, Steuer) */
.task.log { grid-template-columns: 84px 1fr auto; }
.task .tdate { font-size: .85rem; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.task .tdetails { margin-top: 4px; font-size: .88rem; white-space: pre-wrap; }
.hl-past > summary { list-style: none; margin-bottom: 10px; }
.hl-past > summary::-webkit-details-marker { display: none; }
.hl-form textarea { width: 100%; margin-top: 8px; min-height: 44px; }
.hl-logbar { align-items: center; margin: 4px 0; }
@media (max-width: 560px) { .task.log { grid-template-columns: 1fr; gap: 4px; } .task.log .tside { align-items: flex-start; } }
.print-only { display: none; }
@media print {
  .topbar, .tabbar, .footer, .pagebar, .verify-bar, .selbar, .no-print, .toast { display: none !important; }
  .print-only { display: block; font-size: 1.4rem; margin: 0 0 12px; }
  body { background: #fff; }
  #app { padding: 0; max-width: none; }
  .task { break-inside: avoid; border-color: #bbb; }
}
