/* Katzenhilfe Neckar-Alb – modernes Grunddesign */

:root {
  --kh-green: #527866;
  --kh-green-dark: #345344;
  --kh-cream: #faf8f3;
  --kh-text: #303a35;
  --kh-radius: 18px;
}

body {
  background: var(--kh-cream);
  color: var(--kh-text);
}

h1, h2, h3, h4 {
  color: var(--kh-green-dark);
}

a {
  transition: color .2s ease;
}

/* Katzenübersichten */

.kh-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 35px 0 55px;
}

.kh-cat-card {
  background: #fff;
  border-radius: var(--kh-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(30, 55, 40, .09);
  transition: transform .25s ease, box-shadow .25s ease;
}

.kh-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(30, 55, 40, .15);
}

.kh-cat-card a {
  display: block;
  color: var(--kh-green-dark);
  text-decoration: none;
}

.kh-cat-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.kh-cat-card h3 {
  padding: 20px 22px 24px;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

/* Mobile Darstellung */

@media (max-width: 980px) {
  .kh-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .kh-cat-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .kh-cat-card h3 {
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-cat-card,
  a {
    transition: none;
  }
}

/* Moderne Startseite */

.kh-home {
  --kh-max: 1160px;
  color: var(--kh-text);
}

.kh-home .kh-hero {
  background: linear-gradient(135deg, #e4eee6 0%, #faf8f3 75%);
  border-radius: 24px;
  padding: clamp(55px, 8vw, 115px) 30px;
}

.kh-hero-inner {
  max-width: var(--kh-max);
  margin: auto;
}

.kh-eyebrow {
  display: block;
  color: var(--kh-green);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.kh-home h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--kh-green-dark);
}

.kh-home h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 28px;
}

.kh-hero-subtitle {
  max-width: 620px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin: 28px 0;
}

.kh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.kh-home .kh-button {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease;
}

.kh-home .kh-button:hover {
  transform: translateY(-2px);
}

.kh-button-primary {
  background: var(--kh-green-dark);
  color: white !important;
}

.kh-button-outline {
  border: 2px solid var(--kh-green);
  color: var(--kh-green-dark) !important;
}

.kh-home-section {
  max-width: var(--kh-max);
  margin: 0 auto;
  padding: 90px 20px;
}

.kh-intro {
  text-align: center;
  max-width: 820px;
}

.kh-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.kh-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 35px;
}

.kh-home-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(30, 55, 40, .1);
}

.kh-home-card a {
  text-decoration: none;
  color: var(--kh-text);
}

.kh-home-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.kh-home-card-content {
  padding: 24px;
}

.kh-home-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.kh-home-card-content span {
  color: var(--kh-green);
  font-weight: 700;
}

.kh-support {
  background: #e4eee6;
  border-radius: 24px;
  padding: 65px 45px;
}

.kh-notice {
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .kh-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .kh-home-grid {
    grid-template-columns: 1fr;
  }

  .kh-home-section {
    padding: 60px 15px;
  }

  .kh-support {
    padding: 45px 25px;
  }
}

/* Moderne Startseite */

.kh-home {
  --kh-max: 1160px;
  color: var(--kh-text);
}

.kh-home .kh-hero {
  background: linear-gradient(135deg, #e4eee6 0%, #faf8f3 75%);
  border-radius: 24px;
  padding: clamp(55px, 8vw, 115px) 30px;
}

.kh-hero-inner {
  max-width: var(--kh-max);
  margin: auto;
}

.kh-eyebrow {
  display: block;
  color: var(--kh-green);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.kh-home h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--kh-green-dark);
}

.kh-home h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 28px;
}

.kh-hero-subtitle {
  max-width: 620px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin: 28px 0;
}

.kh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.kh-home .kh-button {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease;
}

.kh-home .kh-button:hover {
  transform: translateY(-2px);
}

.kh-button-primary {
  background: var(--kh-green-dark);
  color: white !important;
}

.kh-button-outline {
  border: 2px solid var(--kh-green);
  color: var(--kh-green-dark) !important;
}

.kh-home-section {
  max-width: var(--kh-max);
  margin: 0 auto;
  padding: 90px 20px;
}

.kh-intro {
  text-align: center;
  max-width: 820px;
}

.kh-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.kh-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 35px;
}

.kh-home-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(30, 55, 40, .1);
}

.kh-home-card a {
  text-decoration: none;
  color: var(--kh-text);
}

.kh-home-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.kh-home-card-content {
  padding: 24px;
}

.kh-home-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.kh-home-card-content span {
  color: var(--kh-green);
  font-weight: 700;
}

.kh-support {
  background: #e4eee6;
  border-radius: 24px;
  padding: 65px 45px;
}

.kh-notice {
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .kh-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .kh-home-grid {
    grid-template-columns: 1fr;
  }

  .kh-home-section {
    padding: 60px 15px;
  }

  .kh-support {
    padding: 45px 25px;
  }
}

/* Katzenhilfe – Startseite ohne Divi-Standardseitenleiste */

body.home #sidebar,
body.page-id-112 #sidebar {
  display: none !important;
}

body.home #left-area,
body.page-id-112 #left-area {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
}

body.home #main-content .container,
body.page-id-112 #main-content .container {
  width: 94%;
  max-width: 1400px;
}

body.home #main-content .container::before,
body.page-id-112 #main-content .container::before {
  display: none !important;
}

body.home #left-area > h1.entry-title,
body.page-id-112 #left-area > h1.entry-title,
body.home .entry-title.main_title,
body.page-id-112 .entry-title.main_title {
  display: none !important;
}

