/* Tak Trochen – complete theme matching wireframe */
:root {
  --main: #ffce0d;      /* yellow */
  --accent: #fe4a3b;    /* red/orange */
  --ink: #111318;
  --text: #222426;
  --muted: #6b7280;
  --bg: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --container: 1200px;
  
  /* Color variations */
  --main-light: #ffdc4d;
  --main-dark: #e6b80b;
  --main-subtle: rgba(255, 206, 13, 0.1);
  --accent-light: #ff6b5a;
  --accent-dark: #d73e2f;
  --accent-subtle: rgba(254, 74, 59, 0.1);
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--main), var(--main-light));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
  --gradient-hero: linear-gradient(135deg, var(--main), var(--accent));
  
  /* Animation variables */
  --animation-speed: 0.6s;
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Smooth scrolling for modern browsers */
html {
  scroll-behavior: smooth;
}

/* Base animation classes for scroll triggers */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--animation-speed) var(--animation-smooth);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all var(--animation-speed) var(--animation-smooth);
}

.animate-slide-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all var(--animation-speed) var(--animation-smooth);
}

.animate-slide-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--animation-speed) var(--animation-bounce);
}

.animate-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.animate-fade {
  opacity: 0;
  transition: opacity var(--animation-speed) var(--animation-smooth);
}

.animate-fade.in-view {
  opacity: 1;
}

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Keyframe animations for podcast page icons */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Enhanced card animations for podcast page */
.card.animate-on-scroll {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.animate-on-scroll:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Keep emojis static on hover - prevent animation interference */
.card.animate-on-scroll:hover div[style*="animation"] {
  animation-play-state: paused;
}

/* Grid-3 responsive adjustments */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card.animate-on-scroll {
    padding: 20px 15px !important;
  }
  
  .card.animate-on-scroll div[style*="font-size: 48px"] {
    font-size: 36px !important;
  }
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

h1 { font-size: 40px; margin: 0 0 20px; line-height: 1.2; }
h2 { font-size: 28px; margin: 0 0 16px; }
h3 { font-size: 24px; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }

/* Navigation Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease-out;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-mark {
  width: 8px;
  height: 8px;
  background: var(--main);
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--main-subtle);
}

/* Navigation Container */
.nav-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0; /* Allow shrinking */
}

/* Pulse animation removed to keep brand mark stable */

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-out;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 8px;
  transition: left 0.3s var(--animation-smooth);
  z-index: -1;
  opacity: 0.1;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav a:hover::before {
  left: 0;
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 2px 8px var(--accent-subtle);
}

.nav a:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--main-subtle);
}

/* Admin Navigation Button */
.admin-nav-btn {
  background: var(--gradient-accent) !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(254, 74, 59, 0.3) !important;
  transition: all 0.2s ease-out !important;
  position: relative !important;
  overflow: hidden !important;
}

.admin-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s var(--animation-smooth);
  z-index: -1;
}

.admin-nav-btn:hover {
  background: var(--accent-dark) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(254, 74, 59, 0.4) !important;
}

.admin-nav-btn:hover::before {
  left: 0;
}

/* Hero Section */
.hero {
  padding: 60px 0;
  background: var(--main);
  position: relative;
  color: var(--ink);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.hero h1 {
  color: var(--ink);
  text-shadow: none;
}

.hero .lead {
  color: var(--text);
}

.hero-inner {
  padding: 0 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img img {
  width: 70%;
  max-width: 300px;
  height: auto;
  border: none;
}

.section-img {
  display: block;
}

.section-img img {
  width: 100%;
  height: auto;
  border: none;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 28px;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition: all 0.2s ease-out;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s var(--animation-smooth);
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 12px var(--accent-subtle);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px var(--accent-subtle);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Remove sticky focus state after external navigation for all buttons */
.btn:focus:not(:focus-visible) {
  box-shadow: none !important;
  outline: none !important;
  background: revert !important;
  transform: none !important;
}

/* Only show focus styles for keyboard navigation */
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--gradient-main);
  color: var(--ink);
  border: none;
  box-shadow: 0 4px 12px var(--main-subtle);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px var(--main-subtle);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--main-subtle);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border: 2px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.btn-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: left 0.3s var(--animation-smooth);
  z-index: -1;
  opacity: 0.1;
}

.btn-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-subtle);
}

.btn-light:hover::after {
  left: 0;
}

