/*
Theme Name:        hundetrip
Theme URI:         https://hundetrip.de
Description:       Kartenbasierte Community-Plattform für Hundebesitzer – "Die Hundekarte für Deutschland". Schlankes Standalone-Theme mit Erdton-Palette und Pfoten-Orange.
Author:            hundetrip.de
Version:           0.48.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       hundetrip
*/

/* =========================================================
   1. Design-Tokens (Erdtöne + Pfoten-Orange)
   ========================================================= */
:root {
  /* Akzent */
  --ht-orange:        #E8732A;
  --ht-orange-dark:   #C95E1E;
  --ht-orange-soft:   #F6D9C4;

  /* Erdtöne */
  --ht-brown-900:     #2E2620; /* Text */
  --ht-brown-700:     #4A3D32;
  --ht-brown-500:     #8A7355; /* gedämpft */
  --ht-sand:          #E8DCC8;
  --ht-sand-light:    #F2E9DA;
  --ht-cream:         #FAF6EF; /* Seitenhintergrund */
  --ht-moss:          #6B7A4F; /* sekundärer Akzent (Natur/Leinenpflicht) */
  --ht-moss-dark:     #54623D;

  /* Funktionsfarben */
  --ht-warn:          #C0392B;
  --ht-ok:            #2E7D32;
  --ht-white:         #ffffff;

  /* Typografie */
  --ht-font-head: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ht-font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --ht-maxw: 1180px;
  --ht-radius: 14px;
  --ht-radius-sm: 8px;
  --ht-shadow: 0 6px 24px rgba(46, 38, 32, 0.10);
  --ht-shadow-sm: 0 2px 8px rgba(46, 38, 32, 0.08);
}

/* =========================================================
   2. Reset / Basis
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ht-font-body);
  color: var(--ht-brown-900);
  background: var(--ht-cream);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ht-orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--ht-font-head);
  color: var(--ht-brown-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.ht-container { max-width: var(--ht-maxw); margin: 0 auto; padding: 0 20px; }
.ht-section { padding: 64px 0; }
.ht-muted { color: var(--ht-brown-500); }
.ht-center { text-align: center; }

/* Buttons */
.ht-btn {
  display: inline-block;
  font-family: var(--ht-font-head);
  font-weight: 600;
  background: var(--ht-orange);
  color: var(--ht-white);
  padding: 12px 24px;
  border-radius: var(--ht-radius-sm);
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.ht-btn:hover { background: var(--ht-orange-dark); text-decoration: none; transform: translateY(-1px); }
.ht-btn--ghost {
  background: transparent;
  color: var(--ht-brown-900);
  border: 2px solid var(--ht-sand);
}
.ht-btn--ghost:hover { background: var(--ht-sand-light); }
.ht-btn--moss { background: var(--ht-moss); }
.ht-btn--moss:hover { background: var(--ht-moss-dark); }

/* =========================================================
   3. Header
   ========================================================= */
.ht-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--ht-sand);
}
.ht-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.ht-logo { display: flex; align-items: center; gap: 10px; font-family: var(--ht-font-head); font-weight: 800; font-size: 1.35rem; color: var(--ht-brown-900); }
.ht-logo:hover { text-decoration: none; }
.ht-logo .ht-paw { width: 30px; height: 30px; color: var(--ht-orange); }
.ht-logo b { color: var(--ht-orange); }
.ht-logo-img { display: block; height: 40px; width: auto; }

.ht-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.ht-nav a {
  display: block; padding: 8px 14px; border-radius: var(--ht-radius-sm);
  color: var(--ht-brown-700); font-family: var(--ht-font-head); font-weight: 500;
}
.ht-nav a:hover { background: var(--ht-sand-light); text-decoration: none; color: var(--ht-brown-900); }
.ht-nav .current-menu-item > a,
.ht-nav .current_page_item > a { background: var(--ht-orange-soft); color: var(--ht-orange-dark); }

.ht-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.ht-burger span { display: block; width: 24px; height: 2px; background: var(--ht-brown-900); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .ht-burger { display: block; }
  .ht-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ht-cream); border-bottom: 1px solid var(--ht-sand);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .ht-nav.is-open { max-height: 420px; }
  .ht-nav ul { flex-direction: column; padding: 12px 20px; gap: 2px; }
}

/* =========================================================
   4. Hero
   ========================================================= */
