:root{
  --canvas:#F4EFE6;
  --surface:#FBF8F2;
  --primary:#F47A37;
  --primary-pressed:#D95E22;
  --ink:#211F1B;
  --muted:#6F6A61;
  --border:#DDD4C6;
  --success:#3B7B61;
  --danger:#B85145;
  --warning:#B9872F;

  --font-display:'Fredoka', sans-serif;
  --font-body:'Plus Jakarta Sans', sans-serif;

  --ease: cubic-bezier(.4,0,.2,1);
}

*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html,body{ height:100%; overflow-x:hidden; }
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--canvas);
  min-height:100vh;
  min-height:100dvh;
  width:100%;
}

::selection{ background:var(--primary); color:#fff; }

button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input{ font-family:inherit; }
a{ color:inherit; text-decoration:none; }

/* ============ APP ROOT (kein Handy-Rahmen, füllt die Seite) ============ */
.app-root{
  position:relative;
  width:100%;
  max-width:560px;
  min-height:100vh;
  min-height:100dvh;
  margin:0 auto;
  background:var(--canvas);
  display:flex;
  flex-direction:column;
}

/* App-Shell (eingeloggter Bereich) auf dem Handy: Body komplett sperren,
   nur .app-content scrollt intern - verhindert den iOS-"Bounce"-Effekt, der
   Header/Fussleiste sonst beim Ziehen mitwackeln laesst. Nur bis 899px,
   damit das normale Seiten-Scrollen am Desktop unangetastet bleibt. */
@media (max-width: 899px){
  body:has(.app-shell),
  body.has-app-shell{
    position:fixed; top:0; right:0; bottom:0; left:0; overflow:hidden; height:100%;
  }
  .app-shell{
    height:100vh; height:100dvh; min-height:0;
    overflow:hidden;
  }
  .app-shell .app-body{
    flex:1; min-height:0;
    display:flex; flex-direction:column;
    overflow:hidden;
  }
  .app-shell .app-content{
    flex:1; min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding-bottom:24px;
  }
  .app-shell .app-header,
  .app-shell .bottom-nav{ flex:none; }
}

/* iOS Safari zoomt automatisch in ein Eingabefeld hinein, wenn dessen
   Schriftgroesse unter 16px liegt - das fuehlt sich wie ein Bug an ("wackelt",
   man muss rauszoomen). Deshalb auf dem Handy ALLE Text-Eingaben auf
   mindestens 16px setzen, unabhaengig vom sonstigen Seiten-Layout. */
@media (max-width: 899px){
  .field input,
  .field select,
  .field textarea,
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  textarea,
  select{
    font-size:16px !important;
  }
}

/* ============ AUTH (index.php) ============ */
.auth-scroll{
  padding:max(28px, env(safe-area-inset-top)) 16px 40px;
  position:relative;
  z-index:1;
}

.watermark{
  position:absolute;
  top:52px; right:-70px;
  width:280px; height:280px;
  opacity:.45;
  pointer-events:none;
  z-index:0;
}

.auth-logo{ display:flex; justify-content:center; margin-top:8px; }
.auth-logo img{ height:30px; width:auto; display:block; }

.auth-tagline{
  text-align:center;
  color:var(--muted);
  font-size:13.5px;
  font-weight:500;
  margin-top:10px;
}

.flash-error{
  margin-top:22px;
  background:rgba(184,81,69,.1);
  border:1.5px solid var(--danger);
  color:var(--danger);
  border-radius:16px;
  padding:12px 14px;
  font-size:12.5px;
  font-weight:600;
  line-height:1.5;
}
.flash-error ul{ margin:0; padding-left:18px; }

.auth-card{
  margin-top:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:28px;
  padding:8px;
  box-shadow:0 18px 40px -18px rgba(33,31,27,.18);
}

/* segmented control (Anmelden / Registrieren) */
.segmented{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  background:var(--canvas);
  border-radius:20px;
  padding:4px;
}
.segmented-indicator{
  position:absolute;
  top:4px; left:4px;
  width:calc(50% - 4px);
  height:calc(100% - 8px);
  background:var(--surface);
  border-radius:16px;
  box-shadow:0 4px 10px -4px rgba(33,31,27,.25), 0 0 0 1px rgba(221,212,198,.6);
  transition:transform .35s var(--ease);
  z-index:0;
}
.segmented.mode-register .segmented-indicator{ transform:translateX(100%); }

.seg-btn{
  position:relative;
  z-index:1;
  padding:11px 0;
  text-align:center;
  font-family:var(--font-display);
  font-weight:500;
  font-size:14.5px;
  color:var(--muted);
  border-radius:16px;
  transition:color .3s var(--ease);
}
.segmented:not(.mode-register) .seg-btn.tab-login,
.segmented.mode-register .seg-btn.tab-register{ color:var(--ink); }

.auth-forms{ display:grid; padding:22px 16px 18px; }
.auth-forms > form{ grid-area:1/1; }

.form-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
  opacity:1;
  transform:translateX(0) scale(1);
  transition:opacity .3s var(--ease), transform .38s var(--ease);
  pointer-events:auto;
}
.form-panel.hide-left{ opacity:0; transform:translateX(-18px) scale(.985); pointer-events:none; }
.form-panel.hide-right{ opacity:0; transform:translateX(18px) scale(.985); pointer-events:none; }

