body {
  margin:0;
  font-family:Arial, sans-serif;
  line-height:1.6;
}

/* ===== TOPBAR ===== */
.topbar {
  position:fixed;
  top:0;
  width:100%;
  background:#111;
  color:white;
  z-index:1000;
}

.topbar .container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 20px;
}

.topbar a {
  color:white;
  margin-left:15px;
  text-decoration:none;
}

.logo {
  font-weight:bold;
}

/* Abstand wegen fixed navbar */
body {
  padding-top:60px;
}

/* ===== HERO ===== */
.hero {
  background:url('https://images.unsplash.com/photo-1581578731548-c64695cc6952') center/cover;
  height:100vh;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.overlay {
  background:rgba(0,0,0,0.6);
  padding:40px;
  border-radius:10px;
}

.btn {
  background:#2ecc71;
  padding:12px 25px;
  color:white;
  text-decoration:none;
  display:inline-block;
  margin-top:15px;
  border-radius:5px;
}

/* ===== SECTIONS ===== */
section {
  padding:60px 20px;
  text-align:center;
}

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

.card {
  background:#f4f4f4;
  padding:25px;
  border-radius:10px;
  transition:0.3s;
}

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

/* ===== SLIDER FIX ===== */
.ba-container {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

.ba-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 300px;
  max-width: 400px;
  height: 300px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.ba-before,
.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-after {
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* optional: kleiner Pfeil links/rechts */
.ba-handle::before {
  content: "↔";
  font-size: 20px;
  color: #333;
}

.ba-handle:active {
  cursor: grabbing;
}

/* ===== VORTEILE ===== */
.vorteile ul {
  list-style:none;
  padding:0;
}

.vorteile li {
  margin:10px 0;
  font-weight:bold;
}

/* ===== KONTAKT ===== */
.kontakt form {
  display:flex;
  flex-direction:column;
  max-width:400px;
  margin:auto;
}

.kontakt input,
.kontakt textarea {
  margin:10px 0;
  padding:12px;
  border-radius:5px;
  border:1px solid #ccc;
}

button {
  background:#2ecc71;
  color:white;
  padding:12px;
  border:none;
  border-radius:5px;
}

.whatsapp {
  display:inline-block;
  margin-top:15px;
  background:#25D366;
  color:white;
  padding:12px 20px;
  border-radius:5px;
}

/* ===== FOOTER ===== */
footer {
  background:#222;
  color:white;
  padding:30px;
}

footer a {
  color:#2ecc71;
  margin:0 10px;
}

/* ===== TEXT SEITEN (IMPRESSUM/DATENSCHUTZ) ===== */
.text-page {
  max-width:800px;
  margin:100px auto 50px; /* Abstand nach oben wegen Topbar */
  padding:20px;
  text-align:left;
}

.text-page h1 {
  margin-bottom:20px;
  font-size:28px;
}

.text-page p {
  margin-bottom:15px;
  line-height:1.7;
}

.preisrechner {
  background: #f9f9f9;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.preisrechner h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.input-group select,
.input-group input[type="range"] {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.input-group input[type="range"] {
  width: 100%;
}

.preis h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #333;
}

/* FAQ */
.faq {
  background: #f8f8f8; /* hellgrau, damit Fragen sichtbar sind */
  padding: 3rem 1.5rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.faq h2 {
  font-family: 'Arial', sans-serif; /* gleiche Schrift wie restliche Seite */
  font-size: 2rem;
  text-align: center;
  color: #222; /* dunkle Farbe passend zu Überschriften */
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  border: none;
  background: none;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0.5rem 0 1rem 0;
  font-family: inherit;
  font-size: 1rem;
  color: #444;
}

/* Container fix für mittige Felder */
.container {
  max-width: 1200px; /* oder 1000px, je nach Layout */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Preisrechner / FAQ */
.preisrechner .rechner,
.faq .faq-item {
  margin: 0 auto;
  width: 100%;
  max-width: 600px; /* begrenzt die Breite */
}

/* FAQ Fragen/Antworten */
.faq-question {
  width: 100%;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #32D951; /* neues Grün */
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10000;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.whatsapp-float img {
  width: 24px;
  height: 24px;
}

/* ===== FINAL SECTION STYLING FIX ===== */

.ba-section {
  background: #8DE2F4 !important;
}

.preisrechner {
  background: #8DE2F4 !important;
}

.kontakt {
  background: #8DE2F4 !important;
}

/* Mehr Abstand */
.ba-section,
.preisrechner,
.kontakt {
  padding: 100px 20px !important;
  position: relative;
}

/* Sichtbare Wellen */
.ba-section::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: #8DE2F4;
  border-bottom-left-radius: 100% 40px;
  border-bottom-right-radius: 100% 40px;
}

.preisrechner::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: #8DE2F4;
  border-bottom-left-radius: 100% 40px;
  border-bottom-right-radius: 100% 40px;
}

/* ===== GLOBAL FONT ===== */
body {
  font-family: 'Poppins', sans-serif;
}

/* ===== LEISTUNGEN BOXEN ===== */
.card {
  background: #0091AC !important;
  color: white !important;
  padding: 25px;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

/* ===== BUTTONS (Hero + Kontakt) ===== */
.btn,
button,
#cfSubmit {
  background: #0091AC !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  padding: 12px 25px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover,
button:hover,
#cfSubmit:hover {
  background: #007a91 !important;
}

/* ===== HEADER / HERO ===== */

/* Overlay ggf. anpassen */
.overlay {
  background: rgba(0,0,0,0.4);
}

/* ===== FOOTER ===== */
footer {
  background: #191919 !important;
  color: white;
}

/* Footer Links weiß */
footer a {
  color: white !important;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== NAVBAR (optional angleichen) ===== */
.topbar {
  background: #191919 !important;
}

/* Links in Navbar */
.topbar a {
  color: white;
}

h1, h2, h3 {
  font-weight: 600;
}

/* ===== RANGE SLIDER STYLE ===== */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

/* Track (Chrome) */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #0091AC;
  border-radius: 5px;
}

/* Thumb (der Punkt) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #0091AC;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
}

/* Firefox */
input[type="range"]::-moz-range-track {
  background: #0091AC;
}

input[type="range"]::-moz-range-thumb {
  background: #0091AC;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

input,
textarea,
select,
button {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.kontakt input,
.kontakt textarea {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 12px;
}

.kontakt input:focus,
.kontakt textarea:focus {
  outline: none;
  border-color: #0091AC;
  box-shadow: 0 0 0 2px rgba(0,145,172,0.2);
}

/* ===== FAQ FRAGEN + ANTWORTEN ZENTRIERT ===== */
.faq-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* zentriert horizontal */
  justify-content: center;
  text-align: center; /* Text innerhalb zentrieren */
  padding: 15px 10px; /* optional: Abstand innen */
}

.faq-question {
  display: inline-block; /* wichtig, damit max-width wirkt */
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.faq-answer {
  display: block; /* block für volle Breite */
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin-top: 10px;
  padding: 0 5px; /* optional: etwas Innenabstand */
}

/* ===== PREISRECHNER SLIDER ===== */
#flaeche {
  -webkit-appearance: none;
  width: 100%;
  height: 10px; /* Track-Höhe */
  background: #fff; /* Slider-Hintergrund bleibt weiß */
  border-radius: 5px;
  outline: none;
  position: relative;
}

/* Linie selbst (grau) mit Pseudo-Element */
#flaeche::-webkit-slider-runnable-track {
  height: 10px;
  background: #ccc; /* graue Linie */
  border-radius: 5px;
}

#flaeche::-moz-range-track {
  height: 10px;
  background: #ccc; /* Firefox graue Linie */
  border-radius: 5px;
}

/* Punkt (Thumb) */
#flaeche::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #0091AC; /* blauer Punkt */
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  margin-top: -5px; /* zentriert auf Track */
  transition: transform 0.2s;
}

#flaeche::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #0091AC;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  transition: transform 0.2s;
}

/* optional Hover-Effekt auf Punkt */
#flaeche::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#flaeche::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* ===== TOPBAR HEIGHT ===== */
.topbar {
  padding: 15px 20px; /* statt vorher 10px */
}

body {
  padding-top: 70px; /* damit Inhalt nicht unter Topbar rutscht */
}
