/* ==============================================
   STORYO MARKETING.CSS v1.0
   Erweitert tokens.css für Marketing-Layouts
   ============================================== */

@import url('./tokens.css');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--storyo-font-sans);
  background-color: var(--storyo-bg);
  color: var(--storyo-ink);
  line-height: var(--storyo-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--storyo-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--storyo-space-5);
}
.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--storyo-space-5);
}

/* ---- Typography ---- */
.display-xl {
  font-family: var(--storyo-font-serif);
  font-size: clamp(36px, 5vw, var(--storyo-display-xl));
  font-weight: 500;
  font-style: italic;
  line-height: 1.10;
  letter-spacing: -0.03em;
  color: var(--storyo-ink);
}
.display-l {
  font-family: var(--storyo-font-serif);
  font-size: clamp(28px, 4vw, var(--storyo-display-l));
  font-weight: 500;
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.display-m {
  font-family: var(--storyo-font-serif);
  font-size: clamp(24px, 3vw, var(--storyo-display-m));
  font-weight: 400;
  font-style: italic;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
h1 { font-family: var(--storyo-font-serif); font-weight: 500; font-style: italic; }
h2 { font-family: var(--storyo-font-sans); font-weight: 600; font-size: var(--storyo-headline-l); line-height: var(--storyo-lh-headline); }
h3 { font-family: var(--storyo-font-sans); font-weight: 600; font-size: var(--storyo-headline-m); line-height: var(--storyo-lh-headline); }
h4 { font-family: var(--storyo-font-sans); font-weight: 600; font-size: var(--storyo-headline-s); }

.text-muted { color: var(--storyo-ink-muted); }
.text-small { font-size: var(--storyo-body-s); }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--storyo-space-2);
  padding: 12px 24px;
  font-family: var(--storyo-font-sans);
  font-size: var(--storyo-body-m);
  font-weight: 500;
  border-radius: var(--storyo-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--storyo-transition-fast), box-shadow var(--storyo-transition-fast), background-color var(--storyo-transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--storyo-shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--storyo-primary); outline-offset: 3px; }

.btn-primary {
  background: var(--storyo-primary);
  color: var(--storyo-bg);
}
.btn-primary:hover { background: var(--storyo-primary-hover); color: var(--storyo-bg); }

.btn-secondary {
  background: transparent;
  color: var(--storyo-secondary);
  border: 1.5px solid var(--storyo-secondary);
}
.btn-secondary:hover { background: var(--storyo-secondary-light); color: var(--storyo-secondary); }

.btn-ghost {
  background: transparent;
  color: var(--storyo-ink);
}
.btn-ghost:hover { background: var(--storyo-bg-input); color: var(--storyo-ink); }

.btn-lg { font-size: var(--storyo-body-l); padding: 14px 32px; }
.btn-sm { font-size: var(--storyo-body-s); padding: 8px 16px; }

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--storyo-border);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--storyo-space-5);
}

.nav-logo {
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--storyo-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo:hover { text-decoration: none; color: var(--storyo-ink); }
.nav-logo .logo-dot { color: var(--storyo-primary); }

.nav-links {
  display: none;
  gap: var(--storyo-space-6);
  align-items: center;
}
.nav-links a {
  font-size: var(--storyo-body-m);
  font-weight: 500;
  color: var(--storyo-ink-muted);
  text-decoration: none;
  transition: color var(--storyo-transition-fast);
}
.nav-links a:hover { color: var(--storyo-ink); }
.nav-links a.active { color: var(--storyo-primary); }

.nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--storyo-space-2);
  color: var(--storyo-ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--storyo-ink);
  border-radius: 2px;
  transition: transform var(--storyo-transition-base), opacity var(--storyo-transition-base);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--storyo-bg);
  z-index: 99;
  padding: var(--storyo-space-8) var(--storyo-space-5);
  flex-direction: column;
  gap: var(--storyo-space-5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 500;
  color: var(--storyo-ink);
  text-decoration: none;
  padding: var(--storyo-space-3) 0;
  border-bottom: 1px solid var(--storyo-border);
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--storyo-ink);
  color: var(--storyo-bg);
  padding: var(--storyo-space-12) 0 var(--storyo-space-8);
  margin-top: var(--storyo-space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-8);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--storyo-space-6); }
}

.footer-brand .nav-logo { color: var(--storyo-bg); }
.footer-brand p { color: rgba(250,247,242,0.6); margin-top: var(--storyo-space-3); font-size: var(--storyo-body-s); line-height: 1.6; }

.footer-col h4 {
  font-size: var(--storyo-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.5);
  margin-bottom: var(--storyo-space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--storyo-space-2); }
.footer-col a {
  font-size: var(--storyo-body-s);
  color: rgba(250,247,242,0.75);
  text-decoration: none;
  transition: color var(--storyo-transition-fast);
}
.footer-col a:hover { color: var(--storyo-bg); }

.footer-bottom {
  margin-top: var(--storyo-space-8);
  padding-top: var(--storyo-space-5);
  border-top: 1px solid rgba(250,247,242,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--storyo-space-4);
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: var(--storyo-caption); color: rgba(250,247,242,0.45); }

.lang-pills { display: flex; gap: var(--storyo-space-2); }
.lang-pill {
  padding: 4px 12px;
  border-radius: var(--storyo-radius-full);
  border: 1px solid rgba(250,247,242,0.25);
  font-size: var(--storyo-caption);
  color: rgba(250,247,242,0.55);
  cursor: default;
  font-family: var(--storyo-font-sans);
}
.lang-pill.active {
  border-color: var(--storyo-primary);
  color: var(--storyo-primary);
}

.trust-badges { display: flex; gap: var(--storyo-space-3); flex-wrap: wrap; align-items: center; }
.trust-badge {
  font-size: var(--storyo-caption);
  color: rgba(250,247,242,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.trust-badge::before { content: '✓'; color: var(--storyo-success); }

/* ---- Section Spacing ---- */
.section { padding: var(--storyo-space-12) 0; }
.section--sm { padding: var(--storyo-space-8) 0; }
.section--lg { padding: var(--storyo-space-16) 0; }

.section-label {
  font-size: var(--storyo-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--storyo-ink-muted);
  margin-bottom: var(--storyo-space-3);
}
.section-title { margin-bottom: var(--storyo-space-4); }
.section-subtitle { font-size: var(--storyo-body-l); color: var(--storyo-ink-muted); margin-bottom: var(--storyo-space-8); max-width: 640px; }

/* ---- Cards ---- */
.card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-5);
  box-shadow: var(--storyo-shadow-sm);
  transition: box-shadow var(--storyo-transition-base), transform var(--storyo-transition-base);
}
.card:hover { box-shadow: var(--storyo-shadow-md); transform: translateY(-2px); }

.card--hero {
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-6);
  box-shadow: var(--storyo-shadow-lg);
}

