/* ----------------------- Grundlayout ----------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  font-family: system-ui, sans-serif;
  padding-top: 63px;
  margin-bottom: 118px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  transition: background 0.3s ease, color 0.3s ease;
}
.hero {
  height: 90vh;
  transition: background-color 0.3s ease;
}
#vorteile {
  transition: background-color 0.3s ease, color 0.3s ease;
}
#vorteile .text-muted {
  color: #6c757d;
}
a {
  position: relative;
  color: #66aaff;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:not(:has(img))::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transition: width 0.4s ease;
}
a:hover::after,
a:focus::after {
  width: 100%;
}
a:hover {
  color: #007bff;
  text-decoration: underline;
}
#darkModeToggle {
  line-height: 1;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
}
#langSwitch {
  min-width: 70px;
}
.stoerer {
  display: none;
}
.card {
  transition: background-color 0.3s ease, color 0.3s ease;
}
input,
textarea,
select {
  transition: background-color 0.3s ease, color 0.3s ease;
}
.progress {
  height: 1.5rem;
}
.progress-bar {
  white-space: normal;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.5rem;
}
@media (max-width: 400px) {
  .progress-bar {
    font-size: 0.75rem;
  }
}
.progress-bar-33 { width: 33%; }
.progress-bar-66 { width: 66%; }
.progress-bar-100 { width: 100%; }

.remove-btn {
  margin-left: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.remove-btn:hover {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}
/* ----------------------- Light Mode ----------------------- */
body[data-bs-theme="light"] {
  background-color: #ffffff;
  color: #212529;
}
body[data-bs-theme="light"] header { background-color: #fff; }
.hero[data-bs-theme="light"] { background-color: #f8f9fa; }
#vorteile[data-bs-theme="light"] { background-color: #f8f9fa; color: #212529; }
#vorteile[data-bs-theme="light"] .text-muted { color: #6c757d; }
body[data-bs-theme="light"] .btn-primary {
  background-color: #0d6efd;
  border-color: #0a58ca;
  color: #fff;
}
body[data-bs-theme="light"] .remove-btn {
  background-color: #f8f9fa;
  color: #212529;
  border-color: #ccc;
}
body[data-bs-theme="light"] input,
body[data-bs-theme="light"] textarea,
body[data-bs-theme="light"] select {
  background-color: #fff;
  color: #212529;
  border-color: #ced4da;
}
/* ----------------------- Dark Mode ----------------------- */
body[data-bs-theme="dark"] {
  background-color: #121212;
  color: #e0e0e0;
}
body[data-bs-theme="dark"] header { background-color: #1c1c1c; }
.hero[data-bs-theme="dark"] { background-color: #1e1e1e; }
#vorteile[data-bs-theme="dark"] { background-color: #222; color: #ddd; }
#vorteile[data-bs-theme="dark"] .text-muted { color: #aaa; }
body[data-bs-theme="dark"] a { color: #66aaff; }
body[data-bs-theme="dark"] a:hover { text-decoration: underline; }
body[data-bs-theme="dark"] .btn-primary {
  background-color: #0056b3;
  border-color: #004085;
  color: #fff;
}
body[data-bs-theme="dark"] .remove-btn {
  background-color: #444;
  color: #ddd;
  border-color: #666;
}
body[data-bs-theme="dark"] .remove-btn:hover {
  background-color: #ff4d4f;
  color: #fff;
  border-color: #ff4d4f;
}
body[data-bs-theme="dark"] .card {
  background-color: #1c1c1c;
  color: #e0e0e0;
}
body[data-bs-theme="dark"] .bg-light { background-color: #222 !important; }
body[data-bs-theme="dark"] .text-dark { color: #eee !important; }
/* Formularfelder Darkmode */
body[data-bs-theme="dark"] input,
body[data-bs-theme="dark"] textarea,
body[data-bs-theme="dark"] select {
  background-color: #2b2b2b;
  color: #f1f1f1;
  border-color: #555;
}
/* Placeholder-Farbe */
body[data-bs-theme="dark"] ::placeholder { color: #aaa; }
/* Labels */
body[data-bs-theme="dark"] label,
body[data-bs-theme="dark"] .form-label,
body[data-bs-theme="dark"] .form-floating > label {
  color: #ccc;
}
/* Invalid-Felder */
body[data-bs-theme="dark"] .is-invalid { border-color: #e63946 !important; }
body[data-bs-theme="dark"] .invalid-feedback { color: #f88 !important; }
/* ----------------------- Media Queries ----------------------- */
@media (min-width: 768px) {
  body { margin-bottom: 89px; }
}
/* Theme-Schalter */
#bd-theme-toggle {
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;
}
#bd-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  line-height: 1;
  font-size: 1rem;
}
.btn-bd-primary {
  --bd-violet-bg: #712cf9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8;
}
/* Unterline-Effekt bei Links ausschalten, die im Offcanvas-Menü sind */
.offcanvas a::after {
  content: none !important;
}
.vorteil-icon {
  font-size: 80px;
}
/* Kontaktformular */
textarea#message {
  height: 150px;
}
button#druckBtn {
  display: none;
}
span.contact-message {
  white-space: pre-line;
}