  :root{
    --navy: #0A1B3D;
    --navy-soft: #10254F;
    --blue: #0B3F9E;
    --blue-bright: #2563EB;
    --yellow: #FFC531;
    --paper: #F6F4EF;
    --paper-dim: #ECE8DE;
    --ink: #12172B;
    --slate: #5B6478;
    --ease: cubic-bezier(.16,1,.3,1);
    --shadow-sm: 0 2px 8px rgba(10,27,61,0.06);
    --shadow-md: 0 14px 32px rgba(10,27,61,0.12);
    --shadow-lg: 0 24px 56px rgba(10,27,61,0.2);
    --line: rgba(255,255,255,0.14);
    --line-dark: rgba(18,23,43,0.12);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.disp{
    font-family:'Space Grotesk', sans-serif;
    letter-spacing:-0.02em;
    margin:0;
  }
  .mono{
    font-family:'IBM Plex Mono', monospace;
    letter-spacing:0.02em;
  }
  a{color:inherit;}
  img{max-width:100%;display:block;}
  .wrap{max-width:1120px; margin:0 auto; padding:0 28px;}

  /* Price tag signature element */
  .tag{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--yellow);
    color:var(--navy);
    padding:10px 18px 10px 26px;
    border-radius:4px 12px 12px 4px;
    font-family:'IBM Plex Mono', monospace;
    font-weight:600;
    font-size:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.18);
  }
  .tag::before{
    content:"";
    position:absolute;
    left:9px; top:50%;
    width:6px; height:6px;
    background:var(--navy);
    border-radius:50%;
    transform:translateY(-50%);
  }
  .tag.big{
    padding:20px 34px 20px 44px;
    font-size:22px;
    border-radius:6px 18px 18px 6px;
  }
  .tag.big::before{ left:16px; width:9px; height:9px; }

  /* Header */
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(10,27,61,0.92);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap;
    padding:16px 28px;
    max-width:1120px; margin:0 auto;
  }
  .brand{ display:flex; align-items:center; gap:10px; }
  .brand img{ width:42px; height:42px; border-radius:9px; }
  .brand span{
    font-family:'Space Grotesk', sans-serif;
    font-weight:700; font-size:19px; color:#fff;
    letter-spacing:-0.01em;
  }
  .brand span em{ color:var(--yellow); font-style:normal; }
  nav.links{ display:flex; gap:28px; }
  nav.links a{
    color:rgba(255,255,255,0.75);
    text-decoration:none; font-size:14.5px; font-weight:500;
    transition:color .2s;
  }
  nav.links a:hover{ color:#fff; }
  .btn-primary{
    background:var(--yellow); color:var(--navy);
    border:none; padding:11px 22px; border-radius:9px;
    font-weight:600; font-size:14.5px; cursor:pointer;
    text-decoration:none; display:inline-block; position:relative;
    transition:transform .35s var(--ease), box-shadow .35s var(--ease), filter .2s ease;
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(255,197,49,0.4); filter:brightness(1.03); }
  .btn-primary:active{ transform:translateY(0); box-shadow:0 4px 10px rgba(255,197,49,0.3); }
  .btn-ghost{
    background:transparent; color:#fff; border:1px solid var(--line);
    padding:10px 20px; border-radius:9px; font-weight:500; font-size:14.5px;
    text-decoration:none; display:inline-block;
    transition:background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  }
  .btn-ghost:hover{ background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.5); transform:translateY(-1px); }

  /* Hero */
  .hero{
    background:
      radial-gradient(ellipse at 15% 0%, rgba(37,99,235,0.35), transparent 55%),
      radial-gradient(ellipse at 85% 20%, rgba(255,197,49,0.12), transparent 45%),
      linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
    color:#fff;
    padding:96px 28px 120px;
    position:relative;
    overflow:hidden;
  }
  .hero-inner{
    max-width:1120px; margin:0 auto;
    display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px;
    align-items:center;
  }
  .eyebrow{
    display:inline-block; margin-bottom:22px;
  }
  .hero h1{
    font-size:56px; line-height:1.04; font-weight:700; color:#fff;
  }
  .hero h1 .hl{ color:var(--yellow); }
  .hero p.sub{
    margin-top:22px; font-size:18px; line-height:1.6;
    color:rgba(255,255,255,0.72); max-width:520px;
  }
  .hero .ctas{ margin-top:36px; display:flex; gap:14px; flex-wrap:wrap; }
  .hero-visual{
    position:relative; display:flex; align-items:center; justify-content:center;
    height:380px;
  }
  .price-disc{
    width:300px; height:300px; border-radius:50%;
    background:radial-gradient(circle at 35% 30%, var(--blue-bright), var(--blue) 70%);
    display:flex; align-items:center; justify-content:center;
    flex-direction:column;
    box-shadow:0 30px 70px rgba(11,63,158,0.55);
    position:relative;
    animation:disc-float 6s ease-in-out infinite;
  }
  .price-disc::after{
    content:"";
    position:absolute; inset:-14px;
    border-radius:50%; border:1px dashed rgba(255,255,255,0.18);
    animation:disc-spin 40s linear infinite;
  }
  @keyframes disc-float{
    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-14px); }
  }
  @keyframes disc-spin{
    from{ transform:rotate(0deg); }
    to{ transform:rotate(360deg); }
  }
  .price-disc .amt{
    font-family:'Space Grotesk', sans-serif; font-weight:700;
    font-size:64px; color:#fff; line-height:1;
  }
  .disc-ab{
    position:absolute; top:19%; left:17%;
    font-family:'Space Grotesk', sans-serif; font-weight:700;
    font-size:22px; color:#fff; opacity:0.88; letter-spacing:-0.01em;
  }
  .price-disc .cur{ font-size:20px; color:rgba(255,255,255,0.85); margin-top:6px; letter-spacing:0.08em;}
  .float-tag{
    position:absolute;
    background:var(--yellow); color:var(--navy);
    font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:13px;
    padding:8px 14px; border-radius:6px;
    box-shadow:0 10px 24px rgba(0,0,0,0.25);
    animation:tag-bob 4.5s ease-in-out infinite;
  }
  .float-tag.t1{ top:-6px; right:10px; transform:rotate(-6deg); animation-delay:0s; }
  .float-tag.t2{ bottom:6px; left:-16px; transform:rotate(4deg); animation-delay:1.1s; }
  .float-tag.t3{ bottom:70px; right:-24px; transform:rotate(9deg); background:#fff; animation-delay:2.2s; }
  @keyframes tag-bob{
    0%, 100%{ margin-top:0; }
    50%{ margin-top:-9px; }
  }
  @media (prefers-reduced-motion: reduce){
    .price-disc, .price-disc::after, .float-tag{ animation:none; }
  }

  /* Section shared */
  section{ padding:96px 0; }
  .kicker{
    font-family:'IBM Plex Mono', monospace; font-size:13px; font-weight:600;
    color:var(--blue); letter-spacing:0.08em; text-transform:uppercase;
    margin-bottom:14px; display:block;
  }
  .sec-head{ max-width:640px; margin-bottom:56px; }
  .sec-head h2{ font-size:38px; font-weight:700; line-height:1.1; }
  .sec-head p{ margin-top:16px; font-size:16.5px; color:var(--slate); line-height:1.65; }

  /* Categories */
  .cat-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
  }
  .cat-card{
    background:#fff; border:1px solid var(--line-dark); border-radius:16px;
    padding:26px; position:relative; overflow:hidden;
    transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  }
  .cat-card:hover{ transform:translateY(-5px) scale(1.012); box-shadow:var(--shadow-md); border-color:transparent; }
  .cat-card .ico{
    width:44px; height:44px; border-radius:11px;
    background:linear-gradient(145deg, var(--paper-dim), #fff);
    display:flex; align-items:center; justify-content:center;
    font-size:20px; margin-bottom:16px;
    transition:transform .4s var(--ease);
  }
  .cat-card:hover .ico{ transform:scale(1.08) rotate(-4deg); }
  .cat-card h3{ font-size:17px; font-weight:600; }
  .cat-card .corner{
    position:absolute; top:14px; right:14px;
    background:var(--yellow); color:var(--navy);
    font-family:'IBM Plex Mono', monospace; font-size:11px; font-weight:600;
    padding:3px 8px; border-radius:4px;
  }

  /* Highlight / Hauptleistung */
  .highlight{
    background:var(--navy); color:#fff;
    position:relative; overflow:hidden;
  }
  .highlight::before{
    content:"";
    position:absolute; inset:0;
    background:radial-gradient(circle at 80% 50%, rgba(255,197,49,0.10), transparent 50%);
  }
  .hl-inner{
    display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; align-items:center;
    position:relative;
  }
  .hl-number{
    font-family:'Space Grotesk', sans-serif; font-weight:700;
    font-size:180px; line-height:0.85; color:var(--yellow);
    display:flex; align-items:flex-start;
  }
  .hl-number .chf{ font-size:36px; margin-top:14px; margin-right:8px; color:rgba(255,255,255,0.6); }
  .hl-text h2{ font-size:32px; font-weight:700; color:#fff; line-height:1.2; }
  .hl-text p{ margin-top:18px; font-size:16.5px; color:rgba(255,255,255,0.7); line-height:1.7; max-width:480px; }
  .hl-list{ margin-top:28px; display:flex; flex-direction:column; gap:14px; }
  .hl-list .row{ display:flex; align-items:center; gap:12px; font-size:15px; color:rgba(255,255,255,0.85); }
  .hl-list .dot{ width:7px; height:7px; border-radius:50%; background:var(--yellow); flex-shrink:0; }

  /* Steps */
  .steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
  .step{
    background:#fff; border:1px solid var(--line-dark); border-radius:14px; padding:30px 26px;
  }
  .step .num{
    font-family:'IBM Plex Mono', monospace; font-weight:600; color:var(--blue);
    font-size:13px; margin-bottom:18px; display:block;
  }
  .step h3{ font-size:18px; font-weight:600; margin-bottom:10px; }
  .step p{ font-size:14.5px; color:var(--slate); line-height:1.6; }

  /* CTA band */
  .cta-band{
    background:linear-gradient(120deg, var(--blue) 0%, var(--blue-bright) 100%);
    border-radius:24px; padding:56px 48px;
    display:flex; align-items:center; justify-content:space-between;
    gap:32px; flex-wrap:wrap;
    color:#fff;
  }
  .cta-band h2{ font-size:30px; font-weight:700; max-width:440px; line-height:1.2; }
  .cta-band .btn-primary{ font-size:15.5px; padding:13px 28px; }

  /* KI-Assistent */
  .ki-section{
    background:var(--navy);
    color:#fff;
    border-radius:28px;
    padding:64px 56px;
    position:relative;
    overflow:hidden;
  }
  .ki-section::before{
    content:"";
    position:absolute; inset:0;
    background:radial-gradient(ellipse at 10% 100%, rgba(37,99,235,0.28), transparent 55%);
  }
  .ki-grid{
    display:grid; grid-template-columns:0.85fr 1.15fr; gap:52px;
    position:relative;
  }
  .ki-intro .kicker{ color:var(--yellow); }
  .ki-intro h2{ font-size:32px; font-weight:700; color:#fff; line-height:1.18; }
  .ki-intro p{ margin-top:16px; font-size:15.5px; color:rgba(255,255,255,0.68); line-height:1.7; max-width:400px; }
  .ki-intro .hl-list{ margin-top:26px; }
  .ki-intro .hl-list .row{ color:rgba(255,255,255,0.8); font-size:14.5px; }

  .ki-panel{
    background:rgba(255,255,255,0.04);
    border:1px solid var(--line);
    border-radius:18px;
    padding:28px;
  }
  .dropzone{
    border:1.5px dashed rgba(255,255,255,0.28);
    border-radius:14px;
    padding:32px 20px;
    text-align:center;
    cursor:pointer;
    transition:border-color .2s ease, background .2s ease;
  }
  .dropzone:hover, .dropzone.drag{
    border-color:var(--yellow);
    background:rgba(255,197,49,0.05);
  }
  .dropzone .dz-ico{ font-size:28px; margin-bottom:10px; }
  .dropzone p{ margin:0; font-size:14px; color:rgba(255,255,255,0.6); }
  .dropzone p.main{ font-size:15px; color:#fff; font-weight:500; margin-bottom:4px; }
  #photoInput{ display:none; }
  .preview-row{
    display:flex; align-items:center; gap:14px; margin-top:16px;
  }
  .preview-row img{
    width:64px; height:64px; object-fit:cover; border-radius:8px;
    border:1px solid var(--line);
  }
  .preview-row .fname{ font-size:13.5px; color:rgba(255,255,255,0.7); }
  .ki-actions{ margin-top:20px; display:flex; gap:12px; align-items:center; }
  .btn-primary:disabled{ opacity:0.5; cursor:not-allowed; transform:none !important; box-shadow:none !important; }
  .ki-status{ font-size:13.5px; color:rgba(255,255,255,0.55); font-family:'IBM Plex Mono', monospace; }
  .spinner{
    width:14px; height:14px; border-radius:50%;
    border:2px solid rgba(255,255,255,0.25); border-top-color:var(--yellow);
    display:inline-block; animation:spin .7s linear infinite; margin-right:8px; vertical-align:-2px;
  }
  @keyframes spin{ to{ transform:rotate(360deg); } }

  .ki-result{
    margin-top:24px; background:#fff; color:var(--ink);
    border-radius:14px; padding:22px 24px;
    display:none;
  }
  .ki-result.show{ display:block; }
  .ki-result .row1{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  .ki-result h4{ font-family:'Space Grotesk', sans-serif; font-size:19px; font-weight:700; margin:0; }
  .ki-result .badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
  .badge{
    font-family:'IBM Plex Mono', monospace; font-size:12px; font-weight:600;
    padding:5px 10px; border-radius:6px; background:var(--paper-dim); color:var(--navy);
  }
  .badge.blue{ background:rgba(11,63,158,0.1); color:var(--blue); }
  .badge.yellow{ background:var(--yellow); color:var(--navy); }
  .ki-result p.desc{ margin-top:14px; font-size:14.5px; color:var(--slate); line-height:1.6; }
  .ki-error{
    margin-top:18px; background:rgba(220,38,38,0.12); border:1px solid rgba(220,38,38,0.3);
    color:#FCA5A5; padding:14px 16px; border-radius:10px; font-size:13.5px; display:none;
  }
  .ki-error.show{ display:block; }
  .ki-disclaimer{
    margin-top:16px; font-size:12px; color:rgba(255,255,255,0.4); line-height:1.6;
  }

  @media (max-width: 880px){
    .ki-section{ padding:40px 24px; border-radius:20px; }
    .ki-grid{ grid-template-columns:1fr; }
  }

  /* Footer */
  footer{
    background:var(--navy); color:rgba(255,255,255,0.65);
    padding:72px 0 32px; margin-top:40px;
  }
  .foot-grid{
    display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:48px;
    padding-bottom:48px; border-bottom:1px solid var(--line);
  }
  .foot-brand .brand span{ color:#fff; }
  .foot-brand p{ margin-top:16px; font-size:14.5px; line-height:1.7; max-width:300px; }
  .foot-col h4{
    font-family:'IBM Plex Mono', monospace; font-size:12.5px; text-transform:uppercase;
    letter-spacing:0.08em; color:rgba(255,255,255,0.4); margin-bottom:18px; font-weight:600;
  }
  .foot-col a, .foot-col p{
    display:block; text-decoration:none; font-size:14.5px; color:rgba(255,255,255,0.75);
    margin-bottom:12px; line-height:1.6;
  }
  .foot-bottom{
    display:flex; justify-content:space-between; align-items:center;
    padding-top:28px; font-size:13px; color:rgba(255,255,255,0.4); flex-wrap:wrap; gap:12px;
  }
  .foot-bottom a{ text-decoration:none; color:rgba(255,255,255,0.55); margin-left:20px; }

  /* Mobile menu button (decorative, no JS needed for this simple case) */
  .menu-btn{ display:none; }

  @media (max-width: 880px){
    .hero-inner{ grid-template-columns:1fr; }
    .hero h1{ font-size:38px; }
    .hero-visual{ height:280px; order:-1; }
    .price-disc{ width:220px; height:220px; }
    .price-disc .amt{ font-size:46px; }
    .disc-ab{ font-size:16px; }
    .cat-grid{ grid-template-columns:repeat(2,1fr); }
    .steps{ grid-template-columns:1fr; }
    .hl-inner{ grid-template-columns:1fr; gap:32px; }
    .hl-number{ font-size:110px; }
    nav.links{ display:none; }
    .foot-grid{ grid-template-columns:1fr; gap:32px; }
    .cta-band{ flex-direction:column; align-items:flex-start; }

    .nav{
      flex-wrap:wrap; padding:14px 20px; row-gap:10px;
    }
    .nav-account{
      flex-wrap:wrap; gap:8px 12px; width:100%;
      justify-content:flex-start;
    }
    .nav-account .btn-primary{
      order:99; margin-left:auto;
      padding:9px 16px; font-size:13.5px;
    }
    .nav-account a.plain{ font-size:13.5px; }
  }
  @media (max-width: 560px){
    .cat-grid{ grid-template-columns:1fr; }
    .wrap{ padding:0 20px; }
    .brand span{ font-size:17px; }
    .brand img{ width:36px; height:36px; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ transition:none !important; scroll-behavior:auto !important; }
  }

  a:focus-visible, button:focus-visible{
    outline:2px solid var(--yellow); outline-offset:3px;
  }

/* ==== Erweiterung: Marktplatz-Funktionen ==== */

/* Auth-Seiten (Login/Registrieren) */
.auth-wrap{
  min-height:calc(100vh - 68px);
  display:flex; align-items:center; justify-content:center;
  padding:60px 20px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(37,99,235,0.25), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
}
.auth-card{
  width:100%; max-width:420px;
  background:#fff; border-radius:18px;
  padding:40px 36px;
  box-shadow:0 30px 60px rgba(0,0,0,0.25);
}
.auth-card h1{ font-size:26px; font-weight:700; }
.auth-card p.sub{ margin-top:8px; color:var(--slate); font-size:14.5px; }
.field{ margin-top:20px; }
.field label{
  display:block; font-size:13px; font-weight:600; color:var(--ink);
  margin-bottom:6px;
}
.field input, .field select, .field textarea{
  width:100%; padding:11px 14px; border-radius:8px;
  border:1px solid var(--line-dark); font-family:'Inter', sans-serif;
  font-size:14.5px; background:var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:2px solid var(--blue-bright); outline-offset:1px; background:#fff;
}
.field textarea{ resize:vertical; min-height:90px; }
.form-error{
  margin-top:16px; background:rgba(220,38,38,0.08); border:1px solid rgba(220,38,38,0.25);
  color:#B91C1C; padding:12px 14px; border-radius:8px; font-size:13.5px;
}
.form-success{
  margin-top:16px; background:rgba(22,163,74,0.08); border:1px solid rgba(22,163,74,0.25);
  color:#15803D; padding:12px 14px; border-radius:8px; font-size:13.5px;
}
.auth-card .btn-primary{ width:100%; margin-top:26px; text-align:center; padding:13px; font-size:15px; }
.auth-card .switch{ margin-top:22px; text-align:center; font-size:14px; color:var(--slate); }
.auth-card .switch a{ color:var(--blue); font-weight:600; text-decoration:none; }

/* Top-Nav Konto-Bereich */
.nav-account{ display:flex; align-items:center; gap:14px; }
.nav-account a.plain{ color:rgba(255,255,255,0.8); text-decoration:none; font-size:14.5px; font-weight:500; }
.nav-account a.plain:hover{ color:#fff; }

/* Content-Seiten (Listings-Übersicht etc.) mit dunklem Kopfbereich */
.page-hero{
  background:linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color:#fff; padding:56px 0 44px;
}
.page-hero h1{ font-size:34px; font-weight:700; }
.page-hero p{ margin-top:10px; color:rgba(255,255,255,0.68); font-size:15.5px; max-width:560px; }
.page-body{ padding:48px 0 96px; }

/* Kategorie-Filterleiste */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; }
.filter-chip{
  padding:8px 16px; border-radius:20px; border:1px solid var(--line-dark);
  background:#fff; font-size:13.5px; font-weight:500; text-decoration:none; color:var(--ink);
}
.filter-chip.active{ background:var(--navy); color:#fff; border-color:var(--navy); }

/* Listing-Karten-Grid */
.listing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.listing-card{
  background:#fff; border:1px solid var(--line-dark); border-radius:16px; overflow:hidden;
  text-decoration:none; color:var(--ink); display:block;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.listing-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:transparent; }
.listing-card .thumb{
  width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--paper-dim); display:block;
  transition:transform .5s var(--ease);
}
.listing-card:hover .thumb{ transform:scale(1.05); }
.listing-card .body{ padding:16px 18px; }
.listing-card .cat{
  font-family:'IBM Plex Mono', monospace; font-size:11px; font-weight:600;
  color:var(--blue); text-transform:uppercase; letter-spacing:0.05em;
}
.listing-card h3{ font-size:16px; font-weight:600; margin-top:6px; line-height:1.3; }
.listing-card .meta{ margin-top:10px; display:flex; align-items:center; justify-content:space-between; }
.listing-card .price{
  font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:13px;
  background:var(--yellow); color:var(--navy); padding:4px 10px; border-radius:6px;
}
.listing-card .cond{ font-size:12px; color:var(--slate); }
.empty-state{
  text-align:center; padding:60px 20px; color:var(--slate);
  background:#fff; border:1px dashed var(--line-dark); border-radius:14px;
}
.empty-state .btn-primary{ margin-top:18px; }

/* Inserat-Detailseite */
.detail-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.detail-grid img{ width:100%; border-radius:14px; border:1px solid var(--line-dark); }
.detail-info .cat{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--blue); font-weight:600; text-transform:uppercase; }
.detail-info h1{ font-size:30px; font-weight:700; margin-top:10px; }
.detail-info .price-tag-big{ margin-top:18px; }
.detail-info .desc{ margin-top:22px; color:var(--slate); line-height:1.7; font-size:15px; }
.detail-info .seller{ margin-top:28px; padding-top:22px; border-top:1px solid var(--line-dark); font-size:14px; color:var(--slate); }

/* Formular: neues Inserat */
.form-card{
  background:#fff; border-radius:16px; padding:36px; border:1px solid var(--line-dark);
  max-width:640px;
}
.form-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ai-hint{
  background:var(--paper); border:1px dashed var(--line-dark); border-radius:10px;
  padding:14px 16px; font-size:13.5px; color:var(--slate); margin-top:18px;
}
.ai-hint strong{ color:var(--ink); }

@media (max-width: 880px){
  .listing-grid{ grid-template-columns:repeat(2,1fr); }
  .detail-grid{ grid-template-columns:1fr; }
  .form-grid-2{ grid-template-columns:1fr; }
  .auth-card{ padding:30px 24px; }
}
@media (max-width: 560px){
  .listing-grid{ grid-template-columns:1fr; }
}

/* Auktion: Status, Gebotsverlauf */
.auction-status{
  font-size:14px; padding:12px 16px; border-radius:10px;
  background:var(--paper); border:1px solid var(--line-dark); color:var(--ink);
}
.auction-status.ended{ background:rgba(220,38,38,0.06); border-color:rgba(220,38,38,0.2); }
.auction-status strong{ font-weight:600; }

.bid-history{ margin-top:28px; padding-top:22px; border-top:1px solid var(--line-dark); }
.bid-history h4{ font-size:15px; font-weight:600; margin-bottom:12px; }
.bid-row{
  display:grid; grid-template-columns:1fr auto auto; gap:14px;
  padding:8px 0; font-size:13.5px; color:var(--slate); border-bottom:1px solid var(--paper-dim);
}
.bid-row .mono{ font-family:'IBM Plex Mono', monospace; color:var(--ink); font-weight:600; }
.bid-row .ts{ color:var(--slate); font-size:12px; }

/* Kontaktdaten-Reveal nach Auktionsende */
.contact-reveal{
  background:rgba(11,63,158,0.05); border:1px solid rgba(11,63,158,0.15);
  border-radius:10px; padding:14px 16px;
}
.contact-reveal strong{ display:block; margin-bottom:6px; color:var(--blue); font-size:13px; text-transform:uppercase; letter-spacing:0.03em; }
.contact-reveal div{ font-size:14px; color:var(--ink); line-height:1.6; }

/* Suchfeld im Header */
.header-search{ flex:0 0 auto; }
.header-search input{
  background:rgba(255,255,255,0.08); border:1px solid var(--line);
  color:#fff; padding:8px 14px; border-radius:20px; font-size:13.5px;
  width:180px; transition:width .2s ease, background .2s ease;
}
.header-search input::placeholder{ color:rgba(255,255,255,0.45); }
.header-search input:focus{
  outline:none; background:rgba(255,255,255,0.14); width:220px;
  border-color:rgba(255,255,255,0.3);
}

/* Suchfeld im Hero der Übersichtsseite */
.search-bar{
  margin-top:28px; display:flex; gap:10px; max-width:480px;
}
.search-bar input{
  flex:1; padding:13px 18px; border-radius:10px; border:none;
  font-size:15px; font-family:'Inter', sans-serif;
}
.search-bar input:focus{ outline:2px solid var(--yellow); outline-offset:1px; }
.search-bar button{
  background:var(--yellow); color:var(--navy); border:none;
  padding:13px 22px; border-radius:10px; font-weight:600; font-size:14.5px; cursor:pointer;
}
.search-bar button:hover{ filter:brightness(1.05); }

@media (max-width: 880px){
  .header-search{
    display:block; width:100%; order:2; margin:2px 0 0;
  }
  .header-search input{ width:100%; box-sizing:border-box; }
  .header-search input:focus{ width:100%; }
  .lang-switch{ order:1; }
  .nav-account{ order:3; }
  .search-bar{ flex-direction:column; }
  .brand img{ width:32px; height:32px; border-radius:7px; }
  .brand span{ font-size:16px; }
}

/* Sprachumschalter */
.lang-switch{ display:flex; gap:4px; align-items:center; margin:0 6px; }
.lang-switch a{
  text-decoration:none; display:flex; align-items:center; justify-content:center;
  padding:5px; border-radius:5px; opacity:0.55; transition:opacity .15s ease, background .15s ease;
}
.lang-switch a svg{ display:block; border-radius:2px; }
.lang-switch a:hover{ opacity:1; background:rgba(255,255,255,0.08); }
.lang-switch a.active{ opacity:1; background:rgba(255,197,49,0.18); box-shadow:inset 0 0 0 1.5px var(--yellow); }

@media (max-width: 880px){
  .lang-switch{ margin:0; gap:2px; }
  .lang-switch a{ padding:4px; }
  .lang-switch a svg{ width:17px; height:12px; }
}
@media (max-width: 400px){
  .lang-switch a{ padding:3px; }
  .lang-switch a svg{ width:15px; height:11px; }
}

/* Umkreissuche */
.location-bar{
  margin-top:12px; display:flex; gap:10px; max-width:520px; flex-wrap:wrap; align-items:center;
}
.location-bar input[type="text"]{
  width:100%; padding:11px 16px; border-radius:10px; border:none;
  font-size:14.5px; font-family:'Inter', sans-serif;
}
.loc-wrap{ position:relative; flex:1; min-width:140px; }
.location-bar select{
  padding:11px 14px; border-radius:10px; border:none; font-size:14.5px;
  font-family:'Inter', sans-serif; background:#fff; color:var(--ink);
}
.location-bar input:focus, .location-bar select:focus{ outline:2px solid var(--yellow); outline-offset:1px; }
.btn-ghost-light{
  background:rgba(255,255,255,0.1); color:#fff; border:1px solid rgba(255,255,255,0.3);
  padding:11px 18px; border-radius:10px; font-weight:600; font-size:14px; cursor:pointer;
}
.btn-ghost-light:hover{ background:rgba(255,255,255,0.18); }
.location-reset{
  color:rgba(255,255,255,0.65); font-size:13px; text-decoration:underline;
}

.listing-card .distance{
  font-size:12.5px; color:var(--blue); margin-top:4px; font-weight:500;
}

@media (max-width: 880px){
  .location-bar{ flex-direction:column; align-items:stretch; }
}

/* Live-Vorschläge PLZ/Ort */
.location-suggestions{
  display:none; position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:50;
  background:#fff; border-radius:10px; box-shadow:0 12px 28px rgba(10,27,61,0.18);
  overflow:hidden; max-height:220px; overflow-y:auto;
}
.location-suggestion{
  padding:10px 14px; font-size:14px; color:var(--ink); cursor:pointer;
}
.location-suggestion:hover{ background:var(--paper); }

/* Sanftes Einblenden beim Scrollen */
.reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(20px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in-view > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.in-view > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.in-view > *:nth-child(2){ transition-delay:.13s; }
.reveal-stagger.in-view > *:nth-child(3){ transition-delay:.21s; }
.reveal-stagger.in-view > *:nth-child(4){ transition-delay:.29s; }
.reveal-stagger.in-view > *:nth-child(5){ transition-delay:.37s; }
.reveal-stagger.in-view > *:nth-child(6){ transition-delay:.45s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* TEST-MARKIERUNG — falls sichtbar, kam der Upload an */
body::before{
  content:"UPLOAD TEST ERFOLGREICH";
  display:block;
  background:#FF00FF;
  color:#fff;
  text-align:center;
  font-size:20px;
  font-weight:bold;
  padding:14px;
  position:relative;
  z-index:9999;
}
