/* ===== QUICK FIXES ===== */

/* Hide Browser Extension Elements */
plasmo-csui {
  display: none !important;
}

/* Global Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

a, button, .btn {
  transition: all 0.3s ease;
}

/* Section Symmetry & Centering */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Center container with section-title and Kontakt */
.container:has(.section-title) {
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Center Kontakt section specifically */
.contact .container,
.kontakt .container {
  text-align: center;
  max-width: 800px;
}

.section-description, .section-lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Make services section readable/visible */
.services {
  background: #23272f !important;
  border: 1px solid #24292f !important;
  border-radius: 16px !important;
  padding: 3rem 0 !important;
  margin: 2rem 0 !important;
}

.services .service-card {
  background: #181a1b !important;
  border: 1px solid #24292f !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  color: #f3f4f6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease !important;
}

.services .service-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  border-color: #3b82f6 !important;
}

.services .service-card h3 {
  color: #3b82f6 !important;
  font-size: 1.3rem !important;
  margin-bottom: 1rem !important;
}

.services .service-card p {
  color: #9ca3af !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
}

/* Fix service-highlight-note icon alignment */
.service-highlight-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  line-height: 1.6;
}

.service-highlight-note .icon-lg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  font-size: 1.5rem !important;
  flex-shrink: 0;
  margin: 0 !important;
}

.service-highlight-note strong {
  font-size: inherit;
  line-height: inherit;
}


/* Footer Blue Theme */
footer {
  background: #181a1b !important;
  color: #f3f4f6 !important;
  border-top: 1px solid #24292f !important;
}

footer .footer-container {
  background: transparent !important;
}

footer .footer-bottom {
  background: #23272f !important;
  border-top: 1px solid #24292f !important;
  color: #9ca3af !important;
}

footer h3, footer h4 {
  color: #f3f4f6 !important;
}

footer a {
  color: #9ca3af !important;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #3b82f6 !important;
}

/* Form Note Centered */
.form-note {
  text-align: center !important;
  margin: 1.5rem auto !important;
  max-width: 600px !important;
}

/* FAQ Styles Fix - Reduced padding and better proportions */
.faq-section {
  padding: 2rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #23272f !important;
  border: 1px solid #24292f !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
}

.faq-question {
  width: 100% !important;
  padding: 1rem 1.25rem !important;
  background: transparent !important;
  border: none !important;
  color: #f3f4f6 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: background 0.3s ease !important;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.faq-answer {
  padding: 0 1.25rem !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.3s ease, padding 0.3s ease !important;
  color: #9ca3af !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.faq-question[aria-expanded="true"] + .faq-answer,
.faq-answer.open {
  max-height: 400px !important;
  padding: 0 1.25rem 1rem !important;
}

.faq-icon {
  transition: transform 0.3s ease !important;
  color: #3b82f6 !important;
  font-size: 1rem !important;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg) !important;
}

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.use-case-item {
  background: #181a1b;
  border: 1px solid #24292f;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center; /* Center all content including icons */
}

.use-case-item:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.use-case-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto; /* Center horizontally */
  text-align: center;
}

.use-case-icon i {
  font-size: 1.75rem;
  color: #ffffff;
  display: block;
  line-height: 1;
  vertical-align: middle;
}

.use-case-item h4 {
  color: #f3f4f6;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.use-case-item p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.use-case-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .use-case-item {
    padding: 1.5rem;
    text-align: center; /* Ensure centering on mobile */
  }

  .use-case-icon {
    margin: 0 auto 1.5rem auto; /* Center icons on mobile */
  }
}

@media (max-width: 480px) {
  .use-case-item {
    padding: 1rem;
  }

  .use-case-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem auto;
  }

  .use-case-icon i {
    font-size: 1.5rem;
  }
}

/* Process Steps Grid Layout */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  background: #181a1b;
  border: 1px solid #24292f;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.process-step h3 {
  color: #f3f4f6;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.process-step p {
  color: #9ca3af;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Guide Grid & Info Box Centering */
