:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2c2c2c;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --accent: #007bff;
  --card-bg: #2c2c2c;
}

/* Dark Mode - Weißer Text auf dunklem Hintergrund */
body.dark-mode {
  background: var(--bg-primary);
  color: var(--text-primary);
}
body.dark-mode .section,
body.dark-mode .footer {
  background: var(--bg-primary);
  color: var(--text-primary);
}
body.dark-mode .card,
body.dark-mode .testimonial-item,
body.dark-mode .angebot-item {
  background: var(--card-bg);
  color: var(--text-primary);
}
body.dark-mode .card-title,
body.dark-mode .card-text,
body.dark-mode .card-body {
  color: var(--text-primary);
}
body.dark-mode .hero-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/img/hero-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
body.dark-mode .hero-content {
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-secondary);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.dark-mode .btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
body.dark-mode .btn-primary:hover {
  background-color: #0056b3;
  color: #ffffff;
}
body.dark-mode .btn-outline-primary {
  color: var(--text-primary);
  border-color: var(--accent);
}
body.dark-mode .btn-outline-primary:hover {
  background-color: var(--accent);
  color: #ffffff;
}
body.dark-mode .faq-item h4 {
  color: var(--accent);
}
body.dark-mode .faq-item p {
  color: var(--text-primary);
}
body.dark-mode .about,
body.dark-mode .about h2,
body.dark-mode .about p,
body.dark-mode .about li,
body.dark-mode .about a {
  color: var(--text-primary);
}
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode li,
body.dark-mode span,
body.dark-mode div {
  color: var(--text-primary);
}
body.dark-mode .section-title h2,
body.dark-mode .section-title p {
  color: var(--text-primary);
}
body.dark-mode .info-item h3,
body.dark-mode .info-item p,
body.dark-mode .info-item a {
  color: var(--text-primary);
}
body.dark-mode .testimonial-item h4,
body.dark-mode .testimonial-item p {
  color: var(--text-primary);
}
body.dark-mode .angebot-item h3,
body.dark-mode .angebot-item p,
body.dark-mode .angebot-item li {
  color: var(--text-primary);
}
body.dark-mode .footer h4,
body.dark-mode .footer p,
body.dark-mode .footer a,
body.dark-mode .footer li,
body.dark-mode .footer span,
body.dark-mode .footer .sitename {
  color: var(--text-primary);
}
body.dark-mode .lead {
  color: var(--text-primary);
}
body.dark-mode .list-unstyled,
body.dark-mode .list-unstyled li {
  color: var(--text-primary);
}
body.dark-mode .list-unstyled i {
  color: var(--accent);
}
body.dark-mode .cta-buttons a {
  color: #ffffff;
}
body.dark-mode .social-links a {
  color: var(--text-primary);
}
body.dark-mode .copyright,
body.dark-mode .credits {
  color: var(--text-primary);
}
body.dark-mode .copyright a,
body.dark-mode .credits a {
  color: var(--accent);
}
body.dark-mode .form-control {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
body.dark-mode .form-control:focus {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--accent);
}
body.dark-mode a {
  color: var(--accent);
}
body.dark-mode a:hover {
  color: #4da3ff;
}
body.dark-mode .header .logo,
body.dark-mode .header .sitename,
body.dark-mode .header .navmenu a {
  color: var(--text-primary);
}
body.dark-mode .header .navmenu .active {
  color: var(--accent);
}

