/* Override global styles for stable node intro */
.stable-node .video-intro-container, 
.stable-node .image-intro-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.profile.video-intro-container {
   height: 95vh !important;
}
/* Override global intro-content positioning for stable nodes */
.stable-node .profile-intro-content {
  position: absolute !important;
  bottom: auto !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 2 !important;
  text-align: center !important;
  transform: none !important;
  padding: 10vh 2rem 8vh 2rem !important;
}

.image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.spacer {
  flex: 1;
}

.stable-intro-overlay {
  text-align: center;
  color: white;
  flex-shrink: 0;
  padding-top: 5vh;
  z-index: 99;
}

.start-button-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stable-intro-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
}

.stable-intro-logo img {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.7));
      aspect-ratio: 1 / 1;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.stable-intro-overlay .stable-title {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 1.2;
  color: white !important;
  display: block !important;
  visibility: visible !important;
}

.stable-intro-overlay .stable-location {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.start-button {
     background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 20px;
    font-size: 2em;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.start-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.enter-text {
  z-index: 999;
    color: white;
    text-align: center;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 10px;
    padding-bottom: 10px;
}

.stable-node {
  padding: 2rem 0;
}

.stable-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stable-header .stable-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stable-body,
.stable-services,
.stable-pricing {
  margin-bottom: 2rem;
}

.stable-logo {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stable-intro-logo.profile img {
    border-radius: 50%;
}
.profile-item a {
  color: #fff;
  text-decoration: none;
}

.profile-item a:hover {
  color: #ff940b;
}
@media (max-width: 768px) {
  .stable-intro-logo img {
    max-height: 80px;
  }

  .stable-intro-logo.profile img {
    max-height: 100px;
  }
  
  .stable-intro-overlay .stable-title {
    font-size: 20px;
    letter-spacing: 0.2em;
    padding: 0 5em;
  }
  
  .stable-intro-overlay .stable-location {
    font-size: 1rem;
  }
  
  .start-button {
    font-size: 2rem;
  }
}

.profile-intro-content {
    height: 90vh;
    display: flex;
    flex-direction: column;
    margin-top: -15vh;
}

/* Hero Section Styles */
.stable-hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  background-color: #4f3e2c;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #4f3e2c;
}

.hero-background img {
  width: 100%;
  height: 46vh;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
    top: 6em;
    left: 0;
    /* width: 100%; */
    /* height: 100%; */
    z-index: 2;
    /* display: flex; */
    /* align-items: flex-end; */
    justify-content: stretch;
    /* min-height: 385px; */
    background: #4f3e2c;
    margin-top: -2em;

}

.hero-content-layout {
  width: 100%;
  padding: 0 3rem 3rem 3rem;
  display: flex;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: flex-end;
  position: relative;
  justify-content: space-between;
}

/* Left Column: Logo + Info */
.hero-left-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Logo Container */
.hero-logo-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.hero-logo-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #ff940b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;

}

.hero-logo-circle img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.profile.hero-logo-circle img {
  /* object-fit: contain;
  border-radius: 50%;
  width: 100%;
  padding-top: 10px; */
      aspect-ratio: 1 / 1;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Info Container */
.hero-info-container {
  text-align: left;
  color: white;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
  line-height: 1;
  text-align: left;
  text-shadow: unset;
}

.hero-location {
  font-size: 16px;
  font-weight: 400;
  color: #ff940b;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-align: left;
}

/* Right Column: CTA Container */
.hero-cta-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  justify-self: end;
  margin-right: -20px;
  margin-bottom: 22px;
}

.cta-button {
  background: #ff940b;
  border: none;
  color: white;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 170px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 10px;
  text-align: left;
  font-weight: 400;
  font-family: 'Roboto';
  color: rgba(255, 255, 255, 0.9);
}

.cta-button:hover {
  background: #e8830a;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Follow button checkbox styling */
.cta-folgen {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-right: 50px !important;
}

.cta-folgen .follow-checkbox,
.cta-button .follow-checkbox {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 3px solid white !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.cta-folgen .follow-checkbox:hover,
.cta-button .follow-checkbox:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: white !important;
}

.cta-folgen .follow-checkbox:checked,
.cta-button .follow-checkbox:checked {
  background: white !important;
  border-color: white !important;
}

.cta-folgen .follow-checkbox:checked::after,
.cta-button .follow-checkbox:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #ff940b !important;
  font-size: 16px !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

.cta-folgen span {
  flex: 1 !important;
  /* padding-right: 10px !important; */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .stable-hero-section {
    height: 49vh;
    min-height: 350px;
  }
  
  .hero-content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 1rem;
    justify-items: center;
  }
  
  .hero-left-column {
    text-align: center;
  }
  
  .hero-logo-container {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .hero-logo-circle {
    width: 100px;
    height: 100px;
  }
  
  .hero-info-container {
    text-align: center;
  }
  
  .hero-title {
    font-size: 0.90rem;
    letter-spacing: 0.25em;
  }
  
  .hero-location {
    font-size: 0.8rem;
  }
  .cta-button {
    font-size: 0.8rem;
  }
  
  .hero-cta-container {
    align-items: center;
    justify-self: center;
  }
}

/* About Us Collapsible Section */
.about-us-section {
  background-color: #ffffff;
  padding: 0;
}

.about-us-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.about-us-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.about-us-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.about-us-header.collapsed .about-us-chevron {
  transform: rotate(0deg);
}

.about-us-header:not(.collapsed) .about-us-chevron {
  color: #8B4513;
}

.about-us-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.about-us-header:not(.collapsed) .about-us-title {
  color: #8B4513;
}

.about-us-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 40px;
}

.about-us-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.about-us-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}

