﻿/* Hunde-Traumwelt Design Patch v1
   Lokale Plus Jakarta Sans Einbindung + leichte Typografie-Veredelung.
   Wichtig: Diese Datei wird bewusst als globale Zusatz-CSS geladen,
   damit bestehende Seiten nicht komplett neu gebaut werden müssen.
*/

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans/plus-jakarta-sans-01-LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans/plus-jakarta-sans-01-LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans/plus-jakarta-sans-01-LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans/plus-jakarta-sans-01-LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yw.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --htw-font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --htw-green-dark: #163f32;
  --htw-green: #225a45;
  --htw-green-soft: #eef7f1;
  --htw-orange: #f59e0b;
  --htw-orange-dark: #d97706;
  --htw-text: #18241f;
  --htw-muted: #5f6f68;
  --htw-card-border: rgba(22, 63, 50, 0.12);
  --htw-shadow-soft: 0 18px 45px rgba(22, 63, 50, 0.10);
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--htw-font-main) !important;
  color: var(--htw-text);
  letter-spacing: -0.006em;
}

button,
input,
textarea,
select {
  font-family: var(--htw-font-main) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.page-title,
.article-title {
  font-family: var(--htw-font-main) !important;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1,
.hero-title,
.article-title {
  line-height: 1.04;
}

h2,
.section-title {
  line-height: 1.12;
}

p,
li {
  line-height: 1.72;
}

a {
  text-underline-offset: 0.18em;
}

.nav a,
.site-nav a,
.main-nav a,
header a {
  font-weight: 650;
  letter-spacing: -0.012em;
}

.card,
.post-card,
.choice-card,
.topic-card,
.article-card,
.info-card,
.goodie-box,
.faq-item,
details {
  border-color: var(--htw-card-border);
}

.card:hover,
.post-card:hover,
.choice-card:hover,
.topic-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--htw-shadow-soft);
}

.btn,
.button,
.cta,
.cta-button,
.primary-button,
.secondary-button,
a[class*='button'],
a[class*='btn'] {
  font-family: var(--htw-font-main) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.secondary-button,
.btn-secondary,
a.secondary-button {
  color: #ffffff !important;
  background: rgba(22, 63, 50, 0.90) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
}

.secondary-button:hover,
.btn-secondary:hover,
a.secondary-button:hover {
  background: rgba(22, 63, 50, 1) !important;
}

.post-card a:not(.button):not(.btn)::after,
.choice-card a:not(.button):not(.btn)::after,
.topic-card a:not(.button):not(.btn)::after,
.article-card a:not(.button):not(.btn)::after {
  content: ' →';
  font-weight: 800;
}

small,
.meta,
.post-meta,
.article-meta,
.muted {
  color: var(--htw-muted);
  letter-spacing: -0.004em;
}

@media (max-width: 760px) {
  h1,
  .hero-title,
  .article-title {
    letter-spacing: -0.022em;
  }

  p,
  li {
    line-height: 1.66;
  }
}

/* Homepage: Aktuelle Ratgeber v1
   1 grosser neuester Artikel + 2 kleinere ältere Artikel.
*/

.latest-guides-section {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(135deg, #0f7668 0%, #0b6f61 52%, #0a5f54 100%);
  color: #ffffff;
  padding: clamp(4rem, 7vw, 6.5rem) 1.25rem;
}

.latest-guides-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.latest-guides-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.latest-guides-kicker,
.latest-post-label {
  margin: 0 0 0.75rem;
  color: #ff7a1a;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latest-guides-head h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.04;
}

.latest-guides-head p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}

.latest-posts-side {
  display: grid;
  gap: 1.25rem;
}

.latest-post-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: #12372d;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.45rem;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.latest-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.latest-post-card-featured {
  min-height: 360px;
  padding: clamp(1.55rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.latest-post-card-compact {
  min-height: 170px;
  padding: 1.35rem 1.45rem;
}

.latest-post-meta {
  margin: 0 0 0.55rem;
  color: #65756f;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
}

.latest-post-card h3 {
  margin: 0 0 0.85rem;
  color: #063f34;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.latest-post-card-compact h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
}

.latest-post-card p:not(.latest-post-meta) {
  margin: 0 0 1.25rem;
  color: #4d625b;
  line-height: 1.68;
}

.latest-post-card-featured p:not(.latest-post-meta) {
  max-width: 620px;
  font-size: 1.02rem;
}

.latest-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: #035a49;
  font-weight: 850;
  text-decoration: none;
}

.latest-post-link:hover {
  color: #d97706;
}

.latest-posts-more {
  margin-top: 1.35rem;
}

.latest-posts-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  text-decoration: none;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.latest-posts-more a:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 860px) {
  .latest-posts-grid {
    grid-template-columns: 1fr;
  }

  .latest-post-card-featured {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .latest-guides-section {
    padding-inline: 1rem;
  }

  .latest-post-card-featured,
  .latest-post-card-compact {
    padding: 1.25rem;
    border-radius: 1.15rem;
  }
}

/* Homepage Latest Posts Feinschliff v1.1
   Ziel: Featured-Card weniger leer, bessere Portal-Proportionen.
*/

.latest-guides-section {
  padding-top: clamp(3.3rem, 5.5vw, 5.2rem);
  padding-bottom: clamp(3.6rem, 5.8vw, 5.8rem);
}

.latest-guides-head {
  margin-bottom: 1.75rem;
}

.latest-guides-head h2 {
  font-size: clamp(2rem, 3.55vw, 3rem);
}

.latest-posts-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 1.1rem;
  max-width: 1010px;
}

