/*
Theme Name: Repo24
Theme URI: https://repo24.net
Description: Europas Marktplatz für Restposten & Sonderposten
Version: 1.4.5
Author: Jürgens Internetlösungen
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2d7a3a;
  --green-dark:  #1e5429;
  --green-light: #3a8f4a;
  --black-nav:   #1a1a1a;
  --topbar-bg:   #111111;
  --white:       #ffffff;
  --gray-bg:     #f5f5f5;
  --gray-border: #e0e0e0;
  --gray-text:   #666666;
  --text:        #222222;
  --font:        'Inter', sans-serif;
  --max:         1280px;
}

html { font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select { font-family: var(--font); }

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: var(--topbar-bg);
  color: #ccc;
  font-size: 12px;
  padding: 0;
  height: 32px;
  display: flex;
  align-items: center;
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar__left span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ccc;
  font-size: 12px;
}
.topbar__left span svg { width: 13px; height: 13px; fill: none; stroke: #aaa; stroke-width: 2; }
.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar__right a { color: #ccc; font-size: 12px; }
.topbar__right a:hover { color: #fff; }
.topbar__flag { display: flex; align-items: center; gap: 5px; color: #ccc; font-size: 12px; cursor: pointer; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  line-height: 1;
}
.site-logo__text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  font-style: italic;
}
.site-logo__text span { color: var(--green); }
.site-logo__sub {
  font-size: 10.5px;
  color: var(--gray-text);
  font-weight: 400;
  margin-top: 1px;
  letter-spacing: 0;
}

/* Search bar */
.header__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--gray-border);
  border-radius: 6px;
  overflow: hidden;
  height: 44px;
}
.header__search-cat {
  border: none;
  border-right: 1.5px solid var(--gray-border);
  background: var(--white);
  padding: 0 12px;
  height: 100%;
  font-size: 14px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  min-width: 155px;
  appearance: auto;
}
.header__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  height: 100%;
  color: var(--text);
  background: var(--white);
}
.header__search-input::placeholder { color: #aaa; }
.header__search-btn {
  background: var(--green);
  border: none;
  color: var(--white);
  padding: 0 22px;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
}
.header__search-btn:hover { background: var(--green-dark); }
.header__search-btn svg { width: 16px; height: 16px; }

/* Header icons */
.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header__icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 6px 12px;
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
}
.header__icon-btn svg { width: 22px; height: 22px; stroke: #444; stroke-width: 1.8; fill: none; }
.header__icon-btn:hover svg { stroke: var(--green); }

/* CTA Button */
.btn-inserat {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn-inserat span { font-size: 11px; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.btn-inserat:hover { background: var(--green-dark); }

/* =============================================
   MAIN NAV
   ============================================= */
.main-nav {
  background: var(--black-nav);
  height: 44px;
  display: flex;
  align-items: center;
}
.main-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-kategorien {
  background: var(--green);
  color: var(--white);
  border: none;
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-kategorien svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-kategorien .chevron { width: 12px; height: 12px; }

.main-nav__links {
  display: flex;
  align-items: center;
  padding-left: 10px;
}
.main-nav__links a {
  color: #d0d0d0;
  font-size: 13.5px;
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.15s;
}
.main-nav__links a:hover { color: #fff; }
.main-nav__links a.highlight {
  color: #f0c040;
  display: flex;
  align-items: center;
  gap: 5px;
}
.main-nav__links a.highlight svg { width: 14px; height: 14px; fill: #f0c040; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  background: var(--black-nav);
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111 35%, transparent 70%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px;
  width: 100%;
}
.hero__title {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  max-width: 520px;
  margin-bottom: 12px;
}
.hero__subtitle {
  font-size: 15px;
  color: #ccc;
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Hero Search Box */
.hero__search {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  max-width: 680px;
  height: 50px;
  margin-bottom: 14px;
}
.hero__search-cat {
  border: none;
  border-right: 1px solid var(--gray-border);
  background: var(--white);
  padding: 0 14px;
  height: 100%;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  min-width: 140px;
  color: var(--text);
  appearance: auto;
}
.hero__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 14px;
  height: 100%;
  color: var(--text);
}
.hero__search-input::placeholder { color: #999; }
.hero__search-loc {
  border: none;
  border-left: 1px solid var(--gray-border);
  background: var(--white);
  padding: 0 14px;
  height: 100%;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  min-width: 130px;
  color: var(--text);
  appearance: auto;
}
.hero__search-go {
  background: var(--green);
  border: none;
  color: var(--white);
  padding: 0 24px;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.hero__search-go:hover { background: var(--green-dark); }

/* Beliebte Suchen */
.hero__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__tags-label { color: #aaa; font-size: 13px; }
.hero__tag {
  background: rgba(255,255,255,0.12);
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.hero__tag:hover { background: rgba(255,255,255,0.2); }

/* Hero CTA Buttons */
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__cta-seller {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.hero__cta-seller:hover { background: var(--green-dark); }
.hero__cta-seller small { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; margin-top: 1px; }
.hero__cta-buyer {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.hero__cta-buyer:hover { background: rgba(255,255,255,0.18); }
.hero__cta-buyer small { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; margin-top: 1px; }
.hero__cta-icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* =============================================
   SECTION WRAPPER
   ============================================= */
.section { padding: 40px 0; }
.section--gray { background: var(--gray-bg); }
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.section__title .badge-neu {
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.section__link {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section__link:hover { text-decoration: underline; }

/* =============================================
   KATEGORIEN GRID
   ============================================= */
.kat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.kat-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 18px 8px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kat-card:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(45,122,58,0.12); }
.kat-card__icon { width: 42px; height: 42px; margin: 0 auto 10px; }
.kat-card__icon svg { width: 42px; height: 42px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.kat-card__name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.kat-card__count { font-size: 11.5px; color: var(--gray-text); }

/* =============================================
   LISTING CARDS
   ============================================= */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.listing-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); transform: translateY(-2px); }
.listing-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f0f0f0;
  display: block;
}
.listing-card__body { padding: 10px 10px 12px; }
.listing-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card__qty {
  font-size: 11.5px;
  color: var(--white);
  background: var(--green);
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 5px;
}
.listing-card__loc {
  font-size: 11.5px;
  color: var(--gray-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.listing-card__loc svg { width: 11px; height: 11px; stroke: #999; fill: none; stroke-width: 2; }
.listing-card__price {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}
.listing-card__price-sub { font-size: 11px; color: var(--gray-text); margin-bottom: 6px; }
.listing-card__seller {
  font-size: 11.5px;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.listing-card__seller .verified { color: var(--green); font-size: 11px; }
.listing-card__seller svg { width: 12px; height: 12px; fill: var(--green); }

/* Alle anzeigen Button */
.btn-all {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 28px auto 0;
  text-align: center;
  border: 2px solid var(--gray-border);
  border-radius: 6px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-all:hover { border-color: var(--green); color: var(--green); }



/* =============================================
   TRUST SECTION
   ============================================= */
.trust {
  background: var(--gray-bg);
  padding: 44px 0 32px;
  border-top: 1px solid var(--gray-border);
}
.trust__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.trust__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}
.trust__features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.trust__feature { display: flex; flex-direction: column; gap: 8px; }
.trust__feature svg { width: 32px; height: 32px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.trust__feature h4 { font-size: 13.5px; font-weight: 700; color: var(--text); }
.trust__feature p { font-size: 12.5px; color: var(--gray-text); line-height: 1.4; }

.trust__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-border);
  padding-top: 32px;
}
.trust__stat {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--gray-border);
}
.trust__stat:last-child { border-right: none; }
.trust__stat__icon { width: 36px; height: 36px; margin: 0 auto 8px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.trust__stat__num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.trust__stat__label { font-size: 12px; color: var(--gray-text); margin-top: 3px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--black-nav);
  color: #bbb;
  padding: 48px 0 0;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand { }
.footer__logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  font-style: italic;
  margin-bottom: 6px;
  display: block;
}
.footer__logo span { color: var(--green); }
.footer__tagline { font-size: 12.5px; color: #888; line-height: 1.5; margin-bottom: 20px; max-width: 240px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 32px; height: 32px; border-radius: 4px;
  background: #333; display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 14px; transition: background 0.2s;
}
.footer__social a:hover { background: var(--green); color: #fff; }
.footer__social svg { width: 15px; height: 15px; fill: currentColor; }

.footer__col h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a { font-size: 13px; color: #999; transition: color 0.15s; }
.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid #333;
  padding: 16px 20px;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .kat-grid { grid-template-columns: repeat(4, 1fr); }
  .listing-grid { grid-template-columns: repeat(4, 1fr); }
  .trust__features { grid-template-columns: repeat(3, 1fr); }
  .trust__stats { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar__left span:not(:first-child) { display: none; }
  .header__search-cat { min-width: 120px; }
  .hero__title { font-size: 28px; }
  .hero__bg { width: 45%; opacity: 0.5; }
  .kat-grid { grid-template-columns: repeat(4, 1fr); }
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .dual-cta__inner { grid-template-columns: 1fr; }
  .dual-cta__img { display: none; }
  .trust__features { grid-template-columns: repeat(2, 1fr); }
  .trust__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .main-nav__links a { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .header__inner { height: 60px; gap: 10px; }
  .hero__title { font-size: 22px; }
  .hero__search { display: none; }
  .hero__bg { display: none; }
  .kat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav__links { display: none; }
}

/* =============================================
   CTA BOXES
   ============================================= */
.cta-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e8e8e8;
}

.cta-box {
  position: relative;
  min-height: 320px;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* VERKÄUFER: Laptop-Bild, kleiner, rechts unten freistehend */
.cta-box--seller {
  background-color: #ffffff;
  background-image: url('https://www.repo24.net/wp-content/uploads/2026/05/website-auf-laptop.webp');
  background-size: 48% auto;
  background-position: right bottom;
  border-right: 1px solid #e8e8e8;
}

/* KÄUFER: Foto randlos rechts, volle Höhe */
.cta-box--buyer {
  background-color: #f7f7f5;
  background-image: url('https://www.repo24.net/wp-content/uploads/2026/05/restposten-kaeufer.webp');
  background-size: 50% 100%;
  background-position: right center;
}

/* Text links – NUR 45% breit damit Bild rechts sichtbar bleibt */
.cta-box__content {
  position: relative;
  z-index: 2;
  width: 45%;
  padding: 44px 0 44px 44px;
}

.cta-box__label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #2d7a3a;
  margin: 0 0 8px;
}
.cta-box__title {
  font-size: 24px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0 0 16px;
}
.cta-box__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.cta-box__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #222;
  margin-bottom: 10px;
}
.cta-box__list li svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.cta-box__btn {
  display: inline-block;
  background: #2d7a3a;
  color: #fff;
  border-radius: 6px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.cta-box__btn small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  margin-top: 2px;
}
.cta-box__btn:hover { background: #1e5429; color: #fff; }

@media (max-width: 900px) {
  .cta-wrap { grid-template-columns: 1fr; }
  .cta-box--seller { border-right: none; border-bottom: 1px solid #e8e8e8; }
  .cta-box__content { width: 60%; }
}
@media (max-width: 600px) {
  .cta-box__content { width: 100%; }
  .cta-box--seller,
  .cta-box--buyer { background-image: none; }
}

/* Force CTA full width - override any WP container */
.cta-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto !important;
  transform: none !important;
}

/* =============================================
   KATEGORIEN DROPDOWN
   ============================================= */
.nav-kat-wrap {
  position: relative;
}
.nav-kat-dropdown {
  display: none;
  position: absolute;
  top: 44px;
  left: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #2d7a3a;
  min-width: 260px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  max-height: 80vh;
  overflow-y: auto;
}
.nav-kat-dropdown.open {
  display: block;
}
.nav-kat-dropdown a {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 14px;
  color: #222;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s, color 0.15s;
  gap: 8px;
}
.nav-kat-dropdown a::before {
  content: '›';
  color: #2d7a3a;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-kat-dropdown a:hover {
  background: #f0f8f1;
  color: #2d7a3a;
}
.nav-kat-dropdown a:last-child {
  border-bottom: none;
}
