/* Theme Variables */
:root {
  --theme-bodyBackground-color: #f4f5f7;
  --theme-bodyText-color: #0b1f3b;
  --theme-h1-color: #45454d;
  --theme-h2-color: #45454d;
  --theme-h3-color: #45454d;
  --theme-h4-color: #45454d;
  --theme-h5-color: #0b1f3b;
  --theme-h6-color: #0b1f3b;
  --theme-link-color: #45454d;
  --theme-button-color: #555e6e;
  --theme-navigationActive-color: #0b1f3b;
  --theme-heading-font-family: Poppins;
  --theme-body-font-family: Poppins;
  --page-background-color: #f4f5f7;
  --page-color: #0b1f3b;
  --navigation-background-color: #f4f5f7;
  --navigation-color: #0b1f3b;
  --navigation-active-color: #0b1f3b;
  --navigation-spacing: 16px;
}

/* Base Styles */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--theme-bodyText-color);
  background-color: var(--theme-bodyBackground-color);
}
h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, sans-serif;
  margin: 0 0 1rem;
  word-wrap: break-word;
}
h1 { font-size: 40px; color: var(--theme-h1-color); }
h2 { font-size: 33px; color: var(--theme-h2-color); }
h3 { font-size: 28px; color: var(--theme-h3-color); }
h4 { font-size: 23px; color: var(--theme-h4-color); }
h5 { font-size: 19px; color: var(--theme-h5-color); }
h6 { font-size: 16px; color: var(--theme-h6-color); }
a { color: var(--theme-link-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Layout */
.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.section {
  position: relative;
  width: 100%;
}
.section-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}
.section-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}
.section-content.wide { max-width: 1280px; }

/* Grid System */
.grid-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
.grid-column {
  padding: 0 8px;
  flex: 1;
}
@media (max-width: 767px) {
  .grid-column { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-column-md-6 { flex: 0 0 50%; max-width: 50%; }
  .grid-column-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Header & Navigation */
header {
  background-color: var(--navigation-background-color);
  padding: 8px 0;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; text-decoration: none; }
.logo-text {
  font-family: Poppins, sans-serif;
  font-size: 20px;
  color: var(--theme-bodyText-color);
}
nav { display: flex; align-items: center; }
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
nav a {
  color: var(--navigation-color);
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}
nav a:hover, nav a.active {
  background-color: rgba(11, 31, 59, 0.1);
  text-decoration: none;
}
.nav-toggle { display: none; }
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--navigation-color);
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navigation-background-color);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  nav.open ul { display: flex; }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0b1f3b 0%, #555e6e 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 48px; margin-bottom: 16px; }
.hero p { font-size: 20px; opacity: 0.9; max-width: 600px; margin: 0 auto; }
@media (max-width: 767px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
}

/* Content Sections */
.content-section {
  padding: 60px 0;
}
.content-section:nth-child(even) { background-color: #fff; }
.content-section h2 { text-align: center; margin-bottom: 40px; }

/* Cards */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; color: #656f7f; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background-color: var(--theme-button-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: #45454d;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--theme-button-color);
  color: var(--theme-button-color);
}
.btn-outline:hover {
  background-color: var(--theme-button-color);
  color: #fff;
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e8;
  border-radius: 4px;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--theme-button-color);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-checkbox input { margin-top: 4px; }