/* ---- Grid Layouts ---- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-5);
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-5);
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--storyo-space-5);
}
@media (min-width: 720px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Hero ---- */
.hero {
  padding: var(--storyo-space-12) 0 var(--storyo-space-16);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-8);
  align-items: center;
}
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-subheadline {
  font-family: var(--storyo-font-serif);
  font-size: var(--storyo-body-l);
  font-style: italic;
  color: var(--storyo-ink-muted);
  margin: var(--storyo-space-4) 0 var(--storyo-space-6);
  line-height: 1.5;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--storyo-space-3); }

/* ---- Audio Player ---- */
.audio-card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--storyo-space-3);
}
.audio-card-title { font-weight: 600; font-size: var(--storyo-body-m); }
.audio-card-meta { font-size: var(--storyo-caption); color: var(--storyo-ink-muted); }

audio {
  width: 100%;
  accent-color: var(--storyo-primary);
  height: 36px;
}

/* ---- Pill / Tag ---- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--storyo-radius-full);
  font-size: var(--storyo-label);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.pill-primary { background: var(--storyo-primary-light); color: var(--storyo-primary-hover); }
.pill-teal { background: var(--storyo-secondary-light); color: var(--storyo-secondary); }
.pill-neutral { background: var(--storyo-bg-input); color: var(--storyo-ink-muted); }
.pill-success { background: var(--storyo-success-light); color: var(--storyo-success); }
.badge-popular {
  background: var(--storyo-primary);
  color: white;
  font-size: var(--storyo-caption);
  padding: 3px 10px;
  border-radius: var(--storyo-radius-full);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Feature Icons ---- */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--storyo-radius-md);
  background: var(--storyo-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--storyo-space-4);
  flex-shrink: 0;
}
.feature-icon svg { color: var(--storyo-primary); }

/* ---- Pricing Cards ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-5);
}
@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

.pricing-card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--storyo-transition-base), transform var(--storyo-transition-base);
}
.pricing-card:hover { box-shadow: var(--storyo-shadow-md); transform: translateY(-2px); }
.pricing-card--featured {
  background: var(--storyo-primary);
  border-color: var(--storyo-primary);
  color: #FAF7F2;
}
.pricing-card--featured h3,
.pricing-card--featured .pricing-price,
.pricing-card--featured .pricing-period,
.pricing-card--featured .pricing-desc { color: #FAF7F2; }
.pricing-card--featured .pricing-feature { color: rgba(250,247,242,0.85); }
.pricing-card--featured .check-icon { color: #FAF7F2; }

.pricing-tier-label {
  font-size: var(--storyo-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--storyo-ink-muted);
  margin-bottom: var(--storyo-space-3);
}
.pricing-card--featured .pricing-tier-label { color: rgba(250,247,242,0.75); }

.pricing-price {
  font-family: var(--storyo-font-serif);
  font-size: var(--storyo-display-m);
  font-weight: 400;
  font-style: italic;
  color: var(--storyo-ink);
  line-height: 1;
}
.pricing-period { font-size: var(--storyo-body-s); color: var(--storyo-ink-muted); margin-left: 4px; }
.pricing-desc { font-size: var(--storyo-body-s); color: var(--storyo-ink-muted); margin-top: var(--storyo-space-2); margin-bottom: var(--storyo-space-5); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: var(--storyo-space-2); flex: 1; margin-bottom: var(--storyo-space-5); }
.pricing-feature {
  display: flex;
  gap: var(--storyo-space-2);
  align-items: flex-start;
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink);
}
.check-icon { color: var(--storyo-secondary); flex-shrink: 0; margin-top: 1px; }

/* ---- Accordion / FAQ ---- */
.accordion { border: 1px solid var(--storyo-border); border-radius: var(--storyo-radius-md); overflow: hidden; }
.accordion + .accordion { margin-top: var(--storyo-space-2); }

details { border-bottom: 1px solid var(--storyo-border); }
details:last-child { border-bottom: none; }

summary {
  padding: var(--storyo-space-4) var(--storyo-space-5);
  font-weight: 600;
  font-size: var(--storyo-body-m);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--storyo-space-4);
  transition: background var(--storyo-transition-fast);
}
summary:hover { background: var(--storyo-bg-input); }
summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 20px;
  color: var(--storyo-ink-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--storyo-transition-base);
}
details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 var(--storyo-space-5) var(--storyo-space-4);
  font-size: var(--storyo-body-m);
  color: var(--storyo-ink-muted);
  line-height: var(--storyo-lh-body);
}

/* ---- Forms ---- */
.form-group { display: flex; flex-direction: column; gap: var(--storyo-space-2); }
.form-label {
  font-size: var(--storyo-label);
  font-weight: 500;
  color: var(--storyo-ink);
  letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
  background: var(--storyo-bg-input);
  border: 1.5px solid var(--storyo-border);
  border-radius: var(--storyo-radius-sm);
  padding: 12px 16px;
  font-family: var(--storyo-font-sans);
  font-size: var(--storyo-body-m);
  color: var(--storyo-ink);
  transition: border-color var(--storyo-transition-fast), box-shadow var(--storyo-transition-fast);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--storyo-ink-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--storyo-primary);
  box-shadow: var(--storyo-shadow-focus);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--storyo-space-3);
}
.testimonial-stars { color: var(--storyo-tertiary); font-size: 18px; letter-spacing: 2px; }
.testimonial-quote {
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-size: var(--storyo-body-l);
  line-height: 1.5;
  color: var(--storyo-ink);
}
.testimonial-author { font-size: var(--storyo-body-s); color: var(--storyo-ink-muted); }
.testimonial-author strong { color: var(--storyo-ink); display: block; font-weight: 600; }

/* ---- Steps ---- */
.step-number {
  font-family: var(--storyo-font-serif);
  font-size: 72px;
  font-weight: 500;
  font-style: italic;
  color: var(--storyo-primary-light);
  line-height: 1;
  margin-bottom: var(--storyo-space-3);
}

/* ---- Banner / CTA Section ---- */
.cta-banner {
  background: var(--storyo-secondary);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-10) var(--storyo-space-8);
  text-align: center;
  color: #FAF7F2;
}
.cta-banner h2 { color: #FAF7F2; }
.cta-banner p { color: rgba(250,247,242,0.75); margin: var(--storyo-space-4) 0 var(--storyo-space-6); font-size: var(--storyo-body-l); }

.cta-section-primary {
  background: var(--storyo-primary-light);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-10) var(--storyo-space-8);
  text-align: center;
}
.cta-section-primary p { color: var(--storyo-ink-muted); margin: var(--storyo-space-4) 0 var(--storyo-space-6); }

