/* Button Row Content Block Styles */
.button-row {
  margin: 20px 0;
  padding: 0;
}

.button-row__container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.button-row__container--left {
  justify-content: flex-start;
}

.button-row__container--center {
  justify-content: center;
}

.button-row__container--right {
  justify-content: flex-end;
}

/* Base Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  gap: 8px;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Primary Button */
.btn--primary {
  background-color: #ab0033;
  color: #ffffff;
  border-color: #ab0033;
}

.btn--primary:hover {
  background-color: #8b0029;
  border-color: #8b0029;
  color: #ffffff;
}

/* Secondary Button */
.btn--secondary {
  background-color: #ffffff;
  color: #00304a;
  border-color: #00304a;
}

.btn--secondary:hover {
  background-color: #00304a;
  color: #ffffff;
  border-color: #00304a;
}

/* Button Text */
.btn__text {
  flex: 1;
}

/* Button Icon */
.btn__icon {
  font-size: 14px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Icon positioning */
.btn--with-icon {
  padding-right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .button-row__container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .button-row__container--left,
  .button-row__container--center,
  .button-row__container--right {
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}


/* EDL Button */
.btn-edl { 
    background: #0067B1; 
    color: white; 
    border-color: #0067B1; 
}
.btn-edl:hover { 
    background: #005299; 
    border-color: #005299; 
    color: white;
}

/* TAF Button */
.btn-taf { 
    background: #8A2716; 
    color: white; 
    border-color: #8A2716; 
}
.btn-taf:hover { 
    background: #6d1f11; 
    border-color: #6d1f11; 
    color: white;
}

/* Stick Button - Position wird dynamisch via JavaScript gesetzt */
.btn.btn-stick {
  /* Grundstyling wie andere Buttons */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font: 500 14px/1.2 Arial, sans-serif;
  border: 2px solid transparent;
  background: rgba(255,255,255,.85);
  color: #333;
  backdrop-filter: blur(2px);
  min-height: 40px;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Normal positioniert - wird dynamisch zu sticky/fixed */
  position: static;
  z-index: 1000;
}

/* Wenn Button dynamisch fixiert wird - HÖCHSTE PRIORITÄT */
.btn.btn-stick.is-fixed {
  position: fixed !important;
  /* top, left werden dynamisch via JavaScript gesetzt */
  z-index: 9999 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  
  /* Überschreibe alle möglichen Bootstrap/anderen CSS Interferenzen */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  margin: 0 !important;
}

.btn.btn-stick:hover { 
  transform: translateY(-2px); 
  background: rgba(255,255,255,.95);
  text-decoration: none;
  color: #333;
}

.btn.btn-stick::after { 
  content: "↑"; 
  margin-left: 6px; 
  font-weight: 700; 
}

/* Stick Button Wrapper */
.buttonrow-stick-wrapper {
    position: relative;
    height: 0;
    overflow: visible;
}

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

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .btn-stick {
        transition: none;
    }
    .btn-stick:hover {
        transform: none;
    }
}
