.market-wrap{max-width:1180px;margin:0 auto;padding:28px 18px 55px}.market-hero{padding:25px 0 20px}.market-hero h1{margin:0 0 7px;font-size:30px}.market-kicker{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:#75baff;font-weight:700}.market-actions,.market-filters{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.market-btn{display:inline-block;padding:10px 14px;border-radius:8px;background:#1688e8;color:#fff!important;text-decoration:none;font-weight:700;border:1px solid #1688e8}.market-btn.alt{background:#111b24;border-color:#29445a;color:#a9c7de!important}.market-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.market-card{background:#111a23;border:1px solid #243b4e;border-radius:12px;overflow:hidden;color:#dce8f2;text-decoration:none}.market-card:hover{border-color:#39739f}.market-img{height:185px;background:#0b1219;display:flex;align-items:center;justify-content:center;color:#587084}.market-img img{width:100%;height:100%;object-fit:cover}.market-body{padding:15px}.market-tag{font-size:9px;letter-spacing:1.1px;text-transform:uppercase;color:#76bcf4}.market-card h3{margin:7px 0 9px;font-size:17px}.market-price{font-size:18px;color:#67b7ff;font-weight:700}.market-meta{font-size:11px;color:#8499aa;margin-top:9px}.market-box{background:#111a23;border:1px solid #243b4e;border-radius:12px;padding:19px;margin-bottom:18px}.market-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.market-form .full{grid-column:1/-1}.market-form label{display:block;font-size:11px;color:#91a6b8;margin-bottom:6px}.market-form input,.market-form select,.market-form textarea{width:100%;padding:11px;border:1px solid #2a4255;border-radius:7px;background:#0b1219;color:#fff}.market-form textarea{min-height:180px;resize:vertical}.market-note{font-size:11px;color:#8399aa;line-height:1.5}.market-alert{padding:12px 14px;border-radius:8px;margin:12px 0;background:#102d45;border:1px solid #285d83}.market-detail{display:grid;grid-template-columns:1.25fr .75fr;gap:20px}.market-mainimg{width:100%;max-height:560px;object-fit:contain;background:#080d12;border-radius:10px}.market-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.market-thumbs img{width:90px;height:65px;object-fit:cover;border-radius:6px}.market-table{width:100%;border-collapse:collapse}.market-table td{padding:9px;border-bottom:1px solid #203240}.market-table td:first-child{color:#8297aa;width:42%}@media(max-width:850px){.market-grid{grid-template-columns:1fr 1fr}.market-detail{grid-template-columns:1fr}}@media(max-width:600px){.market-grid,.market-form{grid-template-columns:1fr}.market-form .full{grid-column:auto}}

/* ===== Samworld Markt – vollständige dunkle Seitenintegration ===== */
html,body{
  margin:0;
  min-height:100%;
  background:#0b1016;
  color:#d7e1eb;
}
body{
  display:flex;
  flex-direction:column;
}
.site-header{flex:0 0 auto}
.market-wrap{
  width:min(1180px,calc(100% - 36px));
  margin:0 auto;
  padding:42px 0 70px;
  flex:1 0 auto;
  color:#d7e1eb;
}
.market-hero{
  padding:8px 0 24px;
}
.market-hero h1{
  color:#f4f8fb;
  font-size:30px;
  line-height:1.15;
}
.market-hero p{
  color:#a9bac8;
  line-height:1.6;
  max-width:850px;
}
.market-kicker{
  color:#6fbcff;
}
.market-box{
  color:#d7e1eb;
  background:#111a23;
  border-color:#243b4e;
}
.market-box h1,
.market-box h2,
.market-box h3,
.market-detail h1,
.market-detail h2,
.market-detail h3{
  color:#f4f8fb;
}
.market-box p,
.market-detail p{
  color:#c5d1db;
  line-height:1.65;
}
.market-card{
  background:#111a23;
  border-color:#243b4e;
}
.market-card h3{
  color:#f4f8fb;
}
.market-card:hover{
  background:#13202b;
  border-color:#3b6f98;
}
.market-actions{
  margin-top:18px;
  margin-bottom:30px;
}
.market-filters{
  margin:0 0 18px;
  padding-top:2px;
}
.market-btn.alt{
  background:#101b24;
  border-color:#29445a;
  color:#b9d5e9!important;
}
.market-btn.alt:hover{
  background:#162735;
  border-color:#3c6f95;
  color:#fff!important;
}
.market-btn:hover{
  filter:brightness(1.08);
}
.market-alert{
  color:#d9e9f5;
}
.market-form input,
.market-form select,
.market-form textarea{
  color:#f2f6f9;
}
.market-form input::placeholder,
.market-form textarea::placeholder{
  color:#657b8d;
}
.site-footer{
  flex:0 0 auto;
  margin-top:auto;
}
@media(max-width:650px){
  .market-wrap{
    width:calc(100% - 24px);
    padding-top:28px;
    padding-bottom:45px;
  }
  .market-hero h1{font-size:26px}
}

/* Navigation auf Unterseiten */
.market-page-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}
.market-page-nav .market-btn{margin:0}
@media(max-width:650px){.market-page-nav .market-btn{width:100%;text-align:center}}