.btn-light:focus {
  outline: none;
  border-color: var(--main);
  box-shadow: 0 0 0 3px var(--main-subtle);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Sections & Layout */

.section { padding: 60px 0; }

.section-accent {
  background: var(--gradient-hero);
}

.section-main {
  background: linear-gradient(135deg, var(--main-subtle), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 8px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--main);
  transition: all 0.25s ease-out;
  overflow: hidden;
}

/* Disable transition for magnetic effect */
.card.magnetic {
  transition: box-shadow 0.4s var(--animation-bounce), border-top-color 0.4s var(--animation-bounce);
}

.btn.magnetic {
  transition: background-color 0.3s var(--animation-bounce), color 0.3s var(--animation-bounce), box-shadow 0.3s var(--animation-bounce);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--animation-smooth);
  z-index: 1;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s var(--animation-smooth);
  z-index: 2;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border-top-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  left: 100%;
}

.card-accent {
  border-top-color: var(--accent);
}

.card-accent:hover {
  border-top-color: var(--main);
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.card li {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text);
}

.card li:last-child {
  margin-bottom: 0;
}

.card-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
  height: 80px;
  width: 80px;
  margin: 0 auto 20px auto;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--main);
  transition: all 0.25s ease-out;
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease-out;
  z-index: -1;
}

.card:hover .card-icon {
  transform: rotate(5deg) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 6px 15px var(--main-subtle);
}

.card:hover .card-icon::before {
  width: 100%;
  height: 100%;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-align-content {
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Notice box */
.notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  font-size: 16px;
}

.notice-main {
  background: var(--main-subtle);
  border: 1px solid var(--main-light);
  border-left: 4px solid var(--main);
}

.notice-accent {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-light);
  border-left: 4px solid var(--accent);
  color: var(--ink);
}

/* FAQ Table */
.table-faq {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table-faq th,
.table-faq td {
  padding: 24px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.table-faq th {
  font-weight: 600;
  color: var(--ink);
  width: 30%;
  vertical-align: top;
}

.table-faq td {
  color: var(--text);
  line-height: 1.6;
}

.table-faq tr:last-child th,
.table-faq tr:last-child td {
  border-bottom: none;
}

/* Testimonial */
.testimonial {
  padding: 0;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  background: var(--main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}

.testimonial-info {
  flex-grow: 1;
}

.testimonial-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars {
  color: var(--main);
  font-size: 14px;
  letter-spacing: 1px;
}

.time {
  color: var(--muted);
  font-size: 14px;
}

.testimonial-text {
  margin: 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 40px;
  color: var(--accent);
  position: absolute;
  left: -8px;
  top: -8px;
  line-height: 1;
}

/* Badge */
.badge {
  background: var(--main);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 8px var(--main-subtle);
  transition: all 0.2s ease;
}

.badge:hover {
  box-shadow: 0 4px 12px var(--main-subtle);
}

.badge-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-subtle);
}

.badge-accent:hover {
  box-shadow: 0 4px 12px var(--accent-subtle);
}

.badge-outline {
  background: transparent;
  border: 2px solid var(--main);
  color: var(--main);
  box-shadow: none;
}

.badge-outline:hover {
  background: var(--main-subtle);
}

/* Footer */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 48px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Subtle login link styling */
.login-link {
  color: #6b7280 !important;
  font-size: 0.875rem;
  text-decoration: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 28px;
  margin-top: 0.5rem;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  font-weight: normal;
}

.login-link:hover {
  opacity: 1;
  color: #4b5563 !important;
  text-decoration: underline;
}

.footer-grid strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-grid p {
  margin: 8px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-grid small {
  color: var(--muted);
  font-size: 14px;
}

/* Fahrplan timeline – zig-zag (center line removed) */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 56px 60px; /* larger rhythm for curves */
}

.step { position: relative; z-index: 0; }

/* Set column alignment */
.step-left { grid-column: 1; }
.step-right { grid-column: 2; }

/* Stronger zig‑zag: offset every second block downward */
.timeline > .step:nth-child(2n) { margin-top: 120px; }

/* Curved dashed connectors anchored at card mid-edge */
.connector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 110px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s var(--animation-smooth);
}
.step-left .connector { right: -2px; }
.step-right .connector { left: -2px; transform: translateY(-50%) scaleX(-1); }
.connector path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 20 5;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 2px 4px var(--accent-subtle));
  transition: all 0.8s var(--animation-smooth);
}

