/* ========================================
   FOOTER STYLES - Vegenergy Design
   ======================================== */

.footer {
  background-color: var(--background-color);
  color: #ffffff;
  font-family: 'Mukta', Arial, sans-serif;
  margin-top: 4rem;
  width: 100%;
}

/* ========================================
   FOOTER HEADER SECTION
   ======================================== */
.footer-header {
  border-top: 1px solid rgba(119, 119, 119, 0.2);
  border-bottom: 1px solid rgba(119, 119, 119, 0.2);
  background-color: #a6a6a608;
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

/* Hintergrundbild für Footer Header */
.footer-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/files/images/background.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
}

.footer-header-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-header p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   FOOTER SOCIAL MEDIA SECTION
   ======================================== */
.footer-social-section {
  margin-top: 3rem;
  text-align: center;
}

.footer-social-section h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.footer-social-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social-grid a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.5rem;
  background: rgba(46, 125, 50, 0.8);
  border-radius: 5px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  min-width: 160px;
  min-height: 60px;
}

.footer-social-grid a:hover {

  border-color: rgba(255, 255, 255, 0.3);
}

.footer-social-grid svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.footer-social-grid a:hover svg {
  transform: scale(1.1);
}

.footer-social-grid span {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* ========================================
   MAIN FOOTER CONTENT
   ======================================== */
.footer-main {
  padding: 4rem 0;
  position: relative;
}

/* Hintergrundbild für Footer Main */
.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/files/images/background.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.40;
  z-index: 0;
  pointer-events: none;
}