/* ---- Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--storyo-body-s);
}
.comparison-table th, .comparison-table td {
  padding: var(--storyo-space-3) var(--storyo-space-4);
  border-bottom: 1px solid var(--storyo-border);
  text-align: left;
}
.comparison-table th {
  background: var(--storyo-bg-input);
  font-weight: 600;
  font-size: var(--storyo-label);
  letter-spacing: 0.03em;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .yes { color: var(--storyo-success); font-weight: 600; }
.comparison-table .no { color: var(--storyo-ink-muted); }
.comparison-table .highlight { background: var(--storyo-primary-light); }
.table-wrap { overflow-x: auto; border: 1px solid var(--storyo-border); border-radius: var(--storyo-radius-md); }

/* ---- Blog Cards ---- */
.blog-card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--storyo-transition-base), transform var(--storyo-transition-base);
}
.blog-card:hover { box-shadow: var(--storyo-shadow-md); transform: translateY(-2px); }
.blog-card-cover {
  background: var(--storyo-primary-light);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--storyo-primary);
  font-size: 48px;
}
.blog-card-body { padding: var(--storyo-space-5); }
.blog-card-meta { font-size: var(--storyo-caption); color: var(--storyo-ink-muted); margin-bottom: var(--storyo-space-2); }
.blog-card-title { font-size: var(--storyo-headline-s); font-weight: 600; margin-bottom: var(--storyo-space-2); color: var(--storyo-ink); }
.blog-card-excerpt { font-size: var(--storyo-body-s); color: var(--storyo-ink-muted); line-height: 1.6; margin-bottom: var(--storyo-space-4); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  gap: var(--storyo-space-2);
  align-items: center;
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  margin-bottom: var(--storyo-space-5);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--storyo-ink-muted); }
.breadcrumb a:hover { color: var(--storyo-primary); }
.breadcrumb-sep { color: var(--storyo-border); }

/* ---- Languages row ---- */
.lang-row { display: flex; gap: var(--storyo-space-3); flex-wrap: wrap; align-items: center; }

/* ---- Newsletter ---- */
.newsletter-form { display: flex; gap: var(--storyo-space-3); flex-wrap: wrap; }
.newsletter-form .form-input { flex: 1; min-width: 220px; }

/* ---- Misc Utilities ---- */
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--storyo-space-2); }
.gap-3 { gap: var(--storyo-space-3); }
.gap-4 { gap: var(--storyo-space-4); }
.gap-5 { gap: var(--storyo-space-5); }
.mb-2 { margin-bottom: var(--storyo-space-2); }
.mb-3 { margin-bottom: var(--storyo-space-3); }
.mb-4 { margin-bottom: var(--storyo-space-4); }
.mb-5 { margin-bottom: var(--storyo-space-5); }
.mb-6 { margin-bottom: var(--storyo-space-6); }
.mb-8 { margin-bottom: var(--storyo-space-8); }
.mt-4 { margin-top: var(--storyo-space-4); }
.mt-5 { margin-top: var(--storyo-space-5); }
.mt-6 { margin-top: var(--storyo-space-6); }

/* ---- Wave SVG Illustration ---- */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}
.wave-svg { max-width: 400px; width: 100%; }

/* ---- Search box (FAQ) ---- */
.faq-search {
  position: relative;
  margin-bottom: var(--storyo-space-8);
}
.faq-search .form-input { padding-left: 44px; }
.faq-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--storyo-ink-muted);
  pointer-events: none;
}

/* ---- Category heading ---- */
.faq-category {
  font-size: var(--storyo-headline-m);
  font-weight: 600;
  color: var(--storyo-ink);
  margin-bottom: var(--storyo-space-4);
  padding-bottom: var(--storyo-space-3);
  border-bottom: 2px solid var(--storyo-primary-light);
}

/* ---- Contact cards ---- */
.contact-card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-6);
  text-align: center;
}
.contact-card-icon {
  font-size: 36px;
  margin-bottom: var(--storyo-space-3);
}
.contact-card h3 { margin-bottom: var(--storyo-space-2); }
.contact-card p { color: var(--storyo-ink-muted); font-size: var(--storyo-body-s); margin-bottom: var(--storyo-space-4); }

/* ---- Checkbox ---- */
.checkbox-group { display: flex; gap: var(--storyo-space-2); align-items: flex-start; }
.checkbox-group input[type="checkbox"] { accent-color: var(--storyo-primary); margin-top: 3px; flex-shrink: 0; }
.checkbox-group label { font-size: var(--storyo-body-s); color: var(--storyo-ink-muted); }

/* ---- Skip nav (a11y) ---- */
.skip-nav {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: var(--storyo-space-3) var(--storyo-space-5);
  background: var(--storyo-primary);
  color: white;
  border-radius: var(--storyo-radius-md);
  font-weight: 600;
}
.skip-nav:focus { left: var(--storyo-space-4); top: var(--storyo-space-4); }

/* ---- Pricing toggle footnote ---- */
.pricing-note { font-size: var(--storyo-caption); color: var(--storyo-ink-muted); text-align: center; margin-top: var(--storyo-space-4); }

/* ---- School banner ---- */
.school-banner {
  background: var(--storyo-secondary);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-8);
  color: #FAF7F2;
  display: flex;
  flex-direction: column;
  gap: var(--storyo-space-4);
}
@media (min-width: 720px) {
  .school-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.school-banner h3 { color: #FAF7F2; }
.school-banner p { color: rgba(250,247,242,0.75); font-size: var(--storyo-body-s); }

/* ---- Pricing Grid 6 (2x3) ---- */
.pricing-grid-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-5);
}
@media (min-width: 600px) {
  .pricing-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pricing-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Roll-Over Badge (Pill on pricing card) ---- */
.rollover-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--storyo-radius-full);
  background: var(--storyo-secondary-light);
  color: var(--storyo-secondary);
  font-size: var(--storyo-caption);
  font-weight: 500;
  margin-bottom: var(--storyo-space-4);
  width: fit-content;
}
.rollover-badge--none {
  background: var(--storyo-bg-input);
  color: var(--storyo-ink-muted);
}
.rollover-badge--light {
  background: rgba(250,247,242,0.25);
  color: rgba(250,247,242,0.9);
}

/* ---- Pricing feature muted (minus items) ---- */
.pricing-feature--muted {
  color: var(--storyo-ink-muted);
  opacity: 0.65;
}
.pricing-feature--muted span:first-child {
  color: var(--storyo-ink-muted);
}

/* ---- Token Table extras ---- */
.token-table td { vertical-align: middle; }
.token-meta {
  font-size: var(--storyo-caption);
  color: var(--storyo-ink-muted);
  margin-left: 6px;
}
.token-cost {
  text-align: right;
  font-weight: 600;
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-size: var(--storyo-body-l);
  white-space: nowrap;
}
.token-row-addon td { background: var(--storyo-warning-light); }
.token-addon { color: var(--storyo-warning); }
.token-row-discount td { background: var(--storyo-success-light); }
.token-discount { color: var(--storyo-success); }
.token-row-free td { background: var(--storyo-bg-input); }
.token-free { color: var(--storyo-ink-muted); }

/* ---- Faustregel Box ---- */
.faustregel-box {
  margin-top: var(--storyo-space-6);
  background: var(--storyo-primary-light);
  border: 1.5px solid var(--storyo-primary);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-5);
}
.faustregel-headline {
  font-size: var(--storyo-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--storyo-primary-hover);
  margin-bottom: var(--storyo-space-2);
}
.faustregel-box p:last-child {
  font-size: var(--storyo-body-m);
  color: var(--storyo-ink);
  line-height: var(--storyo-lh-body);
}