/* Step numbers */
.step-number {
  position: absolute;
  top: -15px;
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--accent-subtle);
  z-index: 10;
  border: 4px solid var(--bg);
  opacity: 0;
  transform: scale(0.3) rotate(-180deg);
  transition: all 0.6s var(--animation-bounce);
}

.step-left .step-number {
  right: -25px;
}

.step-right .step-number {
  left: -25px;
}

.step.in-view .step-number {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.step-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s var(--animation-smooth);
  z-index: -1;
}

.step:hover .step-number::before {
  width: 80px;
  height: 80px;
}

.step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px var(--accent-subtle);
}

/* Number 1 has no special animation - same behavior as other numbers */

@keyframes numberPulse {
  0%, 100% {
    box-shadow: 0 4px 12px var(--accent-subtle);
  }
  50% {
    box-shadow: 0 4px 12px var(--accent-subtle), 0 0 0 8px rgba(254, 74, 59, 0.3);
    transform: scale(1.05);
  }
}

/* CTA block as full-height colored panel on right column */
.cta-block {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 28px;
  display: grid; place-items: center;
  min-height: 240px;
}


/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
  border-top: 4px solid var(--main);
  transition: all 0.2s ease-out;
}

.faq-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
  border-top-color: var(--accent);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

.faq-question::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--main-subtle);
  transition: left 0.3s var(--animation-smooth);
  z-index: -1;
}

.faq-question:hover::before {
  left: 0;
}

.faq-question:hover {
  color: var(--accent);
  padding-left: 28px;
}

.faq-question:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--main-subtle);
}

.faq-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.2s ease-out;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient-main);
  color: var(--ink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s var(--animation-smooth);
  background: #f8fafc;
}

.faq-answer.active {
  max-height: 300px;
  padding: 0 24px 24px 24px;
}

.faq-answer p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 8px;
}

/* Speech Bubble Section */
.speech-bubble {
  background: var(--gradient-accent);
  color: #fff;
  padding: 50px 40px;
  border-radius: 30px;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 35px rgba(254, 74, 59, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 25px solid var(--accent);
  filter: drop-shadow(0 4px 8px rgba(254, 74, 59, 0.2));
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--accent-dark);
  z-index: 1;
}

.speech-bubble h2 {
  color: #fff;
  margin: 0 0 20px 0;
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.speech-bubble p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 30px 0;
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.speech-bubble .btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  border: 3px solid #fff;
  font-weight: 700;
  padding: 16px 32px;
  font-size: 18px;
  transition: all 0.2s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.speech-bubble .btn:hover {
  background: #fff;
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--main);
}

.speech-bubble .btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Newsletter Section */
.newsletter-section {
  background: var(--gradient-accent);
  padding: 40px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: floatPattern 20s linear infinite;
  pointer-events: none;
}

@keyframes floatPattern {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-30px, -30px) rotate(360deg); }
}

.newsletter-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 3px solid var(--main);
}

.newsletter-text h3 {
  color: var(--ink);
  margin: 0 0 16px 0;
  font-size: 24px;
  line-height: 1.3;
}

.newsletter-text p {
  color: var(--text);
  margin: 0;
  font-size: 16px;
}

.newsletter-button {
  text-align: center;
}

.newsletter-button .btn {
  font-size: 18px;
  padding: 16px 32px;
  white-space: nowrap;
}

/* Alternative header style for vyuka.html */
.header { 
  padding: 16px 0; 
  border-bottom: 1px solid #f1f5f9; 
  background: var(--bg);
}

/* Hamburger Menu Styles */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  /* Ensure proper touch target size for mobile */
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle:hover {
  background: var(--accent-subtle);
}

.nav-toggle:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--animation-smooth);
  transform-origin: center;
}

.nav-toggle.active {
  background: var(--accent-subtle);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background: var(--accent);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: var(--accent);
}

/* Mobile CTA Button */
.mobile-cta {
  display: none;
}

.desktop-cta {
  display: inline-block;
}