.ht-hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, var(--ht-orange-soft), transparent 60%),
    linear-gradient(180deg, var(--ht-sand-light), var(--ht-cream));
  padding: 72px 0 80px;
}
.ht-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ht-hero h1 span { color: var(--ht-orange); }
.ht-hero .lead { font-size: 1.2rem; color: var(--ht-brown-700); max-width: 46ch; }
.ht-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.ht-hero__art {
  aspect-ratio: 4/3; border-radius: var(--ht-radius); background: var(--ht-sand);
  box-shadow: var(--ht-shadow); display: grid; place-items: center; color: var(--ht-brown-500);
  background-image: linear-gradient(135deg, var(--ht-sand) 0%, var(--ht-sand-light) 100%);
  overflow: hidden;
}
.ht-hero__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-hero__art--portrait { aspect-ratio: 3/4; max-width: 340px; margin-left: auto; }
@media (max-width: 860px) { .ht-hero__grid { grid-template-columns: 1fr; } .ht-hero__art--portrait { max-width: 260px; margin: 0 auto; } }

/* =========================================================
   5. Karte
   ========================================================= */
#wuff-map {
  width: 100%;
  height: clamp(420px, 70vh, 760px);
  border-radius: var(--ht-radius);
  background:
    repeating-linear-gradient(45deg, var(--ht-sand-light) 0 18px, var(--ht-sand) 18px 36px);
  box-shadow: var(--ht-shadow);
  display: grid; place-items: center;
  color: var(--ht-brown-500);
  position: relative;
  overflow: hidden;
}
#wuff-map .ht-map-placeholder {
  background: rgba(250,246,239,.9); padding: 20px 26px; border-radius: var(--ht-radius-sm);
  text-align: center; box-shadow: var(--ht-shadow-sm); max-width: 420px;
}
.ht-map-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.ht-chip {
  font-family: var(--ht-font-head); font-size: .9rem; font-weight: 500;
  background: var(--ht-white); border: 1px solid var(--ht-sand);
  padding: 6px 14px; border-radius: 999px; color: var(--ht-brown-700); cursor: pointer;
}
.ht-chip:hover, .ht-chip.is-active { background: var(--ht-orange); color: #fff; border-color: var(--ht-orange); }

/* M09: Breadcrumbs */
.ht-breadcrumbs { font-size: .85rem; color: var(--ht-brown-500); margin-bottom: 14px; }
.ht-breadcrumbs a { color: var(--ht-brown-500); }
.ht-breadcrumbs a:hover { color: var(--ht-orange-dark); }

/* M11: Ortsseiten-Kontextlinks */
.ht-kontextlinks {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 26px 0 6px; padding: 14px 18px;
  background: var(--ht-sand-light); border-radius: var(--ht-radius-sm);
}
.ht-kontextlinks a { font-family: var(--ht-font-head); font-weight: 500; }
.ht-card__catlink { font-size: .82rem; margin: 2px 0 0; }
.ht-card__catlink a { color: var(--ht-brown-500); }
.ht-card__catlink a:hover { color: var(--ht-orange-dark); }

/* M10: Stadtseiten-Redaktionsbausteine (Intro, FAQ, Nachbarstädte) */
.ht-stadt-intro { text-align: left; }
.ht-stadt-intro p { margin: 0 0 .8em; }
.ht-stadt-faq { max-width: 720px; margin: 56px auto 0; }
.ht-faq-item {
  background: var(--ht-white); border: 1px solid var(--ht-sand);
  border-radius: var(--ht-radius-sm); margin-bottom: 10px; padding: 0 16px;
}
.ht-faq-item summary {
  cursor: pointer; padding: 14px 0; font-family: var(--ht-font-head);
  font-weight: 600; color: var(--ht-brown-900); list-style-position: inside;
}
.ht-faq-item[open] summary { border-bottom: 1px solid var(--ht-sand-light); margin-bottom: 10px; }
.ht-faq-item p { padding-bottom: 14px; margin: 0; color: var(--ht-brown-700); }
.ht-stadt-nachbarn { margin-top: 48px; }
.ht-stadt-nachbarn ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px 18px; flex-wrap: wrap; justify-content: center; }
.ht-stadt-nachbarn a {
  display: inline-block; background: var(--ht-white); border: 1px solid var(--ht-sand);
  border-radius: 999px; padding: 8px 16px; font-family: var(--ht-font-head); font-size: .95rem;
}
.ht-stadt-nachbarn a:hover { background: var(--ht-orange); color: #fff; border-color: var(--ht-orange); text-decoration: none; }

/* Crawlbare Text-Linklisten (u. a. Footer-Kurzlisten Städte/Kategorien) */
.ht-linklist { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; }
.ht-linklist a { font-family: var(--ht-font-head); font-weight: 500; color: var(--ht-brown-700); }
.ht-linklist a:hover { color: var(--ht-orange-dark); }

/* Startseiten-Buttons zu den Hub-Seiten /staedte/ und /kategorien/
   (ersetzen die früheren vollständigen Linklisten dort, M-Hub-01) */
.ht-hub-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 40px 0 0; }