/* Großer Bildbetrachter für Anzeigen */
.market-zoomable{cursor:zoom-in}
.market-lightbox{
  display:none;position:fixed;z-index:99999;inset:0;
  background:rgba(3,7,11,.94);align-items:center;justify-content:center;
  padding:30px 70px;
}
.market-lightbox.open{display:flex}
.market-lightbox img{
  max-width:calc(100vw - 150px);max-height:calc(100vh - 80px);
  width:auto;height:auto;object-fit:contain;border-radius:8px;
  box-shadow:0 10px 45px rgba(0,0,0,.55);cursor:pointer;
}
.market-lightbox-close,.market-lightbox-prev,.market-lightbox-next{
  position:absolute;border:1px solid #35556d;background:#101b25;color:#fff;
  cursor:pointer;border-radius:8px;line-height:1;
}
.market-lightbox-close{right:22px;top:18px;font-size:34px;width:48px;height:48px}
.market-lightbox-prev,.market-lightbox-next{
  top:50%;transform:translateY(-50%);font-size:52px;width:52px;height:72px
}
.market-lightbox-prev{left:14px}.market-lightbox-next{right:14px}
.market-lightbox-count{
  position:absolute;bottom:14px;left:50%;transform:translateX(-50%);
  background:#101b25;border:1px solid #35556d;border-radius:20px;
  padding:7px 14px;color:#dce9f3;font-size:14px
}
.market-lightbox-open{overflow:hidden}
@media(max-width:700px){
  .market-lightbox{padding:55px 12px 65px}
  .market-lightbox img{max-width:100%;max-height:calc(100vh - 130px)}
  .market-lightbox-prev,.market-lightbox-next{top:auto;bottom:10px;width:44px;height:44px;font-size:34px}
  .market-lightbox-prev{left:12px}.market-lightbox-next{right:12px}
}