/* Medium Screen Responsive (Tablet) - Wide Range */
@media (max-width: 1024px) and (min-width: 899px) {
  .nav-container {
    gap: 12px;
  }
  
  .nav {
    gap: 20px;
  }
  
  .nav a {
    font-size: 14px;
    padding: 6px 10px;
  }
  
  .desktop-cta {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  .mobile-cta {
    display: none;
  }
  
  .nav-toggle {
    display: none;
  }
}

/* Medium Screen Responsive (Tablet) - Narrow Range - Hamburger Menu */
@media (max-width: 898px) and (min-width: 769px) {
  /* Tablet navigation with hamburger menu */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
  }
  
  .brand {
    font-size: 20px;
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    justify-content: flex-end;
  }
  
  /* Mobile CTA - visible outside menu on tablets */
  .mobile-cta {
    display: inline-block;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
    z-index: 102;
    max-width: 140px;
    min-width: 100px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 16px;
    order: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .desktop-cta {
    display: none;
  }
  
  /* Hamburger menu on the right */
  .nav-toggle {
    display: flex;
    order: 2;
  }
  
  /* Navigation menu */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid #f1f5f9;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--animation-smooth);
    z-index: 100;
    border-radius: 0 0 12px 12px;
    order: 3;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .nav a:last-child {
    border-bottom: none;
  }
  
  .nav a:hover {
    color: var(--accent);
    padding-left: 8px;
  }
  
  .nav a.active {
    color: var(--accent);
    font-weight: 600;
  }
  
  /* Tablet admin button styling */
  .admin-nav-btn {
    background: var(--gradient-accent) !important;
    color: white !important;
    border-radius: 8px !important;
    margin: 4px 0 !important;
  }
  
  .admin-nav-btn:hover {
    background: var(--accent-dark) !important;
    color: white !important;
    padding-left: 8px !important;
  }
  
  /* Ensure mobile CTA is always visible and accessible on tablets */
  .mobile-cta:hover {
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 6px 15px var(--accent-subtle);
  }
}

/* Small Screen Responsive (Small Tablet) */
@media (max-width: 768px) and (min-width: 481px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    padding: 14px 0;
  }
  
  .brand {
    margin-bottom: 8px;
  }
  
  .nav-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav a {
    font-size: 14px;
    padding: 6px 8px;
  }
  
  .desktop-cta {
    font-size: 14px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px var(--accent-subtle);
  }
  
  .mobile-cta {
    display: none;
  }
  
  .nav-toggle {
    display: none;
  }
}

/* Very Small Mobile (for very tiny screens) */
@media (max-width: 360px) {
  .mobile-cta {
    font-size: 9px !important;
    padding: 4px 6px !important;
    max-width: 90px !important;
  }
  
  .brand {
    font-size: 16px !important;
  }
  
  .nav-container {
    gap: 6px !important;
  }
  
  .container {
    padding: 0 10px !important;
  }
  
  .nav-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  
  .hamburger-line {
    width: 24px !important;
  }
}

/* Extra responsive for navigation wrapping */
@media (max-width: 1200px) and (min-width: 899px) {
  .nav {
    gap: 24px;
  }
  
  .nav a {
    font-size: 15px;
    padding: 7px 11px;
  }
  
  .desktop-cta {
    font-size: 15px;
    padding: 11px 22px;
  }
}
/* Mobile Responsive */
@media (max-width: 480px) {
  .nav-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    justify-content: flex-end;
  }
}