.guide-grid, .info-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Related Services Auto-Scroll - Fix section movement */
.related-services {
  overflow: hidden;
  position: relative;
  transform: none !important;
  transition: none !important;
}

.related-services-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.1s linear;
  will-change: transform;
}

.related-service-card {
  flex: 0 0 300px;
  min-width: 300px;
}

@media (max-width: 768px) {
  .related-service-card {
    flex: 0 0 250px;
    min-width: 250px;
  }
}

/* Prevent section from moving on scroll */
.related-services[style*="transform"] {
  transform: none !important;
}

/* Form Validation Styles */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-group.error label {
  color: #ef4444 !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
  line-height: 1.4;
}

/* Hide error messages by default - only show when there's actual content */
.error-message:empty,
.error-message:not([role="alert"]) {
  display: none !important;
}

/* Only show error messages when they have content */
.error-message:not(:empty)[role="alert"] {
  display: block;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Loading State */
button.loading {
  position: relative;
  pointer-events: none;
}

button.loading .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form Group Focus States */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Simplified Checkbox Group */
.checkbox-group {
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 0.5rem;
}

.checkbox-group label {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.checkbox-group label a:hover {
  color: #3b82f6;
}

/* Checkbox Validation */
.checkbox-group.error input[type="checkbox"] {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.checkbox-group.error label {
  color: #ef4444 !important;
}

.checkbox-group.error label a {
  color: #ef4444 !important;
}

/* Success State */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* FAQ Accessibility Improvements */
.faq-question {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-question:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-question:focus:not(:focus-visible) {
  outline: none;
}

.faq-question:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-answer[hidden] {
  display: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .faq-question:focus {
    outline-width: 3px;
    outline-color: #ffffff;
  }
  
  .faq-question[aria-expanded="true"] {
    background-color: rgba(59, 130, 246, 0.1);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none !important;
  }
  
  .faq-icon {
    transition: none !important;
  }
}

/* FAQ Toggle Buttons */
.faq-toggle-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.faq-toggle-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.faq-toggle-btn i {
  font-size: 0.875rem;
}

#faq-close-mobile-btn {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #24292f;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#faq-close-mobile-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #24292f;
  color: #f3f4f6;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== COOKIE CONSENT BANNER ===== */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #181a1b 0%, #23272f 100%);
  border-top: 2px solid #3b82f6;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-consent-banner.show {
  transform: translateY(0);
}

.consent-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.consent-content h3 {
  color: #f3f4f6;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.consent-content p {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.consent-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.consent-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(35, 39, 47, 0.5);
  border: 1px solid #24292f;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.consent-option:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.consent-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.consent-option strong {
  color: #f3f4f6;
  font-size: 1rem;
  font-weight: 600;
}

.consent-option span:not(.checkmark) {
  color: #9ca3af;
  font-size: 0.9rem;
}

.consent-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.consent-buttons .btn {
  min-width: 160px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.consent-buttons .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: white;
}

.consent-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.consent-buttons .btn-secondary {
  background: transparent;
  border: 2px solid #3b82f6;
  color: #3b82f6;
}

.consent-buttons .btn-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

.consent-buttons .btn-outline {
  background: transparent;
  border: 2px solid #6b7280;
  color: #9ca3af;
}

.consent-buttons .btn-outline:hover {
  border-color: #ef4444;
  color: #ef4444;
  transform: translateY(-2px);
}

.consent-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #24292f;
}

.consent-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.consent-links a:hover {
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #cookie-consent-banner {
    padding: 1.5rem 1rem;
  }
  
  .consent-content h3 {
    font-size: 1.25rem;
  }
  
  .consent-content p {
    font-size: 0.95rem;
  }
  
  .consent-options {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .consent-option {
    min-width: auto;
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 1rem;
  }
  
  .consent-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .consent-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .consent-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  #cookie-consent-banner {
    padding: 1rem;
  }
  
  .consent-content h3 {
    font-size: 1.1rem;
  }
  
  .consent-option {
    padding: 0.75rem;
  }
  
  .consent-option strong {
    font-size: 0.95rem;
  }
}
