/* =========================
   Reset & Grundlayout
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #fff, #f5f5f5);
  color: #222;
  line-height: 1.5;
}

/* =========================
   FAQ: Aufklappbare Antworten
   ========================= */
.faq-page details {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  transition: background 0.3s, box-shadow 0.3s;
}
.faq-page details[open] {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.faq-page summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-left: 1.5rem;
}
.faq-page summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
  color: #b22222;
  font-size: 1.2rem;
}
.faq-page details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.faq-page details p,
.faq-page details ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  color: #444;
  line-height: 1.5;
}

/* =========================
   Kontakt-Seite
   ========================= */
.contact-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.contact-intro h1 {
  font-size: 2rem;
  color: #b22222;
  margin-bottom: 0.5rem;
}
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.contact-item h2 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.contact-item p a {
  color: #b22222;
  text-decoration: none;
}
.contact-item p a:hover {
  text-decoration: underline;
}
.contact-form-wrapper {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.contact-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact-form button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: #b22222;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background: #891818;
}

/* =========================
   Datenschutz (Privacy Policy)
   ========================= */
.privacy-policy details {
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #f9f9f9;
}
.privacy-policy summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}
.privacy-policy summary::marker {
  font-size: 1.2rem;
  color: #b22222;
}
.privacy-policy summary::-webkit-details-marker {
  font-size: 1.2rem;
  color: #b22222;
}
.privacy-policy details[open] {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.privacy-policy details p,
.privacy-policy details ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
  color: #444;
}

/* =========================
   Buttons (Allgemein)
   ========================= */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background: #b22222;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.btn.primary {
  background: #3d9970;
}

/* =========================
   Header & Dropdown
   ========================= */
.header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #fff;
}
.header .logo {
  flex: 0 0 auto;
}
.header .logo img {
  height: 150px;
}
.dropdown-menu {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.dropdown-menu a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}
.menu-toggle {
  display: none;
  margin-left: 1rem;
  cursor: pointer;
  color: #fff;
}
.header {
  position: relative;
}


/* Sprach-Umschalter oben rechts */
/* 2) Sprach-Switcher nach oben rücken */
.lang-switcher {
  position: absolute;
  top: 0;           /* ganz oben in der Padding-Box */
  right: 1rem;      /* Abstand zum rechten Rand */
  transform: none;  /* kein automatisches Vertikal-Zentrieren mehr */
}
.lang-switcher button {
  display: inline-block;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.85rem;
}
.lang-switcher button.active {
  background: #fff;
  color: #333;
  font-weight: bold;
}
/* === Override: Sprach-Schalter ganz oben === */
.header {
  position: relative; /* sicherstellen, dass Absolute sich auf den Header bezieht */
  padding-top: 1rem;  /* wenn du mehr Abstand brauchst, kannst du das hier erhöhen */
}

.header .lang-switcher {
  position: absolute !important;
  top: 0 !important;         /* ganz am oberen Rand des Headers */
  right: 1rem !important;    /* Abstand zum rechten Rand */
  transform: none !important;/* kein Zentrieren mehr */
  margin: 0 !important;      /* alle sonstigen Abstände raus */
  display: inline-flex;      /* deine Buttons nebeneinander */
  gap: 0.5rem;               /* Abstand zwischen den Buttons */
  z-index: 10;               /* sicher über allem anderen */
}

/* =========================
   Mobile-Breakpoint
   ========================= */
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: #444;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
  }
  .dropdown-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* =========================
   Startseite (.home)
   ========================= */
.home .landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  margin: 2rem 1rem;
  text-align: center;
}
.home .slogan {
  font-size: 1.6rem;
  font-weight: 600;
  color: #b22222;
  line-height: 1.4;
  padding: 0 1rem;
}
.home .vorteile {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 400px;
  margin: 0 auto;
}
.home .vorteil {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.home .vorteil i {
  color: #b22222;
  margin-right: 0.6rem;
  font-size: 1.1rem;
}
.home .cta-button {
  background: #b22222;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.home .cta-button:hover {
  background: #891818;
}
.home .service-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
  margin: 0 1rem;
}
.home .service-steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #b22222;
  transform: translateX(-50%);
  z-index: 0;
}
.home .service-steps .step {
  position: relative;
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  width: 75%;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}
.home .service-steps .step img {
  width: 150px;
  margin-bottom: 0.75rem;
}
.home .service-steps .step:nth-child(odd) {
  align-self: flex-start;
  transform: translateX(-15%);
}
.home .service-steps .step:nth-child(even) {
  align-self: flex-end;
  transform: translateX(15%);
}
.home .service-steps .step::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #b22222;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.home .service-steps .step:hover {
  transform: translateX(0) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
  .home .service-steps {
    gap: 1.5rem;
  }
  .home .service-steps::before {
    left: 20px;
  }
  .home .service-steps .step,
  .home .service-steps .step:nth-child(odd),
  .home .service-steps .step:nth-child(even) {
    align-self: flex-start;
    transform: none !important;
    width: calc(100% - 40px);
  }
  .home .service-steps .step::before {
    left: 20px;
  }
  .home .service-steps .step img {
    width: 25%;
    max-width: 100px;
    height: auto;
    margin-bottom: 0.75rem;
  }
}

