/* ============================================================
   RENT·IT — Werkzeug & Geräte mieten
   Industrielles "Werkstatt"-Design: Graphit + Signal-Orange
   ============================================================ */
:root {
  --bg:        #f4f5f7;
  --surface:   #ffffff;
  --surface-2: #eef0f4;
  --ink:       #14161b;
  --ink-soft:  #454b57;
  --muted:     #868d9c;
  --line:      #e3e6ec;

  --graphite:  #191c22;   /* dunkler Header/Footer */
  --graphite-2:#23272f;

  --brand:     #ff6a00;   /* Signal-Orange */
  --brand-2:   #ffb200;   /* Amber */
  --brand-ink: #cc4e00;
  --gradient:  linear-gradient(135deg,#ff6a00 0%,#ffb200 100%);
  --brand-tint: #fff6ef;         /* helle Orange-Tönung für ausgewählte Elemente */
  --brand-tint-border: #ffd9bd;

  --ok:   #17b877;
  --warn: #f2a20c;
  --err:  #e5484d;

  --shadow-sm: 0 1px 2px rgba(20,22,27,.06), 0 1px 3px rgba(20,22,27,.05);
  --shadow-md: 0 6px 16px rgba(20,22,27,.10), 0 2px 6px rgba(20,22,27,.06);
  --shadow-lg: 0 20px 44px rgba(20,22,27,.20);

  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --bg:        #0f1116;
  --surface:   #171a21;
  --surface-2: #20242d;
  --ink:       #eef1f6;
  --ink-soft:  #c3c9d4;
  --muted:     #8a92a1;
  --line:      #2a2f3a;
  --graphite:  #0a0c10;
  --graphite-2:#151820;
  --brand-tint: rgba(255,106,0,.14);
  --brand-tint-border: rgba(255,106,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 44px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .3s ease, color .3s ease; }
.card, .panel, .booking, .trust-item, .modal, .map-list, .map-item, .chat-panel, .site-header, .field input, .field select, .field textarea { transition: background .3s ease, border-color .3s ease, color .3s ease, box-shadow .14s ease, transform .14s ease; }
a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.18; letter-spacing: -.02em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { border: 0; border-radius: var(--r-full); padding: 11px 20px; font-weight: 700; font-size: 14px; transition: transform .12s, box-shadow .12s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(255,106,0,.35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(255,106,0,.45); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #e2e6ee; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ============================================================
   Header — dark industrial
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 500; background: var(--graphite); color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 13px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: #fff; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 900; font-size: 20px; box-shadow: 0 4px 12px rgba(255,106,0,.5); }
.logo-text { color: #fff; }
.logo-tag { font-size: 11px; font-weight: 600; color: var(--brand-2); letter-spacing: .02em; margin-left: 2px; align-self: flex-end; padding-bottom: 3px; }
@media (max-width: 700px){ .logo-tag { display:none; } }

.searchbar { flex: 1; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-full); padding: 6px 6px 6px 14px; max-width: 640px; transition: .15s; }
.searchbar:focus-within { background: #fff; }
.searchbar:focus-within input { color: #14161b; }
.searchbar:focus-within input::placeholder { color: #868d9c; }
.searchbar:focus-within .search-icon { stroke: #868d9c; }
.search-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: rgba(255,255,255,.7); stroke-width: 2; stroke-linecap: round; }
.searchbar input { flex: 1; border: 0; background: transparent; font-size: 15px; outline: none; color: #fff; }
.searchbar input::placeholder { color: rgba(255,255,255,.6); }
.searchbar button { border: 0; background: var(--gradient); color: #fff; border-radius: var(--r-full); padding: 9px 18px; font-weight: 700; font-size: 14px; }

.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: rgba(255,255,255,.85); font-weight: 600; font-size: 14px; padding: 9px 12px; border-radius: var(--r-full); }
.nav-link:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: var(--gradient); color: #fff; font-weight: 700; font-size: 14px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 17px; transition: background .15s; }
.theme-toggle:hover { background: rgba(255,255,255,.16); }
.theme-ico { line-height: 1; }
:root[data-theme="dark"] .theme-sun { display: none; }
:root:not([data-theme="dark"]) .theme-moon { display: none; }

.category-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-full); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85); transition: all .15s; }
.cat-chip:hover { border-color: var(--brand-2); color: #fff; }
.cat-chip.active { background: var(--gradient); color: #fff; border-color: transparent; }
.cat-chip .emoji { font-size: 16px; }

/* ============================================================
   Hero — dark with tool collage
   ============================================================ */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); margin: 22px 0; background: radial-gradient(120% 140% at 100% 0%, #2b3038 0%, var(--graphite) 55%); color: #fff; padding: 48px 44px; }
.hero::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, transparent 40%, rgba(255,106,0,.18) 100%); pointer-events:none; }
.hero-badge { display:inline-flex; align-items:center; gap:7px; background: rgba(255,178,0,.16); color: var(--brand-2); font-weight:700; font-size:13px; padding:6px 13px; border-radius: var(--r-full); margin-bottom:16px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); max-width: 15ch; position: relative; }
.hero-accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; opacity: .9; max-width: 48ch; margin-bottom: 22px; position: relative; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.2); }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; position: relative; z-index: 1; }
.hero-stats b { display: block; font-size: 24px; color: var(--brand-2); }
.hero-stats span { font-size: 13px; opacity: .8; }
.hero-emojis { position: absolute; right: 30px; bottom: -10px; font-size: 90px; opacity: .12; letter-spacing: 6px; line-height: 1; user-select: none; }
@media (max-width: 760px){ .hero-emojis { display:none; } }

/* Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); }
.trust-item .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); flex: none; }
.trust-item strong { font-size: 14px; }
.trust-item p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* ============================================================
   Category tiles
   ============================================================ */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 8px; }