/* ---- Top-Up Cards ---- */
.topup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--storyo-space-4);
}
@media (min-width: 720px) {
  .topup-grid { grid-template-columns: repeat(4, 1fr); }
}

.topup-card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--storyo-space-2);
  transition: box-shadow var(--storyo-transition-base), transform var(--storyo-transition-base);
}
.topup-card:hover { box-shadow: var(--storyo-shadow-md); transform: translateY(-2px); }
.topup-card--value {
  border-color: var(--storyo-primary);
  box-shadow: 0 0 0 2px var(--storyo-primary-light);
}

.topup-label {
  font-size: var(--storyo-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--storyo-ink-muted);
}
.topup-price {
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-size: var(--storyo-display-m);
  font-weight: 400;
  color: var(--storyo-ink);
  line-height: 1.1;
}
.topup-tokens {
  font-size: var(--storyo-body-m);
  font-weight: 600;
  color: var(--storyo-secondary);
  margin-bottom: var(--storyo-space-2);
}
.topup-value-hint {
  font-size: var(--storyo-caption);
  color: var(--storyo-primary-hover);
  font-weight: 500;
}

/* ---- Demo Box ---- */
.demo-box {
  border: 1.5px solid var(--storyo-secondary);
  border-radius: var(--storyo-radius-lg);
  overflow: hidden;
}
.demo-box-header {
  background: var(--storyo-secondary);
  padding: var(--storyo-space-6);
  text-align: center;
}
.demo-box-title {
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-size: var(--storyo-headline-l);
  font-weight: 500;
  color: #FAF7F2;
  margin-bottom: var(--storyo-space-2);
}
.demo-box-sub {
  font-size: var(--storyo-body-s);
  color: rgba(250,247,242,0.75);
}
.demo-box-body {
  background: var(--storyo-bg-card);
  padding: var(--storyo-space-6);
}
.demo-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--storyo-space-3);
  list-style: none;
}
.demo-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--storyo-space-3);
  font-size: var(--storyo-body-m);
  line-height: 1.5;
}
.demo-feature::before {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}
.demo-feature--yes { color: var(--storyo-ink); }
.demo-feature--yes::before {
  content: '✓';
  background: var(--storyo-success-light);
  color: var(--storyo-success);
}
.demo-feature--no { color: var(--storyo-ink-muted); }
.demo-feature--no::before {
  content: '–';
  background: var(--storyo-bg-input);
  color: var(--storyo-ink-muted);
}

/* ---- Trust Row (inline badges) ---- */
.trust-row {
  display: flex;
  gap: var(--storyo-space-5);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: var(--storyo-space-5) 0;
  border-top: 1px solid var(--storyo-border);
  border-bottom: 1px solid var(--storyo-border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--storyo-space-2);
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  font-weight: 500;
}
.trust-item-icon {
  color: var(--storyo-success);
  font-size: 14px;
  font-weight: 700;
}

/* ---- Dark Mode overrides for marketing ---- */
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(31, 27, 22, 0.92); }
  .mobile-menu { background: var(--storyo-bg); }
  .form-select { background: var(--storyo-bg-input); color: var(--storyo-ink); }
}

/* ---- Cookie Consent Banner ---- */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  box-shadow: var(--storyo-shadow-lg);
  padding: var(--storyo-space-5);
  max-width: 960px;
  margin: 0 auto;
}

.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--storyo-space-6);
}

.consent-text strong {
  display: block;
  font-size: var(--storyo-body-m);
  font-weight: 600;
  color: var(--storyo-ink);
  margin-bottom: var(--storyo-space-1);
}

.consent-text p {
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  line-height: var(--storyo-lh-body);
  margin: 0;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: var(--storyo-space-3);
  flex-shrink: 0;
}

.consent-link {
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  text-decoration: underline;
  white-space: nowrap;
}
.consent-link:hover { color: var(--storyo-ink); }

@media (max-width: 720px) {
  .consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--storyo-space-4);
  }
  .consent-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .consent-actions .btn {
    text-align: center;
    justify-content: center;
  }
  .consent-link { text-align: center; }
}

@media (prefers-color-scheme: dark) {
  .consent-banner {
    background: var(--storyo-bg-card);
    border-color: var(--storyo-border);
  }
}

/* ---- Footer consent button ---- */
.footer-consent-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--storyo-font-sans);
  font-size: var(--storyo-body-s);
  color: rgba(250,247,242,0.75);
  cursor: pointer;
  text-align: left;
  transition: color var(--storyo-transition-fast);
}
.footer-consent-btn:hover { color: var(--storyo-bg); }
.footer-consent-btn:focus-visible { outline: 2px solid var(--storyo-primary); outline-offset: 3px; border-radius: 2px; }

/* ---- Legal pages ---- */
.legal-section {
  margin-bottom: var(--storyo-space-8);
  padding-bottom: var(--storyo-space-6);
  border-bottom: 1px solid var(--storyo-border);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
  font-size: var(--storyo-headline-m);
  margin-bottom: var(--storyo-space-4);
  color: var(--storyo-ink);
}

.legal-section p {
  font-size: var(--storyo-body-m);
  color: var(--storyo-ink);
  line-height: var(--storyo-lh-body);
  margin-bottom: var(--storyo-space-3);
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-list {
  list-style: disc;
  padding-left: var(--storyo-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--storyo-space-2);
  margin-bottom: var(--storyo-space-3);
}
.legal-list li {
  font-size: var(--storyo-body-m);
  color: var(--storyo-ink);
  line-height: var(--storyo-lh-body);
}

.legal-list code,
.comparison-table code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.88em;
  background: var(--storyo-bg-input);
  padding: 1px 5px;
  border-radius: var(--storyo-radius-xs);
  color: var(--storyo-primary-hover);
}

/* ==============================================
   STORYO HOME v2.0 — Neue Komponenten
   ============================================== */

/* ---- A. Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--storyo-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
  border-radius: 0 2px 2px 0;
}

/* ---- B. Fade-Up on Scroll ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delay variants */
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-up[data-delay="5"] { transition-delay: 0.5s; }
.fade-up[data-delay="6"] { transition-delay: 0.6s; }

/* ---- C. Wave Divider ---- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- E. Audio Card Wave Bars Hover Animation ---- */
.audio-card-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 2px 0;
}
.audio-card-wave-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--storyo-primary);
  opacity: 0.4;
  animation: none;
}
.audio-card:hover .audio-card-wave-bar:nth-child(1) {
  animation: wave-bar 1.1s ease-in-out infinite;
  opacity: 1;
}
.audio-card:hover .audio-card-wave-bar:nth-child(2) {
  animation: wave-bar 1.1s ease-in-out 0.18s infinite;
  opacity: 1;
}
.audio-card:hover .audio-card-wave-bar:nth-child(3) {
  animation: wave-bar 1.1s ease-in-out 0.36s infinite;
  opacity: 1;
}
@keyframes wave-bar {
  0%, 100% { height: 6px; }
  50% { height: 18px; }
}