body.home .kh-home,
body.page-id-112 .kh-home {
  width: 100%;
}


/* Katzenhilfe – einheitliche Katzenprofile */

body.kh-cat-profile #sidebar {
  display: none !important;
}

body.kh-cat-profile #left-area {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
}

body.kh-cat-profile #main-content .container {
  width: 92%;
  max-width: 1100px;
}

body.kh-cat-profile #main-content .container::before {
  display: none !important;
}

body.kh-cat-profile article.post {
  max-width: 950px;
  margin: 0 auto;
}

body.kh-cat-profile .entry-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.2;
  color: var(--kh-green-dark);
  margin-bottom: 30px;
}

body.kh-cat-profile .et_post_meta_wrapper img {
  border-radius: 20px;
  max-height: 650px;
  width: 100%;
  object-fit: cover;
}

body.kh-cat-profile .entry-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--kh-text);
}

body.kh-cat-profile .entry-content p {
  margin-bottom: 24px;
}

.kh-profile-contact {
  margin: 45px 0;
}

.kh-profile-button {
  display: inline-block;
  background: var(--kh-green-dark);
  color: #fff !important;
  padding: 16px 28px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
}

.kh-profile-button:hover {
  background: var(--kh-green);
}

@media (max-width: 600px) {
  body.kh-cat-profile #main-content .container {
    width: 92%;
  }

  body.kh-cat-profile .entry-content {
    font-size: 1rem;
  }
}

/* Katzenhilfe – Divi-Standardwidgets im Footer ausblenden */

#main-footer #footer-widgets {
  display: none !important;
}

#main-footer .container {
  max-width: 1160px;
}

#footer-bottom {
  background: #345344;
}

#footer-info,
#footer-info a {
  color: #ffffff;
}


/* Katzenhilfe – moderner Vereinsfooter */

.kh-custom-footer {
  background: #345344;
  color: #fff;
  padding: 65px 25px 25px;
}

.kh-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.kh-footer-brand h2 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.kh-footer-brand p {
  color: #e4eee6;
  line-height: 1.7;
}

.kh-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 25px;
  align-content: start;
}

.kh-footer-nav a {
  color: #fff;
  text-decoration: none;
}

.kh-footer-nav a:hover {
  text-decoration: underline;
}

.kh-footer-bottom {
  max-width: 1160px;
  margin: 45px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: .9rem;
  color: #e4eee6;
}

@media (max-width: 700px) {
  .kh-footer-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* Katzenhilfe: Nur den eigenen Vereinsfooter anzeigen */

/* Divi-Standardfooter einschließlich Footer-Menü ausblenden */
#main-footer {
  display: none !important;
}

/* Eigenen Vereinsfooter sichtbar lassen */
.kh-custom-footer {
  display: block;
}


/* Katzenhilfe – finaler dreispaltiger Footer */

.kh-footer-v2 {
  background: #255c46;
  color: #f5f7f2;
  padding: 75px 5% 28px;
}

.kh-footer-v2-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr .7fr;
  gap: 48px;
}

.kh-footer-v2-brand,
.kh-footer-v2-contact {
  padding-right: 38px;
  border-right: 1px solid rgba(255,255,255,.35);
}

.kh-footer-v2-logo {
  display: block;
  width: 100%;
  max-width: 390px;
  max-height: 160px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 32px;
}

.kh-footer-v2 h2,
.kh-footer-v2 h3 {
  color: #fff;
}

.kh-footer-v2 h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 26px;
}

.kh-footer-v2 p {
  color: #f0f4ee;
  line-height: 1.75;
}

.kh-footer-v2-tagline {
  font-size: 1.1rem;
}

.kh-footer-v2 a {
  color: #f5f7f2 !important;
  text-decoration: none;
}

.kh-footer-v2 a:hover,
.kh-footer-v2 a:focus-visible {
  text-decoration: underline;
}

.kh-footer-v2-nav a {
  display: block;
  margin-bottom: 13px;
  line-height: 1.5;
}

.kh-footer-v2-social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.kh-footer-v2-bottom {
  max-width: 1380px;
  margin: 65px auto 0;
  padding: 25px 0 25px;
  border-top: 1px solid rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .9rem;
}

.kh-footer-v2-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

@media (max-width: 980px) {
  .kh-footer-v2-inner {
    grid-template-columns: 1fr 1fr;
  }

  .kh-footer-v2-contact {
    border-right: none;
  }

  .kh-footer-v2-nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .kh-footer-v2 {
    padding: 48px 6% 25px;
  }

  .kh-footer-v2-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .kh-footer-v2-brand,
  .kh-footer-v2-contact {
    border-right: none;
    padding-right: 0;
  }

  .kh-footer-v2-nav {
    grid-column: auto;
  }

  .kh-footer-v2-bottom {
    margin-top: 40px;
    padding-bottom: 65px;
  }
}

/* Katzenhilfe Footer – Feinschliff */

.kh-footer-v2-contact p:has(a[href^="mailto:"])::before {
  content: "✉";
  display: inline-block;
  width: 26px;
  font-size: 19px;
  vertical-align: middle;
}

.kh-footer-v2-contact p:has(a[href^="mailto:"]) a {
  overflow-wrap: anywhere;
}

.kh-footer-v2-bottom {
  padding-left: 55px;
}

.kh-footer-v2-bottom nav a {
  white-space: nowrap;
}

@media (max-width: 650px) {
  .kh-footer-v2-bottom {
    padding-left: 0;
    padding-bottom: 80px;
  }
}