/* Hub-Seiten /staedte/ und /kategorien/: vollständige A-Z-Liste aller Terms
   als Card-Grid (echte <a href>, SEO-Team-Beschluss 07.07.2026, M-Hub-01) */
.ht-hub-intro { max-width: 720px; margin: 0 auto 8px; }
.ht-hub-jump { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 36px; padding: 14px; background: var(--ht-sand-light); border-radius: var(--ht-radius-sm); }
.ht-hub-jump a {
  font-family: var(--ht-font-head); font-weight: 600; font-size: .85rem;
  color: var(--ht-brown-700); width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ht-hub-jump a:hover { background: var(--ht-orange); color: #fff; text-decoration: none; }
.ht-hub-group { margin-bottom: 32px; }
.ht-hub-group__letter {
  font-family: var(--ht-font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--ht-orange-dark); border-bottom: 2px solid var(--ht-sand);
  padding-bottom: 6px; margin: 0 0 14px;
}
.ht-hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 16px; list-style: none; margin: 0; padding: 0;
}
.ht-hub-grid li { min-width: 0; }
.ht-hub-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--ht-white); border: 1px solid var(--ht-sand);
  border-radius: var(--ht-radius-sm); padding: 10px 14px;
  font-family: var(--ht-font-head); font-weight: 500; color: var(--ht-brown-700);
  overflow-wrap: anywhere;
}
.ht-hub-grid a:hover { background: var(--ht-orange); color: #fff; border-color: var(--ht-orange); text-decoration: none; }
.ht-hub-grid a:hover .ht-hub-count { color: inherit; opacity: .85; }
.ht-hub-count { color: var(--ht-brown-500); font-size: .85rem; font-weight: 500; flex-shrink: 0; }

/* =========================================================
   6. Karten-/Orte-Grid
   ========================================================= */
.ht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }

/* CLS-Fix (PSI-Befund 0.53): Skeleton-Cards reservieren den Platz der Kachelliste,
   bis die echten Cards per AJAX eintreffen. .is-refreshing dimmt beim Filterwechsel,
   statt das Grid zu leeren (verhindert Kollaps + Footer-Sprung). */