/* ---- G. Cookie Banner Slide-Up ---- */
.consent-slide-up {
  animation: slide-up-banner 0.6s ease both;
}
@keyframes slide-up-banner {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---- How-it-works Section ---- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-5);
}
@media (min-width: 720px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-5);
  position: relative;
  overflow: hidden;
}
.step-card-number {
  font-family: var(--storyo-font-serif);
  font-size: 56px;
  font-weight: 500;
  font-style: italic;
  color: var(--storyo-primary-light);
  line-height: 1;
  margin-bottom: var(--storyo-space-3);
  display: block;
}
.step-card h3 {
  font-size: var(--storyo-headline-s);
  margin-bottom: var(--storyo-space-2);
  color: var(--storyo-ink);
}
.step-card p {
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  line-height: 1.65;
}

/* ---- Science Block ---- */
.science-block {
  background: var(--storyo-secondary-light);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-8);
}
.science-block .section-label { color: var(--storyo-secondary); }
.science-block h2 { color: var(--storyo-ink); }

.science-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-5);
  margin-top: var(--storyo-space-6);
}
@media (min-width: 720px) {
  .science-grid { grid-template-columns: repeat(3, 1fr); }
}

.science-item {
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-5);
  border: 1px solid rgba(44, 95, 93, 0.12);
}
.science-item h3 {
  font-size: var(--storyo-headline-s);
  color: var(--storyo-secondary);
  margin-bottom: var(--storyo-space-2);
}
.science-item p {
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  line-height: 1.65;
}

/* ---- Use-Case Cards ---- */
.use-case {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-left: 4px solid var(--storyo-tertiary);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-5);
}
.use-case-label {
  font-size: var(--storyo-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--storyo-tertiary);
  margin-bottom: var(--storyo-space-3);
  display: block;
}
.use-case p {
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-size: var(--storyo-body-l);
  color: var(--storyo-ink);
  line-height: 1.55;
}
.use-case p + p {
  margin-top: var(--storyo-space-2);
  font-family: var(--storyo-font-sans);
  font-style: normal;
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
}

/* ---- Value Cards (Werte-Sektion) ---- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--storyo-space-4);
}
@media (min-width: 720px) {
  .value-grid { grid-template-columns: repeat(5, 1fr); }
}

.value-card {
  background: var(--storyo-primary-light);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-4);
  border: 1px solid rgba(217, 119, 87, 0.18);
  text-align: center;
}
.value-card-check {
  display: block;
  font-size: 22px;
  color: var(--storyo-secondary);
  margin-bottom: var(--storyo-space-2);
  font-weight: 700;
}
.value-card p {
  font-size: var(--storyo-body-s);
  font-weight: 500;
  color: var(--storyo-ink);
  line-height: 1.4;
}

/* ---- Internal Links Grid ---- */
.internal-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--storyo-space-4);
}
@media (min-width: 720px) {
  .internal-links-grid { grid-template-columns: repeat(3, 1fr); }
}

.internal-link-card {
  display: block;
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-md);
  padding: var(--storyo-space-4);
  text-decoration: none;
  transition: box-shadow var(--storyo-transition-base), transform var(--storyo-transition-base);
}
.internal-link-card:hover {
  box-shadow: var(--storyo-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.internal-link-card-title {
  font-size: var(--storyo-body-m);
  font-weight: 600;
  color: var(--storyo-ink);
  margin-bottom: var(--storyo-space-1);
  display: block;
}
.internal-link-card-desc {
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  line-height: 1.5;
}
.internal-link-card-arrow {
  display: inline-block;
  color: var(--storyo-primary);
  font-size: var(--storyo-body-m);
  margin-top: var(--storyo-space-2);
  font-weight: 600;
}

/* ---- Newsletter Mini ---- */
.newsletter-mini {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  padding: var(--storyo-space-6) var(--storyo-space-8);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-mini h3 {
  font-size: var(--storyo-headline-s);
  margin-bottom: var(--storyo-space-2);
}
.newsletter-mini p {
  font-size: var(--storyo-body-s);
  color: var(--storyo-ink-muted);
  margin-bottom: var(--storyo-space-4);
}
.newsletter-mini-form {
  display: flex;
  gap: var(--storyo-space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-mini-form .form-input {
  flex: 1;
  min-width: 200px;
}
.newsletter-mini-note {
  font-size: var(--storyo-caption);
  color: var(--storyo-ink-muted);
  margin-top: var(--storyo-space-3);
}

/* ---- FAQ extended (same accordion, extra context) ---- */
.faq-intro-text {
  font-size: var(--storyo-body-m);
  color: var(--storyo-ink-muted);
  margin-bottom: var(--storyo-space-6);
  max-width: 600px;
}

/* ==============================================
   HOME-EXPANSION (Storyo SEO + Scroll-Effekte)
   ============================================== */

/* Scroll-Progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(217, 119, 87, 0.08);
  z-index: 100;
}
.scroll-progress-fill {
  height: 100%;
  background: var(--storyo-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

/* Fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* Step-Mini (Wie funktionierts) */
.step-mini {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.step-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--storyo-shadow-md);
}
.step-mini-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--storyo-radius-full);
  background: var(--storyo-primary);
  color: #fff;
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.step-mini h3 {
  font-family: var(--storyo-font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0;
  color: var(--storyo-ink);
}
.step-mini p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Science Block */
.science-block {
  background: var(--storyo-secondary-light);
}

/* Use-Case */
.use-case {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-left: 3px solid var(--storyo-primary);
  border-radius: var(--storyo-radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.use-case-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--storyo-primary);
  font-weight: 600;
  margin: 0;
}
.use-case h3 {
  font-family: var(--storyo-font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
  color: var(--storyo-ink);
}
.use-case p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--storyo-ink);
  margin: 0;
}

/* Value-Section */
.value-section {
  background: rgba(232, 180, 122, 0.06);
}
.value-card {
  padding: 18px 20px;
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-md);
  background: var(--storyo-bg-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.value-card strong {
  font-weight: 600;
  color: var(--storyo-ink);
  font-size: 1rem;
}
.value-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* Internal-Links-Grid */
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.internal-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-md);
  background: var(--storyo-bg-card);
  text-decoration: none;
  color: var(--storyo-ink);
  transition: all 0.18s;
}
.internal-link-card:hover {
  border-color: var(--storyo-primary);
  transform: translateY(-2px);
  box-shadow: var(--storyo-shadow-sm);
}
.internal-link-card strong {
  font-family: var(--storyo-font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--storyo-primary);
}
.internal-link-card span {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--storyo-ink-muted);
}

/* Newsletter-Mini */
.newsletter-mini {
  background: var(--storyo-primary-light);
}
.newsletter-mini-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-mini-inner > div { flex: 1; min-width: 280px; }
.newsletter-mini-inner h2 {
  font-family: var(--storyo-font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 6px 0;
  color: var(--storyo-ink);
}
.newsletter-form {
  display: flex;
  gap: 8px;
  min-width: 280px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--storyo-radius-full);
  border: 1px solid var(--storyo-border);
  background: var(--storyo-bg-card);
  font-family: var(--storyo-font-sans);
  font-size: 0.95rem;
  color: var(--storyo-ink);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--storyo-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.18);
}