@media (max-width: 746px) {
  /* Mobile navigation */
  .navbar {
    padding: 12px 0;
  }
  
  .brand {
    font-size: 18px;
  }
  
  
  /* Mobile CTA - visible outside menu */
  .mobile-cta {
    display: inline-block;
    font-size: 10px;
    padding: 5px 8px;
    white-space: nowrap;
    z-index: 102;
    max-width: 120px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 16px;
    order: 1;
  }
  
  /* Fix audiokurzy carousel alignment on mobile */
  .audiokurz-carousel {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .audiokurz-carousel .carousel-container {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Ensure grid doesn't create overflow on audiokurzy page */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Remove left padding that causes overflow */
  div[style*="padding-left: 2rem"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Fix team carousel buttons visibility on mobile */
  .reviews-carousel {
    max-width: 90% !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
  }
  
  .reviews-carousel .carousel-arrow {
    position: absolute !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
  }
  
  .reviews-carousel .carousel-arrow.prev {
    left: -50px !important;
  }
  
  .reviews-carousel .carousel-arrow.next {
    right: -50px !important;
  }
  
  /* Make review slides more compact on mobile */
  .review-slide {
    padding: 20px 10px !important;
  }
  
  .review-slide p {
    font-size: 16px !important;
  }
  
  /* Fix vyuka emojis alignment on mobile - center them */
  .hero-img div[style*="display: flex"] {
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Ensure emojis stay in row and are centered */
  .hero-img div[style*="gap: 20px"] {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  
  .desktop-cta {
    display: none;
  }
  
  /* Hamburger menu on the right */
  .nav-toggle {
    display: flex;
    order: 2;
  }
  
  /* Improved navigation menu */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid #f1f5f9;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--animation-smooth);
    z-index: 100;
    border-radius: 0 0 12px 12px;
    order: 3;
    backdrop-filter: blur(10px);
    /* Ensure menu appears above other content */
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav a {
    padding: 14px 16px;
    border-radius: 8px;
    text-align: left;
    border-bottom: 1px solid #f8f9fa;
    font-size: 16px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
  }
  
  .nav a:hover {
    background: var(--accent-subtle);
    transform: translateX(4px);
  }
  
  /* Mobile admin button styling */
  .admin-nav-btn {
    background: var(--gradient-accent) !important;
    color: white !important;
    border-radius: 8px !important;
    margin: 4px 0 !important;
  }
  
  .admin-nav-btn:hover {
    background: var(--accent-dark) !important;
    color: white !important;
    transform: translateX(4px) !important;
  }
  
  .nav a:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  /* Ensure mobile CTA is always visible and accessible */
  .mobile-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px var(--accent-subtle);
  }
  
  /* Mobile hero */
  .hero {
    padding: 40px 0;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  /* Mobile grids */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Mobile footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  /* Mobile typography */
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  
  /* Mobile buttons */
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
    width: 100%;
  }
  
  /* Ensure navigation menu buttons are left-aligned */
  .nav .btn {
    text-align: left;
  }
  
  /* Mobile FAQ table */
  .table-faq th,
  .table-faq td {
    padding: 16px;
    display: block;
    width: 100%;
  }
  
  .table-faq th {
    background: #f8fafc;
    margin-bottom: 8px;
    border-bottom: none;
  }
  
  .table-faq td {
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
  }
  
  /* Mobile newsletter */
  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    text-align: center;
  }
  
  .newsletter-text h3 {
    font-size: 20px;
  }
  
  /* Mobile German challenges */
  .german-challenges {
    gap: 16px;
    margin: 24px 0;
  }
  
  .challenge-item {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    align-items: center;
  }
  
  .challenge-item:hover {
    transform: translateY(-4px);
  }
  
  .challenge-icon {
    font-size: 32px;
    margin-top: 0;
  }
  
  .challenge-item p {
    font-size: 16px;
  }
  
  .hero-cta {
    margin-top: 32px;
    text-align: center;
  }
  
  /* Mobile German culture emojis */
  .hero-img div[style*="display: flex"] {
    gap: 12px !important;
    font-size: 60px !important;
  }
  
  /* Mobile step numbers */
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: -20px;
  }
  
  .step-left .step-number {
    right: 10px;
  }
  
  .step-right .step-number {
    left: 10px;
  }
  
  /* Mobile speech bubble */
  .speech-bubble {
    padding: 30px 20px;
    border-radius: 20px;
    margin: 0 16px;
  }
  
  .speech-bubble::before {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--accent);
    bottom: -15px;
  }
  
  .speech-bubble::after {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--accent-dark);
    bottom: -12px;
  }
  
  .speech-bubble h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .speech-bubble p {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .speech-bubble .btn {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
  }
  
  /* Mobile FAQ */
  .faq-question {
    padding: 16px;
    font-size: 16px;
  }
  
  .faq-question:hover {
    padding-left: 20px;
  }
  
  .faq-icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
    margin-left: 8px;
  }
  
  .faq-answer.active {
    padding: 0 16px 16px 16px;
  }
  
  .faq-answer p {
    font-size: 15px;
  }
}

/* Performance optimizations */
.card, .btn, .nav a {
  will-change: transform;
}

.animate-on-scroll, .animate-slide-left, .animate-slide-right, .animate-scale, .animate-fade {
  will-change: transform, opacity;
}

/* German Challenges Section */
.german-challenges {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.challenge-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

.challenge-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s var(--animation-smooth);
}