.ht-grid.is-refreshing { opacity: .45; transition: opacity .15s ease; pointer-events: none; }
.ht-card--skeleton { border-radius: var(--ht-radius); overflow: hidden; background: var(--ht-white); box-shadow: var(--ht-shadow-sm); padding-bottom: 18px; }
.ht-card--skeleton .ht-card__media,
.ht-skel-line {
  background: linear-gradient(90deg, var(--ht-sand-light) 25%, var(--ht-sand) 37%, var(--ht-sand-light) 63%);
  background-size: 400% 100%;
  animation: ht-skel-shimmer 1.4s ease infinite;
}
.ht-skel-line { height: 14px; border-radius: 7px; margin: 12px 16px 0; }
.ht-skel-line--title { height: 20px; width: 70%; margin-top: 16px; }
.ht-skel-line--short { width: 45%; }
@keyframes ht-skel-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .ht-card--skeleton .ht-card__media, .ht-skel-line { animation: none; } }
.ht-card {
  background: var(--ht-white); border: 1px solid var(--ht-sand);
  border-radius: var(--ht-radius); overflow: hidden; box-shadow: var(--ht-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column;
}
.ht-card:hover { transform: translateY(-3px); box-shadow: var(--ht-shadow); }
.ht-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--ht-sand), var(--ht-sand-light)); position: relative; }
.ht-card__cats {
  position: absolute; top: 10px; left: 10px; right: 70px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.ht-card__cat {
  background: var(--ht-moss); color: #fff; font-size: .75rem; font-weight: 600;
  font-family: var(--ht-font-head); padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.ht-card__premium {
  position: absolute; top: 10px; right: 10px;
  background: var(--ht-orange); color: #fff; font-size: .72rem; font-weight: 700;
  font-family: var(--ht-font-head); padding: 4px 9px; border-radius: 999px;
}
.ht-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ht-card__body h3 { margin: 0; font-size: 1.15rem; }
.ht-card__meta { font-size: .9rem; color: var(--ht-brown-500); }
.ht-rating { color: var(--ht-orange); letter-spacing: 1px; font-size: 1rem; }
.ht-leine { font-size: .82rem; font-weight: 600; }
.ht-leine--ja { color: var(--ht-warn); }
.ht-leine--nein { color: var(--ht-ok); }
.ht-leine--teilweise { color: var(--ht-moss-dark); }
.ht-warning {
  margin-top: 6px; font-size: .82rem; color: var(--ht-warn);
  background: #FBEAE8; border: 1px solid #F2C9C4; padding: 6px 10px; border-radius: var(--ht-radius-sm);
}

/* Ausstattungs-Badges (eingezäunt, Wasser, Parkplatz, Kotbeutel) */
.ht-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ht-badge {
  font-size: .76rem; font-weight: 600; color: var(--ht-moss-dark);
  background: #EEF1E7; border: 1px solid #DCE3D0; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}

/* =========================================================
   7. Feature-/Preis-Boxen (Für Anbieter)
   ========================================================= */
.ht-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.ht-feature { background: var(--ht-white); border:1px solid var(--ht-sand); border-radius: var(--ht-radius); padding: 24px; box-shadow: var(--ht-shadow-sm); }
.ht-feature .ht-paw { width: 36px; height: 36px; color: var(--ht-orange); margin-bottom: 10px; }
.ht-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.ht-price {
  background: var(--ht-white); border:1px solid var(--ht-sand); border-radius: var(--ht-radius);
  padding: 28px; text-align: center; box-shadow: var(--ht-shadow-sm);
}
.ht-price.is-highlight { border: 2px solid var(--ht-orange); position: relative; }
.ht-price.is-highlight::after {
  content: "Beliebt"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ht-orange); color:#fff; font-size:.72rem; font-weight:700; font-family: var(--ht-font-head);
  padding: 4px 12px; border-radius: 999px;
}
.ht-price__amount { font-family: var(--ht-font-head); font-size: 2.4rem; font-weight: 800; color: var(--ht-brown-900); }
.ht-price ul { list-style: none; padding: 0; margin: 16px 0 22px; text-align: left; }
.ht-price li { padding: 6px 0 6px 26px; position: relative; }
.ht-price li::before { content: "🐾"; position: absolute; left: 0; }

/* =========================================================
   8. Community
   ========================================================= */
.ht-points {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ht-orange-soft); color: var(--ht-orange-dark);
  font-family: var(--ht-font-head); font-weight: 700; padding: 8px 16px; border-radius: 999px;
}
.ht-ranks { display: grid; gap: 12px; max-width: 560px; }
.ht-rank { display: flex; align-items: center; gap: 14px; background: var(--ht-white); border:1px solid var(--ht-sand); border-radius: var(--ht-radius); padding: 14px 18px; }
.ht-rank__no { font-family: var(--ht-font-head); font-weight: 800; color: var(--ht-orange); width: 28px; }

/* =========================================================
   9. Single Hundeort
   ========================================================= */
.ht-single__head { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.ht-facts { background: var(--ht-white); border:1px solid var(--ht-sand); border-radius: var(--ht-radius); padding: 20px; box-shadow: var(--ht-shadow-sm); }
.ht-facts dl { display: grid; grid-template-columns: 1fr; gap: 2px 0; margin: 0; }
.ht-facts dt { font-weight: 600; color: var(--ht-brown-500); font-size: .82rem; margin-top: 10px; }
.ht-facts dt:first-child { margin-top: 0; }
.ht-facts dd { margin: 0 0 4px; word-break: break-word; }
.ht-minimap { height: 220px; border-radius: var(--ht-radius-sm); margin-top: 14px; background: repeating-linear-gradient(45deg, var(--ht-sand-light) 0 14px, var(--ht-sand) 14px 28px); display:grid; place-items:center; color: var(--ht-brown-500); font-size:.85rem; }
@media (max-width: 760px) { .ht-single__head { grid-template-columns: 1fr; } }

/* =========================================================
   10. Footer
   ========================================================= */
.ht-footer { background: var(--ht-brown-900); color: var(--ht-sand-light); margin-top: 72px; }
.ht-footer a { color: var(--ht-sand-light); }
.ht-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 32px; }
.ht-footer h4 { color: #fff; }
.ht-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ht-newsletter { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ht-newsletter input[type=email] {
  flex: 1; min-width: 180px; padding: 12px 14px; border-radius: var(--ht-radius-sm);
  border: 1px solid var(--ht-brown-700); background: var(--ht-brown-700); color: #fff;
}
.ht-newsletter input::placeholder { color: var(--ht-sand); }
.ht-social { display: flex; gap: 12px; margin-top: 14px; }
.ht-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ht-brown-700); }
.ht-social a:hover { background: var(--ht-orange); }
.ht-social svg { width: 18px; height: 18px; }
.ht-footer__bottom { border-top: 1px solid var(--ht-brown-700); padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .ht-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Utilities */
.ht-lead { font-size: 1.15rem; color: var(--ht-brown-700); max-width: 60ch; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =========================================================
   11. Leaflet-Karte (Marker & Popups)
   ========================================================= */
#wuff-map.leaflet-container,
.ht-minimap.leaflet-container { background: var(--ht-sand-light); }
.ht-divicon { background: none; border: 0; }
.ht-marker {
  width: 34px; height: 34px; line-height: 30px; text-align: center;
  font-size: 17px; background: #fff; border: 3px solid var(--ht-moss);
  border-radius: 50%; box-shadow: 0 2px 6px rgba(46,38,32,.35);
}
.leaflet-popup-content { margin: 12px 14px; }
.ht-popup { font-family: var(--ht-font-body); min-width: 150px; line-height: 1.5; }
.ht-popup strong { font-family: var(--ht-font-head); font-size: 1rem; color: var(--ht-brown-900); }
.ht-popup-rating { color: var(--ht-orange); letter-spacing: 1px; }
.ht-popup-premium {
  display: inline-block; background: var(--ht-orange); color: #fff;
  font-size: .68rem; font-weight: 700; font-family: var(--ht-font-head);
  padding: 2px 8px; border-radius: 999px;
}
.ht-popup-warn { color: var(--ht-warn); }
.ht-popup-dist { color: var(--ht-moss-dark); font-weight: 600; }
.ht-popup-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.ht-popup-badges .ht-badge { font-size: .68rem; padding: 2px 7px; }
.ht-popup a { display: inline-block; margin-top: 4px; font-weight: 600; }

/* "Orte in meiner Nähe" */
.ht-map-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; }
.ht-map-actions .ht-btn { padding: 10px 18px; }
.ht-map-actions .ht-btn[disabled] { opacity: .6; cursor: progress; }
#ht-locate-msg { font-size: .92rem; }

.ht-search-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ht-search-wrap { position: relative; }
.ht-search-form input[type=text] {
  padding: 10px 14px; border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm);
  font: inherit; min-width: 170px; background: #fff;
}
.ht-search-form select {
  padding: 10px 12px; border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm);
  font: inherit; background: #fff; color: var(--ht-brown-700);
}
.ht-search-form input[type=text]:focus,
.ht-search-form select:focus { outline: 2px solid var(--ht-orange); border-color: var(--ht-orange); }
.ht-search-form .ht-btn[disabled] { opacity: .6; cursor: progress; }
#ht-search-reset[hidden] { display: none; }