/* =========================
   Formularseite (angebote/angebot.php)
   ========================= */
.form-wrapper {
  padding: 2rem 1rem;
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.form-wrapper .progress-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto 1rem;
  height: 4px;
  background: #eee;
  border-radius: 2px;
}
.form-wrapper .progress-bar .progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #b22222;
  border-radius: 2px;
  transition: width 0.3s ease;
  z-index: 1;
}
.form-wrapper .progress-bar .step {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: #ccc;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  z-index: 2;
  margin: 0;
}
.form-wrapper .progress-bar .step.active {
  background: #b22222;
  color: #fff;
}

/* =========================
   Formular-Schritte
   ========================= */
.form-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
.form-step.active {
  display: flex;
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =========================
   Formular-Navigation
   ========================= */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.nav-buttons button {
  flex: 1;
  padding: 0.8rem 1.4rem;
  background: #b22222;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.nav-buttons button:hover {
  background: #891818;
}

/* =========================
   Tooltip-Definition
   ========================= */
.info-icon {
  display: inline-block;
  margin-left: 6px;
  font-weight: bold;
  color: #b22222;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.info-icon::after {
  content: attr(data-msg);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 999;
}
.info-icon.shown::after {
  opacity: 1;
}
.info-icon::before {
  content: "";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 998;
}
.info-icon.shown::before {
  opacity: 1;
}

/* =========================
   Footer
   ========================= */
.footer {
  background: #222;
  color: #eee;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
}
.footer a {
  color: #fff;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-contact {
  max-width: 250px;
}
.footer-contact .footer-logo img {
  height: 60px;
  margin-bottom: 0.5rem;
}
.footer-contact p {
  line-height: 1.4;
}
.footer-actions h4 {
  color: #f1c40f;
  margin-bottom: 0.5rem;
}
.footer-actions ul {
  list-style: none;
  margin-bottom: 1rem;
}
.footer-actions li {
  margin-bottom: 0.4rem;
}
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
}
.footer-nav {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.footer-nav a {
  margin: 0 0.3rem;
}

/* Formular-Fehleranpassungen */
input[type="file"].error {
  outline: 2px solid #d9534f;
}
input.error,
select.error,
textarea.error {
  border: 2px solid #d9534f;
}

/* =========================
   Auffällige Info-Box
   ========================= */
.info-box.highlight {
  background: linear-gradient(135deg, #ffe5e0 0%, #fff5f3 100%);
  border: 2px solid #ffb3ac;
  padding: 1.5rem 2rem;
  margin: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.info-box.highlight::before {
  content: "💡";
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 4rem;
  opacity: 0.15;
}
.info-box.highlight h2 {
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  color: #b22222;
}
.info-box.highlight p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
}

/* =========================
   Responsive Anpassung
   ========================= */
@media (max-width: 600px) {
  .info-box.highlight {
    padding: 1rem;
    margin: 1.5rem 0.5rem;
  }
  .info-box.highlight h2 {
    font-size: 1.4rem;
  }
  .info-box.highlight p {
    font-size: 1rem;
  }
}

/* =========================
   SEO-Text
   ========================= */
.seo-text {
  background-color: #f9f9f9;
  padding: 2rem;
  margin: 2rem auto;
  border-left: 6px solid #3d9970;
  max-width: 900px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
}
.seo-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.seo-text h2 i {
  color: #3d9970;
}

/* =========================
   Hintergrundbild für body
   ========================= */
body {
  background: url('/bilder/bg-offroad.jpg') center top no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #fdfdfd;
}