.challenge-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-left-color: var(--main);
}

.challenge-item:hover::before {
  left: 100%;
}

.challenge-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s var(--animation-bounce);
}

.challenge-item:hover .challenge-icon {
  transform: scale(1.1) rotate(3deg);
}

.challenge-item p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.hero-cta {
  margin-top: 40px;
  text-align: left;
}

/* Animation keyframes */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* Enhanced social media hover effects */
a[href*="instagram.com"] div,
a[href*="linkedin.com"] div,
a[href*="tiktok.com"] div {
  transition: all 0.2s ease-out;
}

a[href*="instagram.com"]:hover div {
  background: radial-gradient(circle, #f09433, #e6683c, #dc2743);
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(240, 148, 51, 0.4);
}

a[href*="linkedin.com"]:hover div {
  background: linear-gradient(135deg, #0077b5, #005885);
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

a[href*="tiktok.com"]:hover div {
  background: linear-gradient(135deg, #000000, #333333);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Class to reduce animations on low-performance devices */
.reduce-animations * {
  animation-duration: 0.1s !important;
  transition-duration: 0.1s !important;
}



/* Blog Statistics Section */
.stats-container-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card-blog {
  background: white;
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.2s ease-out;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.stat-card-blog:nth-child(1) { animation-delay: 0.2s; }
.stat-card-blog:nth-child(2) { animation-delay: 0.4s; }
.stat-card-blog:nth-child(3) { animation-delay: 0.6s; }

.stat-card-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon-blog {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-content-blog {
  text-align: left;
}

.stat-number-blog {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label-blog {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive Design for Blog Stats */
@media (max-width: 1200px) {
  .stats-container-blog {
    max-width: 800px;
    gap: 25px;
  }
}

@media (max-width: 900px) {
  .stats-container-blog {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .stats-container-blog {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
  }
  
  .stat-card-blog {
    padding: 25px 15px;
  }
  
  .stat-icon-blog {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .stat-number-blog {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .stat-card-blog {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 10px;
  }
  
  .stat-content-blog {
    text-align: center;
  }
}

/* Blog page specific hero alignment */
.page-blog .hero-inner {
  text-align: left !important;
}

@media (max-width: 768px) {
  .page-blog .hero-inner {
    text-align: left !important;
  }
}



/* Timeline responsive design */
@media (max-width: 980px) {
  .timeline { 
    grid-template-columns: 1fr; 
    gap: 28px; 
  }
  .timeline::before { 
    display: none; 
  }
  .timeline > .step:nth-child(2n) { 
    margin-top: 0; 
  }
  .step-left, .step-right { 
    grid-column: 1; 
  }
  .step-right .connector { 
    transform: translateY(-50%); 
  }
  .step-left .connector, .step-right .connector { 
    left: auto; 
    right: -20px; 
    width: 100px; 
    height: 70px; 
  }
}

/* Hide red connector lines on mobile for fahrplan */
@media (max-width: 746px) {
  .step .connector,
  .step-left .connector,
  .step-right .connector {
    display: none !important;
  }
}

/* Enhanced Like Button Styles and Animations */
@keyframes likeButtonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
  }
}

@keyframes likeButtonGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6), 0 0 30px rgba(255, 107, 107, 0.4);
  }
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

.like-button {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

.like-button:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, #ff5252, #d32f2f) !important;
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5) !important;
  animation: likeButtonGlow 1.5s infinite !important;
}

.like-button:hover .heart-icon {
  animation: heartBeat 1s infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.like-button:active {
  transform: translateY(0) scale(0.95);
  transition: all 0.1s ease;
}

.like-button:hover .like-text {
  opacity: 1 !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Liked state styling */
.like-button.liked {
  background: linear-gradient(135deg, #4caf50, #388e3c) !important;
  animation: none !important;
  opacity: 0.9 !important;
  cursor: pointer !important;
}

.like-button.liked:hover {
  transform: translateY(-2px) scale(1.05) !important;
  background: linear-gradient(135deg, #66bb6a, #43a047) !important;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5) !important;
  animation: none !important;
}

.like-button.liked .heart-icon {
  animation: none !important;
  filter: none !important;
}

/* Subtle animation for attracting attention */
@keyframes subtleAttention {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.like-button:not(.liked) {
  animation: likeButtonPulse 3s infinite, subtleAttention 5s infinite;
}
