/* Enhanced focus indicators for accessibility - only for keyboard navigation */
*:focus-visible {
  outline: 2px solid #6366f1 !important;
  outline-offset: 2px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #6366f1 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  *:focus-visible {
    outline: 3px solid #000 !important;
    outline-offset: 1px !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Improved color contrast for better accessibility */
.text-gray-600 {
  color: #374151 !important; /* Darker gray for better contrast */
}

.text-gray-500 {
  color: #4B5563 !important; /* Darker gray for better contrast */
}

/* Ensure sufficient contrast for links */
a:not(.text-indigo-600):not(.text-white) {
  color: #1F2937 !important; /* Dark gray for better contrast */
}

/* Lineal Bar */
#lineal-bar {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 3px;
  background: #6366f1;
  opacity: 0.7;
  z-index: 9999;
  pointer-events: none;
  display: none;
  transition: background 0.2s;
}

/* Expandable Content */
.expandable-content {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.expandable-content.expanded {
  max-height: 1000px;
}

.expandable-content.collapsed {
  max-height: 12rem; /* Approximately 3 lines of text */
}

/* Modal / Lightbox */
.maximize-img-btn, .maximize-video-btn { cursor: zoom-in; }
#img-lightbox-modal { transition: opacity 0.2s; }
#img-lightbox-modal:not(.hidden) { display: flex; }

/* -------------------------------------------------------------------------- */
/*                                 Index Page                                 */
/* -------------------------------------------------------------------------- */

.parallax-img-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* So user can click through */
  z-index: 10; /* Above content but below modals if needed */
}

#parallax-showcase img {
  transform: translateX(-50%);
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.floating-img {
  position: absolute;
  width: 150px;
  height: auto;
  transition: transform 0.1s ease-out;
}

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease-out;
  z-index: 1000;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid #10B981;
}

.notification.error {
  border-left: 4px solid #EF4444;
}

.feature-container {
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid #f3f4f6 !important;
}

.feature-container:hover {
  border-color: #6366f1 !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
  transform: translateY(-4px);
}

/* Blog post hover effects - matches blog page */
#blog article {
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid #f3f4f6 !important;
}

#blog .group:hover article {
  border-color: #6366f1 !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
  transform: translateY(-4px);
}

/* Icon button scale on hover - no color change */
#blog .blog-icon-button {
  transition: all 0.3s ease;
}

#blog .group:hover .blog-icon-button {
  transform: scale(1.15);
}

.feature-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  color: #4F46E5;
}

.feature-icon-bg {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: #EEF2FF;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonials carousel animation */
.animate-scroll {
  animation: scroll-testimonials 30s linear infinite;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

/* -------------------------------------------------------------------------- */
/*                                 Blog Pages                                 */
/* -------------------------------------------------------------------------- */

/* Blog post animation */
.blog-post {
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-post.hidden-post {
  display: none;
  opacity: 0;
}

.blog-post article {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid #f3f4f6 !important;
}

.blog-post:hover article,
.group:hover .blog-post article,
a:hover .blog-post article {
  border-color: #6366f1 !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
  transform: translateY(-4px);
}

.blog-icon-button {
  transition: all 0.3s ease;
}

.blog-post:hover .blog-icon-button,
.group:hover .blog-icon-button,
a:hover .blog-icon-button {
  transform: scale(1.15);
}

.blog-post .p-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post .p-6 p {
  flex: 1;
}

.blog-content {
  max-width: 100%;
  margin: 0 auto;
}

.blog-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 4rem;
  margin-bottom: 1.25rem;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 0.875rem;
  color: #1f2937;
  line-height: 1.3;
}

/* Override blog h2 styles for hero section */
.blog-content section h2 {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 800; /* font-extrabold */
  margin-top: 0;
  margin-bottom: 1.5rem; /* mb-6 */
  line-height: 1.25; /* leading-tight */
  letter-spacing: normal; /* no letter-spacing class in index */
}

@media (min-width: 1024px) {
  .blog-content section h2 {
    font-size: 3rem; /* lg:text-5xl */
  }
}

/* Override blog h3 styles for hero section */
.blog-content section h3 {
  font-size: 1rem; /* default text size */
  font-weight: 600; /* font-semibold */
  margin-top: 0;
  margin-bottom: 0;
  color: #1f2937; /* text-gray-800 */
  line-height: 1.5; /* default line-height */
  letter-spacing: normal; /* default letter-spacing */
}

/* Make hero section break out of blog-content constraints */
.blog-content section.hero-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.blog-content p {
  margin-bottom: 1.75rem;
  line-height: 1.8;
  color: #374151;
  font-size: 1.0625rem;
}

.blog-content > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1f2937;
  font-weight: 400;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  color: #374151;
  font-size: 1.0625rem;
}

.blog-content strong {
  font-weight: 700;
  color: #111827;
}

.blog-content .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.blog-content .feature-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.blog-content .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.blog-content .feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #6366f1;
}

.blog-content .feature-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 100%;
}

.blog-content .feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.blog-content .stat-highlight {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0 0.25rem;
}

.blog-content .cta-inline {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  text-align: center;
}

.blog-content .trap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.blog-content .trap-item {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  padding: 1.75rem;
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 1rem;
  transition: all 0.3s ease;
  align-items: flex-start;
  justify-content: space-between;
}

.blog-content .trap-item:hover {
  border-color: #ef4444;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.12);
  transform: translateY(-4px);
}

.blog-content .trap-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  order: 2;
}

.blog-content .trap-content {
  order: 1;
  flex: 1;
}

.blog-content .trap-content h3 {
  margin: 0 0 0.625rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  text-align: left;
  line-height: 1.3;
}

