/* Design system — tokens, base and the tt-* component library. */
@import url('design-system.3fafc7e5.css');

/* Shared navigation bar — single source of truth for the header. */
@import url('nav.3ec2df01.css');

/* --------------------------------------------------------------------------
   Legacy theme variables.

   These names are used all over the older pages (.btn, .card, .hero, …). They
   now resolve to the design-system tokens in design-system.css, so those pages
   inherit the Konverzační klub look without being rewritten. Change a colour
   in design-system.css, not here.
   -------------------------------------------------------------------------- */
:root {
  --main: var(--tt-yellow);        /* yellow    */
  --accent: var(--tt-orange);      /* terracotta */
  --ink: var(--tt-dark);
  --text: var(--tt-text);
  --muted: var(--tt-muted);
  --bg: var(--tt-bg);
  --shadow: var(--tt-shadow-card);
  --radius: var(--tt-radius-xl);
  --container: 1152px;

  /* Color variations */
  --main-light: var(--tt-yellow-light);
  --main-dark: var(--tt-yellow-border);
  --main-subtle: rgba(245, 215, 101, 0.35);
  --accent-light: #f07a5c;
  --accent-dark: var(--tt-orange-hover);
  --accent-subtle: rgba(232, 90, 55, 0.12);

  /* Fills. The design system is flat: these stay as tokens for the older
     rules that reference them, but they resolve to solid brand colours. */
  --gradient-main: var(--tt-yellow);
  --gradient-accent: var(--tt-orange);
  --gradient-hero: var(--tt-yellow);
  
  /* 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;
}

/* Scroll-reveal classes now live in design-system.css (§2, "Scroll reveal") —
   one mechanism, one set of timings, for every page. */

/* 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);
  }
}

/* A scroll-revealed card still hovers like every other card — the design
   system owns that. Only the reveal itself is page-animation business. */

/* 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; }

/* The dotted canvas is the site background — see design-system.css §3. */
body {
  font-family: var(--tt-font-sans);
  background-color: var(--tt-bg);
  background-image: var(--tt-dots-image);
  background-size: var(--tt-dots-size);
  background-attachment: fixed;
  color: var(--text);
  line-height: var(--tt-leading-normal);
}

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

h1 { font-size: var(--tt-text-5xl); font-weight: var(--tt-weight-black); margin: 0 0 20px; line-height: var(--tt-leading-tight); letter-spacing: var(--tt-tracking-tight); }
h2 { font-size: var(--tt-text-4xl); font-weight: var(--tt-weight-black); margin: 0 0 16px; letter-spacing: var(--tt-tracking-tight); }
h3 { font-size: var(--tt-text-2xl); font-weight: var(--tt-weight-bold); margin: 0 0 10px; }
.lead { color: var(--muted); font-size: var(--tt-text-lg); margin: 0 0 20px; }

/* Hero Section — the dotted canvas, closed by a hairline (like the
   Konverzační klub hero). */
.hero {
  padding: var(--tt-section-y) 0;
  background-color: var(--tt-bg);
  background-image: var(--tt-dots-image);
  background-size: var(--tt-dots-size);
  border-bottom: 1px solid var(--tt-border);
  position: relative;
  color: var(--ink);
  overflow: hidden;
}

.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 — same shape and behaviour as .tt-btn in design-system.css §5. */
.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: var(--tt-weight-bold);
  border-radius: var(--tt-radius-pill);
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tt-space-2);
  font-size: var(--tt-text-base);
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--tt-duration-slow) var(--tt-ease),
    border-color var(--tt-duration-slow) var(--tt-ease),
    color var(--tt-duration-slow) var(--tt-ease),
    box-shadow var(--tt-duration-slow) var(--tt-ease),
    transform var(--tt-duration-slow) var(--tt-ease);
  position: relative;
  z-index: 1;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--tt-orange);
  color: #fff !important;
  border-color: transparent;
  box-shadow: var(--tt-shadow-soft);
}

.btn-primary:hover {
  background: var(--tt-orange-hover);
  box-shadow: var(--tt-shadow-hover);
}

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

/* Remove the sticky focus ring a mouse click leaves behind. The hover lift is
   deliberately NOT reset here — the pointer is still over the button, so it
   should stay lifted (this used to cancel the design system's animation). */
.btn:focus:not(:focus-visible) {
  outline: none !important;
}

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

.btn-secondary {
  background: var(--tt-yellow);
  color: var(--ink);
  border-color: var(--tt-yellow-border);
  box-shadow: var(--tt-shadow-card);
}

.btn-secondary:hover {
  background: #f0cd4c;
  box-shadow: var(--tt-shadow-glow);
}

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

.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--tt-border);
  box-shadow: var(--tt-shadow-card);
}

.btn-light:hover {
  border-color: var(--tt-orange-border);
  color: var(--accent);
  box-shadow: var(--tt-shadow-soft);
}

.btn-light:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--tt-focus-ring);
}

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

/* Sections & Layout */

