/* =========================================================
   Hunde-Profilseiten (/hunde/<slug>.html)
   Gemeinsame Styles aller Detailseiten — Präfix dp-.
   Wird zusätzlich zu main.css eingebunden; nutzt nur Tokens.
   ========================================================= */

/* --- Breadcrumb --- */
.dp-breadcrumb { border-bottom: 1px solid var(--color-light-grey); background: var(--color-warm-white); }
.dp-breadcrumb ol {
  list-style: none; margin: 0; padding: 14px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
}
.dp-breadcrumb a { color: var(--color-warm-dark); text-decoration: none; }
.dp-breadcrumb a:hover { color: var(--color-deep-green); }
.dp-breadcrumb .sep { color: var(--color-gray); }
.dp-breadcrumb [aria-current] { color: var(--color-deep-green); font-weight: 600; }

/* --- Profile hero --- */
.dp-hero {
  background: linear-gradient(180deg, var(--color-soft-green) 0%, var(--color-warm-white) 100%);
  padding: 24px 0 32px;
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  display: flex; align-items: center;
}
.dp-hero > .container { width: 100%; }
.dp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 900px) {
  .dp-hero { min-height: 0; padding: 18px 0 8px; display: block; }
  .dp-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Galerie: großes Foto + Vorschaubilder --- */
.dp-gallery { width: -moz-fit-content; width: fit-content; max-width: 100%; margin-inline: auto; }
.dp-stage {
  position: relative;
  height: clamp(340px, calc(100vh - 290px), 640px);
  height: clamp(340px, calc(100svh - 290px), 640px);
  aspect-ratio: 4 / 5; max-width: 100%;
}
.dp-photo {
  display: block; width: 100%; height: 100%; object-fit: cover;
  background: var(--color-soft-green);
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,71,55,.18);
}
.dp-photo-tag {
  position: absolute; left: -12px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-white); color: var(--color-deep-green);
  border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: 13px; font-weight: 600; box-shadow: 0 14px 32px rgba(0,71,55,.16);
}
.dp-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.dp-thumb {
  width: 56px; aspect-ratio: 4 / 5; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: var(--color-soft-green); opacity: .72;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}
.dp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dp-thumb:hover { opacity: 1; transform: translateY(-2px); }
.dp-thumb.is-active { opacity: 1; border-color: var(--color-deep-green); }
.dp-thumb:focus-visible { outline: 2px solid var(--color-deep-green); outline-offset: 2px; }
@media (max-width: 900px) {
  .dp-gallery { width: 100%; max-width: 460px; }
  .dp-stage { height: auto; width: 100%; }
  .dp-photo-tag { left: 12px; }
}

/* --- Identity panel --- */
.dp-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-warm-dark); text-decoration: none; font-size: 14px; font-weight: 600;
  margin-bottom: 14px;
}
.dp-back:hover { color: var(--color-deep-green); }

.dp-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.dp-badge--searching { background: var(--color-lime); color: var(--color-deep-green); }
.dp-badge--available { background: var(--color-deep-green); color: var(--color-lime); }
.dp-badge--note { background: var(--color-white); color: var(--color-warm-dark); border: 1px solid var(--color-light-grey); }

.dp-id h1 { font-size: 52px; line-height: 1.02; margin: 14px 0 8px; }
@media (max-width: 600px) { .dp-id h1 { font-size: 40px; } }
.dp-sub { color: var(--color-warm-dark); font-size: 14.5px; font-weight: 600; margin: 0 0 14px; }
.dp-lead { color: var(--color-warm-dark); font-size: 17.5px; line-height: 1.6; font-weight: 500; margin: 0 0 22px; max-width: 520px; }

/* Quick facts */
.dp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 600px) { .dp-facts { grid-template-columns: repeat(2, 1fr); } }
.dp-fact {
  background: var(--color-white); border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-card-sm); padding: 12px 14px;
}
.dp-fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-gray); font-weight: 700; }
.dp-fact .v { font-family: var(--font-display); color: var(--color-deep-green); font-size: 16.5px; line-height: 1.2; font-weight: 700; margin-top: 4px; }
.dp-fact .v.muted { color: var(--color-gray); font-weight: 600; }

/* Merkmale */
.dp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dp-tag { background: var(--color-soft-green); color: var(--color-deep-green); border-radius: var(--radius-pill); padding: 6px 13px; font-size: 13px; font-weight: 600; }

/* Actions */
.dp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.dp-reassure { display: flex; align-items: flex-start; gap: 8px; color: var(--color-warm-dark); font-size: 13px; line-height: 1.5; margin: 0; }
.dp-reassure svg { flex-shrink: 0; margin-top: 1px; color: var(--color-deep-green); }

/* Flache Screens (Laptops): kompakter, damit Foto + Infos ohne Scrollen passen */
@media (min-width: 901px) and (max-height: 920px) {
  .dp-hero { padding: 16px 0 20px; }
  .dp-back { margin-bottom: 10px; }
  .dp-id h1 { font-size: 42px; margin: 8px 0 6px; }
  .dp-sub { margin-bottom: 10px; }
  .dp-lead { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
  .dp-facts { margin-bottom: 14px; }
  .dp-tags { margin-bottom: 16px; }
  .dp-actions { margin-bottom: 10px; }
}

/* --- Content: Text + sticky Steckbrief --- */
.dp-content-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 52px; align-items: start; }
@media (max-width: 900px) { .dp-content-grid { grid-template-columns: 1fr; gap: 40px; } }

