/* Modern Design Enhancements for ASG Hausmeisterservice */

/* Modern Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Modern Navigation */
.navbar-custom {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-custom.small {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure mobile menu works correctly - Bootstrap 3 compatibility */
.navbar-collapse {
  max-height: none;
}

@media (max-width: 767px) {
  .navbar-collapse.collapse {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  .navbar-collapse.collapse.in {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .navbar-collapse.collapsing {
    display: block !important;
    height: auto !important;
    overflow: hidden !important;
    transition: height 0.35s ease;
  }
}

.navbar-custom .navbar-brand {
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 15px;
  height: auto;
  line-height: 1;
  transition: color 0.3s ease;
}

/* Change navbar brand text color to black when navbar becomes white (.small) */
.navbar-custom.small .navbar-brand,
.navbar-custom.small .navbar-brand:hover,
.navbar-custom.small .navbar-brand:focus {
  color: #333 !important;
}

.navbar-custom .navbar-brand img {
  vertical-align: middle;
  display: inline-block;
  margin: 0;
  padding-right: 10px;
  padding-bottom: 0;
}

.navbar-custom .navbar-nav > li > a {
  position: relative;
  padding: 10px 15px;
  transition: color 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.navbar-custom .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: #05b534;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-custom .navbar-nav > li > a:hover::after,
.navbar-custom .navbar-nav > li.active > a::after {
  transform: scaleX(1);
}

.navbar-toggle {
  border: none;
  padding: 9px 10px;
}

.navbar-toggle .icon-bar {
  background-color: #333;
  transition: all 0.3s ease;
}

.navbar-toggle:hover .icon-bar {
  background-color: #05b534;
}

/* Modern Hero Section */
.main-home {
  position: relative;
  overflow: hidden;
}

.main-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 181, 52, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.home__header-content {
  position: relative;
  z-index: 2;
}

.intro-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.intro-text {
  font-size: 1.25rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Buttons */
.btn-custom {
  background: linear-gradient(135deg, #05b534 0%, #04a02e 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(5, 181, 52, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 181, 52, 0.4);
  background: linear-gradient(135deg, #04a02e 0%, #05b534 100%);
}

.btn-custom:active {
  transform: translateY(0);
}

/* Modern Services Section */
#services .row {
  display: flex;
  flex-wrap: wrap;
}

#services .row:not(:last-child) {
  margin-bottom: 40px;
}

#services .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.services-item {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-height: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  flex: 1;
}

.services-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(5, 181, 52, 0.15);
  border-color: #05b534;
}

.services-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
  flex-direction: column;
}

.services-item .col-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.icon-border {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #05b534 0%, #04a02e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(5, 181, 52, 0.3);
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.services-item:hover .icon-border {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(5, 181, 52, 0.4);
}

.icon-border i {
  color: #fff;
  font-size: 36px;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  width: auto;
  height: auto;
  text-align: center;
  vertical-align: middle;
}

/* Überschreibe alte CSS-Regeln für Icons in Services */
.services-item .icon-border i {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  font-size: 36px !important;
}

.services-item h5 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.services-item p {
  color: #6c757d;
  flex-grow: 1;
  margin-bottom: 0;
}

/* Modern Form Styles */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.form-control:focus {
  border-color: #05b534;
  box-shadow: 0 0 0 3px rgba(5, 181, 52, 0.1);
  outline: none;
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  display: block;
}

/* Modern Footer */
#footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  border-top: none;
}

.footer-content h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-content a:hover {
  color: #05b534;
}

.footer-socials i {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.footer-socials a:hover i {
  background: #05b534;
  border-color: #05b534;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(5, 181, 52, 0.3);
}

.footer-bottom {
  background: #1a252f;
  padding: 25px 0;
}

/* Modern Reviews Section */
#reviews {
  background: #f8f9fa;
}

#reviews .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#reviews .title {
  color: #2c3e50;
  margin-bottom: 20px;
}

.reviews-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 30px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .reviews-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }
}

.review-rating {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .review-rating {
    width: 350px;
    max-width: 350px;
    margin-bottom: 0;
    height: 100%;
    align-self: stretch;
  }
}

.review-rating h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.review-rating-stars {
  margin: 15px 0;
}