.latest-posts-side {
  gap: 1.1rem;
}

.latest-post-card {
  border-radius: 1.35rem;
}

.latest-post-card-featured {
  min-height: 300px;
  padding: clamp(1.45rem, 2.45vw, 2rem);
  background:
    radial-gradient(circle at right bottom, rgba(245, 158, 11, 0.10), transparent 34%),
    #ffffff;
}

.latest-post-card-featured::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  pointer-events: none;
}

.latest-post-card-compact {
  min-height: 150px;
  padding: 1.25rem 1.35rem;
}

.latest-post-label {
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
}

.latest-post-meta {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.latest-post-card h3 {
  margin-bottom: 0.75rem;
  max-width: 94%;
}

.latest-post-card-featured h3 {
  font-size: clamp(1.42rem, 2.1vw, 1.95rem);
}

.latest-post-card-compact h3 {
  font-size: clamp(1.05rem, 1.42vw, 1.28rem);
}

.latest-post-card p:not(.latest-post-meta) {
  margin-bottom: 1rem;
  line-height: 1.62;
}

.latest-post-card-featured p:not(.latest-post-meta) {
  max-width: 560px;
}

.latest-post-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 0.35rem 0;
}

.latest-posts-more {
  max-width: 1010px;
  margin-top: 1.15rem;
}

.latest-posts-more a {
  min-height: 42px;
  padding: 0.7rem 1rem;
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .latest-posts-grid {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .latest-post-card-featured {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .latest-guides-head {
    margin-bottom: 1.25rem;
  }

  .latest-post-card-featured,
  .latest-post-card-compact {
    min-height: auto;
  }
}

/* Homepage Latest Posts Feinschliff v1.2
   Featured-Card bekommt mehr Nutzwert und weniger Leerfläche.
*/

.latest-post-card-featured {
  justify-content: flex-start;
}

.latest-post-card-featured .latest-post-link {
  margin-top: 1rem;
}

.latest-feature-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.latest-feature-points li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 0.95rem;
  background: rgba(15, 118, 104, 0.055);
  border: 1px solid rgba(15, 118, 104, 0.09);
  line-height: 1.45;
}

.latest-feature-points strong {
  color: #035a49;
  font-size: 0.84rem;
  font-weight: 850;
}

.latest-feature-points span {
  color: #4d625b;
  font-size: 0.9rem;
}

.latest-post-card-featured h3 {
  max-width: 520px;
}

.latest-post-card-featured p:not(.latest-post-meta) {
  max-width: 560px;
}

@media (max-width: 560px) {
  .latest-feature-points li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Branding Patch v1 Hunde-Traumwelt
   Ziel: längerer Markenname im Header bleibt sauber und bricht nicht unschön.
*/

header .brand,
header .site-brand,
header .logo,
header .logo-text,
header .brand-name,
header .site-logo,
.header-brand,
.site-brand,
.brand-name,
.logo-text {
  white-space: nowrap;
  letter-spacing: -0.025em;
}

header a[href="/"],
header a[href="./"],
header a[href="index.html"] {
  white-space: nowrap;
}

@media (max-width: 760px) {
  header .brand,
  header .site-brand,
  header .logo,
  header .logo-text,
  header .brand-name,
  header .site-logo,
  .header-brand,
  .site-brand,
  .brand-name,
  .logo-text {
    font-size: clamp(1.02rem, 4.5vw, 1.35rem);
  }
}

@media (max-width: 430px) {
  header .brand,
  header .site-brand,
  header .logo,
  header .logo-text,
  header .brand-name,
  header .site-logo,
  .header-brand,
  .site-brand,
  .brand-name,
  .logo-text {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
