/* === BASISSTILE === */
body {
  font-family: 'Verdana', sans-serif;
  margin: 0;
  background-image: url('images/background.png');
  background-repeat: repeat;
  background-attachment: fixed;
}

.hidden {
  display: none;
}

/* === HEADER === */
header img.site-logo {
  max-height: 80px;
  max-width: 250px;
  width: auto;
  height: auto;
  display: block;
  margin-left: 400px;
}

@media (max-width: 600px) {
  header img.site-logo {
    max-height: 55px;
    max-width: 160px;
    margin-left: 0;
  }
}

.burger-menu {
  font-size: 30px;
  cursor: pointer;
  color: #FFE100;
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #111;
  color: white;
  padding: 20px;
  position: absolute;
  top: 80px;
  right: 0;
  left: 0;
  z-index: 10;
}

.mobile-nav a {
  color: #FFE100;
  padding: 10px 0;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
}

body.open .mobile-nav {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === HERO === */
header.hero {
  background: url('http://1aleasing.de/images/hero.png') center/cover no-repeat;
  text-align: center;
  padding: 6rem 2rem;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-headline {
  font-size: 32px;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  margin-bottom: 20px;
  color: #222;
  position: relative;
}

.hero-headline::after {
  content: "";
  display: block;
  width: 250px;
  height: 4px;
  background-color: #ffe100;
  margin: 16px auto 0;
  border-radius: 2px;
}

.hero-subline {
  font-size: 20px;
  color: #666;
  font-family: Verdana, sans-serif;
  margin-top: 30px;
  margin-bottom: 40px;
}

header.hero h1,
header.hero p {
  font-size: 2.5rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  animation: fadeSlideIn 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

header.hero h1 { animation-delay: 0.2s; }
header.hero p  {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  animation-delay: 0.5s;
}

@keyframes fadeSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* === SECTIONS & BUTTONS === */
.section {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

.cta-button,
.same-button,
button {
  background-color: #ffe100;
  color: black;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.same-button:hover,
button:hover {
  background-color: #e0af00;
}

/* Doppelte Buttons nebeneinander */
.buttons-duo {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto 0;
  max-width: 100%;
  width: 100%;
}

.button-wrapper {
  flex: 0 0 260px; /* feste Breite */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.same-button {
  height: 70px;
  font-size: 16px;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  background-color: #ffe100;
  color: black !important;
  border: none;
  border-radius: 8px;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  cursor: pointer;
  text-align: center;
}




/* === FORMULAR === */
.form-section {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  margin: auto;
  border: 2px solid #ffe100;
  box-sizing: border-box;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
} 

  select {
    background-color: #fff !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.2rem; /* Platz für Pfeil */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' fill='none' stroke='%23000' stroke-width='15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
  }

.form-floating-group {
  position: relative;
  margin-top: 1rem;
  width: 100%;
}

.form-floating-group input,
.form-floating-group select {
  width: 100%;
  padding: 1rem 2.2rem 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #000;
  border-radius: 4px;
  font-family: Verdana, sans-serif;
  box-sizing: border-box;
} 



.form-floating-group label {
  position: absolute;
  top: -0.65rem;
  left: 0.6rem;
  background: #fff;
  padding: 0 0.3rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #000;
}

.currency-symbol {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Monatsrate-Anzeige */
.rate-display {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  padding: 0;
  margin: 0;
}

/* Datei-Upload-Info */
#upload-info {
  margin-top: 4px;
  font-size: 14px;
  color: #333;
  min-height: 18px;
  line-height: 1.4;
}

/* Formular-Absenden */
.form-submit {
  grid-column: 1 / -1;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* === SLIDER (flacher) === */
input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px; /* reduziert von 10px */
  border-radius: 3px;
  background: #ffe100;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

/* WebKit: Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; /* reduziert */
  background: #ffe100;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  height: 20px;
  width: 20px;
  background: black;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  margin-top: -11px; /* nötig, damit Thumb mittig sitzt */
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* Firefox */
input[type="range"]::-moz-range-track {
  height: 6px; /* reduziert */
  border-radius: 3px;
  background: #ffe100;
}

input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  background: black;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}


/* === KUNDENSTIMMEN & BOXEN === */
.icon-yellow {
  font-size: 2.2rem;
  background-color: #ffe100;
  color: black;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
}

.finanz-box,
.kunden-box {
  flex: 1;
  min-width: 250px;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background-color: #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.kunden-box {
  border-color: #ffe100;
}

.finanz-box:hover,
.kunden-box:hover {
  transform: translateY(-5px);
  box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.2);
}

.kunden-avatar {
  background-color: #ffe100;
  color: black;
  border-radius: 12px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
  padding: 10px;
  width: 75px;
  height: 75px;
  object-fit: cover;
}
 
.hinweis-text {
  margin-top: 30px;
  font-size: 14px;
  color: #333;
}

.hinweis-liste {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.hinweis-liste li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.hinweis-liste i {
  color: #ffe100;
  margin-right: 8px;
}
































 
/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
  form {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin-bottom: 0 !important;
  }

  .form-section {
    padding: 1rem;
    margin-bottom: 0 !important;
  }

  .form-floating-group {
    margin-top: 0.3rem;
  }

  .form-floating-group input,
  .form-floating-group select {
    padding: 0.75rem 1rem 0.3rem 0.6rem;
    font-size: 0.9rem;
  }                   
  
 

  .form-floating-group label {
    font-size: 0.8rem;
    top: -0.5rem;
    left: 0.5rem;
    padding: 0 0.2rem;
  }

  .rate-display {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .form-submit {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Buttons untereinander */
  .buttons-duo {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    margin-bottom: 0;
  }

  .same-button {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    min-height: auto;
  }

  .button-wrapper {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: center;
    min-height: unset;
    margin-bottom: 0;
  }

  #upload-info {
    margin-top: 2px;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  /* Zusätzliche Sicherheitsabfrage gegen Leerraum */
  .form-section > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  form > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Leeres <p> entfernen */
  form p:empty {
    display: none !important;
  }
}