/* Cookie Banner Slide-Up */
.consent-banner.consent-slide-up {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Audio-Card Hover-Animation */
.audio-card:hover {
  box-shadow: var(--storyo-shadow-md);
  transform: translateY(-2px);
  transition: transform 0.15s, box-shadow 0.15s;
}

/* Smooth-Scroll */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Display-S */
.display-s {
  font-family: var(--storyo-font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--storyo-ink);
  margin: 0;
}

/* ==============================================
   FORCE LIGHT MODE + WARM BIAS (Eltern-Zielgruppe)
   ============================================== */

/* Override Dark-Mode-Auto-Switch */
:root {
  color-scheme: light only;
  --storyo-bg:        #FAF7F2 !important;
  --storyo-bg-card:   #FFFFFF !important;
  --storyo-bg-input:  #F3EFE8 !important;
  --storyo-ink:       #1F1B16 !important;
  --storyo-ink-muted: #7B7163 !important;
  --storyo-primary:        #D97757 !important;
  --storyo-primary-hover:  #C4653F !important;
  --storyo-primary-light:  #FAEAE3 !important;
  --storyo-secondary:        #2C5F5D !important;
  --storyo-secondary-light:  #E0EDEC !important;
  --storyo-border:    #E0D9CF !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --storyo-bg:        #FAF7F2 !important;
    --storyo-bg-card:   #FFFFFF !important;
    --storyo-bg-input:  #F3EFE8 !important;
    --storyo-ink:       #1F1B16 !important;
    --storyo-ink-muted: #7B7163 !important;
    --storyo-primary:        #D97757 !important;
    --storyo-primary-light:  #FAEAE3 !important;
    --storyo-secondary:        #2C5F5D !important;
    --storyo-secondary-light:  #E0EDEC !important;
    --storyo-border:    #E0D9CF !important;
  }
}

/* School-Banner: dunkel → hell mit Akzent (warm bleibend) */
.school-banner {
  background: linear-gradient(135deg, #FAEAE3 0%, #FFF6EC 100%) !important;
  border: 1px solid var(--storyo-primary) !important;
  color: var(--storyo-ink) !important;
}
.school-banner h3 { color: var(--storyo-secondary) !important; }
.school-banner p { color: var(--storyo-ink) !important; opacity: 0.85; }
.school-banner .btn {
  background: var(--storyo-primary) !important;
  color: #fff !important;
  border-color: var(--storyo-primary) !important;
}
.school-banner .btn:hover {
  background: var(--storyo-primary-hover) !important;
}

/* Footer: heller machen statt dunkel */
.site-footer {
  background: #F3EFE8 !important;
  color: var(--storyo-ink) !important;
  border-top: 1px solid var(--storyo-border) !important;
}
.site-footer h4, .site-footer .nav-logo, .site-footer p, .site-footer a {
  color: var(--storyo-ink) !important;
}
.site-footer a:hover { color: var(--storyo-primary) !important; }
.site-footer ul li button { color: var(--storyo-ink) !important; }
.trust-badge {
  background: var(--storyo-bg-card) !important;
  color: var(--storyo-ink) !important;
  border: 1px solid var(--storyo-border) !important;
}

/* Body: explizit cream */
body {
  background: var(--storyo-bg) !important;
  color: var(--storyo-ink) !important;
}

/* CTA-Section: hell tonen */
.cta-section-primary {
  background: linear-gradient(135deg, #FAEAE3 0%, #FFF6EC 100%) !important;
  color: var(--storyo-ink) !important;
}
.cta-section-primary h2 { color: var(--storyo-ink) !important; }
.cta-section-primary p { color: var(--storyo-ink) !important; opacity: 0.8; }

/* ==============================================
   HEADER: Premium-Glass, immer hell
   ============================================== */
.site-header {
  background: rgba(250, 247, 242, 0.85) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(224, 217, 207, 0.6) !important;
  height: 72px !important;
  box-shadow: 0 1px 0 rgba(31, 27, 22, 0.04), 0 8px 30px -10px rgba(31, 27, 22, 0.08) !important;
}
@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(250, 247, 242, 0.85) !important;
    border-bottom-color: rgba(224, 217, 207, 0.6) !important;
  }
}

.nav-logo {
  font-family: var(--storyo-font-serif) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  font-size: 1.85rem !important;
  letter-spacing: -0.02em !important;
  color: var(--storyo-ink) !important;
  text-decoration: none !important;
  position: relative;
  transition: color 0.18s;
}
.nav-logo:hover { color: var(--storyo-primary) !important; }
.nav-logo .logo-dot {
  color: var(--storyo-primary) !important;
  font-style: normal;
}

.nav-links {
  display: flex !important;
  gap: 32px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--storyo-ink) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 8px 4px !important;
  position: relative;
  transition: color 0.15s;
  letter-spacing: -0.005em;
}
.nav-links a:hover {
  color: var(--storyo-primary) !important;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--storyo-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--storyo-primary) !important;
}
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta .btn {
  padding: 10px 22px !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em;
  border-radius: 999px !important;
  background: var(--storyo-primary) !important;
  color: #fff !important;
  border: 1px solid var(--storyo-primary) !important;
  box-shadow: 0 1px 3px rgba(217, 119, 87, 0.25), 0 4px 12px -2px rgba(217, 119, 87, 0.25) !important;
  transition: all 0.18s !important;
}
.nav-cta .btn:hover {
  background: var(--storyo-primary-hover) !important;
  border-color: var(--storyo-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(217, 119, 87, 0.3), 0 8px 20px -4px rgba(217, 119, 87, 0.35) !important;
}

/* Mobile-Nav-Toggle in Brand-Color */
.nav-toggle span { background: var(--storyo-ink) !important; }
.nav-toggle:hover span { background: var(--storyo-primary) !important; }

/* ==============================================
   ANNOUNCEMENT-BAR + LANG-PILLS + LOGIN-LINK
   ============================================== */

.announce-bar {
  position: sticky;
  top: 0;
  z-index: 101;
  background: linear-gradient(90deg, #E8B47A 0%, #FAEAE3 50%, #E8B47A 100%);
  border-bottom: 1px solid rgba(217, 119, 87, 0.25);
  color: var(--storyo-ink);
  font-size: 0.88rem;
  line-height: 1.4;
  overflow: hidden;
}
.announce-bar[hidden] { display: none; }
.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
}
.announce-icon { font-size: 1rem; flex-shrink: 0; }
.announce-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce-text strong { color: var(--storyo-ink); font-weight: 600; }
.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--storyo-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.15s;
}
.announce-link:hover {
  background: rgba(255, 255, 255, 0.9);
}
.announce-dismiss {
  background: transparent;
  border: 0;
  color: var(--storyo-ink);
  opacity: 0.5;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 8px;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.announce-dismiss:hover { opacity: 1; }

.announce-bar + .site-header {
  top: 40px;
}

@media (max-width: 720px) {
  .announce-text { white-space: normal; font-size: 0.78rem; }
  .announce-link { font-size: 0.78rem; padding: 3px 8px; }
  .announce-inner { padding: 6px 14px; gap: 8px; }
}

/* Nav-Lang-Pills */
.nav-lang-pills {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(31, 27, 22, 0.04);
  border-radius: 999px;
  margin-right: 8px;
}
.nav-lang-pill {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--storyo-ink-muted);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  font-family: var(--storyo-font-sans);
}
.nav-lang-pill:hover {
  color: var(--storyo-ink);
  background: rgba(255, 255, 255, 0.7);
}
.nav-lang-pill.active {
  background: var(--storyo-bg-card);
  color: var(--storyo-primary);
  box-shadow: 0 1px 2px rgba(31, 27, 22, 0.08);
}

