/* Kleinanzeigen mobile layout (m.kleinanzeigen.de style) */

.mobile-site {
  display: none;
}

@media (max-width: 767px) {
  .desktop-site {
    display: none !important;
  }

  .mobile-site {
    display: block;
    min-height: 100vh;
    background: #fff;
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0));
  }
}

.mobile-headerbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 3.5rem;
  padding: 0.75rem 0.9375rem;
  background: #fff;
  border-bottom: 2px solid rgb(181, 233, 65);
}

.mobile-headerbar--nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.mobile-headerbar--burger {
  width: 1.375rem;
  height: 1rem;
  background:
    linear-gradient(#333, #333) 0 0 / 100% 2px no-repeat,
    linear-gradient(#333, #333) 0 50% / 100% 2px no-repeat,
    linear-gradient(#333, #333) 0 100% / 100% 2px no-repeat;
  cursor: pointer;
}

.mobile-headerbar--logo {
  width: 2.8125rem;
  height: 2.1875rem;
}

.mobile-headerbar--search {
  flex: 1;
  min-width: 0;
}

.mobile-headerbar--search input {
  width: 100%;
  height: 2.375rem;
  padding: 0 0.75rem 0 2.25rem;
  border: 1px solid #d8d8d8;
  border-radius: 0.25rem;
  background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M16.6 18L11 12.4 12.4 11 18 16.6 16.6 18ZM11 4C14.866 4 18 7.134 18 11C18 14.866 14.866 18 11 18C7.134 18 4 14.866 4 11C4 7.134 7.134 4 11 4ZM11 6C8.243 6 6 8.243 6 11C6 13.757 8.243 16 11 16C13.757 16 16 13.757 16 11C16 8.243 13.757 6 11 6Z'/%3E%3C/svg%3E") 0.625rem center / 1rem 1rem no-repeat;
  font-size: 1rem;
  color: #333;
}

.mobile-headerbar--search input::placeholder {
  color: #888;
}

.mobile-home-header {
  padding: 1rem 0.9375rem 0.5rem;
}

.mobile-home-header h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  color: #333;
}

.mobile-billboard {
  display: flex;
  gap: 0;
  margin: 0.5rem 0.9375rem 1rem;
  border: 1px solid #e8e8e8;
  background: #fff;
  overflow: hidden;
}

.mobile-billboard-item {
  flex: 1;
  min-width: 0;
  padding: 0.5rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #efefef;
}

.mobile-billboard-item:last-child {
  border-right: none;
}

.mobile-billboard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  margin-bottom: 0.375rem;
  padding: 0.25rem;
  background: #1a3a6d;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.mobile-billboard-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  margin-bottom: 0.375rem;
}

.mobile-billboard-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mobile-billboard-price {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111;
}

.mobile-adgallery {
  margin-bottom: 1.25rem;
}

.mobile-adgallery > header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.9375rem 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.mobile-adgallery-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #666;
}

.mobile-adgallery--items {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.9375rem;
}

.mobile-adgallery--items ul {
  display: flex;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-adgallery--items li {
  flex: 0 0 8.75rem;
  width: 8.75rem;
}

.mobile-adgallery--items a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mobile-adgallery--imagecontainer {
  margin-bottom: 0.375rem;
}

.mobile-adgallery--itemimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.75rem;
  height: 8.75rem;
  background: #f5f5f5;
  border: 1px solid #efefef;
}

.mobile-adgallery--itemimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-adgallery--itemtitle {
  margin-bottom: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-adgallery--itemprice {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(50, 105, 22);
}

.mobile-categorienav {
  margin-bottom: 1.5rem;
}

.mobile-categorienav--list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-categorienav--list > li {
  border-top: 1px solid #efefef;
}

.mobile-categorienav--list > li:last-child {
  border-bottom: 1px solid #efefef;
}

.mobile-categorienav--item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.5rem 0.9375rem;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
}

.mobile-categorienav--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: rgb(237, 247, 225);
  color: rgb(50, 105, 22);
}

.mobile-categorienav--icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-categorienav--label {
  flex: 1;
  min-width: 0;
}

.mobile-categorienav--chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.mobile-feed {
  padding: 0 0.9375rem 1.5rem;
}

.mobile-feed--list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-feed--item {
  border-top: 1px solid #efefef;
}

.mobile-feed--item:last-child {
  border-bottom: 1px solid #efefef;
}

.mobile-feed--item a {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  text-decoration: none;
  color: inherit;
}

.mobile-feed--thumb {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  background: #f5f5f5;
}

.mobile-feed--thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-feed--body {
  flex: 1;
  min-width: 0;
}

.mobile-feed--title {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-feed--price {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(50, 105, 22);
}

.mobile-footer {
  padding: 1rem 0.9375rem 2rem;
  background: #f5f5f5;
  font-size: 0.875rem;
}

.mobile-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-footer li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.mobile-footer a {
  color: #333;
  text-decoration: none;
}

.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2500;
  display: flex;
  height: 3.5rem;
  align-items: stretch;
  justify-content: space-around;
  border-top: 1px solid #e8e8e8;
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  color: #555;
  font-size: 0.625rem;
  text-decoration: none;
}

.mobile-bottom-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}
