/* Base styles to prevent horizontal scroll */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Mako", sans-serif;
}

/* Content wrapper for all sections */
.text-carousel,
.contact-section,
.diseases-section,
.description,
.footer-content {
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Header Block Styles */
.site-header {
  padding: 1rem 8rem;
  background-color: #ffffff;
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.logo-large {
  max-height: 100px;
  transform: scale(1.2);
  transform-origin: left center;
}

.site-navigation {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #8ab135;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #6d8a28;
  background-color: rgba(138, 177, 53, 0.1);
}

/* Image Block Styles */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* Hero Image Border Styling */
.hero-image-bordered {
  border: 1px solid #333333;
}

/* Text Carousel Styles */
.text-carousel {
  padding: 1.5rem 0;
  width: 100%;
  position: relative;
}

.text-carousel-container {
  position: relative;
  min-height: 60px;
  width: 100%;
}

.text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
  visibility: hidden;
}

.text-slide.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.text-slide-title {
  font-size: 1.5rem;
  color: #8ab135;
  margin: 0;
  line-height: 1.2;
  font-family: "Manjari", sans-serif;
}

.description {
  border: 2px solid #8ab135;
  color: #8ab135;
  padding: 2.5rem 1rem;
  width: 100%;
  margin: 0;
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.description p {
  font-size: 1.5rem;
  margin: 0;
  padding: 0 1rem;
  max-width: 1000px;
}

/* Contact Section Styles */
.contact-section {
  padding: 3rem 0rem;
  width: 100%;
  text-align: center;
  position: relative;
}

.contact-text-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-paragraph {
  font-size: 1.2rem;
  color: #8ab135;
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
  text-align: center;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 160px;
  justify-content: center;
  white-space: nowrap;
}

.phone-button {
  background-color: white;
  color: #8ab135;
  border: 2px solid #8ab135;
}

.email-button {
  background-color: #8ab135;
  color: white;
  border: 2px solid #8ab135;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.phone-button:hover {
  background-color: #8ab135;
  color: white;
}

.email-button:hover {
  background-color: white;
  color: #8ab135;
}

.button-icon {
  width: 24px;
  height: 24px;
}

/* Contact icon styles */
.contact-icon {
  width: 24px;
  height: 24px;
  filter: invert(65%) sepia(14%) saturate(1333%) hue-rotate(49deg) brightness(93%) contrast(86%);
  transition: filter 0.3s ease;
}

.contact-button:hover .contact-icon {
  filter: brightness(0) invert(1);
}

/* Email button specific styles */
.email-button .contact-icon {
  filter: brightness(0) invert(1);
}

.email-button:hover .contact-icon {
  filter: invert(65%) sepia(14%) saturate(1333%) hue-rotate(49deg) brightness(93%) contrast(86%);
}

/* Diseases Section Styles */
.diseases-section {
  padding: 1rem 0rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diseases-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 80%;
  box-sizing: border-box;
}

.disease-item {
  width: 100%;
}

.disease-button {
  width: 100%;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid #8ab135;
  border-radius: 6px;
  color: #8ab135;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.disease-button:hover {
  background: #8ab135;
  color: white;
}

.disease-button:hover .disease-tree-icon {
  filter: brightness(0) invert(1);
}

.disease-button[aria-expanded="true"] {
  background: #8ab135;
  color: white;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.disease-button[aria-expanded="true"] .expand-icon {
  transform: rotate(180deg);
}

.disease-button[aria-expanded="true"] .disease-tree-icon {
  filter: brightness(0) invert(1);
}

.expand-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.disease-content {
  background: white;
  border: 2px solid #8ab135;
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.disease-content img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

.disease-content-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.disease-content p {
  margin: 0;
  line-height: 1.6;
  color: #666;
  font-size: 1rem;
}

.disease-button[aria-expanded="true"]+.disease-content {
  display: flex;
}

.disease-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Über uns Page Styles */
.ueber-uns-page {
  padding: 2rem 0;
  min-height: 60vh;
}

.profile-section {
  max-width: 800px;
  margin: 0 auto;
}

.profile-image-container {
  text-align: center;
  margin: 2rem 0;
}

.profile-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #333333;
}

.biography-content {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  text-align: justify;
}

.biography-content p {
  margin-bottom: 1.5rem;
}

/* Kosten Page Styles */
.kosten-page {
  padding: 2rem 0;
  min-height: 60vh;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-content h1 {
  color: #8ab135;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.pricing-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pricing-item {
  background: white;
  border: 2px solid #8ab135;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.pricing-item h3 {
  color: #8ab135;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
}

.pricing-item p {
  margin: 0;
  font-size: 1.1rem;
  color: #666;
}

/* Footer Styles */
.site-footer {
  background-color: #f8f8f8;
  padding: 1rem 0;
  border-top: 1px solid #eaeaea;
  width: 100%;
}

.footer-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem 8rem;
}

.footer-section {
  margin-bottom: 1rem;
}

.footer-section h3 {
  color: #8ab135;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-section p {
  margin: 0.5rem 0;
  color: #666;
  line-height: 1.5;
}

.footer-section a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #8ab135;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  width: 100%;
  height: 60px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.hidden {
  transform: translateY(100%);
}

.scroll-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-lines span {
  width: 40px;
  height: 2px;
  background-color: #8ab135;
  display: block;
  border-radius: 2px;
}

/* Blog Section Styles */
.blog-section {
  padding: 4rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
}

.blog-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-item {
  background: white;
  display: flex;
  align-items: stretch;
  transition: transform 0.3s ease;
}

.blog-item.image-right {
  flex-direction: row;
}

.blog-item.image-left {
  flex-direction: row-reverse;
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-item.image-right .blog-content {
  padding: 2rem 4rem 2rem 0;
}

.blog-item.image-left .blog-content {
  padding: 2rem 0 2rem 4rem;
}

.blog-image {
  width: 40%;
  min-height: 300px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-item:hover .blog-image img {
  transform: scale(1.05);
}

.blog-title {
  color: #8ab135;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  font-family: "Manjari", sans-serif;
}

.blog-description {
  color: #666;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Mobile Navigation Styles */
.mobile-nav-trigger {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  width: 100%;
  height: 60px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hamburger-lines span {
  width: 30px;
  height: 2px;
  background-color: #8ab135;
  display: block;
  border-radius: 2px;
}

.close-icon {
  display: none;
  color: #8ab135;
  position: absolute;
  transform: scale(1.2);
}

.mobile-nav-trigger.active .hamburger-lines {
  display: none;
}

.mobile-nav-trigger.active .close-icon {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  background-color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  display: none;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.mobile-nav .nav-link {
  font-size: 1.2rem;
  padding: 1rem 2rem;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: white;
  border: 2px solid transparent;
}

.mobile-nav .nav-link:hover {
  background: #8ab135;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 177, 53, 0.2);
}

.mobile-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  transition: height 0.3s ease;
  z-index: -1;
}

.mobile-nav .nav-link:hover::before {
  height: 100%;
}

body.nav-open {
  overflow: hidden;
}

.impressum-content {
  padding: 4rem 8rem;
}

.datenschutz-content {
  padding: 4rem 8rem;
}

/* ============================
   Media Queries
   ============================ */

/* Medium screen responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    justify-content: center;
  }

  .site-navigation {
    display: none;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Tablet and Mobile Responsive Styles */
@media (max-width: 1024px) {

  .blog-item,
  .blog-item.image-right,
  .blog-item.image-left {
    flex-direction: column-reverse;
  }

  .blog-image {
    width: 100%;
    min-height: 200px;
  }

  .blog-content,
  .blog-item.image-right .blog-content,
  .blog-item.image-left .blog-content {
    padding: 1.5rem 1.5rem 2rem 1.5rem;
  }

  .blog-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .blog-description {
    font-size: 1rem;
  }

  .blog-container {
    width: 90%;
    gap: 3rem;
  }

  .blog-item.image-right .blog-content {
    padding: 2rem 2rem 2rem 0;
  }

  .blog-item.image-left .blog-content {
    padding: 2rem 0 2rem 2rem;
  }

  .scroll-to-top {
    display: flex;
  }

  .mobile-nav-trigger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .site-navigation {
    display: none;
  }

  .site-footer {
    margin-bottom: 60px;
  }

  .footer-content {
    flex-direction: column;
    padding: 1rem 2rem;
  }

  .impressum-content {
    padding: 1rem 1rem;
  }

  .datenschutz-content {
    padding: 1rem 1rem;
  }
}

/* Additional Mobile-specific styles */
@media (max-width: 768px) {
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .logo {
    max-height: 60px;
    margin-bottom: 0;
  }

  .logo-large {
    max-height: 70px;
    transform: scale(1.1);
  }

  .site-navigation {
    display: none;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  /* Page content responsive styles */
  .page-content {
    padding: 0 1rem;
  }

  .page-content h1 {
    font-size: 1.5rem;
  }

  .pricing-section {
    gap: 1.5rem;
  }

  .pricing-item {
    padding: 1rem;
  }

  .pricing-item h3 {
    font-size: 1.1rem;
  }

  .pricing-item p {
    font-size: 1rem;
  }

  .profile-image {
    max-width: 250px;
  }

  .biography-content {
    font-size: 1rem;
  }

  .text-carousel {
    padding: 1rem 0;
  }

  .text-carousel-container {
    min-height: 50px;
  }

  .text-slide-title {
    font-size: 1.2rem;
  }

  .text-slide-content {
    font-family: "Manjari", sans-serif;
  }

  .contact-section {
    padding: 3rem 0rem;
  }

  .contact-paragraph {
    font-size: 1rem;
  }

  .contact-buttons {
    gap: 1rem;
  }

  .contact-button {
    padding: 0.7rem 0;
    font-size: 0.9rem;
    min-width: 120px;
  }

  .button-icon {
    width: 18px;
    height: 18px;
  }

  .diseases-section {
    padding: 1rem 0rem;
  }

  .diseases-container {
    width: 80%;
  }

  .disease-button {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .disease-content {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .disease-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .expand-icon {
    width: 20px;
    height: 20px;
  }

  .site-footer {
    padding: 1rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .scroll-to-top {
    height: 50px;
  }

  .scroll-lines {
    gap: 6px;
  }

  .scroll-lines span {
    width: 30px;
  }

  .blog-item,
  .blog-item.image-right,
  .blog-item.image-left {
    flex-direction: column-reverse;
  }

  .blog-image {
    width: 100%;
    min-height: 200px;
  }

  .blog-content,
  .blog-item.image-right .blog-content,
  .blog-item.image-left .blog-content {
    padding: 1.5rem 1.5rem 2rem 1.5rem;
  }

  .blog-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .blog-description {
    font-size: 1rem;
  }

  .description p {
    font-size: 1rem;
  }
}

/* ---- Error Page ---- */

.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 3rem 1rem;
  text-align: center;
}

.error-page-inner {
  max-width: 520px;
}

.error-code {
  display: block;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: #8ab135;
  opacity: 0.18;
  margin-bottom: -0.5rem;
  user-select: none;
}

.error-heading {
  font-size: 2rem;
  color: #1a1a2e;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.error-text {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.error-btn:hover,
.error-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.error-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(138, 177, 53, 0.35);
}

.error-btn-primary {
  background: #8ab135;
  color: #fff;
}

.error-btn-primary:hover {
  background: #7a9e2e;
}

.error-btn-secondary {
  background: #f0f0f0;
  color: #444;
}

.error-btn-secondary:hover {
  background: #e0e0e0;
}

@media (max-width: 600px) {
  .error-code {
    font-size: 5rem;
  }

  .error-heading {
    font-size: 1.5rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn {
    text-align: center;
  }
}