/* Nachladbare Kachelliste */
.ht-card-grid-section { margin-top: 40px; }
#ht-card-more[hidden], #ht-card-loading[hidden], #ht-card-empty[hidden] { display: none; }
#ht-card-loading, #ht-card-empty { padding: 20px 0; }

/* Ergebnis-Zähler-Leiste: verbindet Karte und Kachelliste visuell */
.ht-results-bar {
  margin: 0 0 18px; padding: 10px 16px;
  background: var(--ht-sand-light); border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm);
  font-family: var(--ht-font-head); font-weight: 600; font-size: .92rem; color: var(--ht-brown-700);
  text-align: center;
}

/* Listen-Hinweis an der Karte: erscheint erst bei Interaktion (Kategorie/Umkreissuche),
   dockt beim Scrollen knapp unter den Header und blendet weich aus, sobald die
   Kachelliste näher rückt (Opacity wird von main.js scroll-linked gesetzt). */
.ht-map-wrap { position: relative; }
.ht-list-pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  position: absolute; top: -9px; right: 0; z-index: 1200;
  background: var(--ht-white); border: 1px solid var(--ht-sand); border-radius: 999px;
  padding: 8px 16px; font-family: var(--ht-font-head); font-weight: 600; font-size: .85rem;
  color: var(--ht-moss-dark); text-decoration: none; box-shadow: var(--ht-shadow-sm);
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.ht-list-pill:hover { color: var(--ht-orange); border-color: var(--ht-orange-soft); }
.ht-list-pill.is-shown { pointer-events: auto; }
.ht-list-pill .n { background: var(--ht-orange-soft); color: var(--ht-orange-dark); border-radius: 100px; padding: 1px 8px; font-size: .78rem; }
.ht-list-pill__short { display: none; }
.ht-list-pill.is-docked {
  position: fixed; top: 44px; right: 20px;
  padding: 4px 11px; font-size: .74rem; box-shadow: none;
  background: var(--ht-sand-light);
}
.ht-list-pill.is-docked .n { padding: 1px 6px; font-size: .7rem; }
.ht-list-pill.is-docked .ht-list-pill__full { display: none; }
.ht-list-pill.is-docked .ht-list-pill__short { display: inline; }
@media (max-width: 760px) { .ht-list-pill { display: none; } }