.cat-tile { position: relative; overflow: hidden; border-radius: var(--r-md); padding: 20px 16px; color: #fff; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-sm); transition: transform .14s, box-shadow .14s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-tile .big { font-size: 34px; }
.cat-tile .lbl { font-weight: 750; font-size: 15px; }
.cat-tile .cnt { font-size: 12px; opacity: .9; }

/* ============================================================
   Listings grid
   ============================================================ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 16px; }
.section-head h2 { font-size: 22px; }
.section-head .count { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .14s, box-shadow .14s; cursor: pointer; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-thumb { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; font-size: 62px; overflow: hidden; }
.thumb-emoji { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: inherit; animation: imgfade .4s ease; }
@keyframes imgfade { from { opacity: 0; } }
.card-thumb .card-badge, .card-thumb .fav { z-index: 2; }
.card-thumb .fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 15px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.card-thumb .fav.on { color: var(--err); }
.card-badge { position: absolute; top: 10px; left: 10px; background: rgba(20,22,27,.85); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: var(--r-full); }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-ink); }
.card-title { font-size: 15.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.card-price { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.card-price b { font-size: 19px; color: var(--ink); }
.card-price span { font-size: 12.5px; color: var(--muted); }
.card-deposit { font-size: 11.5px; color: var(--muted); }
.pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--r-full); }
.pill-verified { background: rgba(23,184,119,.14); color: #0d7a4d; }
.pill-rating { background: var(--surface-2); color: var(--ink-soft); }
.pill-insured { background: rgba(255,106,0,.12); color: var(--brand-ink); }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 46px; }

/* ============================================================
   Detail view
   ============================================================ */
.detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; margin: 20px 0 40px; align-items: start; }
.detail-media { position: sticky; top: 150px; }
.detail-hero { position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); display: grid; place-items: center; font-size: 130px; box-shadow: var(--shadow-md); overflow: hidden; }
.detail-hero .thumb-emoji { position: absolute; inset: 0; display: grid; place-items: center; }
.detail-hero .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; animation: imgfade .4s ease; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.detail-thumbs div { flex: 1; aspect-ratio: 1; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 26px; border: 1px solid var(--line); }
.crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 4px; }
.crumbs a:hover { color: var(--brand-ink); }
.detail h1 { font-size: 27px; }
.detail-price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.detail-price-row .big { font-size: 32px; font-weight: 800; }
.detail-price-row .per { color: var(--muted); }
.detail-section { border-top: 1px solid var(--line); padding: 18px 0; }
.detail-section h3 { font-size: 15px; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 14px; }
.spec-list div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.spec-list span:first-child { color: var(--muted); }