/* Footer */
footer {
  background-color: #0b1f3b;
  color: #f4f5f7;
  padding: 40px 0 20px;
  margin-top: auto;
}
.footer-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-links a { color: #f4f5f7; }
.footer-links a:hover { color: #dee2e8; }
.footer-copyright {
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* Contact Info */
.contact-info { margin: 24px 0; }
.contact-info p { margin: 8px 0; }
.contact-info a { color: var(--theme-link-color); }

/* Image Container */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Animation */
.animated-element {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hero with Background Image */
.hero-with-image {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 31, 59, 0.85) 0%, rgba(85, 94, 110, 0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}
.btn-outline-light {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: #0b1f3b;
  text-decoration: none;
}
@media (max-width: 767px) {
  .hero-with-image {
    min-height: 400px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Section Subtitle */
.section-subtitle {
  text-align: center;
  color: #656f7f;
  font-size: 18px;
  margin-bottom: 40px;
  margin-top: -20px;
}

/* Services Grid */
.services-grid {
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.service-image {
  height: 200px;
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.service-card:hover .service-image img {
  transform: scale(1.05);
}
.service-content {
  padding: 24px;
}
.service-content h3 {
  margin-bottom: 12px;
  color: var(--theme-h3-color);
}
.service-content p {
  color: #656f7f;
  margin: 0;
}
@media (min-width: 768px) {
  .grid-column-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  .grid-column-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* About Section */
.about-section {
  background: #fff;
}
.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}
.about-content {
  padding: 20px 0;
}
.about-content h2 {
  text-align: left;
  margin-bottom: 8px;
}
.about-content h3 {
  color: #656f7f;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
}
.about-content p {
  color: #656f7f;
  margin-bottom: 16px;
}
.align-center {
  align-items: center;
}

/* Portfolio Section */
.portfolio-section {
  background: var(--theme-bodyBackground-color);
}
.portfolio-grid {
  gap: 24px;
}
.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  cursor: pointer;
}
.portfolio-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover .portfolio-image img {
  transform: scale(1.08);
}
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(11, 31, 59, 0.9));
  padding: 40px 24px 24px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}
.portfolio-overlay h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 22px;
}
.portfolio-overlay p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 14px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #0b1f3b 0%, #555e6e 100%);
  color: #fff;
  padding: 60px 0;
}
.stats-grid {
  justify-content: center;
}
.stat-item {
  text-align: center;
  padding: 20px;
}
.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.stat-label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 767px) {
  .stats-grid .grid-column {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .stat-number {
    font-size: 36px;
  }
}

/* Contact Section */
.contact-section {
  background: #fff;
}
.contact-card {
  height: 100%;
}
.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.contact-item strong {
  color: var(--theme-h3-color);
  margin-bottom: 4px;
}
.contact-item a,
.contact-item span {
  color: #656f7f;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px;
}
.legal-content h1 { margin-bottom: 32px; }
.legal-content h2 { margin-top: 32px; font-size: 24px; }
.legal-content h3 { margin-top: 24px; font-size: 20px; }
.legal-content p { margin-bottom: 16px; line-height: 1.7; }
.legal-content ul { margin-bottom: 16px; padding-left: 24px; }
.legal-content li { margin-bottom: 8px; }

/* Form Notifications */
.form-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 15px;
  animation: slideIn 0.3s ease;
}

.form-notification.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.form-notification.success i {
  color: #10b981;
  font-size: 20px;
}

.form-notification.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.form-notification.error i {
  color: #ef4444;
  font-size: 20px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form error state */
input.error,
textarea.error,
select.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Button disabled state */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner animation */
.fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== PAGE TRANSITION ANIMATION ===== */
/* Prevents flicker between page navigation */

/* Page wrapper for transitions */
.page-root {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Fade out state when navigating away */
body.page-transitioning .page-root {
  opacity: 0;
}

/* Initial page load animation */
body.page-loading .page-root {
  opacity: 0;
}

/* Smooth fade-in on page load */
@keyframes pageLoadFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-loaded .page-root {
  animation: pageLoadFadeIn 0.4s ease-out forwards;
}

/* Preload critical resources to prevent visual flicker */
.page-root::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--page-background-color, #f4f5f7);
  z-index: -1;
  pointer-events: none;
}

/* Ensure header doesn't flicker during transition */
.agency-header {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* Page transition overlay (optional smoother effect) */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

body.page-transitioning .page-transition-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Hero and service-hero smooth loading */
.service-hero,
.hero-agency {
  transform: translateZ(0);
  will-change: opacity;
}

/* Prevent content jumping during load */
body {
  overflow-x: hidden;
}

/* Smooth image loading to prevent flicker */
.service-hero-icon,
.feature-icon,
.logo-icon {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== IONOS COOKIE CONSENT BANNER ===== */
/* CSS Variables für Cookie Banner */
:root {
  --privacy-settings-consent-color-background: #ffffff;
  --privacy-settings-consent-color-text: #333333;
  --privacy-settings-consent-color-title: #0b1f3b;
  --privacy-settings-consent-color-link: #007bff;
  --privacy-settings-consent-color-button-primary: #007bff;
  --privacy-settings-consent-color-button-secondary: #6c757d;
}

/* Cookie Banner am unteren Rand */
.banner-consent-all {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
  color: #ffffff;
  padding: 20px 24px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  visibility: hidden;
}

.banner-consent-all.visible {
  visibility: visible;
}

.banner-consent-text {
  flex: 1;
  min-width: 280px;
  font-size: 14px;
  line-height: 1.6;
}

.banner-consent-text h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #ffffff;
}

.banner-consent-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.banner-consent-text a {
  color: #6366f1;
  text-decoration: underline;
}

.banner-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.accept-consent-all,
.reject-consent-all,
.banner-consent-action-more {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.accept-consent-all {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
}

.accept-consent-all:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: translateY(-2px);
}

.reject-consent-all {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.reject-consent-all:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.banner-consent-action-more {
  background: transparent;
  color: #6366f1;
  border: 1px solid #6366f1;
}

.banner-consent-action-more:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* Privacy Settings Button (Cookie Icon) */
.privacy-settings-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%);
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.privacy-settings-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.privacy-settings-button.consent-hidden {
  display: none;
}

.privacy-settings-cookie-icon {
  width: 24px;
  height: 24px;
  fill: #6366f1;
}

.privacy-settings-button-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Privacy Settings Popup */
.privacy-settings-popup-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.privacy-settings-popup-container.consent-hidden {
  display: none;
}

.privacy-settings-inner-wrapper {
  background-color: var(--privacy-settings-consent-color-background);
  color: var(--privacy-settings-consent-color-text);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.privacy-settings-popup {
  padding: 32px;
}

.privacy-settings-popup h3 {
  color: var(--privacy-settings-consent-color-title);
  margin: 0 0 8px 0;
  font-size: 24px;
}

.privacy-settings-popup-column {
  position: relative;
}

.privacy-settings-popup > .privacy-settings-popup-column > p {
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.privacy-settings-popup > .privacy-settings-popup-column a {
  color: var(--privacy-settings-consent-color-link);
}

.privacy-settings-close-button {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #999;
  transition: color 0.2s;
}

.privacy-settings-close-button:hover {
  color: #333;
}

.privacy-settings-close-button svg {
  width: 24px;
  height: 24px;
}

/* Services Container */
.privacy-settings-services-wrapper {
  margin: 24px 0;
}

.privacy-settings-services-container {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.privacy-settings-service-container {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.privacy-settings-service-container:last-child {
  border-bottom: none;
}

.privacy-settings-service-info {
  flex: 1;
}

.privacy-settings-service-title {
  font-weight: 600;
  color: var(--privacy-settings-consent-color-title);
  margin: 0 0 4px 0;
  font-size: 15px;
}

.privacy-settings-service-description {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.privacy-settings-service-hide-description .privacy-settings-service-description {
  display: none;
}

/* Toggle Switch */
.privacy-settings-action {
  position: relative;
}

.toggleswitch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggleswitch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggleswitch span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.3s;
  border-radius: 28px;
}

.toggleswitch span:after {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggleswitch input:checked + span {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.toggleswitch input:checked + span:after {
  transform: translateX(22px);
}

.toggleswitch input:disabled + span {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Action Bar */
.privacy-settings-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}

.privacy-settings-save {
  padding: 12px 32px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.privacy-settings-save:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: translateY(-2px);
}

/* Functional Services (Always On) */
.privacy-settings-services-wrapper.privacy-settings-functional .toggleswitch input {
  pointer-events: none;
}

.privacy-settings-services-wrapper.privacy-settings-functional .toggleswitch span {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0.6;
}

/* Hidden elements */
.privacy-settings-popup-container .hidden {
  display: none;
}

/* Leftcolumn anchor for descriptions */
.privacy-settings-leftColumn-anchor {
  display: none;
}

/* Show description toggle */
.privacy-settings-service-show-description {
  display: none;
}

.privacy-settings-service-show-description-ls-wrapper {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .banner-consent-all {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .banner-consent-buttons {
    width: 100%;
    justify-content: center;
  }

  .accept-consent-all,
  .reject-consent-all,
  .banner-consent-action-more {
    padding: 10px 16px;
    font-size: 13px;
  }

  .privacy-settings-button {
    bottom: 12px;
    left: 12px;
    padding: 10px 16px;
  }

  .privacy-settings-button-text {
    display: none;
  }

  .privacy-settings-popup {
    padding: 24px;
  }

  .privacy-settings-popup h3 {
    font-size: 20px;
  }

  .privacy-settings-inner-wrapper {
    width: 95%;
    max-height: 85vh;
  }

  .privacy-settings-service-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Body padding when banner is visible */
body.cookie-banner-visible {
  padding-bottom: 100px;
}