/* Mobiler "Liste anzeigen"-Button: schwebt über der Karte, klassisches Map/List-Toggle-Muster */
.ht-mobile-list-btn {
  display: none;
  position: fixed; left: 50%; bottom: 22px; z-index: 600;
  transform: translateX(-50%);
  background: var(--ht-brown-900); color: #fff; border: none; border-radius: 999px;
  padding: 12px 22px; font-family: var(--ht-font-head); font-weight: 700; font-size: .92rem;
  box-shadow: 0 8px 20px rgba(46, 38, 32, .28);
  transition: opacity .25s ease, transform .25s ease;
}
.ht-mobile-list-btn[hidden] { display: none; }
.ht-mobile-list-btn.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); }
@media (max-width: 760px) {
  .ht-mobile-list-btn:not([hidden]) { display: block; }
}

/* Autovervollständigung */
.ht-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 500;
  background: #fff; border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm);
  box-shadow: var(--ht-shadow); list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow-y: auto;
}
.ht-suggestions li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: .92rem; }
.ht-suggestions li:hover, .ht-suggestions li.is-active { background: var(--ht-orange-soft); }

/* Kompakte Karte auf "Orte entdecken" */
body.ht-page-orte #wuff-map { height: clamp(340px, 50vh, 520px); }
body.ht-page-orte .ht-map-collapse { margin-bottom: 40px; }

/* "Du bist hier"-Punkt */
.ht-you {
  width: 16px; height: 16px; border-radius: 50%;
  background: #2b7fff; border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(43,127,255,.30);
}

/* Marker-Cluster im Brand-Look. !important nötig, da Leaflets eigenes
   MarkerCluster.Default.css bei gleicher Selektor-Spezifität NACH unserem
   Stylesheet geladen wird und die Kaskade sonst gewinnt. */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(232,115,42,.25) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: var(--ht-orange) !important; color: #fff !important;
  font-family: var(--ht-font-head); font-weight: 700;
}

/* =========================================================
   12. Anbieter-Kontaktformular
   ========================================================= */
.ht-form { display: grid; gap: 14px; text-align: left; max-width: 560px; margin: 0 auto; }
.ht-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ht-form label { display: block; font-family: var(--ht-font-head); font-weight: 500; margin-bottom: 4px; }
.ht-form input, .ht-form select, .ht-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--ht-sand);
  border-radius: var(--ht-radius-sm); font: inherit; background: #fff;
}
.ht-form input:focus, .ht-form select:focus, .ht-form textarea:focus {
  outline: 2px solid var(--ht-orange); border-color: var(--ht-orange);
}
.ht-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ht-alert { padding: 14px 18px; border-radius: var(--ht-radius-sm); margin: 0 auto 20px; max-width: 560px; }
.ht-alert--ok { background: #E7F4E8; border: 1px solid #BBD9BD; color: var(--ht-ok); }
.ht-alert--err { background: #FBEAE8; border: 1px solid #F2C9C4; color: var(--ht-warn); }
@media (max-width: 560px) { .ht-form .row2 { grid-template-columns: 1fr; } }

/* =========================================================
   13. Community: Konten, Bewertung, Warnungen
   ========================================================= */
.ht-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .ht-account-grid { grid-template-columns: 1fr; } }

.ht-community-box {
  background: var(--ht-white); border: 1px solid var(--ht-sand);
  border-radius: var(--ht-radius); padding: 24px; margin-top: 24px; box-shadow: var(--ht-shadow-sm);
}
.ht-community-box h2 { margin-top: 0; }
.ht-warnlist { display: grid; gap: 10px; margin-bottom: 8px; }
.ht-vet-badge {
  display: inline-block; margin-left: 8px; font-size: .75rem; font-weight: 700;
  color: var(--ht-ok); background: #E7F4E8; border: 1px solid #BBD9BD;
  padding: 2px 8px; border-radius: 999px;
}

/* Sterne-Bewertung (CSS-only, row-reverse-Technik) */
.ht-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; margin: 4px 0 12px; }
.ht-stars input { display: none; }
.ht-stars label {
  font-size: 2rem; line-height: 1; color: var(--ht-sand); cursor: pointer; padding: 0 3px;
  transition: color .12s ease;
}
.ht-stars label:hover,
.ht-stars label:hover ~ label,
.ht-stars input:checked ~ label { color: var(--ht-orange); }