.dp-block + .dp-block { margin-top: var(--space-12); }
.dp-block h2 { color: var(--color-deep-green); font-size: 27px; margin-bottom: 14px; }
.dp-block p { color: var(--color-warm-dark); font-size: 16.5px; line-height: 1.72; margin: 0; }
.dp-block p + p { margin-top: 14px; }

/* Hinweis „Profil im Aufbau" */
.dp-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--color-soft-green); border-radius: var(--radius-card-sm);
  padding: 18px 20px; margin-bottom: var(--space-10);
}
.dp-notice .ic {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: var(--color-deep-green); color: var(--color-lime);
  display: inline-flex; align-items: center; justify-content: center;
}
.dp-notice b { display: block; color: var(--color-deep-green); font-size: 15.5px; margin-bottom: 3px; }
.dp-notice p { color: var(--color-warm-dark); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Wunschliste */
.dp-wish { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 13px; }
.dp-wish li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-warm-dark); font-size: 16px; line-height: 1.55; }
.dp-wish li::before {
  content: ""; width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23C7F08E'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9' fill='none' stroke='%23004737' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Versorgung */
.dp-care { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 520px) { .dp-care { grid-template-columns: 1fr; } }
.dp-care-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--color-warm-white); border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-card-sm); padding: 15px 16px;
}
.dp-care-item .ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  background: var(--color-soft-green); color: var(--color-deep-green);
  display: inline-flex; align-items: center; justify-content: center;
}
.dp-care-item.is-open .ic { background: var(--color-white); color: var(--color-gray); border: 1px dashed var(--color-light-grey); }
.dp-care-item b { display: block; color: var(--color-deep-green); font-size: 15px; margin-bottom: 2px; }
.dp-care-item span { color: var(--color-warm-dark); font-size: 13.5px; line-height: 1.45; }
.dp-block p.dp-care-note { margin-top: 14px; color: var(--color-gray); font-size: 13.5px; line-height: 1.55; }

/* Steckbrief (sticky) */
.dp-steckbrief {
  background: var(--color-white); border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-card); padding: 24px 24px 22px;
  position: sticky; top: 96px;
}
.dp-sb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dp-sb-head h2 { color: var(--color-deep-green); font-size: 21px; margin: 0; }
.dp-sb-list { list-style: none; margin: 10px 0 0; padding: 0; }
.dp-sb-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--color-light-grey); font-size: 14.5px;
}
.dp-sb-list li:last-child { border-bottom: 0; }
.dp-sb-list .k { color: var(--color-warm-dark); }
.dp-sb-list .v { color: var(--color-deep-green); font-weight: 600; text-align: right; }
.dp-sb-list .v.muted { color: var(--color-gray); font-weight: 500; font-style: italic; }
.dp-sb-foot { margin: 12px 0 0; color: var(--color-gray); font-size: 12.5px; line-height: 1.5; }

.dp-sb-cta { margin-top: 18px; padding-top: 20px; border-top: 2px dashed var(--color-light-grey); }
.dp-sb-cta p { font-size: 14.5px; color: var(--color-warm-dark); margin: 0 0 12px; }
.dp-sb-cta .btn { width: 100%; margin-bottom: 10px; }
.dp-sb-link { display: block; text-align: center; color: var(--color-deep-green); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.dp-sb-link:hover { text-decoration: underline; }

/* --- Weitere Hunde: Karten wie auf /hunde.html --- */
.dp-more .hunde-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: var(--space-8); }
@media (max-width: 900px) { .dp-more .hunde-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 560px) { .dp-more .hunde-grid { grid-template-columns: 1fr; gap: 20px; } }

.dp-more .hund-card {
  background: var(--color-white); border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dp-more .hund-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,71,55,.13); }
.dp-more .hund-media { position: relative; overflow: hidden; }
.dp-more .hund-photo {
  aspect-ratio: 4 / 3; background: var(--color-soft-green);
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.dp-more .hund-card:hover .hund-photo { transform: scale(1.05); }
.dp-more .hund-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 12px; border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0,71,55,.12);
  background: var(--color-lime); color: var(--color-deep-green);
}
.dp-more .hund-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.dp-more .hund-info-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dp-more .hund-name { font-family: var(--font-display); color: var(--color-deep-green); font-size: 23px; font-weight: 700; line-height: 1; }
.dp-more .hund-age {
  color: var(--color-warm-dark); font-size: 13px; font-weight: 600;
  background: var(--color-warm-white); border: 1px solid var(--color-light-grey);
  padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap;
}
.dp-more .hund-story { color: var(--color-warm-dark); font-size: 14.5px; line-height: 1.55; flex: 1; margin: 0; }
.dp-more .hund-cta {
  margin-top: 6px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--color-deep-green); color: var(--color-warm-white);
  border-radius: var(--radius-pill); padding: 11px 18px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.dp-more .hund-cta:hover { background: #005a43; transform: translateX(2px); }
.dp-more-foot { margin-top: var(--space-8); text-align: center; }

@media (max-width: 600px) {
  .dp-page h2 { font-size: 28px; line-height: 1.2; }
  .dp-page .dp-block h2, .dp-page .dp-sb-head h2 { font-size: 23px; }
}