/* Light Mode - Schwarzer Text auf hellem Hintergrund */
body {
  background: #ffffff;
  color: #212529;
  transition: all 0.3s ease;
}
body:not(.dark-mode) .section,
body:not(.dark-mode) .footer {
  background: #ffffff;
  color: #212529;
}
body:not(.dark-mode) .card,
body:not(.dark-mode) .testimonial-item,
body:not(.dark-mode) .angebot-item {
  background: #f8f9fa;
  color: #212529;
}
body:not(.dark-mode) .card-title,
body:not(.dark-mode) .card-text,
body:not(.dark-mode) .card-body {
  color: #212529;
}
body:not(.dark-mode) .hero-container {
  background-image: url('assets/img/hero-background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
body:not(.dark-mode) .hero-content {
  background: rgba(255, 255, 255, 0.9);
  color: #212529;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body:not(.dark-mode) .section-title h2,
body:not(.dark-mode) .section-title p {
  color: #212529;
}
body:not(.dark-mode) .info-item h3,
body:not(.dark-mode) .info-item p,
body:not(.dark-mode) .info-item a {
  color: #212529;
}
body:not(.dark-mode) .testimonial-item h4,
body:not(.dark-mode) .testimonial-item p {
  color: #212529;
}
body:not(.dark-mode) .angebot-item h3,
body:not(.dark-mode) .angebot-item p,
body:not(.dark-mode) .angebot-item li {
  color: #212529;
}
body:not(.dark-mode) .faq-item h4 {
  color: var(--accent);
}
body:not(.dark-mode) .faq-item p {
  color: #212529;
}
body:not(.dark-mode) h1,
body:not(.dark-mode) h2,
body:not(.dark-mode) h3,
body:not(.dark-mode) h4,
body:not(.dark-mode) h5,
body:not(.dark-mode) h6 {
  color: #212529;
}
body:not(.dark-mode) .footer h4,
body:not(.dark-mode) .footer p,
body:not(.dark-mode) .footer a,
body:not(.dark-mode) .footer li,
body:not(.dark-mode) .footer span {
  color: #212529;
}
body:not(.dark-mode) .form-control {
  background-color: #ffffff;
  color: #212529;
  border-color: #ced4da;
}
body:not(.dark-mode) .form-control::placeholder {
  color: #6c757d;
}
body:not(.dark-mode) .form-control:focus {
  background-color: #ffffff;
  color: #212529;
  border-color: var(--accent);
}
body:not(.dark-mode) .lead {
  color: #212529;
}
body:not(.dark-mode) .list-unstyled,
body:not(.dark-mode) .list-unstyled li {
  color: #212529;
}
body:not(.dark-mode) .list-unstyled i {
  color: var(--accent);
}
body:not(.dark-mode) .cta-buttons a {
  color: #ffffff;
}
body:not(.dark-mode) .social-links a {
  color: #212529;
}
body:not(.dark-mode) .copyright,
body:not(.dark-mode) .credits {
  color: #212529;
}
body:not(.dark-mode) .copyright a,
body:not(.dark-mode) .credits a {
  color: var(--accent);
}
body:not(.dark-mode) .header .logo,
body:not(.dark-mode) .header .sitename,
body:not(.dark-mode) .header .navmenu a {
  color: #212529;
}
body:not(.dark-mode) .header .navmenu .active {
  color: var(--accent);
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.theme-toggle:hover {
  background: #0056b3;
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: var(--card-bg);
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: var(--text-primary);
}
.faq-item {
  margin-bottom: 20px;
}
.faq-item h4 {
  cursor: pointer;
  color: var(--accent);
}
.faq-item p {
  display: none;
}
img {
  loading: lazy;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--card-bg);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner-text {
  margin: 0;
  color: var(--text-primary);
  flex: 1;
  min-width: 250px;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Gleichwertige Buttons - keine visuellen Nachteile für "Ablehnen" */
.cookie-banner-buttons .btn {
  min-width: 120px;
  min-height: 40px;
}

.cookie-banner-buttons .btn-link {
  min-width: auto;
  padding: 8px 12px;
  font-size: 0.9em;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-banner-buttons {
    width: 100%;
  }
  
  .cookie-banner-buttons button {
    flex: 1;
    min-height: 44px; /* Mindest-Touch-Target-Größe */
  }
  
  .theme-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .hero-content {
    padding: 20px !important;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }
  
  /* Mobile Navigation Optimierung */
  .navmenu ul {
    flex-direction: column;
  }
  
  .navmenu ul li {
    margin: 5px 0;
  }
  
  /* Mobile Button Optimierung */
  .btn-primary,
  .btn-outline-primary {
    font-size: 16px;
    padding: 12px 24px;
  }
  
}

/* Cookie-Einstellungen Floating Button */
.cookie-settings-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.cookie-settings-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cookie-settings-floating:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .cookie-settings-floating {
    width: 48px;
    height: 48px;
    bottom: 15px;
    right: 15px;
    font-size: 1.3rem;
  }
}

/* Cookie-Einstellungen Modal */
.cookie-settings-options {
  margin: 20px 0;
}

.cookie-option {
  padding: 15px;
  background: var(--card-bg);
  border-radius: 5px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

/* Toggle Switch für Cookie-Optionen */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-settings-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-settings-buttons {
    flex-direction: column;
  }
  
  .cookie-settings-buttons .btn {
    width: 100%;
  }
}