.footer-main-container {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* ========================================
   FOOTER INFO SECTIONS
   ======================================== */
.footer-section {
  text-align: center;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

/* Überschriften-Animation beim Hover über Links */
.footer-section ul:hover ~ h3,
.footer-section a:hover ~ h3,
.footer-section li:hover h3 {
  color: var(--vegaenergy-dark);
  transform: scale(1.02);
}

/* Alternative: Animation wenn irgendein Link in der Section gehovered wird */
.footer-section:has(a:hover) h3 {
  color: var(--vegaenergy-dark);
  transform: scale(1.02);
}

/* Fallback für Browser ohne :has() Support */
.footer-section a:hover {
  color: var(--vegaenergy-dark);
}

.footer-section a:hover::after {
  width: 100%;
}

/* Wenn ein Link gehovered wird, ändere die Überschrift */
.footer-section:hover h3 {
  color: var(--vegaenergy-dark);
  transform: scale(1.00);
}

/* Spezifische Animation für Plattformen - nur auf Desktop */
@media (min-width: 1201px) {
  .footer-section:first-child h3 {
    transform: translateX(-15px) scale(1.02);
  }
  .footer-section:first-child:hover h3 {
    transform: translateX(-15px) scale(1.02);
  }
}

.footer-section ul {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section li:last-child {
  margin-bottom: 1.2rem;
}

/* Mehr Platz für die letzten beiden Sektionen (Kundenservice und Rechtliches) */
.footer-section:nth-child(3) li:last-child,
.footer-section:nth-child(4) li:last-child {
  margin-bottom: 3.5rem;
}

.footer-section a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

/* Unterstreichungs-Animation */
.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vegaenergy-dark);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: var(--vegaenergy-dark);
}

.footer-section a:hover::after {
  width: 100%;
}

/* Icon-Rotation beim Hover über die Section */
.footer-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.footer-section:hover .footer-icon {
  transform: rotate(10deg);
}

/* ========================================
   FOOTER SEPARATOR (Grauer Trennstrich)
   ======================================== */
.footer-separator {
  width: 100%;
  background-color: #666666;
  margin: 0;
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */
.footer-bottom {
  border-top: 1px solid rgba(119, 119, 119, 0.2);
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-bottom-left {
  flex: 0 0 auto;
  min-width: fit-content;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-bottom-right {
  flex: 0 0 auto;
  min-width: fit-content;
  text-align: right;
  font-size: 0.9rem;
}

.footer-bottom-right a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
  color: var(--vegaenergy-dark);
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 600px) {
  .footer-bottom-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }
  
  .footer-bottom-left,
  .footer-bottom-right {
    text-align: center;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (min-width: 1400px) {
  .footer-main-container {
    gap: 6rem;
  }
  
  .footer-section {
    padding: 0 1rem;
  }
}

@media (max-width: 1200px) {
  .footer-header {
    padding: 3rem 0;
  }
  
  .footer-header h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .footer-header p {
    font-size: 1.05rem;
  }
  
  .footer-main {
    padding: 3rem 0;
  }
  
  .footer-main-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-section {
    text-align: left;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .footer-section h3 {
    font-size: 1.2rem;
    margin: 0;
    padding: 1.3rem 1.5rem;
    justify-content: space-between;
    flex-direction: row;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .footer-section h3:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--vegaenergy-dark);
  }

  .footer-section h3::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    border-radius: 1px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    display: inline-block;
  }

  .footer-section.collapsed h3::after {
    transform: rotate(-45deg);
  }

  .footer-content {
    height: auto;
    opacity: 1;
    padding: 1.2rem 1.5rem 1.5rem;
    transition: height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    overflow: hidden;
  }

  .footer-section.collapsed .footer-content {
    height: 0;
    opacity: 0;
    padding: 0 1.5rem;
  }

  .footer-icon {
    width: 22px;
    height: 22px;
  }

  .footer-section ul {
    text-align: left;
    display: block;
    width: 100%;
    margin: 0;
  }

  .footer-section li {
    margin-bottom: 0.7rem;
  }

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

  .footer-section:nth-child(3) li:last-child,
  .footer-section:nth-child(4) li:last-child {
    margin-bottom: 3rem;
  }

  .footer-section a {
    font-size: 0.95rem;
    padding: 0.3rem 0;
    display: block;
    border-radius: 5px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    transition: all 0.3s ease;
  }

  .footer-section a:hover {
    color: var(--vegaenergy-dark);
  }

  .footer-bottom {
    padding: 2rem 0;
  }
}

@media (max-width: 1024px) {
  .footer-main-container {
    gap: 1.2rem;
  }

  .footer-section h3 {
    font-size: 1.15rem;
    padding: 1.2rem 1.5rem;
  }

  .footer-content {
    padding: 1.1rem 1.5rem 1.4rem;
  }

  .footer-section li:last-child {
    margin-bottom: 0.9rem;
  }

  .footer-section:nth-child(3) li:last-child,
  .footer-section:nth-child(4) li:last-child {
    margin-bottom: 2.8rem;
  }

  .footer-section a {
    font-size: 0.92rem;
  }
}

@media (max-width: 768px) {
  .footer-header {
    padding: 2.5rem 0;
  }
  
  .footer-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .footer-header p {
    font-size: 1rem;
  }
  
  /* Footer Social Media - Mobile Layout */
  .footer-social-section {
    margin-top: 2.5rem;
  }
  
  .footer-social-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .footer-social-grid a:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5rem);
  }
  
  .footer-social-grid a {
    padding: 1rem 1.5rem;
    min-width: unset;
    min-height: unset;
  }
  
  .footer-social-grid svg {
    width: 24px;
    height: 24px;
  }
  
  .footer-social-grid span {
    font-size: 0.95rem;
  }
  
  .footer-main {
    padding: 2.5rem 0;
  }
  
  .footer-main-container {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
  }

  .footer-section {
    text-align: left;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin: 0;
    padding: 1.2rem 1.5rem;
    justify-content: space-between;
    flex-direction: row;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .footer-section h3:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--vegaenergy-dark);
  }

  .footer-section h3::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    border-radius: 1px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    display: inline-block;
  }

  .footer-section.collapsed h3::after {
    transform: rotate(-45deg);
  }

  .footer-content {
    height: auto;
    opacity: 1;
    padding: 1rem 1.5rem 1.5rem;
    transition: height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    overflow: hidden;
  }

  .footer-section.collapsed .footer-content {
    height: 0;
    opacity: 0;
    padding: 0 1.5rem;
  }

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

  .footer-section ul {
    text-align: left;
    display: block;
    width: 100%;
    margin: 0;
  }

  .footer-section li {
    margin-bottom: 0.6rem;
  }

  .footer-section li:last-child {
    margin-bottom: 0.8rem;
  }

  .footer-section:nth-child(3) li:last-child,
  .footer-section:nth-child(4) li:last-child {
    margin-bottom: 2.5rem;
  }

  .footer-section a {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    display: block;
    border-radius: 5px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    transition: all 0.3s ease;
  }

  .footer-section a:hover {
    color: var(--vegaenergy-dark);
  }

  .footer-bottom {
    padding: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .footer-header {
    padding: 2rem 0;
  }

  .footer-header h2 {
    font-size: 1.6rem;
  }

  .footer-header p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Footer Social Media - Small Mobile Layout */
  .footer-social-section {
    margin-top: 2rem;
  }
  
  .footer-social-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  
  .footer-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0.8rem;
    max-width: 580px;
  }
  
  .footer-social-grid a:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.4rem);
  }
  
  .footer-social-grid a {
    padding: 0.8rem 1.2rem;
    gap: 0.8rem;
  }
  
  .footer-social-grid svg {
    width: 20px;
    height: 20px;
  }
  
  .footer-social-grid span {
    font-size: 0.9rem;
  }

  .footer-main {
    padding: 2rem 0;
  }

  .footer-main-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .footer-section {
    text-align: left;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .footer-section h3 {
    font-size: 1.1rem;
    margin: 0;
    padding: 1.2rem 1.5rem;
    justify-content: space-between;
    flex-direction: row;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }

  .footer-section h3:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--vegaenergy-dark);
  }

  .footer-section h3::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    border-radius: 1px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    display: inline-block;
  }

  .footer-section.collapsed h3::after {
    transform: rotate(-45deg);
  }

  .footer-content {
    height: auto;
    opacity: 1;
    padding: 1rem 1.5rem 1.5rem;
    transition: height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    overflow: hidden;
  }

  .footer-section.collapsed .footer-content {
    height: 0;
    opacity: 0;
    padding: 0 1.5rem;
  }

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

  .footer-section ul {
    text-align: left;
    display: block;
    width: 100%;
    margin: 0;
  }

  .footer-section li {
    margin-bottom: 0.6rem;
  }

  .footer-section li:last-child {
    margin-bottom: 0.7rem;
  }

  /* Mehr Platz unter Shop & Produkte (Zitrone) */
  .footer-section:nth-child(2) li:last-child {
    margin-bottom: 3rem;
  }

  .footer-section:nth-child(3) li:last-child,
  .footer-section:nth-child(4) li:last-child {
    margin-bottom: 2.2rem;
  }

  .footer-section a {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    display: block;
    border-radius: 5px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    transition: all 0.3s ease;
  }

  .footer-section a:hover {
    color: var(--vegaenergy-dark);
  }

  .footer-bottom-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }

  .footer-bottom {
    padding: 1.25rem 0;
  }
}

@media (max-width: 360px) {
  .footer-header {
    padding: 1.5rem 0;
  }

  .footer-header h2 {
    font-size: 1.4rem;
  }

  .footer-main {
    padding: 1.5rem 0;
  }

  .footer-main-container {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section a {
    font-size: 0.85rem;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    font-size: 0.8rem;
  }

  .footer-bottom-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }


}