/* =====================================================================================================
   RESPONSIVES LAYOUT (Nutzeranforderung: alle Bildschirmgrößen)
   Wird NACH app.css geladen (siehe layouts/header.php) und überschreibt nur bei schmalen Viewports –
   die Desktop-Darstellung bleibt unverändert.
   Breakpoints: ≤1200 (Skyscraper-Werbung aus), ≤960 (Tablet: Seitenleisten oben), ≤720 (Handy), ≤420 (klein).
   ===================================================================================================== */
.list-layout{ display:flex; gap:24px; align-items:flex-start; margin-top:24px; }
img, video, iframe{ max-width:100%; }
.backend-mobile-toggle, .cat-toggle, .filter-toggle{ display:none; }

/* API-Pakete buchen (/konto/api-pakete) */
.api-period-switch{ display:inline-flex; flex-wrap:wrap; gap:6px; background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:4px; margin-bottom:16px; }
.api-period-switch__opt{ cursor:pointer; }
.api-period-switch__opt input{ position:absolute; opacity:0; pointer-events:none; }
.api-period-switch__opt span{ display:inline-block; padding:9px 18px; border-radius:999px; font-size:14px; font-weight:600; color:var(--body); }
.api-period-switch__opt input:checked + span{ background:var(--blue); color:#fff; }
.api-badge{ font-style:normal; font-size:11px; font-weight:700; background:var(--success-bg); color:var(--success-text); padding:2px 8px; border-radius:999px; margin-left:6px; }
.api-period-switch__opt input:checked + span .api-badge{ background:rgba(255,255,255,.25); color:#fff; }
.api-plan-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; margin-bottom:18px; }
.api-plan{ position:relative; display:flex; flex-direction:column; gap:6px; background:var(--surface); border:2px solid var(--border); border-radius:14px; padding:18px; cursor:pointer; }
.api-plan input{ position:absolute; opacity:0; pointer-events:none; }
.api-plan:has(input:checked){ border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-tint); }
.api-plan--current{ background:var(--blue-tint); cursor:default; }
.api-plan__name{ font-size:18px; font-weight:800; color:var(--ink); }
.api-plan__quota{ font-size:13px; color:var(--muted); }
.api-plan__price{ font-size:15px; color:var(--ink); }
.api-plan__price strong{ font-size:22px; }
.api-plan__price small{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.api-plan__custom{ color:var(--muted); font-size:12px; }
.api-plan__price--yearly{ display:none; }
.api-plan-form:has(input[name="billing_period"][value="yearly"]:checked) .api-plan__price--monthly{ display:none; }
.api-plan-form:has(input[name="billing_period"][value="yearly"]:checked) .api-plan__price--yearly{ display:block; }

/* PRO-Erklärseite (/pro) */
.pro-page__eyebrow{ display:inline-block; background:var(--blue-tint); color:var(--blue-dark); font-weight:800; font-size:12px; letter-spacing:.06em; padding:5px 12px; border-radius:999px; margin-bottom:12px; }
.pro-page__cta-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.pro-page__cta{ margin-left:0; text-align:center; }
.pro-page__art{ display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--blue-tint),var(--surface)); border-radius:20px; padding:28px; }
.pro-page__why{ margin-bottom:8px; }
.pro-page__why h2, .pro-page__signup h2, .pro-page__two-col h2{ margin-top:0; }
.pro-page__h2{ font-size:22px; margin:34px 0 14px; }
.pro-feature-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:8px; }
.pro-feature{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:22px 20px; box-shadow:0 1px 3px rgba(31,41,51,.05); }
.pro-feature__icon{ font-size:30px; margin-bottom:8px; }
.pro-feature h3{ font-size:16px; margin:0 0 8px; color:var(--ink); }
.pro-feature p{ font-size:14px; color:var(--body); line-height:1.6; margin:0; }
.pro-feature--new{ border-color:var(--info-border); background:linear-gradient(180deg,var(--surface),var(--blue-tint)); }
.pro-feature__new{ position:absolute; top:14px; right:14px; background:var(--blue); color:#fff; font-size:10px; font-weight:800; letter-spacing:.05em; padding:3px 9px; border-radius:999px; }
.pro-page__two-col{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:34px 0 16px; }
.pro-page__price{ font-size:20px; margin:0 0 10px; color:var(--blue-dark); }
.pro-page__signup{ text-align:center; border:2px solid var(--blue); scroll-margin-top:16px; }
.pro-page__signup .auth-notice{ max-width:520px; margin-left:auto; margin-right:auto; }
.pro-page__signup .btn-outline, .pro-page__signup .btn-solid{ margin:4px 6px; padding:11px 24px; }
@media (max-width:960px){
  .pro-feature-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px){
  .pro-feature-grid, .pro-page__two-col{ grid-template-columns:1fr; }
  .pro-page__art{ padding:18px; }
  .pro-page__h2{ font-size:19px; }
}

/* Mobile Werbeplätze (partials/_ad_mobile.php): auf dem Desktop unsichtbar, dort gilt Seitenleiste + Skyscraper */
.ad-mobile-rect, .ad-mobile-footer{ display:none; }
.ad-slot--rect{ width:300px; max-width:100%; height:250px; margin:0 auto; }
.ad-mobile-rect{ grid-column:1 / -1; text-align:center; }
.ad-mobile-rect .ad-label{ text-align:center; }
.ad-mobile-footer{ gap:12px; padding-bottom:8px; }
.ad-mobile-footer__slot{ flex:1 1 0; min-width:0; max-width:250px; }
.ad-slot--footer-square{ width:100%; aspect-ratio:1 / 1; height:auto; font-size:12px; flex-direction:column; }
.ad-slot--footer-square small{ font-size:10px; }

/* Werbeschiene bleibt ab 1200 px abwärts sichtbar, bis die Seitenleiste bei 960 px in die mobile
   Akkordeon-Darstellung umschaltet (Nutzeranforderung 13.10.2026: beim Sprung auf 3 Spalten pro
   Reihe soll die Werbeschiene nicht verschwinden). */
@media (max-width:960px){
  .sky-rail{ display:none; }
}

@media (max-width:960px){
  .wrap, .site-header__inner, .site-footer__inner, .site-footer__bar-inner{ padding-left:20px; padding-right:20px; }
  .content-page{ padding-left:20px; padding-right:20px; }

  /* Header: Logo + Navigation in Zeile 1, Suche in Zeile 2 über die volle Breite */
  .site-header__inner{ flex-wrap:wrap; gap:10px 14px; padding-top:10px; padding-bottom:10px; }
  .site-logo img{ height:52px; margin-bottom:0; }
  .site-header__inner > .lang-menu{ margin-left:auto; margin-right:-6px; }
  .header-nav{ margin-left:0; flex-wrap:wrap; justify-content:flex-end; }
  .gvt-search{ order:3; flex:1 1 100%; max-width:none; margin:0; }
  .gvt-search:focus-within{ max-width:none; }
  .gvt-search input, .gvt-search:focus-within input{ font-size:16px; } /* verhindert Auto-Zoom auf iOS */

  /* Startseite / Listen: Kategorien hinter einem Button "Kategorien" (Akkordeon, Unterkategorien per Pfeil) */
  .home-layout, .list-layout{ flex-direction:column; gap:14px; }
  .home-layout{ align-items:stretch; }
  .list-layout{ align-items:stretch; margin-top:12px; }
  .sidebar{ width:100%; gap:0; }
  .sidebar > div:not(.category-menu){ display:none; }          /* 2×250er-Werbeplätze der Seitenleiste */
  .cat-toggle{
    display:flex; align-items:center; justify-content:space-between; width:100%; background:var(--surface);
    border:1px solid var(--border); border-radius:12px; padding:13px 16px; font-size:15px; font-weight:700;
    color:var(--ink); cursor:pointer;
  }
  .cat-toggle__chev{ transition:transform .15s; color:var(--muted); }
  .cat-toggle[aria-expanded="true"] .cat-toggle__chev{ transform:rotate(180deg); }
  .category-menu{ display:none; margin-top:8px; padding:6px; max-height:70vh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .category-menu.is-open{ display:block; }
  .category-menu__title{ display:none; }
  .category-menu__item, .category-menu__gesuche{ padding:13px 12px; margin:0; border-bottom:1px solid var(--border); border-radius:0; }
  .category-menu__item span:first-child{ font-size:15px; }
  .category-menu__count{ display:none; }
  .category-menu__arrow{
    display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; margin:-8px -8px -8px 8px;
    font-size:20px; color:var(--blue-dark); transform:rotate(90deg); transition:transform .15s;
  }
  .category-menu__row.is-expanded .category-menu__arrow{ transform:rotate(-90deg); }
  .category-menu__flyout{
    display:none !important; position:static; margin:0; min-width:0; max-width:none; box-shadow:none; border:none;
    border-radius:0; background:var(--page); padding:4px 0 4px 14px;
  }
  .category-menu__row.is-expanded .category-menu__flyout{ display:block !important; }
  /* Aktive Hauptkategorie ist anfangs aufgeklappt; der Pfeil klappt sie wie die anderen zu/auf */
  .category-menu__row--active:not(.is-expanded) .category-menu__children{ display:none; }
  .category-menu__row--active > .category-menu__item .category-menu__arrow{ transform:rotate(90deg); }
  .category-menu__row--active.is-expanded > .category-menu__item .category-menu__arrow{ transform:rotate(-90deg); }
  .category-menu__children{ margin:0; padding:4px 0 4px 14px; border-left:none; background:var(--page); }
  .category-menu__children a{ padding:12px 12px; font-size:15px; border-radius:0; }
  .category-menu__flyout a{ padding:12px 12px; font-size:15px; }
  .category-menu__gesuche{ margin-top:0; border-top:none; border-bottom:none; }

  /* Listenseite: Suche/Filter/Sortierung + Detailsuche erst nach Tipp auf "Filter & Sortierung" */
  .filter-toggle{
    display:flex; align-items:center; justify-content:space-between; width:100%; background:var(--blue-tint);
    border:1px solid var(--border); border-radius:10px; padding:11px 14px; font-size:14px; font-weight:600;
    color:var(--blue-dark); cursor:pointer;
  }
  .filter-bar .filter-bar__controls, .detailsuche-wrapper{ display:none; }
  .filter-bar.filters-open .filter-bar__controls{ display:flex; }
  .filters-open + .detailsuche-wrapper{ display:block; }
  .filter-bar__controls input[name="ort"]{ width:100% !important; font-size:16px; }
  .main-column{ width:100%; }
  .ad-mobile-rect{ display:block; margin:6px 0; }
  .ad-mobile-footer{ display:flex; justify-content:center; margin-top:8px; }
  .ad-desktop-only{ display:none; }           /* 970×90/100-Banner passen nicht auf schmale Bildschirme */
  .ad-slot--leaderboard{ height:100px; width:100%; max-width:320px; margin-left:auto; margin-right:auto; }  /* 320×100 Mobile-Banner */

  /* Detailseite: einspaltig. Reihenfolge: Galerie/Titel → Preis-Karte → Eckdaten/Reiter → Anbieter/Kontakt */
  .detail-layout{ flex-direction:column; gap:16px; align-items:stretch; }
  .detail-primary, .detail-sidebar{ display:contents; }
  .detail-primary > *, .detail-sidebar > *{ order:0; min-width:0; }
  .detail-primary > .gallery, .detail-primary > .detail-title-row, .detail-primary > .detail-meta{ order:-3; margin-bottom:0; }
  .detail-sidebar > .price-card{ order:-2; }
  .detail-sidebar > *:not(.price-card){ order:5; }
  .gallery__main{ height:auto; aspect-ratio:4/3; max-height:60vh; }

  /* Konto/Admin: Menü wird zum ausklappbaren Block über dem Inhalt */
  .backend-layout{ flex-direction:column; gap:14px; align-items:stretch; }
  .backend-nav{ width:100%; position:static; display:none; }
  .backend-nav.is-open{ display:block; }
  .backend-mobile-toggle{
    display:flex; align-items:center; justify-content:space-between; width:100%; background:var(--surface);
    border:1px solid var(--border); border-radius:12px; padding:12px 16px; font-size:15px; font-weight:600;
    color:var(--ink); cursor:pointer;
  }
  .backend-content{ width:100%; }
  .backend-content table, .content-card table, .detail-tabs__panel table{
    display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;
  }
  .site-footer__inner{ grid-template-columns:1fr 1fr; gap:28px; }
}

@media (max-width:720px){
  main{ margin-top:1rem; padding-left:0; padding-right:0; }
  .wrap, .site-header__inner, .site-footer__inner, .site-footer__bar-inner{ padding-left:14px; padding-right:14px; }
  .home-main{ padding:20px 0 40px; }
  .category-main{ padding-top:14px; }
  .backend-main{ padding:18px 0 40px; }
  .detail-main{ padding:14px 0 40px; }

  .listing-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .listing-card__media{ height:120px; }
  .listing-card__body{ padding:10px; }
  .carousel{ margin-left:-14px; margin-right:-14px; padding:0 14px 6px; scroll-snap-type:x proximity; }
  .carousel-nav{ top:58px; width:30px; height:30px; font-size:20px; }
  .carousel-nav--prev{ left:-4px; }
  .carousel-nav--next{ right:-4px; }
  .pro-card{ width:160px; scroll-snap-align:start; }

  .filter-bar{ padding:14px; }
  .filter-bar h1{ font-size:18px; width:100%; }
  .filter-bar__controls{ width:100%; }
  .filter-bar__controls select, .filter-bar__search{ flex:1 1 100%; width:100%; min-width:0; font-size:16px; }
  .detailsuche-wrapper{ margin:0 0 14px; }
  .detailsuche-panel{ position:static; min-width:0; width:100%; margin-top:6px; }
  .detailsuche-wrapper:hover .detailsuche-panel{ display:none; }                    /* Hover gibt es auf Touch nicht */
  .detailsuche-toggle-checkbox:checked ~ .detailsuche-panel{ display:block; }
  .detailsuche-panel__row{ gap:12px; }
  .detailsuche-panel__row > *{ flex:1 1 100%; }
  .detailsuche-panel input[type="text"]{ width:100%; font-size:16px; }

  /* Listenzeile: Bild links kleiner, Preis unter den Text */
  .listing-row{ flex-wrap:wrap; align-items:flex-start; gap:10px 12px; padding:12px; }
  .listing-row__media{ width:92px; height:70px; }
  .listing-row__body{ flex:1 1 calc(100% - 110px); }
  .listing-row__price-col{ flex:1 1 100%; text-align:left; display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
  .listing-row__desc{ white-space:normal; }
  .pagination{ flex-wrap:wrap; }

  /* Detail */
  .detail-title-row h1{ font-size:20px; }
  .detail-facts{ grid-template-columns:1fr 1fr; padding:14px; gap:12px 14px; }
  .detail-tabs__nav{ overflow-x:auto; padding:0 4px; }
  .detail-tabs__label{ padding:12px 12px; white-space:nowrap; }
  .detail-tabs__panel{ padding:16px; }
  .detail-related{ padding:16px; }
  .detail-related .detail-teaser{ width:calc(50% - 7px); }
  .detail-teaser-grid{ gap:10px; }
  .map-embed iframe{ height:240px; }
  .spec-table td{ padding:9px 10px; }
  .spec-table td:first-child{ width:42%; }
  .detail-action-row{ justify-content:flex-start; }
  .row-actions__menu{ right:auto; left:0; max-width:calc(100vw - 28px); }

  /* Formulare */
  .auth-page{ padding:20px 14px 48px; }
  .auth-card{ padding:24px 18px; }
  .auth-card .form-row, .form-row-2{ flex-direction:column; gap:0; }
  /* Anzeige erstellen (18.10.2026): Preis und Einheit bleiben nebeneinander; Zustand als Auswahlliste statt Sternenreihe */
  .form-row-2.price-row{ flex-direction:row; gap:10px; }
  .price-row .form-group:last-child{ flex:0 0 42%; }
  .js .backend-card select.condition-select{ display:block; width:100%; }
  .js .condition-choice, .js .condition-meaning{ display:none; }
  .backend-card{ padding:16px; }
  .backend-card input[type="text"], .backend-card input[type="email"], .backend-card input[type="password"],
  .backend-card input[type="url"], .backend-card input[type="number"], .backend-card input[type="file"],
  .backend-card select, .backend-card textarea, .content-card input[type="text"], .content-card input[type="email"],
  .content-card input[type="url"], .content-card select, .content-card textarea,
  .auth-card input, .auth-card select, .contact-card input, .contact-card textarea{ max-width:100%; font-size:16px; }
  .backend-content h1{ font-size:21px; }
  .btn-sm{ padding:10px 14px; }                                                       /* Touch-Ziel ≥ 40px */
  .content-page{ padding-top:24px; padding-bottom:40px; }
  .content-page h1{ font-size:22px; }
  .content-page .content-card{ padding:18px; }

  /* Nachrichten */
  .chat-bubble{ max-width:88%; }
  .conversation-card{ padding:14px; }

  /* Header kompakt */
  .lang-switch{ padding:8px 10px; }
  .lang-menu__list{ right:auto; left:0; }
  .btn-outline, .btn-solid{ margin-left:0; padding:8px 14px; font-size:13px; }
  .header-nav .account-link{ padding:8px 8px; font-size:13px; }
  .site-footer__inner{ grid-template-columns:1fr; padding-top:32px; padding-bottom:32px; }
  .adblock-modal{ padding:26px 18px 20px; }

  /* Inline-Formularleisten der Admin-Bereiche */
  .backend-content form[style*="display:flex"]{ flex-direction:column; align-items:stretch !important; }
  .backend-content form[style*="display:flex"] input, .backend-content form[style*="display:flex"] select{ min-width:0 !important; width:100%; }
}

@media (max-width:720px){
  /* Handy-Kopf (Nutzerwunsch 13.10.2026, 2. Fassung): Logo ganz oben, darunter Login/Registrieren bzw. Konto-Knöpfe,
     darunter die Sprachwahl, dann die Suche */
  .site-header__inner{ display:grid; grid-template-columns:1fr auto auto; grid-template-areas:"logo logo logo" "nav nav nav" ". theme lang" "search search search"; gap:8px; align-items:center; }
  .theme-toggle{ grid-area:theme; margin:0; }
  .header-nav{ grid-area:nav; justify-content:flex-end; margin-left:0; }
  .site-logo{ grid-area:logo; }
  .site-logo img{ height:60px; max-width:100%; width:auto; }
  .site-header__inner > .lang-menu{ grid-area:lang; margin:0; justify-self:end; }
  .site-header__inner > .lang-menu .lang-menu__list{ left:auto; right:0; }
  .gvt-search{ grid-area:search; }
  .header-nav, .site-logo, .gvt-search{ min-width:0; }
}

@media (max-width:420px){
  .listing-grid{ gap:10px; }
  .listing-card__body{ padding:8px; }
  .detail-facts{ grid-template-columns:1fr; }
}

@media print{ .site-header, .site-footer, .sidebar, .sky-rail, .backend-mobile-toggle{ display:none !important; } }

/* ---------- WERBEFORMATE JE BILDSCHIRMBREITE (Platzhalter-Beschriftung + Höhe; echte Anzeigen: Ad-Manager-Größenliste je Platz)
   Kopf/Fuß/Liste: ≥1200 px 970×100 · 768–1199 px 728×90 · <768 px 320×100.
   Seitenschiene: <1600 px 160×300/160×600 · ≥1600 px 300×250/300×600 (Seite wächst dort auf 1560 px). */
.sz{ display:none; margin-left:.35em; }
.sz-d, .sz-s{ display:inline; }
@media (max-width:1199px){
  .sz-d{ display:none; }
  .sz-t{ display:inline; }
  .ad-slot--leaderboard{ height:90px; }
}
@media (min-width:768px) and (max-width:960px){
  .ad-slot--leaderboard{ height:90px; max-width:728px; }
}
@media (max-width:767px){
  .sz-t{ display:none; }
  .sz-m{ display:inline; }
  .ad-slot--leaderboard{ height:100px; }
}
@media (min-width:1600px){
  .wrap, .site-header__inner, .site-footer__inner, .site-footer__bar-inner{ max-width:1560px; }
  .sky-rail{ width:320px; }
  .ad-slot--sky{ width:300px; height:250px; }
  .ad-slot--sky.tall{ height:600px; }
  .sz-s{ display:none; }
  .sz-l{ display:inline; }
}
/* Anzeigenseite (Nutzerwunsch 10.11.2026): ab 1600 px Werbeschiene links (beginnt unter der Galerie, app.js), 768–1599 px
   unverändert, Handy (< 768 px) nur das Banner unter der Anzeige – alle übrigen Plätze tragen .detail-ad--no-mobile. */
.detail-with-rail{ display:flex; gap:24px; align-items:flex-start; }
.detail-with-rail > .detail-layout{ flex:1 1 auto; min-width:0; }
.sky-rail--detail{ display:none; }
@media (min-width:1600px){ .sky-rail--detail{ display:flex; } }
@media (max-width:767px){ .detail-ad--no-mobile{ display:none !important; } }
.ad-infeed{ display:flex; flex-direction:column; align-items:center; margin:6px 0 14px; }

/* Sprachvorschlag (nicht blockierend) */
.lang-suggest{ position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:900; display:flex; align-items:center; gap:12px; max-width:calc(100vw - 32px); padding:10px 14px; background:var(--surface); border:1px solid #cfd8e3; border-radius:8px; box-shadow:0 4px 18px rgba(0,0,0,.18); font-size:14px; }
.lang-suggest[hidden]{ display:none; }
.lang-suggest__close{ background:none; border:0; font-size:22px; line-height:1; cursor:pointer; color:var(--body); padding:0 4px; }

/* Such- und Filterkasten (10.10.2026): Stichwort immer sichtbar, Detailsuche hinter dem Knopf (app.js) */
@media (max-width:960px){
  .filter-bar__q{ flex:1 1 100%; max-width:none; }
  .filter-bar__q .filter-bar__search{ font-size:16px; }
  .filter-bar.filters-open .detailsearch{ display:block; }
  .detailsearch__row > *, .detailsearch__fields > *{ flex:1 1 100%; }
  .detailsearch input[type="text"]{ width:100%; font-size:16px; }
  .detailsearch__range{ display:flex; }
  .detailsearch__range input[type="text"]{ flex:1 1 0; width:auto; }
  .detailsearch select{ width:100%; font-size:16px; }
}
@media (max-width:960px){
  .detailsearch__range{ width:100%; }
  .detailsearch__range input[type="text"]{ min-width:0; }
}
@media (max-width:960px){
  .detailsearch__row > *, .detailsearch__fields > *{ min-width:0; }
  .detailsearch__range input[type="text"]{ width:0; flex:1 1 0; }
}
@media (max-width:960px){ .detailsearch__q input[type="text"]{ width:100%; } }
@media (max-width:960px){
  .detailsearch__row .detailsearch__actions{ margin:4px 0 0; flex:1 1 100%; justify-content:space-between; }
  .spec-options--overlay > .spec-options__list{ position:static; box-shadow:none; }
}
@media (max-width:960px){ .detailsearch .spec-options{ max-width:none; width:100%; } }

/* Neueste Anzeigen (Nutzerwunsch 13.10.2026): links „Alle Anzeigen“, rechts „Weitere 36 laden“ (nur Handy), Knopf „Nach oben“ */
.latest-actions{ display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:20px; }
.latest-btn{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 22px; border-radius:999px;
  font:inherit; font-size:15px; font-weight:700; text-decoration:none; cursor:pointer; white-space:nowrap; }
.latest-btn--primary{ background:var(--blue); color:#fff; border:0; box-shadow:0 4px 10px rgba(52,152,219,.28); }
.latest-btn--primary:hover{ background:var(--blue-dark); color:#fff; }
.latest-btn--primary:disabled{ opacity:.7; cursor:wait; }
.latest-btn--secondary{ background:var(--surface-2); color:var(--ink, var(--ink)); border:1px solid var(--border); }
.latest-btn--secondary:hover{ background:var(--surface); border-color:var(--blue); color:var(--blue-dark); }
.latest-more{ display:none; }
.to-top{ position:fixed; left:14px; bottom:14px; z-index:950; padding:10px 16px; border:0; border-radius:999px; background:var(--contrast-bg);
  color:var(--contrast-text); font-size:14px; font-weight:600; box-shadow:0 6px 18px rgba(31,41,51,.25); cursor:pointer; }
.to-top[hidden]{ display:none; }
@media (max-width:720px){
  /* zwei gleich breite Knöpfe nebeneinander, gut mit dem Daumen erreichbar */
  .latest-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .latest-more{ display:inline-flex; }
  .latest-btn{ width:100%; padding:0 12px; }
  .latest-actions .latest-btn--secondary:only-child{ grid-column:1 / -1; }
}

/* Kartenbilder 4:3 (10.10.2026) – feste Höhen der Handy-Regeln oben aufheben */
.listing-card__media{ height:auto; }

/* Datum in der Anzeigenliste: auf dem Handy in der Preiszeile rechts */
@media (max-width:720px){ .listing-row__date{ margin-top:0; margin-left:auto; } }