.review-rating-stars .fa-star {
  margin: 0 5px;
  font-size: 2rem;
  color: #ddd;
}

.review-rating-stars .fa-star.gold {
  color: #ebba34;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.review-rating h5 {
  color: #6c757d;
  font-size: 1.1rem;
  margin-top: 15px;
  font-weight: 400;
}

.review-rating h5 strong {
  color: #2c3e50;
  font-weight: 700;
}

.review-list {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .review-list {
    min-height: 100%;
  }
}

#review-carousel {
  width: 100%;
  position: relative;
}

/* Navigationspunkte ausblenden */
#review-carousel .owl-controls,
#review-carousel .owl-pagination,
#review-carousel .owl-controls .owl-page {
  display: none !important;
}

#review-carousel .owl-wrapper-outer {
  overflow: visible;
  padding: 20px 0;
}

#review-carousel .owl-wrapper {
  display: flex;
}

#review-carousel .owl-item {
  padding: 0 15px;
  display: flex;
  height: 100%;
}

.review {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 200px;
}

.review:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(5, 181, 52, 0.15);
  border-color: #05b534;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 15px;
}

.review-name {
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
  min-width: 120px;
}

.review-name strong {
  color: #2c3e50;
}

.review-stars {
  margin: 0;
  flex-shrink: 0;
  display: flex;
  gap: 3px;
}

.review-stars .fa-star {
  font-size: 1.1rem;
  color: #ddd;
}

.review-stars .fa-star.gold {
  color: #ebba34;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.review-text {
  color: #6c757d;
  font-style: italic;
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Modern Instagram Section */
#instagram {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
}

#instagram hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 0 0 50px 0;
}