/* inspect promo box on detail */
.inspect-promo { display: flex; gap: 14px; align-items: center; background: var(--brand-tint); border: 1px solid var(--brand-tint-border); border-radius: var(--r-md); padding: 16px; }
.inspect-promo .ico { font-size: 30px; }
.inspect-promo strong { font-size: 14.5px; }
.inspect-promo p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* booking */
.booking { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-md); position: sticky; top: 150px; }
.booking .price { font-size: 26px; font-weight: 800; }
.booking .price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-family: inherit; background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,0,.14); }

/* insurance chooser */
.ins-pick { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.ins-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; transition: .15s; cursor: pointer; }
.ins-opt:hover { border-color: var(--brand-2); }
.ins-opt.sel { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(255,106,0,.10); }
.ins-opt input { margin-top: 3px; accent-color: var(--brand); }
.ins-opt .t { font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
.ins-opt .t .pr { color: var(--brand-ink); }
.ins-opt .d { font-size: 12px; color: var(--muted); }

.cost-line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.cost-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 16px; }
.cost-line .info { color: var(--muted); font-size: 12px; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-soft); background: rgba(23,184,119,.09); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 14px; }

/* owner */
.owner { display: flex; gap: 14px; align-items: center; }
.owner .pic { width: 54px; height: 54px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.owner .name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.owner .sub { font-size: 13px; color: var(--muted); }
.verified-tick { color: var(--brand); }

/* ============================================================
   Map view
   ============================================================ */
.map-wrap { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 210px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 22px 0; box-shadow: var(--shadow-md); }
.map-list { overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); }
.map-list-head { padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.map-item { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.map-item:hover, .map-item.active { background: var(--surface-2); }
.map-item .thumb { position: relative; width: 60px; height: 60px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 28px; flex: none; overflow: hidden; }
.map-item .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-item .t { font-weight: 650; font-size: 14px; line-height: 1.25; }
.map-item .p { color: var(--brand-ink); font-weight: 800; font-size: 14px; margin-top: 2px; }
.map-item .d { font-size: 12px; color: var(--muted); }
#map { height: 100%; width: 100%; }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font); }
.map-pop .t { font-weight: 700; font-size: 14px; }
.map-pop .p { color: var(--brand-ink); font-weight: 800; }
.map-pop button { margin-top: 8px; border: 0; background: var(--gradient); color: #fff; border-radius: var(--r-full); padding: 7px 14px; font-weight: 700; font-size: 13px; }
.pin { background: var(--gradient); width: 34px; height: 34px; border-radius: 50% 50% 50% 2px; transform: rotate(45deg); display: grid; place-items: center; box-shadow: var(--shadow-md); border: 2px solid #fff; }
.pin span { transform: rotate(-45deg); font-size: 16px; }

/* ============================================================
   Forms
   ============================================================ */
.form-page { max-width: 720px; margin: 26px auto 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-pick button { width: 46px; height: 46px; font-size: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); }
.emoji-pick button.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,0,.14); background: var(--brand-tint); }

/* profile */
.profile-head { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); margin: 24px 0; }
.profile-head .pic { width: 84px; height: 84px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 30px; }
.profile-stats { display: flex; gap: 26px; margin-left: auto; text-align: center; }
.profile-stats b { display: block; font-size: 22px; }
.profile-stats span { font-size: 12px; color: var(--muted); }

/* ============================================================
   Chat widget
   ============================================================ */
.chat-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; align-items: center; gap: 9px; background: var(--gradient); color: #fff; border: 0; padding: 14px 20px 14px 16px; border-radius: var(--r-full); box-shadow: 0 12px 30px rgba(255,106,0,.45); font-weight: 700; font-size: 15px; transition: transform .15s; }
.chat-toggle:hover { transform: translateY(-2px) scale(1.03); }
.chat-toggle svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.chat-panel { position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 384px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: var(--graphite); color: #fff; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; font-size: 18px; }
.chat-header strong { display: block; font-size: 15px; }
.chat-status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.chat-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #7dffce; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(125,255,206,0); } 0% { box-shadow: 0 0 0 0 rgba(125,255,206,.6); } }
.chat-close { margin-left: auto; background: rgba(255,255,255,.18); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.msg.user { background: var(--gradient); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; }
.msg.user a { color: #fff; }
.msg-card { align-self: flex-start; max-width: 86%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; gap: 10px; cursor: pointer; box-shadow: var(--shadow-sm); }
.msg-card:hover { border-color: var(--brand); }
.msg-card .th { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; flex: none; }
.msg-card .t { font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.msg-card .p { font-size: 13px; color: var(--brand-ink); font-weight: 800; }
.typing { display: flex; gap: 4px; padding: 13px 15px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s; } .typing i:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,60%,100%{ opacity:.3; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }
.chat-suggestions { display: flex; gap: 8px; padding: 10px 12px 0; flex-wrap: wrap; background: var(--surface); }
.chat-suggestions button { border: 1px solid var(--line); background: var(--surface); color: var(--brand-ink); font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: var(--r-full); }
.chat-suggestions button:hover { background: var(--surface-2); border-color: var(--brand); }
.chat-input { display: flex; gap: 8px; padding: 12px; background: var(--surface); border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: var(--r-full); padding: 11px 15px; font-size: 14px; outline: none; }
.chat-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,0,.14); }
.chat-input button { border: 0; background: var(--gradient); color: #fff; width: 44px; border-radius: 50%; font-size: 16px; flex: none; }

/* ============================================================
   Modal + toast
   ============================================================ */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(20,22,27,.58); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--r-lg); max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s; max-height: 92vh; overflow-y: auto; }
.modal-wide { max-width: 720px; }
.modal-head { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.modal-head h3 { font-size: 20px; margin-bottom: 2px; }
.modal-head button { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; font-size: 15px; flex: none; }
.modal-body { padding: 14px 22px 22px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.pay-method { border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px; text-align: center; font-weight: 700; font-size: 13.5px; }
.pay-method.sel { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.pay-method .big { font-size: 26px; display: block; margin-bottom: 4px; }
.success-check { width: 74px; height: 74px; border-radius: 50%; background: rgba(23,184,119,.14); color: var(--ok); display: grid; place-items: center; font-size: 38px; margin: 6px auto 14px; }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 1100; background: var(--graphite); color: #fff; padding: 12px 20px; border-radius: var(--r-full); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .2s; max-width: 90vw; text-align: center; }

/* ============================================================
   Inspection (KI-Zustands-Check)
   ============================================================ */
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.ins-slot { display: block; border: 2px dashed var(--line); border-radius: var(--r-md); overflow: hidden; cursor: pointer; transition: border-color .15s; background: var(--surface-2); }
.ins-slot:hover { border-color: var(--brand); }
.ins-slot.filled { border-style: solid; border-color: var(--brand); }
.ins-slot-inner { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 14px; position: relative; }
.ins-slot-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ins-cam { font-size: 30px; }
.ins-slot-inner strong { font-size: 14px; }
.ins-hint { font-size: 11.5px; color: var(--muted); }
.ins-badge { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(20,22,27,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 5px; text-align: center; }
.ins-analyzing { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 0; color: var(--muted); font-size: 14px; }
.ins-verdict { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--r-md); padding: 16px; margin: 16px 0; border: 1px solid; }
.ins-verdict.ok   { background: rgba(23,184,119,.10); border-color: rgba(23,184,119,.35); }
.ins-verdict.warn { background: rgba(242,162,12,.10); border-color: rgba(242,162,12,.4); }
.ins-verdict.bad  { background: rgba(229,72,77,.09);  border-color: rgba(229,72,77,.4); }
.ins-verdict-ico { font-size: 30px; }
.ins-verdict strong { font-size: 15.5px; }
.ins-verdict p { margin: 3px 0 6px; font-size: 13px; color: var(--ink-soft); }
.ins-score { font-size: 12.5px; color: var(--muted); }
.ins-score b { color: var(--ink); }
.ins-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ins-compare figure { margin: 0; }
.ins-compare img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.ins-compare figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; font-weight: 600; }
.ins-actions { margin-top: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--graphite); color: rgba(255,255,255,.75); margin-top: 40px; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.logo--footer { color: #fff; margin-bottom: 8px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-cols a { display: block; font-size: 13.5px; color: rgba(255,255,255,.7); padding: 3px 0; }
.footer-cols a:hover { color: var(--brand-2); }
.footer-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .searchbar { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail-media, .booking { position: static; }
  .map-wrap { grid-template-columns: 1fr; height: auto; }
  .map-list { max-height: 260px; }
  #map { height: 60vh; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 30px 24px; }
  .trust-bar, .cat-tiles { grid-template-columns: 1fr; }
  .nav-link span { display: none; }
  .chat-toggle-label { display: none; }
  .ins-grid, .ins-compare, .pay-methods { grid-template-columns: 1fr; }
}
