/*
 * Custom Design: Kleintierzuchtverein Musterstadt
 * Author: Rahmengeben
 * Description: Farblich angepasstes Child Theme für einen Kleintierzuchtverein.
 */


@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Vollkorn:ital,wght@0,400..900;1,400..900&display=swap');

/* Grundlayout */
body {
  background-color: #a5b68d;
  color: #222;
    font-family: "Nunito", sans-serif;
  line-height: 1.7;
  overflow-x:hidden;
}

h1,h2,h3,h4,h5{
      font-family: "Vollkorn", serif;
      color:#4a722d;
}

h2{
  font-size:2rem;
}

/* Header */
.site-header{
  border:0;
}
.site-main .page{
  padding:1.2rem 25px 2rem 25px;
  color:black;
}

.site-header .header-inner{
  color:black;
  padding: 0.8rem 50px;

}

.wp-singular:not(.home) .site-header .header-inner{

  background-image:url("../images/bg.png");
  background-size: cover;
}

.site-branding img {
  max-height: 60px;
}

.site-title, .site-description {
 color:white;
 font-family: "Vollkorn", serif;
 font-weight: 500;
 font-size:1.5em;
}

.site-title:hover{
  color:white;
  text-decoration: none;
}

/* Navigation */
.main-nav .menu a {
  color: white;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.main-nav .menu a:hover {
  color: #fff;
  border-radius: 6px;
}

.burger span {
  background: #ffffff;
}

/* Mobile Menü */
.mobile-menu {
  background: #fff;
  border-bottom: 2px solid #4a7c59;
}

.mobile-menu-list li a {
  color: #4a7c59;
  font-weight: 600;
}

.mobile-menu-list li a:hover {
  background: #e6f0eb;
}

main{
  background-color:#f5f4ec ;
}

/* Buttons & Links */
button, .wp-block-button__link, input[type="submit"] {
  background: #4a7c59;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
  background: #3d6549;
}

a {
  color: #4a7c59;
  text-decoration: none;
}
a:hover {
  color: #3d6549;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top:0;
  border:0;
  background: #a5b68d;
}

.site-footer .footer-inner{

  padding: 2rem 50px;
  color: #fff;
  background: #4a7c59;
}

.credit-badge {
      position: absolute;
        bottom: 15px;
    right: 5px;
    z-index: 9999;
    font-family: sans-serif;
}

.credit-icon {
  background: #4a6042; /* dein Footer-Grün z. B. */
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credit-icon:hover {
  background: #6f8868;
}

.credit-popup {
  position: absolute;
  bottom: 40px;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  width: max-content;
  max-width: 260px;
  display: none;
}

.credit-popup a {
  color: #4a6042;
  text-decoration: none;
  font-weight: 600;
}

.credit-badge:hover .credit-popup {
  display: block;
}


.footer-menu a, .footer-info a {
  color: #fff;
  font-weight: 600;
}

.footer-menu a:hover , .footer-info a:hover{
  text-decoration: underline;
  color:white;
}

.firmadata-box {
  color: #fff;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Content */
.entry-title {
  color: #4a7c59;
  margin-bottom: 0.5rem;
}

.entry-content img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 1rem 0;
}

/* Utility */
hr {
  border: 0;
  height: 1px;
  background: white;
  margin: 2rem 0;
}

.wp-block-separator{
  border: 0;
  height: 1px;
  background: #a5b68d;
  margin: 2rem 0;
}

/* === Intro Section === */
.intro {
  background-color: #f5f4ec; /* weicher, warmer Hintergrund */
  color: #333;
}

.container{
  width:100%;
}

.intro .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

.intro__content {
  flex: 1;
}

.intro__content h2 {
  font-family: 'Vollkorn', serif;
  font-size: 2rem;
  color: #4a722d;
  margin-bottom: 1.5rem;
}

.intro__content p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

.intro__image {
  flex: 1;
  text-align: right;
  position: relative;
}



.intro__image img:not(.logo) {
  width: 90%;
  max-width: 500px;
   border-radius: 1rem;
  filter: saturate(0.9) contrast(1.05) brightness(0.97);
  position: relative;
   box-shadow: 0 6px 20px rgba(121, 140, 100, 0.15);
  border: 3px solid #f8f9f5; /* feiner Rahmen im Hintergrundton */
}

.intro__image img.logo{
  position: absolute;
  height:140px;
  width:auto;
  bottom:-40px;
  left:-10px;
  z-index:100;
}

/* === Responsive Design === */
@media (max-width: 900px) {
  .intro .container {
    flex-direction: column;
    text-align: center;
  }

  .intro__image {
    text-align: center;
  }

  .intro__image img {
    max-width: 90%;
    margin-top: 2rem;
  }
}


/* === Call-to-Action Block (fließender Stil) === */
.rg-cta {
  padding:  2rem;
}

.rg-cta__wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  padding:0 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.rg-cta__text h2 {
  font-family: 'Vollkorn', serif;
  color: #2d3a26;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.rg-cta__text p {
  color: #3f4a35;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.rg-cta__button {
  display: inline-block;
  background: #d46a4e;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.rg-cta__button:hover {
  background: #e98b3a;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}



/* === Bildseite === */
.rg-cta__image{
  position: relative;
}
.rg-cta__image img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(121, 140, 100, 0.15);
  border: 3px solid #f8f9f5; /* feiner Rahmen im Hintergrundton */
}

/* === Responsive Anpassung === */
@media (max-width: 900px) {
  .rg-cta__wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rg-cta__text {
    order: 2;
  }

  .rg-cta__image {
    order: 1;
  }

  .rg-cta__text h2 {
    font-size: 1.6rem;
  }

  .rg-cta__text p {
    font-size: 1rem;
  }

  .rg-cta__button {
    margin-top: 1rem;
  }
}



/* === News Section === */
.rg-news {
  background: #f9f9f7;
  padding: 5rem 2rem;
  margin: 6rem 0;
}

.rg-news__title {
  text-align: center;
  color: #2d3a26;
  font-family: 'Vollkorn', serif;
  font-size: 1.9rem;
  margin-bottom: 3rem;
}

.rg-news__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.rg-news__item {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(121, 140, 100, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rg-news__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(121, 140, 100, 0.15);
}

.rg-news__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.rg-news__content {
  padding: 1.5rem;
}

.rg-news__content h3 {
  font-size: 1.2rem;
  color: #2d3a26;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.rg-news__content p {
  color: #3f4a35;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.rg-news__link {
  color: #4a7c59;
  font-weight: 600;
  text-decoration: none;
}

.rg-news__link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .rg-news {
    padding: 3rem 1.5rem;
  }
}


.rg-update {
  background: #e4ecdf; /* gleiche Farbe wie deine Inhaltssektionen */
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 10px solid #d46a4e;
  position: relative;
  top:100px;
}

.rg-update__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rg-update__icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.rg-update p {
  margin: 0;
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}