/* Floating-Label-Felder */
.field{ position:relative; }
.field input{
  width:100%;
  background:var(--surface);
  border:1.5px solid var(--border);
  border-radius:16px;
  padding:21px 16px 9px;
  font-size:15px;
  font-weight:500;
  color:var(--ink);
  outline:none;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder{ color:transparent; }
.field label:not(.upload-label){
  position:absolute;
  left:16px; top:16px;
  font-size:14.5px;
  font-weight:500;
  color:var(--muted);
  pointer-events:none;
  transition:all .2s var(--ease);
}
.field input:focus{ border-color:var(--primary); box-shadow:0 0 0 4px rgba(244,122,55,.14); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label{
  top:7px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--primary);
}
.field.has-icon input{ padding-right:44px; }
.field .icon-btn{
  position:absolute; right:6px; top:6px;
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
  border-radius:10px;
}
.field .icon-btn:hover{ background:var(--canvas); }
.field-hint{ font-size:11px; color:var(--muted); font-weight:500; margin-top:-6px; }

.row-between{ display:flex; align-items:center; justify-content:space-between; margin-top:-2px; }

/* echte, custom-gestylte Checkbox (kein JS nötig) */
.checkbox-line{
  display:flex; align-items:flex-start; gap:9px;
  font-size:12.5px; color:var(--muted); font-weight:500; line-height:1.45;
  cursor:pointer;
}
.checkbox-line a{ color:var(--ink); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.checkbox-line input[type="checkbox"]{
  position:absolute; width:1px; height:1px; opacity:0; pointer-events:none;
}
.chk-box{
  width:18px; height:18px; margin-top:1px;
  border-radius:6px; border:1.5px solid var(--border); background:var(--surface);
  flex:none; display:flex; align-items:center; justify-content:center;
  transition:background .18s, border-color .18s;
}
.chk-box svg{ width:11px; height:11px; opacity:0; transform:scale(.5); transition:all .15s var(--ease); }
.checkbox-line input:checked + .chk-box{ background:var(--primary); border-color:var(--primary); }
.checkbox-line input:checked + .chk-box svg{ opacity:1; transform:scale(1); }
.checkbox-line input:focus-visible + .chk-box{ box-shadow:0 0 0 3px rgba(244,122,55,.35); }

.link-muted{ font-size:12.5px; font-weight:700; color:var(--primary); }

.btn-primary{
  margin-top:4px; width:100%; padding:15px 0;
  background:var(--primary); color:#FFF8F0;
  font-family:var(--font-display); font-weight:600; font-size:15.5px;
  border-radius:999px;
  box-shadow:0 12px 22px -10px rgba(244,122,55,.55);
  transition:background .18s, transform .12s, box-shadow .18s;
}
.btn-primary:hover{ background:var(--primary-pressed); box-shadow:0 14px 26px -10px rgba(217,94,34,.55); }
.btn-primary:active{ transform:translateY(1px) scale(.99); }

.divider{
  display:flex; align-items:center; gap:12px; margin:6px 0 2px;
  color:var(--muted); font-size:11.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
}
.divider::before, .divider::after{ content:''; flex:1; height:1px; background:var(--border); }

/* ---- Social-Login: größer & mit korrektem Google-Logo ---- */
.social-row{ display:flex; justify-content:center; gap:16px; }
.social-btn{ display:flex; flex-direction:column; align-items:center; gap:7px; }
.social-circle{
  width:64px; height:64px;
  border-radius:50%;
  background:var(--surface);
  border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .18s, transform .15s, background .18s, box-shadow .18s;
}
.social-btn:hover .social-circle{
  border-color:var(--ink);
  transform:translateY(-2px);
  box-shadow:0 10px 18px -10px rgba(33,31,27,.35);
}
.social-btn span{ font-size:11px; font-weight:600; color:var(--muted); }

.auth-switch-hint{ text-align:center; margin-top:22px; font-size:12px; color:var(--muted); font-weight:500; }

/* ============ APP-HEADER (includes/header.php) ============ */
.app-header{
  position:relative; z-index:30;
  height:calc(64px + env(safe-area-inset-top));
  padding:env(safe-area-inset-top) 14px 0;
  display:flex; align-items:center; justify-content:space-between;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  flex:none;
  box-sizing:border-box;
}
.app-header .brand{ display:flex; align-items:center; gap:8px; }
.app-header .brand img{ height:16px; width:auto; }
.app-header .actions{ display:flex; align-items:center; gap:10px; }
.icon-circle{
  position:relative; width:38px; height:38px; border-radius:50%;
  background:var(--canvas); display:flex; align-items:center; justify-content:center;
  color:var(--ink); transition:background .15s;
}
.icon-circle:hover{ background:var(--border); }
.icon-circle .badge{
  position:absolute; top:6px; right:7px; width:7px; height:7px; border-radius:50%;
  background:var(--primary); border:1.5px solid var(--surface);
}
.icon-circle .badge-count{
  width:auto; height:16px; min-width:16px; border-radius:8px; padding:0 4px;
  top:-3px; right:-3px;
  display:flex; align-items:center; justify-content:center;
  font-size:9.5px; font-weight:800; color:#fff; line-height:1;
}
.avatar{
  width:38px; height:38px; border-radius:50%;
  background:linear-gradient(150deg,#F4A56C,var(--primary));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:14px;
}
.avatar-photo{ object-fit:cover; display:block; background:var(--canvas); }

/* ============ APP CONTENT ============ */
.app-content{ flex:1; width:100%; box-sizing:border-box; padding:22px 14px 110px; position:relative; }

.greeting-title{ font-family:var(--font-display); font-weight:600; font-size:22px; }
.greeting-sub{ margin-top:4px; font-size:13px; color:var(--muted); font-weight:500; }

.stat-row{ display:flex; gap:12px; margin-top:20px; }
.stat-card{ flex:1; min-width:0; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px; box-sizing:border-box; }
.stat-card-ic{
  width:34px; height:34px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.12); color:#fff; margin-bottom:12px;
}
.stat-card-ic-light{ background:rgba(244,122,55,.1); color:var(--primary); }
.stat-card .num{ font-family:var(--font-display); font-weight:600; font-size:22px; }
.stat-card .lbl{ margin-top:2px; font-size:11.5px; color:var(--muted); font-weight:600; }
.stat-card-sub{ margin-top:6px; font-size:10.5px; color:var(--muted); opacity:.75; }
.stat-card.accent{ background:var(--ink); color:var(--surface); border-color:var(--ink); }
.stat-card.accent .lbl{ color:rgba(251,248,242,.7); }
.stat-card.accent .stat-card-sub{ color:rgba(251,248,242,.5); }
.stat-card.stat-card-pending{ background:rgba(185,135,47,.1); border-color:rgba(185,135,47,.35); }
.stat-card.stat-card-pending .num{ color:var(--warning); }
.stat-card.accent .lbl{ color:#c9c3b8; }

.section-title{ margin-top:26px; margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; }
.section-title h3{ font-family:var(--font-display); font-weight:600; font-size:15.5px; }
.section-title .see-all{ font-size:12px; font-weight:700; color:var(--primary); }

.feed-card{ display:flex; gap:12px; padding:14px; background:var(--surface); border:1px solid var(--border); border-radius:18px; margin-bottom:10px; }
.feed-avatar{ width:38px; height:38px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:600; font-size:13px; color:#fff; background:linear-gradient(150deg,#F4A56C,var(--primary)); }
.feed-body{ flex:1; min-width:0; }
.feed-name-row{ display:flex; align-items:baseline; gap:6px; }
.feed-name{ font-weight:700; font-size:13.5px; }
.feed-time{ font-size:11px; color:var(--muted); font-weight:500; }
.feed-text{ margin-top:3px; font-size:13px; color:var(--ink); line-height:1.45; }
.feed-meta{ display:flex; gap:14px; margin-top:9px; }
.feed-meta span{ display:flex; align-items:center; gap:5px; font-size:11.5px; color:var(--muted); font-weight:600; }

/* Profil */
.profile-head{ display:flex; flex-direction:column; align-items:center; text-align:center; padding-top:6px; }
.profile-avatar-wrap{ position:relative; }
.profile-avatar{
  width:88px; height:88px; border-radius:50%;
  background:linear-gradient(150deg,#F4A56C,var(--primary));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:30px;
  box-shadow:0 10px 24px -8px rgba(244,122,55,.5);
}
.edit-badge{
  position:absolute; bottom:0; right:0; width:30px; height:30px; border-radius:50%;
  background:var(--ink); color:var(--surface);
  display:flex; align-items:center; justify-content:center;
  border:3px solid var(--canvas);
}
.profile-name{ margin-top:14px; font-family:var(--font-display); font-weight:600; font-size:19px; }
.profile-loc{ margin-top:2px; font-size:12.5px; color:var(--muted); font-weight:500; display:flex; align-items:center; gap:4px; }
.verified-pill{
  margin-top:10px; display:inline-flex; align-items:center; gap:5px;
  background:rgba(59,123,97,.12); color:var(--success);
  padding:5px 12px; border-radius:999px; font-size:11px; font-weight:700;
}
.new-pill{
  margin-top:10px; display:inline-flex; align-items:center; gap:5px;
  background:rgba(185,135,47,.14); color:var(--warning);
  padding:5px 12px; border-radius:999px; font-size:11px; font-weight:700;
}

.profile-stats{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-top:22px; }
.pstat{ text-align:center; padding:12px 4px; background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.pstat .num{ font-family:var(--font-display); font-weight:600; font-size:17px; }
.pstat .lbl{ font-size:10.5px; color:var(--muted); font-weight:600; margin-top:1px; }

.menu-list{ margin-top:22px; background:var(--surface); border:1px solid var(--border); border-radius:20px; overflow:hidden; }
.menu-item{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); transition:background .15s; }
.menu-item:last-child{ border-bottom:none; }
.menu-item:hover{ background:var(--canvas); }
.menu-ic{ width:34px; height:34px; border-radius:11px; background:var(--canvas); display:flex; align-items:center; justify-content:center; color:var(--ink); flex:none; }
.menu-label{ flex:1; text-align:left; font-size:13.5px; font-weight:600; }
.menu-sub{ font-size:11px; color:var(--muted); font-weight:500; margin-top:1px; }
.menu-chev{ color:var(--muted); flex:none; }

/* Einstellungen */
.settings-group{ margin-bottom:24px; }
.settings-heading{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 4px 10px; }
.toggle{ width:44px; height:26px; border-radius:999px; background:var(--border); position:relative; flex:none; transition:background .2s; }
.toggle::after{ content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.2); transition:transform .2s var(--ease); }
.toggle.on{ background:var(--primary); }
.toggle.on::after{ transform:translateX(18px); }

.btn-danger-ghost{
  display:block; width:100%; margin-top:6px; padding:14px 0; text-align:center;
  background:var(--surface); border:1.5px solid var(--border); border-radius:16px;
  font-weight:700; font-size:13.5px; color:var(--danger);
  transition:background .15s, border-color .15s;
}
.btn-danger-ghost:hover{ background:rgba(184,81,69,.08); border-color:var(--danger); }
.btn-danger-ghost.small{ padding:9px 0; font-size:12px; margin-top:0; border-radius:12px; }

.app-version{ text-align:center; margin-top:18px; font-size:11px; color:var(--muted); font-weight:500; }

/* ============ BOTTOM NAV (includes/footer.php) ============ */
body.chat-open .bottom-nav{ display:none; }

.bottom-nav{
  flex:none; position:relative;
  display:flex; justify-content:space-around; align-items:center;
  padding:10px 10px calc(max(10px, env(safe-area-inset-bottom)) + 8px);
  background:var(--surface); border-top:1px solid var(--border);
  z-index:30;
}
.nav-item{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 10px; border-radius:16px; color:var(--muted); transition:color .2s; flex:1; }
.nav-item .nav-ic-wrap{ width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:11px; transition:background .2s var(--ease); }
.nav-item.active{ color:var(--primary); }
.nav-item.active .nav-ic-wrap{ background:rgba(244,122,55,.14); }
.nav-item span{ font-size:9.5px; font-weight:700; letter-spacing:.01em; white-space:nowrap; }

.nav-item-create{ color:var(--ink); }
.nav-ic-create{
  width:34px !important; height:34px !important; border-radius:50% !important;
  background:var(--surface); color:var(--primary);
  margin-top:-8px; box-shadow:0 4px 10px -3px rgba(33,31,27,.16);
  border:2px solid var(--primary);
}
.nav-item-create span{ margin-top:1px; font-size:9.5px; }
.nav-item-create:active .nav-ic-create{ transform:scale(.94); }

/* ============================================================
   MARKETPLACE-KOMPONENTEN (Onboarding, Kategorien, Skills, Reviews)
   ============================================================ */

.back-link{
  display:inline-flex; align-items:center; gap:4px;
  font-size:12.5px; font-weight:700; color:var(--muted);
  margin-bottom:14px;
}
.back-link:hover{ color:var(--ink); }

.empty-hint{
  padding:16px; text-align:center; color:var(--muted); font-size:12.5px; font-weight:500;
  background:var(--surface); border:1px dashed var(--border); border-radius:16px;
}
.empty-hint a{ color:var(--primary); font-weight:700; }

.rating-pill{
  margin-top:10px; display:inline-flex; align-items:center; gap:5px;
  background:rgba(244,122,55,.12); color:var(--primary-pressed);
  padding:5px 12px; border-radius:999px; font-size:12px; font-weight:700;
}
.rating-pill span{ font-weight:600; color:var(--muted); }
.rating-pill.small{ padding:2px 8px; font-size:10.5px; gap:3px; }

.hearts-pill{
  margin-top:6px; display:inline-flex; align-items:center; gap:5px;
  background:rgba(184,81,69,.1); color:var(--danger);
  padding:5px 12px; border-radius:999px; font-size:12px; font-weight:700;
}

/* ---- Hochwertiger Bewertungs-Block (ersetzt die einfache Pille) ---- */
.rating-block{ margin-top:12px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.rb-stars-row{ display:flex; gap:2px; }
.rb-star{ position:relative; width:15px; height:15px; color:var(--border); }
.rb-star svg{ display:block; fill:currentColor; }
.rb-star::before{
  content:''; position:absolute; top:0; right:0; bottom:0; left:0;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.9 6.6 7.1.6-5.4 4.7 1.6 7-6.2-3.9L5.8 21l1.6-7L2 9.2l7.1-.6L12 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.9 6.6 7.1.6-5.4 4.7 1.6 7-6.2-3.9L5.8 21l1.6-7L2 9.2l7.1-.6L12 2Z'/%3E%3C/svg%3E") no-repeat center / contain;
  background:linear-gradient(to right, var(--primary) var(--fill), var(--border) var(--fill));
}
.rb-numbers{ display:flex; align-items:baseline; gap:6px; }
.rb-avg{ font-family:var(--font-display); font-weight:600; font-size:16px; color:var(--ink); }
.rb-count{ font-size:11.5px; font-weight:600; color:var(--muted); }
.rb-hearts{
  display:inline-flex; align-items:center; gap:4px;
  font-size:11px; font-weight:700; color:var(--danger);
  background:rgba(184,81,69,.08); padding:3px 10px; border-radius:999px; margin-top:2px;
}
.rating-block-small{ gap:2px; }
.rating-block-small .rb-star{ width:11px; height:11px; }
.rating-block-small .rb-avg{ font-size:12.5px; }
.rating-block-small .rb-count{ font-size:10px; }
.review-hearts{
  display:inline-flex; align-items:center; gap:3px;
  font-size:10.5px; font-weight:700; color:var(--danger); margin-left:auto;
}
.heart-confirm-btn{ display:flex; align-items:center; justify-content:center; gap:8px; }

/* ---- Kategorien-Grid (Entdecken, Übersicht) ---- */
/* ---- Hero-Banner (Entdecken) ---- */
.hero-banner{
  margin:-22px -14px 18px;
  height:170px;
  overflow:hidden;
  background:linear-gradient(135deg, #F4A56C, var(--primary) 55%, #D95E22);
}
.hero-banner picture, .hero-banner img{ display:block; width:100%; height:100%; object-fit:cover; }
.hero-banner.hero-fallback img{ display:none; }

.category-grid{
  display:flex; flex-wrap:wrap; gap:12px; margin-top:4px;
}
.category-card{
  display:flex; flex-direction:column; gap:8px;
  flex:1 1 calc(50% - 6px);
  padding:16px; background:var(--surface); border:1px solid var(--border); border-radius:18px;
  text-decoration:none; color:var(--ink); transition:border-color .15s, transform .15s;
  box-sizing:border-box;
}
.category-card:hover{ border-color:var(--primary); transform:translateY(-2px); }
.category-ic{ width:38px; height:38px; display:flex; align-items:center; justify-content:center; color:var(--primary); }
.category-name{ font-weight:700; font-size:13px; line-height:1.3; }
.category-count{ font-size:11px; color:var(--muted); font-weight:600; }

.category-header{ display:flex; align-items:center; gap:12px; margin-bottom:4px; }
.category-ic-lg{ width:46px; height:46px; border-radius:14px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--primary); flex:none; }

/* ---- Skill-Chips (eigene/fremde Profile) ---- */
.skill-chip-list{ display:flex; flex-direction:column; gap:8px; }
.skill-chip{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:16px;
}
.skill-chip-ic{ width:34px; height:34px; border-radius:11px; background:var(--canvas); color:var(--primary); display:flex; align-items:center; justify-content:center; flex:none; }
.skill-chip > div{ flex:1; min-width:0; }
.skill-chip-name{ font-weight:700; font-size:13px; }
.skill-chip-desc{ font-size:11.5px; color:var(--muted); margin-top:1px; }
.skill-chip-price{ font-size:11px; font-weight:700; color:var(--success); background:rgba(59,123,97,.1); padding:4px 9px; border-radius:999px; flex:none; }

/* ---- Helfer-Liste (Kategorie-Seite) ---- */
.helper-list{ display:flex; flex-direction:column; gap:8px; }
.helper-card{
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:16px;
  text-decoration:none; color:var(--ink); transition:border-color .15s;
}
.helper-card:hover{ border-color:var(--primary); }
.helper-info{ flex:1; min-width:0; display:flex; flex-direction:column; }
.helper-name{ font-weight:700; font-size:13.5px; }
.helper-loc{ font-size:11px; color:var(--muted); font-weight:500; }
.helper-desc{ font-size:11.5px; color:var(--ink); margin-top:2px; }
.helper-side{ display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex:none; }

/* ---- Anfragen ---- */
.request-list{ display:flex; flex-direction:column; gap:8px; }
.request-card{
  padding:13px 14px; background:var(--surface); border:1px solid var(--border); border-radius:16px;
}
.request-title{ font-weight:700; font-size:13px; }
.request-desc{ font-size:12px; color:var(--ink); margin-top:3px; line-height:1.4; }
.request-meta{ font-size:11px; color:var(--muted); font-weight:600; margin-top:6px; }

/* ---- "Dein Angebot"-Karte: eigenstaendig, mit Tiefe, Status-farbig umrandet ---- */
.my-offer-card{
  padding:16px; background:var(--surface); border-radius:18px; border:1.5px solid var(--border);
  box-shadow:0 10px 24px -14px rgba(33,31,27,.25);
}
.my-offer-card-success{ border-color:rgba(59,123,97,.4); background:rgba(59,123,97,.05); }
.my-offer-card-danger{ border-color:rgba(184,81,69,.35); background:rgba(184,81,69,.04); }
.my-offer-card-primary{ border-color:rgba(244,122,55,.35); background:rgba(244,122,55,.04); }
.my-offer-card-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.my-offer-card-label{ font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
.my-offer-card-price{ font-family:var(--font-display); font-weight:600; font-size:26px; color:var(--ink); margin-top:8px; }
.request-meta a{ color:var(--primary); font-weight:700; }

/* ---- Bewertungen ---- */
.review-list{ display:flex; flex-direction:column; gap:10px; }
.review-item{ padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.review-head{ display:flex; align-items:center; gap:8px; }
.review-stars{ display:flex; gap:1px; }
.review-author{ font-size:12px; font-weight:700; color:var(--muted); }
.review-comment{ margin-top:6px; font-size:12.5px; line-height:1.5; }

.review-form{ display:flex; flex-direction:column; gap:12px; margin-bottom:4px; }
.star-picker{ display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:2px; font-size:30px; }
.star-picker input{ position:absolute; opacity:0; width:1px; height:1px; }
.star-picker label{ color:var(--border); cursor:pointer; transition:color .15s; }
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label{ color:var(--primary); }
.review-form textarea{
  width:100%; border:1.5px solid var(--border); border-radius:16px; padding:12px 14px;
  font-family:inherit; font-size:13px; color:var(--ink); resize:vertical; background:var(--surface);
}
.review-form textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(244,122,55,.14); }

/* select im selben Feld-Style wie Inputs */
.field select{
  width:100%; background:var(--surface); border:1.5px solid var(--border); border-radius:16px;
  padding:14px 16px; font-size:14.5px; font-weight:600; color:var(--ink); appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F6A61' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center;
}
.field textarea{
  width:100%; background:var(--surface); border:1.5px solid var(--border); border-radius:16px;
  padding:14px 16px; font-size:14px; font-family:inherit; color:var(--ink); resize:vertical;
}
.field select:focus, .field textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(244,122,55,.14); }

/* ============================================================
   ONBOARDING WIZARD
   ============================================================ */
.onboarding-root{ display:block; }
.onboarding-scroll{ min-height:100vh; min-height:100dvh; padding:max(28px, env(safe-area-inset-top)) 0 40px; }
.onboarding-inner{ max-width:440px; margin:0 auto; padding:0 16px; }

.onb-progress{ display:flex; align-items:center; justify-content:center; margin-top:28px; }
.onb-progress-item{ display:flex; align-items:center; }
.onb-progress-circle{
  width:30px; height:30px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:13px;
  background:var(--surface); border:2px solid var(--border); color:var(--muted);
  transition:all .25s var(--ease);
}
.onb-progress-circle.is-active{
  border-color:var(--primary); color:var(--primary-pressed);
  box-shadow:0 0 0 4px rgba(244,122,55,.14);
}
.onb-progress-circle.is-done{ background:var(--primary); border-color:var(--primary); color:#fff; }
.onb-progress-line{ width:26px; height:2px; background:var(--border); margin:0 2px; transition:background .25s var(--ease); }
.onb-progress-line.is-done{ background:var(--primary); }
.progress-label{ text-align:center; font-size:11.5px; color:var(--muted); font-weight:600; margin-top:10px; }

.onboarding-card{
  margin-top:20px; background:var(--surface); border:1px solid var(--border); border-radius:28px;
  padding:30px 24px; box-shadow:0 22px 48px -20px rgba(33,31,27,.22);
}
.onb-step-icon{
  width:52px; height:52px; border-radius:16px; margin-bottom:16px;
  background:linear-gradient(150deg, rgba(244,122,55,.16), rgba(244,122,55,.06));
  color:var(--primary-pressed);
  display:flex; align-items:center; justify-content:center;
}
.onb-title{ font-family:var(--font-display); font-weight:600; font-size:21px; }
.onb-sub{ margin-top:6px; font-size:13px; color:var(--muted); font-weight:500; line-height:1.5; }
.onb-nav{ display:flex; gap:10px; margin-top:20px; }
.onb-nav .btn-primary{ margin-top:0; }

/* ---- Profil bearbeiten (eigenstaendige Seite, kein Wizard-Look) ---- */
.edit-section-card{
  margin-top:16px; background:var(--surface); border:1px solid var(--border); border-radius:20px;
  padding:18px;
}
.edit-section-title{ font-family:var(--font-display); font-weight:600; font-size:15px; margin-bottom:12px; }
.btn-back{
  flex:none; display:flex; align-items:center; justify-content:center;
  padding:0 20px; border:1.5px solid var(--border); border-radius:999px;
  font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--muted);
  transition:border-color .15s, color .15s;
}
.btn-back:hover{ border-color:var(--ink); color:var(--ink); }

.btn-locate{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:18px; padding:13px 0; border-radius:16px;
  background:rgba(244,122,55,.1); color:var(--primary-pressed);
  font-weight:700; font-size:13px; border:1.5px dashed rgba(244,122,55,.4);
  transition:background .15s;
}
.btn-locate:hover{ background:rgba(244,122,55,.16); }

.suggest-list{
  position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:20;
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow:0 12px 24px -10px rgba(33,31,27,.25); overflow:hidden;
  max-height:220px; overflow-y:auto;
}
.suggest-item{
  display:block; width:100%; text-align:left; padding:10px 14px; font-size:13px; font-weight:600;
  border-bottom:1px solid var(--border);
}
.suggest-item:last-child{ border-bottom:none; }
.suggest-item:hover{ background:var(--canvas); }

.age-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:4px; }
.age-pill{ position:relative; }
.age-pill input{ position:absolute; opacity:0; width:1px; height:1px; }
.age-pill span{
  display:block; text-align:center; padding:14px 0; border-radius:16px;
  border:1.5px solid var(--border); background:var(--surface);
  font-weight:700; font-size:14px; color:var(--muted); cursor:pointer; transition:all .15s;
}
.age-pill input:checked + span{ border-color:var(--primary); background:rgba(244,122,55,.1); color:var(--primary-pressed); }

.account-type-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.account-type-pill{ position:relative; }
.account-type-pill input{ position:absolute; opacity:0; width:1px; height:1px; }
.account-type-pill span{
  display:block; text-align:center; padding:14px 8px; border-radius:16px;
  border:1.5px solid var(--border); background:var(--surface);
  font-weight:700; font-size:13px; color:var(--muted); cursor:pointer; transition:all .15s;
}
.account-type-pill input:checked + span{ border-color:var(--primary); background:rgba(244,122,55,.1); color:var(--primary-pressed); }

.account-type-badge{
  display:inline-block; vertical-align:middle; margin-left:6px;
  font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.02em;
  padding:3px 8px; border-radius:999px; background:var(--ink); color:#fff;
}
.profile-account-type{
  margin-top:4px; font-size:11.5px; font-weight:700; color:var(--muted);
}

.skill-grid{ display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.skill-card{ position:relative; display:block; cursor:pointer; }
.skill-card input{ position:absolute; opacity:0; width:1px; height:1px; }
.skill-card-head{
  display:flex; align-items:center; gap:10px; padding:14px;
  border:1.5px solid var(--border); border-radius:16px 16px 0 0; background:var(--surface);
  transition:border-color .15s, background .15s;
}
.skill-card input:not(:checked) ~ .skill-card-head{ border-radius:16px; }
.skill-ic{ width:34px; height:34px; border-radius:11px; background:var(--canvas); color:var(--primary); display:flex; align-items:center; justify-content:center; flex:none; }
.skill-name{ flex:1; font-weight:700; font-size:13.5px; }
.skill-check{
  width:22px; height:22px; border-radius:50%; border:1.5px solid var(--border); background:var(--surface);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.skill-check svg{ opacity:0; transform:scale(.5); transition:all .15s; }
.skill-card input:checked ~ .skill-card-head{ border-color:var(--primary); background:rgba(244,122,55,.06); }
.skill-card input:checked ~ .skill-card-head .skill-check{ background:var(--primary); border-color:var(--primary); }
.skill-card input:checked ~ .skill-card-head .skill-check svg{ opacity:1; transform:scale(1); }
.skill-extra{
  display:none; flex-direction:column; gap:8px; padding:0 14px 14px;
  border:1.5px solid var(--primary); border-top:none; border-radius:0 0 16px 16px; background:rgba(244,122,55,.06);
}
.skill-card input:checked ~ .skill-extra{ display:flex; }
.skill-extra input{
  position:static; opacity:1; width:100%; height:auto;
  background:var(--surface); border:1.5px solid var(--border); border-radius:12px;
  padding:10px 12px; font-size:12.5px; font-family:inherit; color:var(--ink);
}
.skill-extra input:focus{ outline:none; border-color:var(--primary); }

/* ============================================================
   DESKTOP / PC-ANSICHT
   ============================================================ */
.topbar{ display:none; }
.dash-rail{ display:none; }
.dash-rail.dash-rail-left{ display:flex; flex-direction:column; gap:14px; width:auto; }
.auth-brand-panel{ display:none; }

@media (min-width: 900px){

  /* ---- App-Bereich (eingeloggt): Topbar oben statt Seitenleiste ---- */
  .app-shell{
    display:block;
    width:100%;
    max-width:none;
    min-height:100vh;
    background:var(--canvas);
  }

  .app-body{ display:block; min-height:100vh; }

  /* Mobile Elemente (Tab-Leiste unten, App-Header oben) werden am Desktop
     durch die Topbar ersetzt. */
  .app-shell .bottom-nav,
  .app-shell .app-header{ display:none; }

  .topbar{
    display:flex;
    height:68px;
    background:var(--surface);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:50;
  }
  .topbar-inner{
    display:flex; align-items:center; gap:8px;
    width:100%; max-width:1600px; margin:0 auto;
    padding:0 56px; box-sizing:border-box;
  }
  .topbar-logo{ display:flex; align-items:center; flex:none; margin-right:20px; }
  .topbar-logo img{ height:19px; }
  .topbar-links{ display:flex; align-items:center; gap:4px; flex:1; }
  .topbar-link{
    padding:9px 14px;
    border-radius:10px;
    font-weight:700;
    font-size:13.5px;
    color:var(--muted);
    text-decoration:none;
    transition:background .15s, color .15s;
  }
  .topbar-link:hover{ background:var(--canvas); color:var(--ink); }
  .topbar-link.active{ background:rgba(244,122,55,.12); color:var(--primary-pressed); }
  .topbar-actions{ display:flex; align-items:center; gap:12px; flex:none; }
  .topbar-cta{ margin:0; width:auto; padding:10px 20px; font-size:13px; text-decoration:none; }

  .app-shell .app-content{ padding:32px 56px 60px 140px; max-width:1600px; margin:0 auto; box-sizing:border-box; }

  /* Chat-Seite auf PC: exakt feste Groesse, unabhaengig vom Inhalt. Gleiches
     Prinzip wie beim Handy - Seite komplett sperren, nur der Chat-Bereich
     selbst scrollt intern. Kein Rechnen mit Zahlen mehr, die bei kleinen
     Abweichungen brechen koennten. */
  body.has-active-chat{ height:100vh; height:100dvh; overflow:hidden; }
  body.has-active-chat .app-shell{ height:100vh; height:100dvh; overflow:hidden; display:flex; flex-direction:column; }
  body.has-active-chat .app-body{ flex:1; min-height:0; overflow:hidden; display:flex; flex-direction:column; }
  body.has-active-chat .app-content{ flex:1; min-height:0; overflow:hidden; display:flex; flex-direction:column; }
  body.has-active-chat .panel-inbox{ flex:1; min-height:0; height:auto; }
  body.has-active-chat .inbox-shell{ height:100% !important; }

  /* Einspaltige Seiten (ohne Sidebar-Rail) sollen genau da enden, wo auf
     Uebersicht/Profil die Hauptspalte (dash-main) neben der Rail endet.
     Innenbreite jetzt: 1600 - 140(links) - 56(rechts) = 1404, minus Rail
     (340) minus Gap (32) = 1032px. */
  .app-shell .content-aligned{ max-width:1032px; }

  /* Formulare/Einstellungen/Detailseiten sollen NICHT ueber die volle Breite gehen */
  .app-shell .content-narrow{ max-width:640px; }

  /* FAB ist ein Handy-Pattern - am Desktop gibt's stattdessen den Button in der Topbar */
  .app-shell .mobile-only-cta{ display:none; }

  /* ---- Echtes Zwei-Spalten-Dashboard (Übersicht, Profil) ---- */
  .dash-grid{ display:flex; gap:32px; align-items:flex-start; margin-top:22px; }
  .dash-main{ flex:1; min-width:0; max-width:1032px; }
  .dash-rail{ flex:none; width:340px; display:flex; flex-direction:column; gap:14px; }
  .rail-card{ background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:20px; }
  .rail-profile-link{ display:flex; flex-direction:column; align-items:center; text-align:center; text-decoration:none; color:inherit; gap:8px; }
  .rail-avatar{
    width:52px; height:52px; border-radius:50%;
    background:linear-gradient(150deg,#F4A56C,var(--primary)); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-display); font-weight:600; font-size:18px;
  }
  .rail-name{ font-weight:700; font-size:14px; }
  .rail-heading{ font-family:var(--font-display); font-weight:600; font-size:13.5px; margin-bottom:12px; }
  .rail-skill-list{ display:flex; flex-direction:column; gap:9px; }
  .rail-skill-item{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--ink); }
  .rail-skill-item svg{ color:var(--primary); flex:none; }
  .rail-link{ font-size:12.5px; font-weight:700; color:var(--primary); text-decoration:none; }

  /* Übersicht/Entdecken-Grids nutzen jetzt die volle Breite */
  .app-shell .category-grid-wide .category-card{ flex:1 1 200px; }
  .app-shell .request-list-wide{ display:flex; flex-wrap:wrap; gap:10px; }
  .app-shell .request-list-wide .request-card{ margin:0; flex:1 1 260px; box-sizing:border-box; }

  /* Profil: linke Spalte etwas schmaler + sticky */
  .app-shell .dash-rail-left{ width:280px; position:sticky; top:32px; }

  /* Kategorie-Detail: Anbieter | Anfragen nebeneinander */
  .kat-columns{ display:flex; gap:32px; align-items:flex-start; margin-top:6px; }
  .kat-col{ flex:1; min-width:0; }

  .app-shell .stat-row{ flex:none; }
  .app-shell .hero-banner{
    margin:0 0 24px; max-width:1032px; border-radius:24px; height:260px;
  }
  .app-shell .stat-card{ flex:0 1 220px; }
  .app-shell .skill-chip-list,
  .app-shell .review-list,
  .app-shell .helper-list,
  .app-shell .badge-row{ max-width:600px; }
  .app-shell .profile-stats{ max-width:420px; }

  /* ---- Login/Registrieren: eigenständiges zweispaltiges Layout, volle Breite ---- */
  .auth-shell{
    width:100%;
    max-width:none;
    min-height:100vh;
    flex-direction:row;
    align-items:stretch;
    background:var(--canvas);
  }

  .auth-brand-panel{
    display:flex;
    flex:none;
    width:440px;
    align-items:center;
    justify-content:center;
    background:linear-gradient(160deg,#2a2722,var(--ink));
    position:relative;
    overflow:hidden;
  }
  .auth-brand-inner{ position:relative; z-index:1; padding:0 44px; text-align:center; }
  .auth-brand-logo{ height:34px; filter:brightness(0) invert(1); }
  .auth-brand-tagline{ margin-top:18px; color:#cfc9bd; font-size:15px; font-weight:500; line-height:1.5; }
  .auth-brand-houses{
    position:absolute; width:340px; height:340px; left:50%; bottom:-70px;
    transform:translateX(-50%); opacity:.16; z-index:0;
  }

  .auth-shell .watermark{ display:none; }
  .auth-shell .auth-scroll{
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    min-height:100vh; padding:40px 26px;
  }
  .auth-shell .auth-scroll > .auth-logo,
  .auth-shell .auth-scroll > .auth-tagline{ display:none; }
  .auth-shell .auth-card{ max-width:380px; width:100%; }
  .auth-shell .auth-switch-hint{ max-width:380px; width:100%; box-sizing:border-box; }
}

/* ---- Preis / Foto-Upload beim Auftrag erstellen ---- */
.price-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.price-row .field{ flex:1; min-width:140px; }
.price-row .checkbox-line{ flex:none; }

.upload-label{ position:relative; display:block; cursor:pointer; }
.upload-input{ position:absolute; top:0; right:0; bottom:0; left:0; opacity:0; cursor:pointer; }
.upload-box{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:16px; border:1.5px dashed var(--border); border-radius:16px;
  color:var(--muted); font-size:12.5px; font-weight:600; background:var(--surface);
}
.upload-box[hidden]{ display:none; }
.upload-label:hover .upload-box{ border-color:var(--primary); color:var(--primary-pressed); }

.request-photo{ width:100%; max-height:160px; object-fit:cover; border-radius:12px; margin-bottom:10px; }

/* ---- Auftrags-Detailseite (neu) ---- */
.auftrag-layout{ display:flex; flex-direction:column; gap:0; margin-top:14px; }
.auftrag-photo-col{ flex:none; }
.auftrag-photo-sticky{ position:relative; width:100%; padding-bottom:75%; border-radius:18px; overflow:hidden; background:var(--canvas); box-shadow:0 14px 32px -18px rgba(33,31,27,.3); }
.auftrag-photo-status{
  position:absolute; bottom:12px; left:12px; z-index:2;
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:999px; background:rgba(251,248,242,.95);
  font-size:12px; font-weight:700; color:var(--ink);
  box-shadow:0 6px 16px -8px rgba(33,31,27,.35);
}
.auftrag-photo-status .dot{ width:7px; height:7px; border-radius:50%; background:var(--muted); flex:none; }
.auftrag-photo-status.status-primary .dot{ background:var(--primary); }
.auftrag-photo-status.status-success .dot{ background:var(--success); }
.auftrag-photo-status.status-danger .dot{ background:var(--danger); }
.auftrag-photo-status.status-muted .dot{ background:#8DBF9E; }

.auftrag-divider{ height:1px; background:var(--border); margin:16px 0; }
.auftrag-action-card{
  background:var(--surface); border:1px solid var(--border); border-radius:22px;
  padding:20px; margin-top:20px;
  box-shadow:0 10px 28px -20px rgba(33,31,27,.25);
}
.auftrag-photo-main{ position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }
.auftrag-photo-placeholder{
  position:absolute; top:0; right:0; bottom:0; left:0; box-sizing:border-box;
  background:linear-gradient(155deg, var(--surface), var(--canvas));
  display:flex; align-items:center; justify-content:center; color:var(--primary); opacity:.55;
}
.auftrag-title{ font-family:var(--font-display); font-weight:600; font-size:21px; margin-top:12px; line-height:1.25; }
.auftrag-meta-line{ font-size:12px; color:var(--muted); font-weight:600; margin-top:4px; }
.auftrag-price-block{ margin-top:14px; }
.auftrag-price-block .price-block{ align-items:flex-start; text-align:left; }
.auftrag-price-block .price-total{ font-size:22px; }
.btn-row{ display:flex; gap:10px; }
.contact-secondary-link{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin-top:10px; padding:8px; font-size:12.5px; font-weight:600; color:var(--muted);
  text-decoration:none; border-radius:12px; transition:background .15s, color .15s;
}
.contact-secondary-link:hover{ background:var(--canvas); color:var(--ink); }
.contact-secondary-link svg{ width:14px; height:14px; }
.offer-price-row{
  display:flex; align-items:center; gap:2px;
  background:var(--surface); border:1.5px solid var(--border); border-radius:16px;
  padding:4px 6px 4px 18px; transition:border-color .2s var(--ease);
}
.offer-price-row:focus-within{ border-color:var(--primary); box-shadow:0 0 0 4px rgba(244,122,55,.14); }
.offer-price-currency{ font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--muted); }
.offer-price-input{
  flex:1; border:none; background:transparent; outline:none;
  padding:12px 8px; font-size:16px; font-weight:600; color:var(--ink); font-family:inherit;
}
.offer-price-input::placeholder{ color:var(--muted); font-weight:500; font-size:13.5px; }
.btn-row-item{ flex:1; width:auto !important; display:flex; align-items:center; justify-content:center; text-align:center; gap:8px; margin-top:0; padding-left:12px; padding-right:12px; }
.auftrag-action-block{ margin-top:16px; }
.auftrag-owner-block{ margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.auftrag-owner-heading{ font-size:11.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:10px; }
.auftrag-owner-card{
  display:flex; align-items:center; gap:14px; padding:14px;
  background:var(--surface); border:1px solid var(--border); border-radius:18px;
  text-decoration:none; color:inherit; transition:border-color .15s, box-shadow .15s;
  box-shadow:0 8px 20px -14px rgba(33,31,27,.2);
}
.auftrag-owner-card:hover{ border-color:var(--primary); box-shadow:0 10px 24px -12px rgba(244,122,55,.3); }
.auftrag-owner-info{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.auftrag-owner-name{ font-size:13.5px; font-weight:700; color:var(--ink); }
.auftrag-owner-rating{ display:flex; align-items:center; gap:5px; font-size:12.5px; font-weight:700; color:var(--ink); }
.auftrag-owner-rating svg{ color:var(--primary); }
.auftrag-owner-hearts{
  display:inline-flex; align-items:center; gap:2px; margin-left:4px;
  color:var(--danger); font-weight:700;
}
.auftrag-owner-rating .auftrag-owner-hearts svg{ color:var(--danger); }
.auftrag-owner-loc{ font-size:11px; color:var(--muted); font-weight:500; }
.auftrag-owner-bio{ margin-top:10px; font-size:12.5px; color:var(--ink); line-height:1.5; }
.auftrag-owner-skills-label{ font-size:10.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; margin-top:14px; margin-bottom:8px; }
.auftrag-owner-skills{ display:flex; flex-wrap:wrap; gap:6px; }
.owner-skill-chip{
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 11px; background:var(--canvas); border-radius:999px;
  font-size:11.5px; font-weight:600; color:var(--ink); text-decoration:none;
  transition:background .15s;
}
.owner-skill-chip:hover{ background:var(--border); }
.owner-skill-chip img{ width:14px; height:14px; }

@media (min-width:900px){
  .auftrag-layout{ flex-direction:row; align-items:flex-start; gap:36px; }
  .auftrag-photo-col{ flex:0 0 42%; max-width:42%; }
  .auftrag-photo-sticky{ position:sticky; top:88px; padding-bottom:100%; }
  .auftrag-info-col{ flex:1; min-width:0; }
  .auftrag-title{ font-size:25px; margin-top:16px; }
}
.request-title-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }

.profile-bio{ margin-top:14px; font-size:13px; line-height:1.55; color:var(--ink); text-align:center; }

/* ---- Preis mit Gebuehr: oben fett, drunter klein/grau ---- */
.price-block{ display:flex; flex-direction:column; align-items:flex-end; flex:none; text-align:right; }
.price-total{ font-weight:800; font-size:14px; color:var(--primary-pressed); white-space:nowrap; }
.price-base{ font-size:10.5px; font-weight:600; color:var(--muted); white-space:nowrap; margin-top:1px; }
.price-earn-label{ font-size:9.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; white-space:nowrap; }
.price-vb{ font-size:10px; font-weight:700; color:var(--primary); }

/* ---- Status-Pill (Auftrag) ---- */
.status-pill{
  display:inline-block; margin-top:14px; padding:6px 14px; border-radius:999px;
  font-size:11.5px; font-weight:700;
}
.status-pill.status-muted{ background:var(--border); color:var(--muted); }
.status-pill.status-primary{ background:rgba(244,122,55,.14); color:var(--primary-pressed); }
.status-pill.status-success{ background:rgba(59,123,97,.14); color:var(--success); }
.status-pill.status-danger{ background:rgba(184,81,69,.14); color:var(--danger); }

/* ---- Angebote / Offer-Karten ---- */
.offer-card .helper-name{ font-weight:700; font-size:13.5px; }
.offer-actions{ display:flex; gap:8px; margin-top:10px; }
.btn-primary.small{ padding:9px 16px; font-size:12.5px; margin-top:0; width:auto; }
.btn-back.small{ padding:0 16px; height:auto; line-height:36px; font-size:12.5px; }

.dispute-details{ margin-top:14px; }
.dispute-details summary{ font-size:12px; font-weight:700; color:var(--danger); cursor:pointer; }
.dispute-details select{
  width:100%; background:var(--surface); border:1.5px solid var(--border); border-radius:14px;
  padding:12px 14px; font-size:13px; font-weight:600; color:var(--ink);
}

.share-link-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; margin-top:20px; height:44px;
}
.report-details{ margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.report-details summary{
  display:inline-flex; align-items:center; gap:6px;
  font-size:11.5px; font-weight:700; color:var(--danger); cursor:pointer; opacity:.75;
}
.report-details summary:hover{ opacity:1; }
.report-form{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.report-form select{
  width:100%; background:var(--surface); border:1.5px solid var(--border); border-radius:14px;
  padding:12px 14px; font-size:13px; font-weight:600; color:var(--ink);
}
.report-form textarea{
  border:1.5px solid var(--border); border-radius:12px; padding:10px 12px;
  font-size:13px; font-family:inherit; background:var(--canvas); color:var(--ink); resize:vertical;
}
.report-form .btn-danger-ghost.small{ align-self:flex-start; padding-left:20px; padding-right:20px; }

/* ---- Badges / Achievements ---- */
.badge-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; justify-content:center; }
.badge-pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:999px; background:rgba(185,135,47,.12); color:var(--warning);
  font-size:11px; font-weight:700;
}

/* ---- Nachrichten-Liste ---- */
.unread-badge{
  flex:none; min-width:20px; height:20px; border-radius:999px; background:var(--primary); color:#fff;
  font-size:10.5px; font-weight:800; display:flex; align-items:center; justify-content:center; padding:0 5px;
}

/* ---- Chat ---- */
.chat-panel{ display:flex; flex-direction:column; height:calc(100vh - 64px - 78px); height:calc(100dvh - 64px - 78px); padding-bottom:0 !important; }
.chat-header-info{ display:flex; align-items:center; gap:10px; padding-bottom:12px; border-bottom:1px solid var(--border); flex:none; }
.chat-messages{ flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; display:flex; flex-direction:column; justify-content:flex-end; gap:10px; padding:14px 0; }
.chat-row{ display:flex; align-items:flex-start; gap:7px; max-width:82%; }
.chat-row.theirs{ align-self:flex-start; }
.chat-row.mine{ align-self:flex-end; }
.chat-avatar{
  width:26px; height:26px; border-radius:50%; flex:none;
  background:linear-gradient(150deg,#F4A56C,var(--primary)); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:10.5px;
}
.chat-bubble-col{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.chat-bubble{
  padding:9px 13px; border-radius:16px; font-size:13px; line-height:1.4;
  display:flex; flex-direction:column; gap:6px;
}
.chat-bubble.theirs{ background:var(--surface); border:1px solid var(--border); border-bottom-left-radius:4px; }
.chat-bubble.mine{ background:rgba(244,122,55,.14); color:var(--ink); border:1px solid rgba(244,122,55,.25); border-bottom-right-radius:4px; }
.chat-photo{ max-width:100%; border-radius:10px; }
.chat-msg-time{ font-size:10px; font-weight:600; opacity:.6; align-self:flex-end; }
.chat-bubble.theirs .chat-msg-time{ color:var(--muted); }
.chat-bubble.mine .chat-msg-time{ color:var(--ink); }
.chat-offer-bubble .chat-msg-time{ align-self:flex-start; margin-top:2px; }

/* ---- Angebots-Bubble im Chat (immer als eigenstaendige helle Karte, egal wer's geschickt hat) ---- */
.chat-offer-bubble{
  min-width:190px; background:var(--surface) !important; color:var(--ink) !important;
  border:1.5px solid var(--primary) !important; border-radius:16px !important;
  padding:12px 14px !important; gap:4px !important;
}
.chat-offer-label{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
.chat-offer-price-row{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.chat-offer-price{ font-family:var(--font-display); font-weight:600; font-size:20px; color:var(--primary-pressed); }
.chat-offer-prev-price{ font-size:13px; font-weight:600; color:var(--muted); text-decoration:line-through; }
.chat-offer-status{ font-size:11.5px; font-weight:700; color:var(--muted); }
.chat-offer-status[data-status="accepted"]{ color:var(--success); }
.chat-offer-status[data-status="declined"]{ color:var(--danger); }
.chat-offer-actions{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.chat-offer-actions .btn-row-item{
  padding:9px 4px; font-size:12px; height:auto;
}
.chat-counter-form{ display:flex; flex-direction:column; gap:6px; }
.chat-counter-form .offer-price-row{ padding:2px 4px 2px 12px; }
.chat-counter-form .offer-price-input{ padding:8px 6px; font-size:14px; }
.chat-counter-form .offer-price-input::placeholder{ font-size:11.5px; }
.chat-counter-submit{ width:100%; }
.chat-form{
  flex:none; display:flex; align-items:center; gap:8px; padding:10px 0 calc(max(14px, env(safe-area-inset-bottom)) + 10px);
  border-top:1px solid var(--border); background:var(--canvas);
}
.chat-form input[type="text"]{
  flex:1; border:1.5px solid var(--border); border-radius:999px; padding:10px 16px;
  font-size:13.5px; font-family:inherit; background:var(--surface); color:var(--ink);
}
.chat-form input[type="text"]:focus{ outline:none; border-color:var(--primary); }
.chat-send{
  width:38px; height:38px; border-radius:50%; background:var(--primary); color:#fff;
  display:flex; align-items:center; justify-content:center; flex:none;
}

/* ---- Sortier-Leiste (Kategorie-Seite) ---- */
.sort-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:16px 0 6px; }
.sort-label{ font-size:11.5px; font-weight:700; color:var(--muted); }
.sort-pill{
  padding:6px 12px; border-radius:999px; border:1.5px solid var(--border); background:var(--surface);
  font-size:11.5px; font-weight:700; color:var(--muted); text-decoration:none; transition:all .15s;
}
.sort-pill.active{ border-color:var(--primary); background:rgba(244,122,55,.1); color:var(--primary-pressed); }
.sort-pill:hover{ border-color:var(--primary); }

/* ---- Umkreis-Karte (Übersicht) ---- */
.map-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  margin-top:4px;
}
.map-frame{ position:relative; height:220px; }

.map-fullscreen-btn{
  position:absolute; top:10px; right:10px; z-index:15;
  width:34px; height:34px; border-radius:10px;
  background:rgba(251,248,242,.94); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 10px -3px rgba(33,31,27,.25);
}
.map-frame.is-fullscreen{
  position:fixed; z-index:200;
  top:max(14px, env(safe-area-inset-top));
  right:14px;
  bottom:max(14px, env(safe-area-inset-bottom));
  left:14px;
  height:auto;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 40px -12px rgba(33,31,27,.4);
}
.map-frame.is-fullscreen .radius-map{ height:100%; }
body.map-fullscreen-open{ overflow:hidden; }
body.map-fullscreen-open .map-fullscreen-btn svg{ transform:rotate(180deg); }

/* ---- Personen-Avatar-Pins auf der Karte ---- */
.map-avatar-pin{ display:flex; flex-direction:column; align-items:center; gap:3px; transform:translateY(-6px); }
.map-avatar-pin-self .map-avatar-circle{
  background:var(--primary) !important; color:#fff !important;
  border-color:#fff; border-width:3px;
  box-shadow:0 0 0 3px var(--primary), 0 4px 12px -3px rgba(33,31,27,.4);
}
.map-avatar-name-self{ background:var(--primary); color:#fff; font-weight:800; }
.map-avatar-circle{
  width:38px; height:38px; border-radius:50%; flex:none;
  background:linear-gradient(150deg,#F4A56C,var(--primary)); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:13px;
  border:2.5px solid var(--surface); box-shadow:0 4px 10px -3px rgba(33,31,27,.35);
}
.map-avatar-photo{ object-fit:cover; }
.map-avatar-name{
  font-size:10px; font-weight:700; color:var(--ink); background:var(--surface);
  padding:1px 7px; border-radius:999px; box-shadow:0 2px 5px -2px rgba(33,31,27,.2);
  white-space:nowrap;
}

.radius-map{
  width:100%; height:100%;
  background:var(--canvas);
  filter:saturate(.75) contrast(1.02);
}
.leaflet-control-attribution{
  font-size:9px !important;
  background:rgba(251,248,242,.85) !important;
  padding:1px 6px !important;
  border-radius:8px !important;
  color:var(--muted) !important;
}
.leaflet-control-attribution a{ color:var(--muted) !important; }

/* ---- Animierter Standort-Puls auf der Karte ---- */
.geo-pulse-wrap{
  position:relative; width:22px; height:22px;
  display:flex; align-items:center; justify-content:center;
}
.geo-pulse-dot{
  position:relative; z-index:2;
  width:12px; height:12px; border-radius:50%;
  background:var(--primary);
  border:2.5px solid #fff;
  box-shadow:0 1px 4px rgba(0,0,0,.35);
}
.geo-pulse-ring{
  position:absolute; z-index:1;
  width:12px; height:12px; border-radius:50%;
  background:var(--primary);
  opacity:.55;
  animation:geoPulse 2.2s cubic-bezier(.2,.6,.4,1) infinite;
}
@keyframes geoPulse{
  0%   { transform:scale(1);   opacity:.55; }
  100% { transform:scale(3.4); opacity:0;   }
}

.map-overlay{
  position:absolute; top:0; right:0; bottom:0; left:0;
  background:rgba(244,239,230,.94);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; text-align:center; padding:20px;
  box-sizing:border-box;
}
.map-overlay p{ font-size:12.5px; font-weight:600; color:var(--ink); max-width:260px; }
.map-overlay .btn-primary{ margin-top:0; width:auto; padding:11px 22px; }

.radius-control{
  display:flex; align-items:center; gap:12px;
  padding:14px 18px;
  border-top:1px solid var(--border);
}
.radius-control-label{ font-size:12px; font-weight:700; color:var(--muted); flex:none; }
.radius-value{ font-size:12.5px; font-weight:800; color:var(--primary-pressed); flex:none; min-width:48px; text-align:right; }

.radius-slider{
  flex:1; -webkit-appearance:none; appearance:none;
  height:6px; border-radius:999px;
  background:linear-gradient(to right, var(--primary) 0%, var(--primary) 15%, var(--border) 15%, var(--border) 100%);
  outline:none;
}
.radius-slider::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:20px; height:20px; border-radius:50%;
  background:var(--primary); border:3px solid var(--surface);
  box-shadow:0 2px 6px rgba(244,122,55,.5);
  cursor:pointer;
}
.radius-slider::-moz-range-thumb{
  width:20px; height:20px; border-radius:50%; border:3px solid var(--surface);
  background:var(--primary); box-shadow:0 2px 6px rgba(244,122,55,.5); cursor:pointer;
}
.radius-slider:disabled{ opacity:.4; cursor:not-allowed; }

@media (min-width:900px){
  .map-frame{ height:300px; }
}

/* ---- Filter-Bubbles unter der Karte (nur Handy, horizontal wischbar) ---- */
.filter-bubbles{
  display:flex; gap:8px; overflow-x:auto; padding:14px 2px 4px;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.filter-bubbles::-webkit-scrollbar{ display:none; }
.filter-bubble{
  flex:none; display:flex; align-items:center; gap:6px;
  padding:9px 14px; border-radius:999px;
  background:var(--surface); border:1.5px solid var(--border);
  font-size:12.5px; font-weight:700; color:var(--muted);
  white-space:nowrap; transition:all .15s;
}
.filter-bubble svg{ flex:none; }
.filter-bubble.active{
  background:var(--primary); border-color:var(--primary); color:#fff;
}

/* Am Desktop gibt es genug Platz fuer das volle Kategorien-Grid - Bubbles nur mobil */
@media (min-width:900px){
  .filter-bubbles{ display:none; }
}

/* ---- Sprachauswahl (Topbar) ---- */
.lang-dropdown{ position:relative; }
.lang-toggle{
  height:38px; padding:0 14px;
  border-radius:12px; border:1.5px solid var(--border); background:var(--surface);
  font-size:12.5px; font-weight:700; color:var(--ink); cursor:pointer;
  transition:border-color .15s;
}
.lang-toggle:hover{ border-color:var(--ink); }
.lang-menu{
  display:none;
  position:absolute; top:calc(100% + 8px); right:0; z-index:60;
  min-width:200px;
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow:0 14px 30px -12px rgba(33,31,27,.3);
  padding:6px; flex-direction:column; gap:2px;
}
.lang-menu.open{ display:flex; }
.lang-option{
  text-align:left; padding:9px 12px; border-radius:9px;
  font-size:13px; font-weight:600; color:var(--ink);
}
.lang-option:hover{ background:var(--canvas); }
.lang-option.active{ color:var(--primary-pressed); font-weight:800; background:rgba(244,122,55,.1); }

/* ---- Live-Preisvorschau beim Auftrag erstellen (weiches Einblenden) ---- */
.price-card{
  background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:14px;
  margin-top:14px;
}
.price-preview-wrap{
  display:flex; flex-direction:column; align-items:flex-start; gap:1px;
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .3s ease, opacity .25s ease, margin .3s ease, padding .3s ease;
}
.price-preview-wrap.is-visible{
  max-height:70px; opacity:1; margin-top:10px; padding-top:12px;
  border-top:1px dashed var(--border);
}
.price-preview-wrap .price-total{ font-size:19px; }

@media (min-width:900px){
  .form-submit-btn{ width:auto; min-width:220px; display:inline-flex !important; align-items:center; justify-content:center; }
}

/* ---- Auftrags-Karten (hochkant, Grid) ---- */
.job-card-grid{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:4px;
}
.job-card{
  display:flex; flex-direction:column; position:relative;
  flex:1 1 calc(50% - 5px); box-sizing:border-box;
  background:var(--surface); border:1px solid var(--border); border-radius:18px;
  overflow:hidden; text-decoration:none; color:inherit;
  transition:border-color .15s, transform .15s;
}
.job-card:hover{ border-color:var(--primary); transform:translateY(-2px); }
.job-card-biete{ border-color:rgba(244,122,55,.35); }
.job-card-type-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  padding:4px 10px; border-radius:999px; background:var(--primary); color:#fff;
  font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.02em;
}
.job-card-photo{
  width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--canvas); display:block;
}
.job-card-photo-empty{ display:flex; align-items:center; justify-content:center; opacity:.55; }
.job-card-body{ padding:11px 12px 13px; display:flex; flex-direction:column; gap:3px; }
.job-card-title{
  font-size:12.5px; font-weight:700; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.job-card-category{ font-size:10.5px; font-weight:600; color:var(--muted); }
.job-card-price{ margin-top:6px; }
.job-card-from-label{ font-size:9.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.02em; margin-bottom:1px; }
.job-card-price .price-block{ align-items:flex-start; text-align:left; }
.job-card-meta{
  margin-top:8px; padding-top:8px; border-top:1px solid var(--border);
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
}
.job-card-owner{ font-size:10px; font-weight:700; color:var(--ink); }
.job-card-rating{ display:flex; align-items:center; gap:2px; font-size:10px; font-weight:700; color:var(--primary-pressed); }
.job-card-distance{ font-size:10px; font-weight:600; color:var(--muted); margin-left:auto; }

@media (min-width:560px){
  .job-card{ flex-basis:calc(33.333% - 7px); }
}
@media (min-width:900px){
  .job-card-grid{ gap:14px; }
  .job-card{ flex:0 1 290px; max-width:290px; }
  .job-card-title{ font-size:12.5px; }
  .job-card-body{ padding:9px 10px 11px; }
}

/* ---- Vereinheitlichter Posteingang (Nachrichten) ---- */
.panel-inbox{
  height:100%; min-height:0;
  display:flex; flex-direction:column;
}
.inbox-shell{
  display:flex; flex-direction:column;
  flex:1; min-height:0;
  margin:-22px -14px -24px;
  background:var(--surface);
  border-top:1px solid var(--border);
}
.inbox-list-pane{ flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding:14px; }
.inbox-list-heading{ font-family:var(--font-display); font-weight:600; font-size:17px; margin-bottom:10px; }
.inbox-conv-list{ display:flex; flex-direction:column; gap:2px; }
.inbox-conv-item{
  display:flex; align-items:center; gap:10px; padding:10px 8px; border-radius:14px;
  text-decoration:none; color:inherit;
}
.inbox-conv-item.active{ background:rgba(244,122,55,.1); }
.inbox-conv-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.inbox-conv-name-row{ display:flex; align-items:center; gap:6px; min-width:0; }
.inbox-conv-name{ font-size:13.5px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.inbox-conv-badge{
  flex:none; font-size:8.5px; font-weight:700; text-transform:uppercase; letter-spacing:.02em;
  padding:1.5px 6px; border-radius:999px; background:var(--canvas); color:var(--muted);
}
.inbox-conv-badge.badge-success{ background:rgba(59,123,97,.12); color:var(--success); }
.inbox-conv-badge.badge-danger{ background:rgba(184,81,69,.1); color:var(--danger); }
.inbox-conv-preview{ font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.inbox-chat-pane{ display:none; flex-direction:column; flex:1; min-height:0; padding:14px; }
.inbox-shell.mobile-show-chat .inbox-list-pane{ display:none; }
.inbox-shell.mobile-show-chat .inbox-chat-pane{ display:flex; }

.inbox-chat-header{ display:flex; align-items:center; gap:10px; padding-bottom:12px; border-bottom:1px solid var(--border); flex:none; }
.inbox-back-btn{ display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--canvas); color:var(--ink); flex:none; }
.inbox-chat-person{ display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); }
.inbox-chat-person-text{ display:flex; flex-direction:column; gap:1px; }
.inbox-chat-person-name{ font-size:14.5px; font-weight:700; color:var(--ink); }
.inbox-chat-person-loc{ font-size:11px; font-weight:600; color:var(--muted); }
.inbox-chat-person-avatar{
  width:30px; height:30px; border-radius:50%; flex:none; font-size:11px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(150deg,#F4A56C,var(--primary)); color:#fff;
  font-family:var(--font-display); font-weight:600;
}

.inbox-job-card{
  display:flex; align-items:center; gap:10px; padding:9px; margin:12px 0;
  background:var(--canvas); border:1px solid var(--border); border-radius:14px;
  text-decoration:none; color:inherit; flex:none;
}
.inbox-job-photo{ width:42px; height:42px; border-radius:10px; object-fit:cover; flex:none; background:var(--surface); }
.inbox-job-photo-empty{ display:flex; align-items:center; justify-content:center; }
.inbox-job-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.inbox-job-title{ font-size:12.5px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.inbox-job-info .price-block{ align-items:flex-start; text-align:left; }
.inbox-job-info .price-total{ font-size:12.5px; }

/* ---- Status-/Aktionsleiste im Chat (Angebot machen, Freigeben, Bewerten...) ---- */
.chat-status-bar{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding:10px 12px; margin:0 0 12px; flex:none;
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
}
.chat-status-bar-progress{ flex-direction:column; align-items:stretch; }
.chat-status-bar-processing{ flex-direction:column; align-items:stretch; background:rgba(244,122,55,.08); border-color:var(--primary); }
.chat-status-text{ font-size:12.5px; font-weight:600; color:var(--ink); }
.chat-status-actions{ display:flex; flex-direction:column; gap:8px; }

@media (min-width:900px){
  .chat-status-actions.pay-cancel-row{ flex-direction:row; }
  .chat-status-actions.pay-cancel-row #pay-btn{ flex:2; }
  .chat-status-actions.pay-cancel-row #cancel-btn{ flex:1; }
}
.chat-status-actions form{ display:flex; }
.chat-status-actions .btn-primary.small{ width:100%; }
.chat-status-actions #cancel-btn{ width:100%; }
.chat-dispute-form{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.chat-dispute-form select{
  width:100%; background:var(--surface); border:1.5px solid var(--border); border-radius:14px;
  padding:12px 14px; font-size:13px; font-weight:600; color:var(--ink);
}
.chat-dispute-form textarea{
  border:1.5px solid var(--border); border-radius:12px; padding:9px 12px;
  font-size:13px; font-family:inherit; background:var(--canvas); color:var(--ink); resize:vertical;
}
.chat-dispute-form textarea:focus{ outline:none; border-color:var(--primary); }
.chat-inline-offer-form{
  display:flex; align-items:center; gap:8px;
  margin:0 0 12px; flex:none;
}
.chat-inline-offer-form .offer-price-row{ flex:1; min-width:0; }
.chat-inline-offer-form button[type="submit"]{ flex:none; white-space:nowrap; }
.chat-inline-offer-form textarea{
  border:1.5px solid var(--border); border-radius:12px; padding:9px 12px;
  font-size:13px; font-family:inherit; background:var(--canvas); color:var(--ink); resize:vertical;
}
.chat-inline-offer-form textarea:focus{ outline:none; border-color:var(--primary); }
.inbox-job-info .price-base{ font-size:10px; }

.inbox-empty-state{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; text-align:center; padding:40px 20px; color:var(--muted);
}
.inbox-empty-state svg{ opacity:.4; }
.inbox-empty-state p{ font-size:13px; font-weight:600; max-width:280px; line-height:1.5; }

@media (min-width:900px){
  .inbox-shell{
    flex-direction:row;
    height:calc(100vh - 160px);
    margin:0; border-radius:20px; border:1px solid var(--border); overflow:hidden;
  }
  .inbox-list-pane{ flex:none; width:320px; border-right:1px solid var(--border); background:var(--surface); }
  .inbox-chat-pane{ display:flex !important; flex:1; background:var(--canvas); }
  .inbox-shell.mobile-show-chat .inbox-list-pane{ display:block; }
  .inbox-back-btn{ display:none; }
}

/* ---- Erfolgs-Modal (z.B. nach Auftrag erstellen) ---- */
.success-modal-backdrop{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:300;
  background:rgba(33,31,27,.45);
  display:flex; align-items:center; justify-content:center;
  padding:20px;
}
.success-modal-card{
  background:var(--surface); border-radius:24px; padding:32px 28px;
  max-width:360px; width:100%; text-align:center;
  box-shadow:0 30px 60px -20px rgba(33,31,27,.5);
}
.success-modal-icon{
  width:56px; height:56px; border-radius:50%; margin:0 auto 16px;
  background:rgba(59,123,97,.14); color:var(--success);
  display:flex; align-items:center; justify-content:center;
}
.success-modal-title{ font-family:var(--font-display); font-weight:600; font-size:19px; color:var(--ink); }
.success-modal-text{ margin-top:8px; font-size:13px; color:var(--muted); line-height:1.5; }
.success-modal-card .btn-primary{ margin-top:20px; }

/* ================================================================
   PROFIL-SEITE 2.0 (Hero + Bottom-Sheet-Optik)
   ================================================================ */

/* ---- Hero-Bereich (auf dem Canvas-Hintergrund, kein Kartenrahmen) ---- */
.profile-hero{
  text-align:center; padding:8px 20px 28px;
  max-width:420px; margin:0 auto;
  position:sticky; top:0; z-index:1;
  background:var(--canvas);
}
.profile-hero-back{ display:block; text-align:left; max-width:420px; margin:0 auto; }
.profile-hero-avatar-wrap{ position:relative; display:inline-block; margin-top:6px; }
.profile-hero-avatar{
  width:112px; height:112px; border-radius:50%;
  border:4px solid var(--surface);
  box-shadow:0 12px 30px -10px rgba(244,122,55,.35), 0 0 0 1px rgba(221,212,198,.5);
  font-family:var(--font-display); font-weight:600; font-size:34px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(150deg,#F4A56C,var(--primary)); color:#fff;
}
.profile-hero-name{
  margin-top:18px; font-family:var(--font-display); font-weight:600; font-size:23px; color:var(--ink);
}
.profile-hero-meta{
  margin-top:6px; display:flex; align-items:center; justify-content:center; gap:5px;
  font-size:12.5px; color:var(--muted); font-weight:500;
}
.profile-hero-type{
  margin-top:3px; font-size:13.5px; color:var(--ink); font-weight:500;
}

/* ---- Kompakte Bewertungs-Pille ---- */
.rating-pill-new{
  display:inline-flex; align-items:center; gap:7px; margin-top:14px;
  background:var(--surface); padding:9px 18px; border-radius:999px;
  box-shadow:0 8px 20px -12px rgba(33,31,27,.25);
  font-size:13px;
}
.rp-star{ display:inline-flex; align-items:center; gap:4px; color:var(--primary); font-weight:700; }
.rp-star svg{ flex:none; }
.rp-dot{ color:var(--muted); opacity:.5; }
.rp-sub{ color:var(--muted); font-weight:600; }
.rp-heart{ display:inline-flex; align-items:center; gap:4px; color:var(--danger); font-weight:700; }
.rp-empty{ color:var(--muted); font-weight:600; font-size:12.5px; }

.profile-hero .profile-bio{ margin-top:14px; max-width:340px; margin-left:auto; margin-right:auto; }

/* ---- Bottom-Sheet-Container ---- */
.profile-sheet{
  position:relative; z-index:2;
  background:var(--surface);
  margin:0 -14px -24px;
  padding:22px 18px 40px;
  border-radius:28px 28px 0 0;
  box-shadow:0 -18px 40px -30px rgba(33,31,27,.35);
}
.profile-sheet-handle{
  width:40px; height:4px; border-radius:999px; background:var(--border);
  margin:0 auto 20px; opacity:.7;
}
.profile-sheet-menu{ margin-bottom:20px; }

/* ---- Service-Karten ("Bietet an") ---- */
.service-card-list{ display:flex; flex-direction:column; gap:10px; }
.service-card{
  display:flex; align-items:center; gap:12px; padding:14px 16px;
  background:var(--canvas); border-radius:20px;
  text-decoration:none; color:inherit;
  box-shadow:0 6px 16px -12px rgba(33,31,27,.2);
  transition:transform .12s, box-shadow .12s;
}
.service-card:active{ transform:scale(.99); }
.service-card-ic{
  width:38px; height:38px; border-radius:13px; flex:none;
  background:rgba(244,122,55,.1); color:var(--primary);
  display:flex; align-items:center; justify-content:center;
}
.service-card-text{ flex:1; min-width:0; }
.service-card-name{ font-weight:700; font-size:14px; color:var(--ink); }
.service-card-desc{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.service-card-price{ flex:none; font-size:11.5px; font-weight:700; color:var(--primary-pressed); }
.service-card-chev{ flex:none; color:var(--border); }

/* ---- Achievement-Pills ---- */
.badge-row-new{ display:flex; flex-wrap:wrap; gap:8px; }
.badge-pill-new{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 13px; border-radius:999px;
  background:rgba(185,135,47,.12); color:var(--warning);
  font-size:11px; font-weight:700;
}

/* ---- Bewertungs-Karten ---- */
.review-list-new{ display:flex; flex-direction:column; gap:10px; }
.review-card-new{
  background:var(--canvas); border-radius:20px; padding:14px 16px;
  box-shadow:0 6px 16px -12px rgba(33,31,27,.2);
}
.review-card-head{ display:flex; align-items:center; gap:8px; }
.review-card-stars{ display:flex; gap:1px; flex:none; }
.review-card-author{ font-size:12.5px; font-weight:700; color:var(--ink); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.review-card-hearts{ flex:none; display:inline-flex; align-items:center; gap:3px; font-size:11px; font-weight:700; color:var(--danger); }
.review-card-comment{ margin-top:8px; font-size:12.5px; color:var(--muted); line-height:1.5; }

.review-form-card{
  background:var(--canvas); border-radius:20px; padding:16px;
  box-shadow:0 6px 16px -12px rgba(33,31,27,.2);
  margin-bottom:20px;
}

/* ---- Desktop: zurueck zum bewaehrten 2-Spalten-Layout, gleiche Komponenten-Optik ---- */
@media (min-width:900px){
  .profile-page{ display:flex; align-items:flex-start; gap:32px; }
  .profile-hero-back{ display:none; }
  .profile-hero{
    flex:0 0 320px; text-align:left; max-width:none; margin:0;
    background:var(--surface); border-radius:24px; padding:26px;
    box-shadow:0 10px 30px -18px rgba(33,31,27,.25);
  }
  .profile-hero-avatar-wrap{ display:block; margin-top:0; }
  .profile-hero-meta{ justify-content:flex-start; }
  .rating-pill-new{ display:flex; width:fit-content; }
  .profile-hero .profile-bio{ margin-left:0; margin-right:0; text-align:left; }
  .profile-sheet{
    flex:1; min-width:0; margin:0; padding:0; border-radius:0; box-shadow:none; background:transparent;
  }
  .profile-sheet-handle{ display:none; }
  .service-card-list, .badge-row-new, .review-list-new, .profile-sheet .section-title, .profile-sheet .stat-row, .profile-sheet-menu, .review-form-card, .empty-hint{ max-width:600px; }
  .service-card{ box-shadow:none; border:1px solid var(--border); background:var(--surface); }
  .review-card-new{ box-shadow:none; border:1px solid var(--border); background:var(--surface); }
  .review-form-card{ box-shadow:none; border:1px solid var(--border); background:var(--surface); }
}

/* ---- Meine Auftraege - Liste mit Status ---- */
.myjobs-tabs{ display:flex; gap:8px; margin-top:18px; margin-bottom:16px; }
.myjobs-tab{
  padding:9px 16px; border-radius:999px; border:1.5px solid var(--border);
  background:var(--surface); color:var(--muted); font-weight:700; font-size:13px;
  transition:all .15s;
}
.myjobs-tab.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }

.myjobs-list{ display:flex; flex-direction:column; gap:10px; }
/* ---- Kategorie-Seite: Ich suche / Ich biete / Anbieter:innen ---- */
.kat-type-tabs{ display:flex; gap:8px; margin-top:20px; margin-bottom:16px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.kat-type-tab{
  flex:none; padding:9px 16px; border-radius:999px; border:1.5px solid var(--border);
  background:var(--surface); color:var(--muted); font-weight:700; font-size:12.5px; white-space:nowrap;
  transition:all .15s;
}
.kat-type-tab.is-active{ background:var(--ink); border-color:var(--ink); color:#fff; }
.kat-type-panel[hidden]{ display:none; }
.kat-type-panel .helper-list{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:520px){
  .kat-type-panel .helper-list{ grid-template-columns:1fr; }
}

.myjobs-list[hidden]{ display:none; }
.myjobs-add-link{
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:14px; border-radius:16px; border:1.5px dashed var(--border);
  color:var(--primary-pressed); font-weight:700; font-size:13px; text-decoration:none;
  transition:border-color .15s, background .15s;
}
.myjobs-add-link:hover{ border-color:var(--primary); background:rgba(244,122,55,.05); }
.myjobs-card{
  display:flex; align-items:center; gap:12px; padding:12px;
  background:var(--surface); border:1px solid var(--border); border-radius:18px;
  text-decoration:none; color:inherit;
  transition:border-color .15s;
}
.myjobs-card:hover{ border-color:var(--primary); }
.myjobs-card-photo{ width:52px; height:52px; border-radius:14px; object-fit:cover; flex:none; background:var(--canvas); }
.myjobs-card-photo-empty{ display:flex; align-items:center; justify-content:center; opacity:.5; }
.myjobs-card-body{ flex:1; min-width:0; }
.myjobs-card-title{ font-weight:700; font-size:14px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.myjobs-card-meta{ font-size:11.5px; color:var(--muted); font-weight:500; margin-top:3px; }

@media (min-width:900px){
  .myjobs-list{ max-width:700px; }
}

/* ---- Ich suche / Ich biete - Auswahl ---- */
.typ-choice-grid{ display:flex; flex-direction:column; gap:14px; margin-top:22px; }
.typ-choice-card{
  display:block; padding:22px; background:var(--surface); border:1.5px solid var(--border);
  border-radius:22px; text-decoration:none; color:inherit;
  transition:border-color .15s, transform .12s, box-shadow .15s;
}
.typ-choice-card:hover{ border-color:var(--primary); box-shadow:0 12px 28px -18px rgba(244,122,55,.35); }
.typ-choice-card:active{ transform:scale(.99); }
.typ-choice-ic{
  width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.typ-choice-ic-suche{ background:rgba(59,123,97,.12); color:var(--success); }
.typ-choice-ic-biete{ background:rgba(244,122,55,.12); color:var(--primary); }
.typ-choice-title{ font-family:var(--font-display); font-weight:600; font-size:17px; color:var(--ink); }
.typ-choice-desc{ margin-top:6px; font-size:13px; color:var(--muted); line-height:1.5; }

@media (min-width:900px){
  .typ-choice-grid{ flex-direction:row; }
  .typ-choice-card{ flex:1; }
}

/* ---- Angebot erstellen: Verfuegbarkeit + Preis-Pakete ---- */
.typ-repeat-toggle{ display:flex; flex-direction:column; gap:10px; }
.typ-repeat-pill{ position:relative; display:block; cursor:pointer; }
.typ-repeat-pill input{ position:absolute; opacity:0; width:1px; height:1px; }
.typ-repeat-pill span{
  display:block; padding:14px 16px; border-radius:16px; border:1.5px solid var(--border);
  background:var(--surface); font-weight:700; font-size:13.5px; color:var(--ink); transition:all .15s;
}
.typ-repeat-pill span small{ display:block; font-weight:500; font-size:11.5px; color:var(--muted); margin-top:2px; }
.typ-repeat-pill input:checked + span{ border-color:var(--primary); background:rgba(244,122,55,.06); }

.package-list{ display:flex; flex-direction:column; gap:12px; }
.package-row{
  position:relative; padding:16px; background:var(--canvas); border-radius:18px; border:1px solid var(--border);
}
.package-row-remove{
  position:absolute; top:10px; right:10px; width:26px; height:26px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:var(--surface); color:var(--muted);
  transition:color .15s;
}
.package-row-remove:hover{ color:var(--danger); }

/* ---- Angebot-Detailseite: Paket-Anzeige ---- */
.package-display-list{ display:flex; flex-direction:column; gap:10px; }
.package-display-card{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 16px; background:var(--surface); border:1.5px solid var(--border); border-radius:18px;
}
.package-display-text{ flex:1; min-width:0; }
.package-display-label{ font-weight:700; font-size:13.5px; color:var(--ink); margin-bottom:4px; }

/* ================================================================
   PROFIL-SEITE 3.0 (eigenes Profil): 3-Spalten Desktop, gestapelt Handy
   ================================================================ */
:root{ --pg-verify:#3B7B61; --pg-dark:#20201D; }

.pg-grid{ display:flex; flex-direction:column; gap:20px; }
.pg-card{
  background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:22px;
  box-shadow:0 8px 30px -20px rgba(60,45,25,.12);
}
.pg-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; row-gap:2px; }
.pg-card-head h3{ min-width:0; }
.pg-card-head h3{ font-family:var(--font-display); font-weight:600; font-size:16px; color:var(--ink); }
.pg-link{ font-size:12.5px; font-weight:700; color:var(--primary); text-decoration:none; }

/* ---- Identitaet: offen auf dem Hintergrund, keine eigene Box ---- */
.pg-identity{ text-align:center; padding-bottom:4px; }
.pg-hero-avatar-wrap{ position:relative; display:inline-block; }
.pg-hero-avatar{
  width:120px; height:120px; border-radius:50%; border:4px solid var(--canvas);
  box-shadow:0 10px 26px -10px rgba(244,122,55,.3), 0 0 0 1px rgba(221,212,198,.5);
  font-family:var(--font-display); font-weight:600; font-size:36px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(150deg,#F4A56C,var(--primary)); color:#fff;
}
.pg-verify-badge{
  position:absolute; bottom:4px; right:4px; width:26px; height:26px; border-radius:50%;
  background:var(--pg-verify); border:3px solid var(--canvas);
  display:flex; align-items:center; justify-content:center;
}
.pg-edit-badge{
  position:absolute; top:0; right:-4px; width:32px; height:32px; border-radius:50%;
  background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; border:3px solid var(--canvas);
}
.pg-hero-name{ margin-top:16px; font-family:var(--font-display); font-weight:600; font-size:21px; color:var(--ink); }
.pg-verify-text{ display:flex; align-items:center; justify-content:center; gap:5px; margin-top:4px; font-size:12.5px; font-weight:700; color:var(--pg-verify); }
.pg-hero-meta{ display:flex; align-items:center; justify-content:center; gap:5px; margin-top:10px; font-size:12.5px; color:var(--muted); font-weight:500; }
.pg-hero-type{ margin-top:2px; font-size:13px; color:var(--ink); font-weight:500; }
.pg-identity .rating-pill-new{ margin-top:14px; margin-left:auto; margin-right:auto; display:flex; width:-webkit-fit-content; width:fit-content; }

/* ---- EINE grosse Box: Ueber mich + Navigation zusammen, durch Linie getrennt ---- */
.pg-left-sheet-divider{ height:1px; background:var(--border); margin:18px -22px 4px; }
.pg-left-sheet .pg-nav-item{ margin:0 -22px; padding-left:22px; padding-right:22px; }
.pg-left-sheet .pg-nav-item:first-of-type{ margin-top:4px; }

.pg-nav-item{
  display:flex; align-items:center; gap:12px; padding:14px 8px;
  text-decoration:none; color:inherit; border-bottom:1px solid var(--border);
  transition:background .15s;
}
.pg-nav-item:last-child{ border-bottom:none; }
.pg-nav-item:hover{ background:var(--canvas); }
.pg-nav-ic{ width:32px; height:32px; border-radius:10px; background:var(--canvas); color:var(--ink); flex:none; display:flex; align-items:center; justify-content:center; }
.pg-nav-label{ flex:1; font-size:13.5px; font-weight:600; color:var(--ink); }
.pg-nav-chev{ flex:none; color:var(--border); }

/* ---- KPI-Zeile: Guthaben (dunkel) + Achievements ---- */
.pg-kpi-row{ display:flex; gap:14px; }
.pg-kpi-card{
  flex:1; display:flex; align-items:center; gap:12px; padding:18px 20px; border-radius:20px;
  background:var(--surface); border:1px solid var(--border);
  box-shadow:0 8px 24px -18px rgba(60,45,25,.15);
}
.pg-kpi-dark{ background:var(--pg-dark); border-color:var(--pg-dark); flex:0 0 auto; width:100%; max-width:380px; }
.pg-kpi-ic{ width:38px; height:38px; border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.12); color:#fff; }
.pg-kpi-ic-light{ background:rgba(244,122,55,.12); color:var(--primary); }
.pg-kpi-text{ flex:1; min-width:0; display:flex; flex-direction:column; }
.pg-kpi-num{ font-family:var(--font-display); font-weight:600; font-size:21px; color:var(--ink); line-height:1.2; }
.pg-kpi-dark .pg-kpi-num{ color:#fff; }
.pg-kpi-label{ font-size:11.5px; font-weight:600; color:var(--muted); margin-top:1px; }
.pg-kpi-dark .pg-kpi-label{ color:rgba(255,255,255,.65); }
.pg-payout-btn{
  flex:none; padding:9px 14px; border-radius:999px; background:#fff; color:var(--pg-dark);
  font-weight:700; font-size:12px; white-space:nowrap;
}

/* ---- Bietet an (Service-Zeilen) ---- */
.pg-service-list{ display:flex; flex-direction:column; }
.pg-service-row{
  display:flex; align-items:center; gap:12px; padding:14px 4px;
  text-decoration:none; color:inherit; border-bottom:1px solid var(--border);
  transition:background .15s;
}
.pg-service-row:last-child{ border-bottom:none; }
.pg-service-row:hover{ background:var(--canvas); border-radius:12px; }
.pg-service-ic{ width:34px; height:34px; border-radius:11px; background:rgba(244,122,55,.1); color:var(--primary); flex:none; display:flex; align-items:center; justify-content:center; }
.pg-service-name{ flex:1; font-size:13.5px; font-weight:700; color:var(--ink); }
.pg-service-price{ flex:none; font-size:11.5px; font-weight:700; color:var(--primary-pressed); }
.pg-add-category-link{
  display:block; text-align:center; margin-top:12px; padding:13px;
  border-radius:14px; background:var(--canvas); color:var(--primary-pressed);
  font-weight:700; font-size:12.5px; text-decoration:none;
}

/* ---- Achievements (volle Karten) ---- */
.pg-achievement-grid{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.pg-achievement-card{
  background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:16px;
  box-shadow:0 6px 18px -16px rgba(60,45,25,.15);
}
.pg-achievement-ic{ width:36px; height:36px; border-radius:11px; background:rgba(244,122,55,.1); color:var(--primary); display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.pg-achievement-title{ font-weight:700; font-size:13px; color:var(--ink); line-height:1.3; }
.pg-achievement-date{ font-size:10.5px; font-weight:600; color:var(--muted); margin-top:3px; }
.pg-achievement-desc{ font-size:11.5px; color:var(--muted); margin-top:8px; line-height:1.5; }

/* ---- Ueber mich ---- */
.pg-about-text{ font-size:13px; color:var(--ink); line-height:1.6; white-space:pre-line; }
.pg-about-textarea{ width:100%; box-sizing:border-box; padding:12px 14px; border-radius:14px; border:1.5px solid var(--border); font-family:inherit; font-size:13px; resize:vertical; }
.pg-about-empty{ color:var(--muted); font-style:italic; }
.pg-about-edit-btn{ display:inline-flex; margin-top:14px; padding-left:16px; padding-right:16px; height:38px; font-size:12.5px; text-decoration:none; }
.pg-about-rows{ margin-top:18px; padding-top:16px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:11px; }
.pg-about-row{ display:flex; align-items:center; justify-content:space-between; font-size:12.5px; }
.pg-about-row span:first-child{ color:var(--muted); font-weight:600; }
.pg-about-row span:last-child{ color:var(--ink); font-weight:700; }

.review-card-time{ font-size:10.5px; color:var(--muted); margin-top:6px; }
.pg-reviews-toggle{
  display:block; width:100%; margin-top:14px; padding:12px;
  border-radius:14px; background:var(--canvas); color:var(--primary-pressed);
  font-weight:700; font-size:12.5px; text-align:center;
}

@media (max-width:1199px){
  .pg-achievement-grid{ grid-template-columns:1fr; }
  .pg-kpi-row{ flex-direction:column; }
  .pg-kpi-dark{ flex:1; }

  /* Identitaet bleibt oben in der linken Gruppe stehen, Guthaben (kommt jetzt
     direkt danach, per JS an diese Stelle verschoben) gleitet darueber.
     Beide sind echte Geschwister innerhalb eines normalen (nie
     display:contents) Wrapper-Divs - das war die eigentliche Ursache
     des Flacker-Bugs vorher. Das Anheften selbst laeuft jetzt komplett
     per JavaScript (nicht natives position:sticky), damit es sich
     zuverlaessig testen und gezielt begrenzen laesst. */
  .pg-col-left{ position:relative; }
  .pg-identity{
    background:var(--canvas);
    padding-bottom:44px;
  }

  /* Ab hier verschmilzt alles zu EINER durchgehenden Sheet-Flaeche.
     Alle Abschnitte bekommen explizit eine hoehere Ebene als die
     fixierte Identitaet (z-index:1 per JS), damit sie beim Scrollen
     sicher darueber gleiten, nicht dahinter verschwinden. */
  .pg-kpi-row, .pg-left-sheet, .pg-services-card,
  .pg-achievements-section, .pg-reviews-card,
  .pg-listing-section, .pg-review-form-card{
    position:relative; z-index:2;
    background:var(--surface);
    margin-left:-14px; margin-right:-14px; margin-top:0; margin-bottom:0;
    padding-left:14px; padding-right:14px;
  }
  .pg-left-sheet, .pg-services-card, .pg-reviews-card,
  .pg-listing-section, .pg-review-form-card{ border:none; box-shadow:none; border-radius:0; }
  .pg-achievements-section{ padding-top:0; }
  .pg-achievements-section .pg-card-head,
  .pg-services-card .pg-card-head,
  .pg-reviews-card .pg-card-head,
  .pg-listing-section .pg-card-head,
  .pg-review-form-card .pg-card-head{ padding-top:22px; }
  .pg-left-sheet .pg-card-head{ padding-top:22px; }
  /* Extra Abstand speziell zwischen Ueber-mich/Navigation und Faehigkeiten,
     damit dieser Uebergang klarer erkennbar ist als die anderen */
  .pg-left-sheet + .pg-services-card .pg-card-head{ padding-top:44px; }
  .pg-kpi-row{
    margin-top:-24px;
    padding-top:22px; padding-bottom:18px;
    border-radius:26px 26px 0 0;
    box-shadow:0 8px 24px -20px rgba(60,45,25,.2);
  }
  /* Bei fremden Profilen (kein Guthaben-Kasten) ist "Über mich" die erste
     Flaeche, die sich ueber die Identitaet schiebt - braucht deshalb selbst
     die abgerundete obere Kante + den Ueberlapp, den sonst kpi-row traegt. */
  .pg-left-sheet-noNav{
    margin-top:-24px;
    padding-top:22px;
    border-radius:26px 26px 0 0;
    box-shadow:0 8px 24px -20px rgba(60,45,25,.2);
  }
  .pg-left-sheet-noNav .pg-card-head{ padding-top:0; }
  .pg-member-back{ display:block; margin-bottom:14px; }
}
@media (min-width:600px) and (max-width:1199px){
  .pg-achievement-grid{ grid-template-columns:1fr 1fr; }
  .pg-kpi-row{ flex-direction:row; }
}

@media (min-width:900px) and (max-width:1199px){
  .pg-grid{ max-width:640px; margin:0 auto; }
}

/* ---- Desktop: echte 2 Spalten per Flexbox, echte Wrapper-Divs (nie
   display:contents) - identisch zuverlaessig fuer position:sticky ---- */
@media (min-width:1200px){
  .pg-grid-2col{ flex-direction:row; align-items:flex-start; gap:24px; max-width:1280px; }
  .pg-col-left{ flex:0 0 360px; display:flex; flex-direction:column; gap:20px; }
  .pg-col-right{ flex:1; min-width:0; display:flex; flex-direction:column; gap:20px; }
  .pg-achievement-grid{ grid-template-columns:1fr 1fr 1fr; }

  .pg-identity{
    background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:22px;
    box-shadow:0 8px 30px -20px rgba(60,45,25,.12);
  }
}
@media (min-width:1200px) and (max-width:1399px){
  .pg-col-left{ flex-basis:320px; }
}

/* ---- Fremdes Profil: einfacher 2-Spalten-Aufbau (keine Umsortierung noetig) ---- */
.pg-back-link{ margin-bottom:14px; display:block; }
.pg-member-grid{ display:flex; flex-direction:column; gap:20px; }
.pg-member-col-left{ display:flex; flex-direction:column; gap:20px; }
.pg-member-col-right{ display:flex; flex-direction:column; gap:0; }
.pg-member-col-right > *{ margin-bottom:20px; }

@media (min-width:1000px){
  .pg-member-grid{ flex-direction:row; align-items:flex-start; gap:28px; max-width:1200px; margin:0 auto; }
  .pg-member-col-left{ flex:0 0 340px; position:sticky; top:88px; }
  .pg-member-col-right{ flex:1; min-width:0; }
}

/* Karten-Raster: 2 pro Zeile auf Handy (Basis-Regel), mehr Platz auf PC */
@media (min-width:900px){
  .job-card{ flex:1 1 calc(33.333% - 7px); }
}
@media (min-width:1300px){
  .job-card{ flex:1 1 calc(25% - 8px); }
}

/* ================================================================
   APP-SPLASHSCREEN (nur Handy, nur beim ersten Laden der Sitzung)
   ================================================================ */
.app-splash{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:99999;
  background:var(--canvas);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:30px;
  transition:opacity .4s ease;
}
.app-splash-logo{ width:150px; height:auto; }
.app-splash-spinner{
  width:34px; height:34px;
  border:3px solid var(--border);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:app-splash-spin .8s linear infinite;
}
@keyframes app-splash-spin{ to{ transform:rotate(360deg); } }
.app-splash-hide{ opacity:0; pointer-events:none; }
@media (min-width:900px){
  .app-splash{ display:none !important; }
}

/* ================================================================
   BILD-ZUSCHNEIDE-MODAL (erzwungenes 1:1-Verhaeltnis)
   ================================================================ */
.crop-modal{
  position:fixed; top:0; right:0; bottom:0; left:0; z-index:9998;
  background:var(--ink);
  display:flex; flex-direction:column;
}
.crop-modal-header{
  flex:none; height:56px; display:flex; align-items:center; justify-content:space-between;
  padding:0 16px; color:#fff;
}
.crop-modal-title{ font-weight:700; font-size:14px; }
.crop-modal-cancel, .crop-modal-confirm{
  background:none; border:none; color:#fff; font-weight:700; font-size:14px; padding:8px;
}
.crop-modal-confirm{ color:var(--primary); }
.crop-modal-stage{
  flex:1; display:flex; align-items:center; justify-content:center; overflow:hidden;
  position:relative;
}
.crop-frame{
  width:340px; height:340px;
  border-radius:50%;
  overflow:hidden;
  position:relative;
  box-shadow:0 0 0 2000px rgba(0,0,0,.6);
  touch-action:none;
  cursor:grab;
}
@media (max-width:439px){
  .crop-frame{ width:78vw; height:78vw; }
  .crop-frame-rect{ width:88vw; height:66vw; }
}
.crop-frame-rect{
  width:340px; height:255px;
  border-radius:18px;
}
.crop-frame:active{ cursor:grabbing; }
.crop-frame img{
  position:absolute; top:0; left:0;
  max-width:none;
  user-select:none;
  -webkit-user-drag:none;
}
.crop-loading{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  color:rgba(255,255,255,.6); font-size:12.5px; font-weight:600;
}
.crop-modal-hint{
  flex:none; text-align:center; color:rgba(255,255,255,.7); font-size:12px;
  padding:14px 0 24px;
}
.upload-preview{ position:relative; width:100%; border-radius:18px; overflow:hidden; }
.upload-preview.has-image{ padding-bottom:75%; background:var(--canvas); }
.upload-preview-img{ position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }
.upload-preview-remove{
  position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:50%;
  background:rgba(33,31,27,.7); color:#fff; display:flex; align-items:center; justify-content:center;
}
.upload-filename-box{
  display:flex; align-items:center; gap:10px;
  padding:14px 16px; border-radius:16px; background:var(--surface); border:1.5px solid var(--border);
}
.upload-filename-box span{ flex:1; min-width:0; font-size:12.5px; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upload-filename-remove{
  flex:none; width:26px; height:26px; border-radius:50%;
  background:var(--canvas); color:var(--muted); display:flex; align-items:center; justify-content:center;
}

/* ================================================================
   PROFILBILD-POSITIONS-PANEL (eingebettet, KEIN Overlay - kann daher
   nie haengenbleiben, ist einfach normaler Seiteninhalt)
   ================================================================ */
.pg-avatar-position-panel{
  margin-top:16px; padding:16px; border-radius:18px;
  background:var(--surface); border:1px solid var(--border);
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.pg-avatar-position-preview{
  width:140px; height:140px; border-radius:50%; overflow:hidden;
  background:var(--canvas);
}
.pg-avatar-position-img{
  width:100%; height:100%; object-fit:cover; object-position:50% 50%; display:block;
}
.pg-avatar-position-slider{ width:100%; max-width:260px; accent-color:var(--primary); }
.pg-avatar-position-hint{ font-size:11.5px; color:var(--muted); }
.pg-avatar-position-actions{ display:flex; gap:10px; width:100%; max-width:260px; }
.pg-avatar-position-actions .btn-back,
.pg-avatar-position-actions .btn-primary{ flex:1; margin:0; }
.photo-position-toggle{ width:100%; margin-top:12px; }
.photo-position-preview{
  width:100%; border-radius:14px; overflow:hidden; position:relative; padding-bottom:75%;
  background:var(--canvas);
}
.photo-position-img{
  position:absolute; top:0; left:0; width:100%; height:100%;
  object-fit:cover; object-position:50% 50%; display:block;
}
.photo-position-panel{ margin-top:10px; }