.insta-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.insta-header {
  text-align: center;
  padding: 20px 0;
  flex: 0 0 auto;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.insta-icon-link {
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.insta-icon-link:hover {
  transform: translateY(-5px);
}

.insta-icon-link:hover .icon-border {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.insta-icon {
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.insta-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.insta-header h3 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.insta-header h4 {
  color: #6c757d;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}

.insta-list {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#insta-carousel {
  width: 100%;
}

#insta-carousel .owl-item {
  padding: 0 10px;
}

.insta-post {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 100%;
  margin: 0 auto;
}

.insta-post:hover {
  transform: translateY(-5px);
}

.insta-post .instagram-media {
  max-width: 100% !important;
  width: 100% !important;
  min-width: auto !important;
}

.insta-embed {
  max-width: 100% !important;
  width: 100% !important;
}

/* Modern Contact Section */
#contact {
  background: #f8f9fa;
}

#contact .title {
  color: #2c3e50;
}

.titleHR {
  background: linear-gradient(to right, transparent, #05b534, transparent);
  height: 3px;
  border: none;
}

.titleHR span {
  display: none;
}

/* Prominente Kontakt-Info-Box */
.contact-info-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

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

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #05b534 0%, #04a02e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(5, 181, 52, 0.3);
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(5, 181, 52, 0.4);
}

.contact-icon i {
  color: #fff;
  font-size: 32px;
}

.contact-info-item h4 {
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-info-item p {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.contact-link {
  color: #05b534;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #04a02e;
  text-decoration: none;
}

.contact-btn {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 14px;
}

.contact-divider {
  text-align: center;
  margin: 40px 0;
  position: relative;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #e0e0e0;
}

.contact-divider::before {
  left: 0;
}

.contact-divider::after {
  right: 0;
}

.contact-divider span {
  background: #f8f9fa;
  padding: 0 20px;
  color: #6c757d;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Modern Back to Top Button */
.back-to-top {
  background: linear-gradient(135deg, #05b534 0%, #04a02e 100%);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(5, 181, 52, 0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(5, 181, 52, 0.4);
}

.back-to-top i {
  line-height: 50px;
  font-size: 18px;
}

/* Modern Section Spacing */
section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Modern Card Styles for Impressum */
#impressum {
  background: #fff;
}

#impressum h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

#impressum p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

#impressum p i {
  margin-right: 12px;
  color: #05b534;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Modern Responsive Design */
@media (max-width: 768px) {
  .intro-title {
    font-size: 2rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  #services .row {
    display: block;
  }
  
  #services .row > [class*="col-"] {
    display: block;
  }
  
  .services-item {
    margin-bottom: 30px;
    min-height: auto;
    height: auto;
  }
  
  .review-rating {
    width: 100%;
    margin: 0 0 30px 0;
    float: none;
  }
  
  .review-list {
    width: 100%;
    margin: 0;
    float: none;
    margin-top: 0;
  }
  
  .review {
    padding: 25px 20px;
    min-height: 180px;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 15px;
  }
  
  .review-name {
    min-width: auto;
    font-size: 1rem;
  }
  
  .review-stars {
    align-self: flex-start;
  }
  
  .review-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .review-rating {
    padding: 25px 20px;
    margin-bottom: 30px;
  }
  
  .review-rating h3 {
    font-size: 1.5rem;
  }
  
  .review-rating-stars .fa-star {
    font-size: 1.6rem;
    margin: 0 3px;
  }
  
  #review-carousel .owl-item {
    padding: 0 10px;
  }
  
  #review-carousel .owl-wrapper-outer {
    padding: 15px 0;
  }
  
  #instagram {
    padding: 60px 0;
  }
  
  .insta-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  
  .insta-header {
    padding: 20px 0 30px 0;
    margin-bottom: 0;
    min-width: auto;
    width: 100%;
  }
  
  .insta-header h3 {
    font-size: 1.5rem;
  }
  
  .insta-header h4 {
    font-size: 1rem;
  }
  
  .insta-list {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-width: auto;
  }
  
  #insta-carousel .owl-item {
    padding: 0 5px;
  }
  
  .insta-post {
    max-width: 100%;
  }
  
  .insta-embed {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .contact-info-box {
    padding: 30px 20px;
    margin: 30px 0;
  }
  
  .contact-info-item {
    padding: 15px 10px;
    margin-bottom: 30px;
  }
  
  .contact-icon {
    width: 70px;
    height: 70px;
  }
  
  .contact-icon i {
    font-size: 28px;
  }
  
  .contact-info-item h4 {
    font-size: 1.1rem;
  }
  
  .contact-divider {
    margin: 30px 0;
  }
  
  .navbar-custom {
    background-color: rgba(255, 255, 255, 0.98) !important;
  }
  
  .navbar-custom .navbar-brand {
    color: #333;
    font-size: 1rem;
    padding: 15px;
  }
  
  .navbar-custom .navbar-nav {
    margin: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-custom .navbar-nav > li > a {
    color: #333;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
  }
  
  .navbar-custom .navbar-nav > li > a:hover {
    background-color: #f8f9fa;
    color: #05b534;
    padding-left: 25px;
  }
  
  .navbar-custom .navbar-nav > li > a::after {
    display: none;
  }
  
  .navbar-custom .navbar-nav > li > a i {
    width: 20px;
    text-align: center;
  }
  
  .navbar-toggle {
    margin-top: 8px;
    margin-bottom: 8px;
  }
  
  section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  #impressum h1 {
    font-size: 2rem;
  }
  
  #impressum .col-md-10 {
    padding: 0 15px;
  }
  
  #impressum > .container > .row > div > div {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .intro-title {
    font-size: 1.75rem;
  }
  
  .btn-custom {
    padding: 0.7em 1.5em;
    font-size: 13px;
  }
  
  .services-item {
    padding: 30px 20px;
  }
  
  .icon-border {
    width: 70px;
    height: 70px;
  }
  
  .icon-border i {
    font-size: 32px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    height: auto;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Modern Loading Animation - Override in style.css */

/* Modern Twitter/Testimonials Section */
.twitter_tweet {
  position: relative;
}

.twitter_tweet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.twitter_tweet .container {
  position: relative;
  z-index: 2;
}

.twitter_tweet i {
  color: #05b534;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.twitter_tweet h5 {
  font-size: 1.3rem;
  font-weight: 600;
}

.twitter_tweet p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

/* Header Kontakt-Button */
.header-contact-btn {
  margin-left: 15px;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.btn-header-contact {
  padding: 10px 20px !important;
  margin: 0 !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  font-size: 14px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(5, 181, 52, 0.3);
  transition: all 0.3s ease;
  line-height: 1.42857143;
  height: auto;
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-header-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 181, 52, 0.4);
  color: #ffffff !important;
}

.btn-header-contact i {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Better visibility when in contact section */
#contact ~ * .btn-header-contact,
body:has(#contact:target) .btn-header-contact {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
  color: #05b534 !important;
  border: 2px solid #05b534;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body:has(#contact:target) .btn-header-contact i {
  color: #05b534 !important;
}

/* Alternative: Use scroll detection via class */
.navbar-custom.in-contact-section .btn-header-contact {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
  color: #05b534 !important;
  border: 2px solid #05b534;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-custom.in-contact-section .btn-header-contact i {
  color: #05b534 !important;
}

.header-contact-text {
  display: inline;
}

@media (max-width: 991px) {
  .btn-header-contact {
    padding: 8px 15px !important;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .header-contact-btn {
    margin-left: 0;
    width: 100%;
    padding: 10px 15px !important;
  }
  
  .btn-header-contact {
    width: 100%;
    justify-content: center;
    margin: 0 !important;
  }
}

/* Schwebende Kontakt-Sidebar */
.contact-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.contact-sidebar-toggle {
  background: linear-gradient(135deg, #05b534 0%, #04a02e 100%);
  color: #fff;
  padding: 20px 15px;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  position: relative;
}

.contact-sidebar-toggle:hover {
  background: linear-gradient(135deg, #04a02e 0%, #05b534 100%);
  box-shadow: -6px 0 20px rgba(5, 181, 52, 0.4);
  transform: translateX(-5px);
}

.contact-sidebar-toggle i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.sidebar-toggle-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-sidebar-content {
  position: absolute;
  right: 100%;
  top: 0;
  background: #fff;
  width: 320px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px 0 0 8px;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.contact-sidebar.active .contact-sidebar-content {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  background: linear-gradient(135deg, #05b534 0%, #04a02e 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 0 0 0;
}

.sidebar-header h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.sidebar-close {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: rotate(90deg);
}

.sidebar-close i {
  font-size: 14px;
}

.sidebar-body {
  padding: 25px 20px;
}

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-contact-item:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.sidebar-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #05b534 0%, #04a02e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(5, 181, 52, 0.3);
}

.sidebar-icon i {
  color: #fff;
  font-size: 18px;
}

.sidebar-info {
  flex: 1;
}

.sidebar-info strong {
  display: block;
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-link {
  color: #05b534;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: block;
  word-break: break-word;
}

.sidebar-link:hover {
  color: #04a02e;
  text-decoration: none;
}

.sidebar-text {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
}

.sidebar-actions {
  margin-top: 25px;
}

.sidebar-action-btn {
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
  padding: 12px 20px !important;
  font-size: 14px;
  border-radius: 6px;
}

.sidebar-action-btn:last-child {
  margin-bottom: 0;
}

/* Responsive Sidebar - Behält Desktop-Layout bei */
@media (max-width: 991px) {
  .contact-sidebar {
    /* Behält Desktop-Positionierung bei */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
  }
  
  .contact-sidebar-toggle {
    /* Behält vertikales Layout bei, nur etwas kleiner */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 15px 12px;
    min-height: 120px;
  }
  
  .contact-sidebar-toggle i {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
  }
  
  .sidebar-toggle-text {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  
  .contact-sidebar-content {
    /* Behält Desktop-Verhalten bei */
    right: 100%;
    top: 0;
    bottom: auto;
    width: 280px;
    max-width: calc(100vw - 60px);
    border-radius: 8px 0 0 8px;
    transform: translateX(100%);
    margin-bottom: 0;
  }
  
  .contact-sidebar.active .contact-sidebar-content {
    transform: translateX(0);
  }
  
  .sidebar-header {
    border-radius: 8px 0 0 0;
  }
}

@media (max-width: 480px) {
  .contact-sidebar-toggle {
    padding: 12px 10px;
    min-height: 100px;
  }
  
  .contact-sidebar-toggle i {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .sidebar-toggle-text {
    font-size: 11px;
  }
  
  .contact-sidebar-content {
    width: calc(100vw - 50px);
    max-width: 280px;
  }
  
  .sidebar-body {
    padding: 20px 15px;
  }
  
  .sidebar-contact-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  
  .sidebar-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  
  .sidebar-icon i {
    font-size: 16px;
  }
}