.about-us-text p {
  margin-bottom: 1.5rem;
}

.about-us-text p:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive for About Us */
@media (max-width: 768px) {
  .about-us-header {
    padding: 25px;
  }
  
  .about-us-content {
    padding: 0 20px;
  }
  
  .about-us-content.collapsed {
    padding: 0 20px;
  }
  
  .about-us-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Gallery Collapsible Section */
.gallery-section {
  background-color: #ffffff;
  padding: 0;
}

.gallery-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.gallery-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.gallery-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.gallery-header.collapsed .gallery-chevron {
  transform: rotate(0deg);
}

.gallery-header:not(.collapsed) .gallery-chevron {
  color: #8B4513;
}

.gallery-title {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: #333;
  transition: color 0.3s ease;
}

.gallery-header:not(.collapsed) .gallery-title {
  color: #8B4513;
}

.field--name-field-gallery {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
}
.field--name-field-gallery .field--name-field-description {
  text-transform: uppercase;
  text-align: center;
  font-weight: 300;
}
@media (min-width: 768px) {
  .field--name-field-gallery {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
  }
  .hero-overlay {
    margin-top: 0em;
  }
}
.gallery-content {
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 40px;
}

.gallery-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.gallery-grid {
  display: block;
}

.gallery-grid .field__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid .field__item {
  display: block;
}

/* Target the actual media entities within gallery */
.gallery-grid .field__item > article,
.gallery-grid .field__item > .media,
.gallery-grid .field__item > div {
  width: 100%;
  height: auto;
}

/* Ensure images within media entities fit properly */
.gallery-grid .field__item img,
.gallery-grid .field__item picture img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Mobile Responsive for Gallery */
@media (max-width: 768px) {
  .gallery-header {
    padding: 25px;
  }
  
  .gallery-content {
    padding: 0 20px;
  }
  
  .gallery-content.collapsed {
    padding: 0 20px;
  }
  
  .gallery-grid {
    display: block;
  }

  .gallery-grid .field__items {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-grid .field__item {
    display: block;
  }
  
  .gallery-grid .field__item img,
  .gallery-grid .field__item picture img,
  .gallery-grid img {
    height: 150px;
  }
}

/* Expertise Accordion Section */
.expertise-section {
  background-color: #ffffff;
  padding: 0;
}

.expertise-main-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.expertise-main-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.expertise-main-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.expertise-main-header.collapsed .expertise-main-chevron {
  transform: rotate(0deg);
}

.expertise-main-header:not(.collapsed) .expertise-main-chevron {
  color: #8B4513;
}

.expertise-main-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.expertise-main-header:not(.collapsed) .expertise-main-title {
  color: #8B4513;
}

.expertise-main-content {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.expertise-main-content.collapsed {
  max-height: 0;
}

.expertise-container {
  padding: 0;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 30px 40px 30px 80px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.accordion-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.accordion-header.expanded .accordion-chevron {
  transform: rotate(0deg);
  color: #8B4513;
}

.accordion-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.accordion-header.expanded .accordion-title {
  color: #8B4513;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 40px;
}

.accordion-content.expanded {
  max-height: 500px;
  padding: 0 40px 40px 80px;
}

.accordion-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
  padding-left: 16px;
}

.accordion-text p {
  margin-bottom: 1.5rem;
}

.accordion-text p:last-child {
  margin-bottom: 0;
}

/* Mobile Responsive for Expertise */
@media (max-width: 768px) {
  .expertise-main-header {
    padding: 25px;
  }
  
  .accordion-header {
    padding: 20px 20px 20px 40px;
  }
  
  .accordion-content {
    padding: 0 20px 0 40px;
  }
  
  .accordion-content.expanded {
    padding: 0 20px 20px 40px;
  }
  
  
  .accordion-text {
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 12px;
  }
}

/* Pricing Section */
.pricing-section {
  background-color: #ffffff;
  padding: 0;
}

.pricing-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.pricing-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.pricing-header:hover {
  background-color: #f8f9fa;
}

.pricing-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.pricing-header.collapsed .pricing-chevron {
  transform: rotate(0deg);
}

.pricing-header:not(.collapsed) .pricing-chevron {
  color: #8B4513;
}

.pricing-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.pricing-header:not(.collapsed) .pricing-title {
  color: #8B4513;
}

.pricing-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 40px;
}

.pricing-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.pricing-download {
  padding-left: 40px;
}

.download-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  padding: 15px 0;
}

.download-link:hover {
  color: #ff940b;
  transform: translateX(10px);
}

.download-icon {
  width: 30px;
  height: 30px;
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.download-link:hover .download-icon {
  border-color: #ff940b;
  background-color: #ff940b;
  color: white;
}

.download-text {
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'Roboto', sans-serif;
}

/* Mobile Responsive for Pricing */
@media (max-width: 768px) {
  .pricing-header {
    padding: 25px;
  }
  
  .pricing-content {
    padding: 0 20px;
  }
  
  .pricing-content.collapsed {
    padding: 0 20px;
  }
  
  .pricing-download {
    padding-left: 20px;
  }
  
  .download-text {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }
  
  .download-icon {
    width: 25px;
    height: 25px;
    margin-right: 15px;
  }
}

/* Events Section */
.events-section {
  background-color: #ffffff;
  padding: 0;
}

.events-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.events-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.events-header:hover {
  background-color: #f8f9fa;
}

.events-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.events-header.collapsed .events-chevron {
  transform: rotate(0deg);
}

.events-header:not(.collapsed) .events-chevron {
  color: #8B4513;
}

.events-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.events-header:not(.collapsed) .events-title {
  color: #8B4513;
}

.events-content {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.events-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.event-teaser {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.event-teaser:hover {
  transform: translateY(-5px);
}

.event-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.event-image, .event-no-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #333;
}

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

.event-teaser:hover .event-image img {
  transform: scale(1.05);
}

.event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 40px 20px 20px;
  color: white;
}

.event-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.event-no-image {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  display: flex;
  align-items: flex-end;
}

/* Mobile Responsive for Events */
@media (max-width: 768px) {
  .events-header {
    padding: 25px;
  }
  
  .events-content.collapsed {
    padding: 0 20px;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .event-image, .event-no-image {
    height: 200px;
  }
  
  .teaser-card {
    min-height: unset !important;
  }
}

/* Jobs Section */
.jobs-section {
  background-color: #ffffff;
  padding: 0;
}

.jobs-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.jobs-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.jobs-header:hover {
  background-color: #f8f9fa;
}

.jobs-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.jobs-header.collapsed .jobs-chevron {
  transform: rotate(0deg);
}

.jobs-header:not(.collapsed) .jobs-chevron {
  color: #8B4513;
}

.jobs-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.jobs-header:not(.collapsed) .jobs-title {
  color: #8B4513;
}

.jobs-content {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.jobs-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px;
}

/* Mobile Responsive for Jobs */
@media (max-width: 768px) {
  .jobs-header {
    padding: 25px 30px;
  }
  
  .jobs-content.collapsed {
    padding: 0 20px;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  
  .teaser-card {
    min-height: unset !important;
  }
}

/* Teaser Card Styles */
.teaser-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.teaser-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.teaser-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.teaser-image {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #333;
}

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

.teaser-card:hover .teaser-image img {
  transform: scale(1.05);
}

.teaser-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333 0%, #555 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.teaser-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 60px 20px 20px;
  color: white;
}

.teaser-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.teaser-meta {
  font-size: 0.9rem;
  opacity: 0.9;
}

.teaser-location, .teaser-stable, .teaser-owner {
  color: #ff940b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.teaser-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.teaser-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-grow: 1;
}

.teaser-price {
  font-size: 1.3rem;
  font-weight: 400;
  color: #ff940b;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.teaser-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teaser-button {
  background: #ff940b;
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

.teaser-button:hover {
  background: #e8830a;
  transform: translateY(-2px);
}

.teaser-button-message {
  background: #ff940b;
}

.teaser-button-buy {
  background: #ff6b00;
}

.teaser-button-buy:hover {
  background: #e55a00;
}

/* Mobile Responsive for Teaser Cards */
@media (max-width: 768px) {
  .teaser-image {
    height: 250px;
  }
  
  .teaser-title {
    font-size: 1.2rem;
  }
  
  .teaser-content {
    padding: 15px;
  }
  
  .teaser-description {
    font-size: 0.85rem;
  }
  
  .teaser-price {
    font-size: 1.1rem;
  }
  
  .teaser-button {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}

/* Horses Section */
.horses-section {
  background-color: #ffffff;
  padding: 0;
}

.horses-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.horses-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.horses-header:hover {
  background-color: #f8f9fa;
}

.horses-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.horses-header.collapsed .horses-chevron {
  transform: rotate(0deg);
}

.horses-header:not(.collapsed) .horses-chevron {
  color: #8B4513;
}

.horses-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.horses-header:not(.collapsed) .horses-title {
  color: #8B4513;
}

.horses-content {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.horses-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.horses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px;
}

/* Marketplace Section */
.marketplace-section {
  background-color: #ffffff;
  padding: 0;
}

.marketplace-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.marketplace-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.marketplace-header:hover {
  background-color: #f8f9fa;
}

.marketplace-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #333;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.marketplace-header.collapsed .marketplace-chevron {
  transform: rotate(0deg);
}

.marketplace-header:not(.collapsed) .marketplace-chevron {
  color: #8B4513;
}

.marketplace-title {
      font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    color: #333;
    transition: color 0.3s ease;
}

.marketplace-header:not(.collapsed) .marketplace-title {
  color: #8B4513;
}

.marketplace-content {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.marketplace-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px;
}

/* Mobile Responsive for Horses and Marketplace */
@media (max-width: 768px) {
  .horses-header, .marketplace-header {
    padding: 25px 30px;
  }
  
  .horses-content.collapsed, .marketplace-content.collapsed {
    padding: 0 20px;
  }
  
  .horses-grid, .marketplace-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
}

/* Organisation Section */
.organisation-section {
  background-color: #4f3e2c;
  padding: 0;
}

.organisation-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}

.organisation-header {
  display: flex;
  align-items: center;
  padding: 30px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.organisation-chevron {
  font-size: 20px;
  margin-right: 20px;
  color: #fff;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
  -webkit-text-stroke: 1.5px #4f3e2c !important;
}

.organisation-header.collapsed .organisation-chevron {
  transform: rotate(0deg);
}

.organisation-header:not(.collapsed) .organisation-chevron {
  color: #ff940b;
}

.organisation-title {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: #fff;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  transition: color 0.3s ease;
}

.organisation-header:not(.collapsed) .organisation-title {
  color: #ff940b;
}

.organisation-content {
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 40px;
  background-color: #4f3e2c;
}

.organisation-content.collapsed {
  max-height: 0;
  padding: 0 40px;
}

.organization-collapsible-content {
  overflow: hidden;
  transition: opacity 0.3s ease;
  border-top: none;
  background-color: #4f3e2c;
}

.organisation-login-section {
  padding: 40px;
  /* background-color: #fff; */
}

.login-container {
  max-width: 600px;
  margin: 0 auto;
}
.edit-profile-cta-container {
  margin: 1em;
}

a.cta-button {
  text-decoration: none;
}
.login-button {
  background-color: #ff940b;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto;
  text-decoration: none;
  text-align: center;
}

.login-button:hover {
  background-color: #555;
}

/* Documents Section */
.documents-section {
  margin-top: 30px;
  background: #4f3e2c;
}

.document-item {
  margin-bottom: 20px;
}

.document-header {
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.document-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-header i {
  margin-right: 15px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.document-content {
  background-color: #777;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.document-download {
  padding: 15px 20px;
  display: flex;
  align-items: center;
}

.document-download i {
  color: white;
  font-size: 1.2rem;
  margin-right: 15px;
}

.document-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.document-link:hover {
  opacity: 0.8;
  color: white;
}

/* Access Control Messages */
.access-restricted, .login-required {
  padding: 20px;
  text-align: center;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  margin: 20px 0;
}

.access-restricted p, .login-required p {
  margin: 0;
  color: #6c757d;
  font-style: italic;
  font-size: 0.9rem;
}

/* Profile Section */
.profile-section {
  margin-top: 30px;
}

.profile-header {
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.profile-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-header i {
  margin-right: 15px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.profile-content {
  background-color: #4f3e2c;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.profile-list {
  padding: 0;
}

.profile-item {
  padding: 12px 20px;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: #4f3e2c;
}

.profile-item:last-child {
  border-bottom: none;
}

/* Mobile Responsive for Organisation */
@media (max-width: 768px) {
  .organisation-header {
    padding: 25px;
  }
  
  .organisation-content {
    padding: 0 20px;
  }
  
  .organisation-content.collapsed {
    padding: 0 20px;
  }
  
  .organisation-title {
    font-size: 20px;
    letter-spacing: 0.15em;
  }
  
  .organisation-login-section {
    padding: 20px;
  }
}

/* Fading Overlay CSS for Video Intro */
.video-intro-container {
  position: relative;
}

.fading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%; /* Covers 40% of the parent container's height from the top */
  background: linear-gradient(to bottom, rgba(128, 128, 128, 1) 0%, rgba(128, 128, 128, 0) 100%); /* Medium grey fades from 100% opacity to 0% transparency */
  z-index: 1; /* Ensures the overlay is above the video */
}

.fading-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px); /* Applies a 10px blur to content behind the pseudo-element */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); /* Masks the blur effect, making it fade out */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); /* Webkit-specific mask for compatibility */
}

.profile-intro-content {
  margin-top: -15vh; /* Adjusts the vertical position of the logo and text */
  padding-top: 5vh;
}

.stable-intro-overlay {
  padding-top: 5vh; /* Fine-tunes the padding within the logo/title container */
}

@media (max-width: 380px) {
  .hero-title {
      font-size: 0.8rem;
      letter-spacing: 0.25em;
  }
  .hero-location {
      font-size: 0.8rem;
  }
}
body.video-intro-active .minimal-header {
  background-color: unset;
}

/* Prevent scrolling when video intro is visible */
body.video-intro-active {
  overflow: hidden;
  height: 100vh;
}

body.video-intro-active .header-logo img {
  content: unset;
}

/* Follow/Unfollow Button States */
.cta-folgen {
  position: relative;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-folgen:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Following state */
.cta-folgen.following {
  background-color: #ff940b !important;
  color: white !important;
}

.cta-folgen.following:hover {
  background-color: #ff940b !important;
  color: white !important;
}

.cta-folgen.following:hover::after {
  content: "Following";
  position: absolute;
  /* top: 0;
  left: 0;
  right: 0;
  bottom: 0; */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: inherit;
}

.cta-folgen.following:hover > span,
.cta-folgen.following:hover > * {
  opacity: 0;
}

/* Not following state */
.cta-folgen.not-following {
  background-color: #ff940b !important;
  color: white !important;
}

.cta-folgen.not-following:hover {
  background-color: #e8830a !important;
  /* transform: translateY(-2px); */
}

/* Messages container for follow notifications */
#follow-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.messages {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s ease-out;
}

.messages--success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.messages--error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}