/* Nav-Login text-link */
.nav-login {
  color: var(--storyo-ink) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 6px 4px !important;
  transition: color 0.15s;
}
.nav-login:hover { color: var(--storyo-primary) !important; }

.nav-cta {
  display: flex !important;
  align-items: center;
  gap: 14px !important;
}

.mobile-login {
  display: block;
  color: var(--storyo-ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
}
.mobile-login:hover { color: var(--storyo-primary); }

@media (max-width: 960px) {
  .nav-lang-pills { display: none; }
  .nav-login { display: none; }
}

/* ==============================================
   INLINE-SVG ILLUSTRATIONS (minimal Watercolor-Style)
   ============================================== */

.use-case-illust {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin-bottom: 12px;
  border-radius: var(--storyo-radius-sm);
  padding: 0;
  background: transparent;
}

.step-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.step-mini-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.step-mini-num {
  margin-bottom: 0;
}

/* Emoji-Replacement SVG-Style */
.emoji-svg {
  display: inline-block;
  vertical-align: -2px;
  color: var(--storyo-primary);
}
.feature-illust {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: var(--storyo-radius-md);
  margin-bottom: 12px;
  background: transparent;
  padding: 0;
}

.step-illust-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 16px 0 8px;
  border-radius: var(--storyo-radius-md);
  background: transparent;
  padding: 0;
}

/* ---- Page Illustrations (Scandi-Line-Art) ---- */
.page-illust {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: var(--storyo-radius-md);
  background: transparent;
  padding: 0;
  display: block;
  margin: 0 auto;
}
.page-illust-sm {
  max-width: 160px;
}
.page-illust-lg {
  max-width: 360px;
}
@media (max-width: 768px) {
  .page-illust { max-width: 200px; }
  .page-illust-lg { max-width: 240px; }
  .page-illust-sm { max-width: 120px; }
}

/* ==============================================
   LAUNCH-COUNTDOWN + WAITLIST
   ============================================== */

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--storyo-primary-light);
  border: 1px solid var(--storyo-primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--storyo-primary);
  margin-bottom: 18px;
}
.launch-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--storyo-primary);
  animation: launch-pulse 1.8s ease-in-out infinite;
}
@keyframes launch-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.waitlist-form {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  max-width: 520px;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 22px;
  font-size: 1rem;
  border: 1px solid var(--storyo-border);
  border-radius: 999px;
  background: var(--storyo-bg-card);
  color: var(--storyo-ink);
  font-family: var(--storyo-font-sans);
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--storyo-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.18);
}
.waitlist-form .btn-lg { white-space: nowrap; }

.hero-ctas-secondary {
  margin-top: 16px;
  gap: 6px !important;
}
.hero-ctas-secondary .btn { padding: 8px 14px; font-size: 0.88rem; }

.waitlist-counter {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.counter-box {
  background: var(--storyo-bg-card);
  border: 1px solid var(--storyo-border);
  border-radius: var(--storyo-radius-md);
  padding: 12px 16px;
  min-width: 64px;
  text-align: center;
  box-shadow: var(--storyo-shadow-sm);
}
.counter-box strong {
  display: block;
  font-family: var(--storyo-font-serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 500;
  color: var(--storyo-primary);
  line-height: 1;
}
.counter-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--storyo-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.waitlist-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--storyo-secondary-light);
  border-left: 3px solid var(--storyo-secondary);
  border-radius: var(--storyo-radius-md);
  font-size: 0.92rem;
  color: var(--storyo-ink);
}
.waitlist-success strong { color: var(--storyo-secondary); }

/* ==============================================
   STORYO UX POLISH v2.1
   Mobile-First + Animationen + A11Y + Touch-Targets
   ============================================== */

/* ---- Body Load Fade-In ---- */
body {
  animation: body-fadein 0.2s ease-out both;
}
@keyframes body-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* ---- Focus-Visible: Global ---- */
:focus-visible {
  outline: 2px solid var(--storyo-primary);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Touch-Target Minimum (44x44px) ---- */
.btn,
.nav-toggle,
summary,
.announce-dismiss,
.nav-lang-pill,
.lang-pill,
.mobile-menu a {
  min-height: 44px;
}
.nav-toggle {
  min-width: 44px;
  justify-content: center;
  align-items: center;
}
.lang-pill {
  padding: 8px 16px;
}
.nav-lang-pill {
  padding: 8px 12px;
}
.announce-dismiss {
  padding: 10px 12px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile-menu links already have padding via line-height + padding — boost touch area */
.mobile-menu a {
  padding: var(--storyo-space-4) 0;
  display: flex;
  align-items: center;
}

/* ---- Card Hover Lifts (enhanced) ---- */
.card,
.pricing-card,
.use-case,
.step-mini,
.value-card,
.audio-card,
.internal-link-card,
.topup-card,
.testimonial-card,
.contact-card,
.blog-card,
.science-item {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover,
.testimonial-card:hover,
.science-item:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--storyo-shadow-md);
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--storyo-shadow-sm);
}

/* Respect reduced motion for all card hovers */
@media (prefers-reduced-motion: reduce) {
  .card,
  .pricing-card,
  .use-case,
  .step-mini,
  .value-card,
  .audio-card,
  .internal-link-card,
  .topup-card,
  .testimonial-card,
  .contact-card,
  .blog-card,
  .science-item {
    transition: none;
  }
}

/* ---- Button: Primary Glow + Scale ---- */
.btn-primary {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.15s ease-out !important;
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 16px -2px rgba(217, 119, 87, 0.45),
              0 2px 6px rgba(217, 119, 87, 0.30) !important;
}
.btn-primary:active {
  transform: scale(0.98) !important;
  box-shadow: none !important;
}

/* ---- Button: Ghost Hover Background ---- */
.btn-ghost:hover {
  background: var(--storyo-bg-input) !important;
  color: var(--storyo-ink) !important;
}

/* ---- Magnetic Cursor Hint (CSS only, desktop) ---- */
@media (hover: hover) and (pointer: fine) {
  .btn-primary {
    cursor: pointer;
    will-change: transform;
  }
}