/* Statische Seiten (Impressum, Datenschutz, ...) */
.ht-page { max-width: 760px; margin: 0 auto; }
.ht-page > h1 { margin-bottom: 24px; }
.ht-prose { color: var(--ht-brown-700); line-height: 1.7; }
.ht-prose h2 { margin: 32px 0 12px; font-size: 1.3rem; }
.ht-prose h2:first-child { margin-top: 0; }
.ht-prose p { margin: 0 0 16px; }
.ht-prose ul, .ht-prose ol { margin: 0 0 16px; padding-left: 24px; }
.ht-prose a { color: var(--ht-orange); text-decoration: underline; }

/* ==========================================================================
   Forum (bbPress) – an Kartendesign angeglichen
   ========================================================================== */
.bbpress #ht-content { background: var(--ht-cream, #FAF6F0); }
.bbpress .ht-container { max-width: var(--ht-maxw); }

.bbp-breadcrumb { display: block; margin: 0 0 20px; color: var(--ht-brown-500); font-size: .9rem; }
.bbp-breadcrumb a { color: var(--ht-orange); }

/* Foren-/Themenliste als Karten statt Tabelle */
ul.bbp-forums, ul.bbp-topics, ul.bbp-replies {
  list-style: none; margin: 0 0 24px; padding: 0;
  background: #fff; border-radius: var(--ht-radius); box-shadow: var(--ht-shadow-sm); overflow: hidden;
}
.bbp-forums-list, .bbp-topics-front, .bbp-replies-front,
.bbp-body, .bbp-forum-header, .bbp-topic-header, .bbp-reply-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--ht-sand);
}
.bbp-forums-list:last-child, .bbp-body > div:last-child { border-bottom: none; }
.bbp-forum-content, .bbp-topic-content { flex: 1 1 320px; min-width: 0; }
.bbp-forum-title, .bbp-topic-title, .bbp-reply-title {
  font-family: var(--ht-font-head, inherit); font-weight: 700; color: var(--ht-brown-900); font-size: 1.05rem;
}
.bbp-forum-title a, .bbp-topic-permalink { color: var(--ht-orange); }
.bbp-topic-content p, .bbp-forum-content p { color: var(--ht-brown-500); margin: 4px 0 0; font-size: .92rem; }
.bbp-forum-freshness, .bbp-topic-freshness, .bbp-forum-topic-count, .bbp-forum-reply-count,
.bbp-topic-voice-count, .bbp-topic-reply-count {
  flex: 0 0 auto; font-size: .82rem; color: var(--ht-brown-500);
}

/* Formulare (neues Thema/Antwort) im Site-Stil */
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm); padding: 18px 20px; margin: 0 0 20px; }
#bbpress-forums legend { padding: 0 6px; font-weight: 600; }
#bbpress-forums label { display: block; font-weight: 600; margin: 10px 0 4px; }
#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="password"],
#bbpress-forums textarea,
#bbpress-forums select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff;
}
#bbpress-forums input[type="submit"], #bbpress-forums .button, #bbpress-forums .submit {
  display: inline-block; margin-top: 12px; padding: 10px 22px; border: none; border-radius: 999px;
  background: var(--ht-orange); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none;
}
#bbpress-forums input[type="submit"]:hover, #bbpress-forums .button:hover { opacity: .9; }

/* Suchbox */
#bbp_search_form { display: flex; gap: 8px; margin-bottom: 24px; }
#bbp_search_form input[type="text"] { flex: 1; padding: 10px 12px; border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm); }
#bbp_search_form input[type="submit"] { padding: 10px 18px; border: none; border-radius: 999px; background: var(--ht-orange); color: #fff; font-weight: 600; cursor: pointer; }

/* Korrektur-Hinweis auf Hundeort-Einzelseiten */
.ht-korrektur { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ht-sand); }
.ht-korrektur__disclaimer { font-size: .82rem; margin: 0 0 12px; }
.ht-korrektur summary {
  cursor: pointer; font-size: .92rem; color: var(--ht-brown-500);
  list-style: none;
}
.ht-korrektur summary::-webkit-details-marker { display: none; }
.ht-korrektur summary::before { content: "✎ "; }
.ht-korrektur summary:hover { color: var(--ht-orange); }

/* Hundeleben (Hundesteuer/Regeln je Stadt + Umzugsvergleich) */
.ht-hl-zugaenge { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .ht-hl-zugaenge { grid-template-columns: 1fr; } }
.ht-hl-zugang { padding: 26px; }
.ht-hl-ortliste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ht-hl-ortliste a {
  display: block; padding: 10px 14px; border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm);
  color: var(--ht-brown-900); text-decoration: none; transition: border-color .15s, background .15s;
}
.ht-hl-ortliste a:hover { border-color: var(--ht-orange); background: var(--ht-sand-light); }