/* Bands stack directly on each other and are separated by a hairline.
   A plain .section is transparent, so the dotted canvas shows through; the
   modifiers paint over it. */
.section { padding: var(--tt-section-y) 0; border-bottom: 1px solid var(--tt-border); }

.section-white {
  background: #fff;
}

.section-tight { padding: var(--tt-section-y-tight) 0; }
.section-flush { padding: 0; }
.section-plain { border-bottom: 0; }

.section-accent {
  background: var(--tt-yellow);
  border-bottom-color: var(--tt-yellow-border);
}

.section-main {
  background: var(--tt-yellow-light);
}

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

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

/* Cards — same recipe as .tt-card in design-system.css §6: white surface,
   24px radius, warm hairline, barely-there shadow, lift on hover. */
.card {
  background: var(--tt-card);
  border: 1px solid var(--tt-border);
  border-radius: var(--radius);
  box-shadow: var(--tt-shadow-card);
  padding: 28px;
  position: relative;
  z-index: 1;
  transition: border-color var(--tt-duration-slow) var(--tt-ease),
    box-shadow var(--tt-duration-slow) var(--tt-ease),
    transform var(--tt-duration-slow) var(--tt-ease),
    opacity var(--tt-duration-slow) var(--tt-ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--tt-orange-border);
  box-shadow: var(--tt-shadow-soft);
}

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

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

.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: 40px;
  text-align: center;
  height: 72px;
  width: 72px;
  margin: 0 auto 20px auto;
  background: var(--tt-yellow);
  border-radius: var(--tt-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tt-yellow-border);
  transition: transform var(--tt-duration-slow) var(--tt-ease),
    box-shadow var(--tt-duration-slow) var(--tt-ease);
}

.card:hover .card-icon {
  transform: scale(1.04);
  box-shadow: var(--tt-shadow-glow);
}

/* 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 — see .tt-note in design-system.css §6. */
.notice {
  background: var(--tt-bg);
  border: 1px solid var(--tt-border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  font-size: var(--tt-text-base);
}

.notice-main {
  background: rgba(245, 215, 101, 0.3);
  border-color: var(--tt-yellow-border);
}

.notice-accent {
  background: var(--tt-orange-soft);
  border-color: var(--tt-orange-border);
  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 var(--tt-border);
}

.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 — see .tt-badge in design-system.css §7. */
.badge {
  background: var(--tt-yellow);
  border: 1px solid var(--tt-yellow-border);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: var(--tt-radius-pill);
  font-size: var(--tt-text-xs);
  font-weight: var(--tt-weight-bold);
  letter-spacing: var(--tt-tracking-wide);
  text-transform: uppercase;
  display: inline-block;
  transition: box-shadow var(--tt-duration) var(--tt-ease);
}

.badge:hover {
  box-shadow: var(--tt-shadow-glow);
}

.badge-accent {
  background: var(--tt-orange-soft);
  border-color: var(--tt-orange-border);
  color: var(--accent);
}

.badge-accent:hover {
  box-shadow: var(--tt-shadow-soft);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--tt-orange-border);
  color: var(--accent);
  box-shadow: none;
}

.badge-outline:hover {
  background: var(--tt-orange-soft);
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--tt-border);
  padding: 48px 0;
  margin-top: 0;
}

.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 — see .tt-faq in design-system.css §9. */
.faq-item {
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--tt-duration) var(--tt-ease);
}

.faq-item:hover {
  border-color: var(--tt-orange-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  font-size: var(--tt-text-base);
  font-weight: var(--tt-weight-bold);
  color: var(--ink);
  transition: color var(--tt-duration) var(--tt-ease);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--tt-weight-bold);
  transition: transform var(--tt-duration) var(--tt-ease);
  flex-shrink: 0;
  margin-left: 8px;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--tt-ease), padding 0.4s var(--tt-ease);
}

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

.faq-answer p {
  margin: 0;
  color: var(--text);
  font-size: var(--tt-text-sm);
  line-height: var(--tt-leading-relaxed);
}

/* 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 var(--tt-bg); 
  background: var(--bg);
}

/* Very Small Mobile (for very tiny screens) */
@media (max-width: 360px) {
  
  .container {
    padding: 0 10px !important;
  }
}

@media (max-width: 746px) {
  
  /* 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;
  }
  
  /* 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%;
  }
  
  /* Mobile FAQ table */
  .table-faq th,
  .table-faq td {
    padding: 16px;
    display: block;
    width: 100%;
  }
  
  .table-faq th {
    background: var(--tt-bg);
    margin-bottom: 8px;
    border-bottom: none;
  }
  
  .table-faq td {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--tt-border);
  }
  
  /* 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. The reveal classes manage their own will-change
   (design-system.css §2) and drop it once revealed, so they are not listed
   here — a permanent will-change keeps a layer alive for the whole session. */
.card, .btn, .nav a {
  will-change: transform;
}

/* 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: var(--ink);
  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;
}