/* Vorschaubild in "Meine Anzeigen" */
.market-own-ad{display:flex;align-items:flex-start;gap:20px}
.market-own-thumb{flex:0 0 180px;width:180px;height:135px;border:1px solid #29465b;border-radius:8px;overflow:hidden;background:#0b1219;display:flex;align-items:center;justify-content:center;color:#8195a5;text-decoration:none}
.market-own-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.market-own-content{flex:1;min-width:0}
.market-own-content h2{margin-top:12px}
.market-own-noimage{font-size:13px}
@media(max-width:700px){.market-own-ad{display:block}.market-own-thumb{width:100%;height:auto;aspect-ratio:4/3;margin-bottom:16px}}

/* Bilderverwaltung beim Bearbeiten */
.market-edit-images{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.market-edit-images label{background:#0d151d;border:1px solid #29465b;border-radius:8px;padding:8px}
.market-edit-images img{display:block;width:150px;height:112px;object-fit:cover;border-radius:6px;margin-bottom:7px}
.market-edit-images span{font-size:13px}
.market-edit-images input{width:auto}

/* Link "Passwort vergessen?" passend zum Samworld-Design */
.market-forgot-password{
  color:#a9bfd0;
  text-decoration:none;
  font-size:15px;
}
.market-forgot-password:hover{
  color:#55b5ff;
  text-decoration:underline;
}

/* Passwort-Link – bewusst höher priorisiert als globale Linkregeln */
.market-box a.market-forgot-password:link,
.market-box a.market-forgot-password:visited{
  color:#a9bfd0 !important;
  text-decoration:none !important;
  font-size:15px;
  font-weight:400;
}
.market-box a.market-forgot-password:hover,
.market-box a.market-forgot-password:focus{
  color:#55b5ff !important;
  text-decoration:underline !important;
}
.market-box a.market-forgot-password:active{
  color:#7bc7ff !important;
}


/* Aufrufe & Merkliste */
.market-interest{display:flex;flex-wrap:wrap;gap:10px 18px;margin:14px 0;color:#9fc0d7;font-size:14px;font-weight:700}
.market-interest span{display:inline-flex;align-items:center;gap:5px}
.market-favorite-action{margin:12px 0 18px}
.market-favorite-action form{margin:0}
.market-card-interest{margin-top:10px;color:#8fb3cc;font-size:13px;font-weight:700}
.market-favorites-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.market-favorite-card{display:flex;gap:16px;align-items:flex-start;text-decoration:none;color:inherit;background:#111a23;border:1px solid #243b4e;border-radius:11px;padding:14px}
.market-favorite-card:hover{border-color:#3b6f98;background:#13202b}
.market-favorite-thumb{width:150px;height:112px;flex:0 0 150px;object-fit:cover;border-radius:8px;background:#0b1219}
.market-favorite-noimage{display:flex;align-items:center;justify-content:center;color:#8195a5;font-size:12px}
.market-favorite-card h2{margin:3px 0 8px;color:#f4f8fb;font-size:19px}
@media(max-width:760px){.market-favorites-grid{grid-template-columns:1fr}.market-favorite-card{display:block}.market-favorite-thumb{width:100%;height:auto;aspect-ratio:4/3;margin-bottom:12px}}

.market-search{margin:18px 0 12px}
.market-search-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.market-search input[type="search"]{flex:1 1 360px;min-width:220px;min-height:44px;box-sizing:border-box;border:1px solid #31465b;border-radius:10px;background:#101820;color:#eef6ff;padding:10px 13px;font:inherit}
.market-search input[type="search"]::placeholder{color:#8fa5b9}
@media(max-width:560px){.market-search-row{display:grid;grid-template-columns:1fr}.market-search .market-btn{text-align:center}}


/* ===== Internes Nachrichtensystem ===== */
.market-message-retention{
  margin:0 0 18px;padding:12px 14px;border:1px solid #29485e;border-radius:10px;
  background:#0e1a23;color:#9fc5df;font-size:13px;
}
.market-conversation-list{display:grid;gap:12px}
.market-conversation-card{
  position:relative;display:grid;grid-template-columns:90px 1fr auto;gap:16px;align-items:center;
  padding:14px;border:1px solid #29485e;border-radius:12px;background:#101d27;color:#f5f7fa;
  text-decoration:none;
}
.market-conversation-card:hover{border-color:#4ca6ff}
.market-conversation-card.has-unread{box-shadow:inset 4px 0 0 #4ca6ff}
.market-conversation-image{width:90px;height:70px;border-radius:8px;overflow:hidden;background:#08121a;display:flex;align-items:center;justify-content:center;color:#8aa0b0;font-size:12px}
.market-conversation-image img{width:100%;height:100%;object-fit:cover}
.market-conversation-main{min-width:0}
.market-conversation-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.market-conversation-top strong{font-size:16px}
.market-conversation-top span,.market-conversation-partner,.market-conversation-preview{font-size:12px;color:#9fc5df}
.market-conversation-partner{margin-top:5px}
.market-conversation-preview{margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-unread-badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#168df0;color:white;font-size:12px;font-weight:700}

.market-chat{display:flex;flex-direction:column;gap:12px;margin:0 0 18px}
.market-chat-row{display:flex;width:100%}
.market-chat-row.is-mine{justify-content:flex-end}
.market-chat-row.is-other{justify-content:flex-start}
.market-chat-bubble{max-width:min(76%,760px);padding:12px 14px;border-radius:14px;border:1px solid #31516a}
.market-chat-row.is-mine .market-chat-bubble{
  background:#f4f7fa;color:#10202c;border-color:#d6e0e7;border-bottom-right-radius:4px;
}
.market-chat-row.is-other .market-chat-bubble{
  background:#123c5b;color:#f4f8fb;border-color:#27678f;border-bottom-left-radius:4px;
}
.market-chat-name{font-weight:800;font-size:12px;margin-bottom:6px}
.market-chat-text{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.market-chat-time{margin-top:7px;font-size:11px;opacity:.72;text-align:right}
.market-chat-empty{padding:18px;border:1px dashed #31516a;border-radius:12px;color:#9fc5df;text-align:center}

@media(max-width:700px){
  .market-conversation-card{grid-template-columns:64px 1fr;gap:10px}
  .market-conversation-image{width:64px;height:54px}
  .market-unread-badge{grid-column:2;justify-self:start}
  .market-conversation-top{display:block}
  .market-conversation-top span{display:block;margin-top:4px}
  .market-chat-bubble{max-width:88%}
}


/* ===== Passwort anzeigen / verbergen ===== */
.market-password-wrap{
  position:relative;
  display:block;
  width:100%;
}
.market-password-wrap input[type="password"],
.market-password-wrap input[type="text"]{
  width:100%;
  padding-right:48px !important;
}
.market-password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:7px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.market-password-toggle:hover,
.market-password-toggle:focus{
  background:rgba(120,180,230,.12);
  outline:1px solid rgba(120,180,230,.35);
}


/* ===== Registrierung: Sprache, Land und internationale Telefonnummer ===== */
.market-language-switch{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;
  margin:0 0 14px;color:#9fc5df;font-size:13px;
}
.market-language-switch a{
  display:inline-block;padding:7px 10px;border:1px solid #29485e;border-radius:8px;
  background:#0e1a23;color:#d8ebf8;text-decoration:none;
}
.market-language-switch a:hover,.market-language-switch a.active{
  border-color:#4ca6ff;background:#123c5b;color:#fff;
}
.market-form select{
  width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #31516a;border-radius:8px;
  background:#0a151e;color:#f5f7fa;font:inherit;
}
.market-form select:focus{outline:2px solid #168df0;outline-offset:1px}