.ht-hl-block { background: var(--ht-white); border: 1px solid var(--ht-sand); border-radius: var(--ht-radius); padding: 22px 26px; box-shadow: var(--ht-shadow-sm); margin-bottom: 20px; }
.ht-hl-block h2 { margin-top: 0; font-size: 1.15rem; }
.ht-hl-block ul { margin: 8px 0 0; padding-left: 20px; }
.ht-hl-block li { margin-bottom: 4px; }

.ht-hl-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.ht-hl-table td, .ht-hl-table th { padding: 8px 10px; border-bottom: 1px solid var(--ht-sand); text-align: left; }
.ht-hl-table td:not(:first-child), .ht-hl-table th:not(:first-child) { text-align: right; }
.ht-hl-table--diff th { font-family: var(--ht-font-head); font-weight: 600; color: var(--ht-brown-500); font-size: .85rem; }
.ht-hl-diff--besser { color: var(--ht-ok); font-weight: 600; }
.ht-hl-diff--schlechter { color: var(--ht-warn); font-weight: 600; }

.ht-hl-top-orte { margin-top: 12px; }
.ht-hl-weitere-orte { margin: 14px 0 0; font-family: var(--ht-font-head); font-weight: 500; }
.ht-korrektur[open] summary { margin-bottom: 14px; color: var(--ht-brown-900); }

/* Hundeleben (Hundesteuer/Regeln je Stadt + Umzugsvergleich) */
.ht-hl-zugaenge { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .ht-hl-zugaenge { grid-template-columns: 1fr; } }
.ht-hl-zugang { padding: 26px; }
.ht-hl-ortliste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ht-hl-ortliste a {
  display: block; padding: 10px 14px; border: 1px solid var(--ht-sand); border-radius: var(--ht-radius-sm);
  color: var(--ht-brown-900); text-decoration: none; transition: border-color .15s, background .15s;
}
.ht-hl-ortliste a:hover { border-color: var(--ht-orange); background: var(--ht-sand-light); }

.ht-hl-block { background: var(--ht-white); border: 1px solid var(--ht-sand); border-radius: var(--ht-radius); padding: 22px 26px; box-shadow: var(--ht-shadow-sm); margin-bottom: 20px; }
.ht-hl-block h2 { margin-top: 0; font-size: 1.15rem; }
.ht-hl-block ul { margin: 8px 0 0; padding-left: 20px; }
.ht-hl-block li { margin-bottom: 4px; }

.ht-hl-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.ht-hl-table td, .ht-hl-table th { padding: 8px 10px; border-bottom: 1px solid var(--ht-sand); text-align: left; }
.ht-hl-table td:not(:first-child), .ht-hl-table th:not(:first-child) { text-align: right; }
.ht-hl-table--diff th { font-family: var(--ht-font-head); font-weight: 600; color: var(--ht-brown-500); font-size: .85rem; }
.ht-hl-diff--besser { color: var(--ht-ok); font-weight: 600; }
.ht-hl-diff--schlechter { color: var(--ht-warn); font-weight: 600; }

.ht-hl-top-orte { margin-top: 12px; }
.ht-hl-weitere-orte { margin: 14px 0 0; font-family: var(--ht-font-head); font-weight: 500; }

/* Passwort-Sichtbarkeits-Toggle (Augensymbol im Feld) */
.ht-pass-wrap { position: relative; display: block; }
.ht-pass-wrap input { width: 100%; padding-right: 44px; }
.ht-pass-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; padding: 0; cursor: pointer;
  background-color: transparent; background-repeat: no-repeat; background-position: center;
  background-size: 20px 20px; border-radius: var(--ht-radius-sm); opacity: .55;
  /* Auge (offen) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2620' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.ht-pass-toggle:hover, .ht-pass-toggle:focus-visible { opacity: 1; outline: 2px solid var(--ht-orange); outline-offset: 1px; }
.ht-pass-toggle[aria-pressed="true"] {
  /* Auge (durchgestrichen) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2620' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 19c-6.5 0-10-7-10-7a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c6.5 0 10 7 10 7a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3C/svg%3E");
}

/* --- Ortsbild + Pflicht-Attribution (CC BY / CC BY-SA) ------------------- */
.ht-bildbox { margin: 0 0 20px; }
.ht-bild-credit {
	margin: 6px 2px 0;
	font-size: .78rem;
	line-height: 1.4;
	color: var(--ht-muted, #8a7d75);
}
.ht-bild-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ht-bild-credit a:hover { color: var(--ht-orange, #E8732A); }