.blog-content .trap-content p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.9375rem;
  max-width: 100%;
}

.image-placeholder {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 500;
  margin: 2rem 0;
  min-height: 400px;
}

/* Sticky Table of Contents */
.sticky-container {
  position: relative;
}

.sticky-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  width: 240px;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  align-self: start;
}

.sticky-toc h3 {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
}

.sticky-toc ul {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.sticky-toc li {
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

.sticky-toc a {
  display: block;
  color: #4b5563 !important;
  font-size: 0.875rem !important;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.sticky-toc a:hover {
  background: #f3f4f6;
  color: #6366f1 !important;
  border-left-color: #6366f1;
}

.sticky-toc a.active {
  background: #eef2ff;
  color: #6366f1 !important;
  font-weight: 600;
  border-left-color: #6366f1;
}

/* Sticky Widget */
.sticky-widget {
  position: sticky;
  top: 100px;
  width: 240px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  align-self: start;
}

.sticky-widget img {
  width: 100%;
  height: auto;
  display: block;
}

.sticky-widget-content {
  padding: 1.5rem;
  color: #1f2937;
  text-align: center;
}

.sticky-widget-content h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem 0 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
}

.sticky-widget-content p {
  font-size: 0.875rem !important;
  margin: 0 0 1.25rem 0 !important;
  color: #6b7280 !important;
  line-height: 1.5 !important;
}

.sticky-widget-button {
  display: inline-block;
  width: 100%;
  background: linear-gradient(to right, #4f46e5, #2563eb);
  color: white !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
}

.sticky-widget-button:hover {
  background: linear-gradient(to right, #4338ca, #1d4ed8);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px 0 rgba(79, 70, 229, 0.4);
}

/* Three column layout */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
  position: relative;
}

.article-main-content {
  min-width: 0;
  padding-left: 2rem;
  padding-right: 2rem;
}


/* Responsive adjustments */
@media (max-width: 1280px) {
  .article-layout {
    grid-template-columns: 220px 1fr 220px;
    gap: 0;
  }

  .sticky-toc {
    width: 220px;
  }

  .sticky-widget {
    width: 220px;
  }
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sticky-toc,
  .sticky-widget {
    display: none;
  }
}

@media (max-width: 768px) {
  .blog-content h2 {
    font-size: 1.75rem;
    margin-top: 3.5rem;
  }

  .blog-content h3 {
    font-size: 1.125rem;
    margin-top: 2.5rem;
  }

  .blog-content p,
  .blog-content li {
    font-size: 1rem;
  }

  .blog-content > p:first-of-type {
    font-size: 1.125rem;
  }

  .blog-content .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-content .trap-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-content .trap-item {
    padding: 1.5rem;
  }
}

  
/* -------------------------------------------------------------------------- */
/*                                Privacy Pages                               */
/* -------------------------------------------------------------------------- */

.privacy-section {
  margin-bottom: 2rem;
}

.privacy-section h2 {
  color: #4F46E5;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.privacy-section h3 {
  color: #4F46E5;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

.privacy-section p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.privacy-section ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
  list-style-type: disc;
}

.privacy-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

/* Table wrapper for mobile scrolling */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensures table doesn't get too cramped */
}

.privacy-table th,
.privacy-table td {
  border: 1px solid #E5E7EB;
  padding: 0.75rem 1rem;
  text-align: left;
}

.privacy-table th {
  background-color: #F9FAFB;
  font-weight: 600;
  color: #374151;
}

.privacy-table td {
  color: #4B5563;
}


/* -------------------------------------------------------------------------- */
/*                                Report Page                                 */
/* -------------------------------------------------------------------------- */

.loading-spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Standardmäßig sind Aussprachehinweise versteckt */

  
  .ruby-text rt {
    display: none;
  }
  
  /* Wenn aktiviert, werden Aussprachehinweise angezeigt */
  .ruby-text.show-pronunciation rt {
    display: ruby-text;
    font-size: 0.75em;
    color: #0082fc;
    font-weight: 500;
  }
  
  .ruby-text.show-pronunciation {
    ruby-position: over;
    font-size: 1em;
  }

/* Tooltip Styles für Fachbegriffe */
abbr {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #6366f1;
  cursor: help;
  position: relative;
}

abbr:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

abbr:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Focus styles für Keyboard-Navigation */
abbr:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 2px;
}

abbr:focus::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

abbr:focus::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Dicke Fokus-Indikatoren für Video-Elemente */
video:focus {
  outline: 8px solid #6366f1 !important;
  outline-offset: 12px !important;
  border-radius: 12px;
  box-shadow: 0 0 0 12px rgba(99, 102, 241, 0.4) !important;
  position: relative;
  z-index: 10;
}

video:focus-visible {
  outline: 8px solid #6366f1 !important;
  outline-offset: 12px !important;
  border-radius: 12px;
  box-shadow: 0 0 0 12px rgba(99, 102, 241, 0.4) !important;
  position: relative;
  z-index: 10;
}

/* Zusätzliche Hover-Effekte für Video-Elemente */
video:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease-in-out;
}

/* Tooltip Styles für Social Media Links */
.social-link {
  position: relative;
  cursor: pointer;
}

.social-link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.social-link:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Focus styles für Social Media Links */
.social-link:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 2px;
}

.social-link:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.social-link:focus::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Tooltip Styles für Accessibility Options */
.accessibility-option {
  position: relative;
  cursor: pointer;
}

.accessibility-option:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.accessibility-option:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Focus styles für Accessibility Options */
.accessibility-option:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 2px;
}

.accessibility-option:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.accessibility-option:focus::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}