/* ---- Fade-Up Stagger (grid children) ---- */
.fade-up-stagger > * {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up-stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* nth-child delays — up to 8 items */
.fade-up-stagger > *:nth-child(1) { transition-delay: 0ms; }
.fade-up-stagger > *:nth-child(2) { transition-delay: 60ms; }
.fade-up-stagger > *:nth-child(3) { transition-delay: 120ms; }
.fade-up-stagger > *:nth-child(4) { transition-delay: 180ms; }
.fade-up-stagger > *:nth-child(5) { transition-delay: 240ms; }
.fade-up-stagger > *:nth-child(6) { transition-delay: 300ms; }
.fade-up-stagger > *:nth-child(7) { transition-delay: 360ms; }
.fade-up-stagger > *:nth-child(8) { transition-delay: 420ms; }
@media (prefers-reduced-motion: reduce) {
  .fade-up-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Image Reveal: Scale + Fade ---- */
.img-reveal {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-reveal.is-visible {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .img-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Hero Wave SVG: Bobbing Animation ---- */
.wave-svg {
  animation: wave-bob 4s ease-in-out infinite;
}
@keyframes wave-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-svg { animation: none; }
}

/* ---- Countdown Tick Flash ---- */
.counter-box.tick-flash {
  animation: counter-tick 0.25s ease-out;
}
@keyframes counter-tick {
  0%   { opacity: 1; }
  35%  { opacity: 0.45; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .counter-box.tick-flash { animation: none; }
}

/* ---- Waitlist Submit Spinner ---- */
.btn--loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn--success {
  background: var(--storyo-success) !important;
  border-color: var(--storyo-success) !important;
  pointer-events: none;
  color: white !important;
}

/* ---- Lazy-Image Loading Shimmer ---- */
img[loading="lazy"] {
  background: var(--storyo-bg-input);
}

/* ============================================
   MOBILE-FIRST REFINEMENTS (≤640px)
   ============================================ */

@media (max-width: 640px) {

  /* Hero: tighter padding + stacking */
  .hero {
    padding: var(--storyo-space-8) 0 var(--storyo-space-10);
  }

  /* Display-XL: clamp more aggressively */
  .display-xl {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.12;
  }

  /* Waitlist form: full-width stack */
  .waitlist-form {
    flex-direction: column;
    gap: var(--storyo-space-3);
  }
  .waitlist-form input {
    min-width: 0;
    width: 100%;
  }
  .waitlist-form .btn-lg {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Countdown: 2x2 wrap with equal sizing */
  .waitlist-counter {
    gap: var(--storyo-space-2);
  }
  .counter-box {
    flex: 1 1 calc(50% - var(--storyo-space-2));
    min-width: 0;
  }

  /* Section spacing tighter on mobile */
  .section { padding: var(--storyo-space-8) 0; }
  .section--lg { padding: var(--storyo-space-10) 0; }

  /* Grid layouts: always 1 col on mobile */
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  /* Pricing cards: 1 col */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid-6 {
    grid-template-columns: 1fr;
  }

  /* Top-up grid: 2 col stays OK, no change needed */

  /* Token table: horizontal scroll */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  /* Vault grid (fuer-schulen): 2 col */
  .vault-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Internal links: 1 col on mobile */
  .internal-links-grid {
    grid-template-columns: 1fr;
  }

  /* Value grid: 2 col stays */
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Use-case illustrations: constrain on mobile */
  .use-case-illust {
    max-width: 120px;
  }

  /* Steps grid: 1 col forced */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* CTA banner: compact padding */
  .cta-banner,
  .cta-section-primary {
    padding: var(--storyo-space-8) var(--storyo-space-5);
  }

  /* Newsletter mini form: stack */
  .newsletter-mini-form,
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .newsletter-mini-form .form-input,
  .newsletter-form input {
    min-width: 0;
    width: 100%;
  }
  .newsletter-mini-form .btn,
  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }

  /* FAQ search: full-width already via width:100%, but ensure */
  .faq-search .form-input {
    font-size: 16px; /* prevent iOS zoom */
  }

  /* Form inputs: prevent iOS zoom (min 16px) */
  .form-input,
  .form-select,
  .form-textarea,
  input[type="email"],
  input[type="text"],
  input[type="search"] {
    font-size: 16px;
  }

  /* Accordion items: bigger touch area */
  summary {
    padding: var(--storyo-space-4) var(--storyo-space-4);
    min-height: 52px;
  }

  /* Breadcrumb: wrap nicely */
  .breadcrumb {
    gap: var(--storyo-space-1);
  }

  /* Lang pills in footer: adequate size */
  .lang-pills {
    gap: var(--storyo-space-2);
  }

  /* Trust row: center + smaller gap */
  .trust-row {
    gap: var(--storyo-space-3);
    padding: var(--storyo-space-4) 0;
  }

  /* Footer grid: tighter */
  .footer-grid {
    gap: var(--storyo-space-6);
  }

  /* School banner button: full-width on mobile */
  .school-banner {
    flex-direction: column;
    gap: var(--storyo-space-4);
  }
  .school-banner .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Blog-card grid: 1 col */
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* container padding: slightly tighter */
  .container,
  .container--narrow {
    padding: 0 var(--storyo-space-4);
  }

  /* Mobile-menu CTA button */
  .mobile-menu .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* How-to steps on kompatible-boxen: stack */
  .howto-steps {
    grid-template-columns: 1fr !important;
  }

  /* Topup grid: 2 col stays fine, just ensure no overflow */
  .topup-grid {
    grid-template-columns: 1fr 1fr;
  }

}

/* ---- Tablet (641-1023px) ---- */
@media (min-width: 641px) and (max-width: 1023px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .topup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- A11Y: nav-links hidden on mobile (they already are), but focus-visible check ---- */
.nav-links a:focus-visible,
.footer-col a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid var(--storyo-primary);
  outline-offset: 3px;
  border-radius: 3px;
  text-decoration: none;
}

/* Summary (FAQ accordion) focus-visible */
summary:focus-visible {
  outline: 2px solid var(--storyo-primary);
  outline-offset: -2px;
  border-radius: 3px;
}

/* Input focus already styled in base — ensure it works everywhere */
.waitlist-form input:focus-visible,
.newsletter-form input:focus-visible {
  outline: none;
  border-color: var(--storyo-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.20);
}

/* ---- Announcement bar: text wraps cleanly on narrow ---- */
@media (max-width: 480px) {
  .announce-bar {
    font-size: 0.78rem;
  }
  .announce-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .announce-inner {
    flex-wrap: wrap;
    padding: 8px 14px;
    gap: 6px;
  }
  .announce-link {
    flex-shrink: 0;
  }
}

/* ---- How-to Steps on kompatible-boxen ---- */
.howto-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--storyo-space-5);
}
@media (min-width: 720px) {
  .howto-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Vault Grid (fuer-schulen 8 subjects) ---- */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--storyo-space-4);
}
@media (min-width: 720px) {
  .vault-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Skip-nav improved ---- */
.skip-nav:focus {
  left: var(--storyo-space-3);
  top: var(--storyo-space-3);
  z-index: 10000;
}
