:root {
  --bg: #0a1420;
  --bg-alt: #0e1a28;
  --card: #101d2c;
  --border: rgba(45, 212, 191, 0.25);
  --accent: #2ee6cb;
  --accent-soft: rgba(46, 230, 203, 0.12);
  --text: #eaf3f5;
  --muted: #7e93a0;
  --live: #22c55e;
  --radius: 14px;
}

* { box-sizing: border-box; }

@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;
  }
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(46, 230, 203, 0.08), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(46, 230, 203, 0.06), transparent 40%);
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 20, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  transition: transform 0.35s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.08) rotate(-4deg);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.main-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.28s ease;
}

.main-nav-link:hover,
.main-nav-link.is-active {
  color: var(--accent);
  text-decoration: none;
}

.main-nav-link:hover::after,
.main-nav-link.is-active::after {
  right: 0;
}

.main-nav-cta {
  background: var(--accent);
  color: #06211d;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main-nav-cta::after {
  display: none;
}

.main-nav-cta:hover {
  color: #06211d;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(46, 230, 203, 0.6);
}

.main-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 200px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 30;
}

.main-nav-item.has-dropdown:hover .main-nav-dropdown,
.main-nav-item.has-dropdown:focus-within .main-nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 4px);
}

.main-nav-dropdown li + li {
  margin-top: 2px;
}

.main-nav-dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.nav-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 420px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.8s ease forwards 0.1s;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--live); opacity: 1; }
  50% { box-shadow: 0 0 14px var(--live); opacity: 0.6; }
}

.hero-text .frame-type-header header h2,
.hero-text .frame-type-header header h3 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  color: var(--text);
}

.hero-text .frame-type-header header h3 {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(46, 230, 203, 0.35);
  margin-bottom: 22px;
}

.hero-text .frame-type-text .ce-bodytext p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #06211d;
  border-color: var(--accent);
}

.btn-primary:not(.btn-disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(46, 230, 203, 0.55);
  text-decoration: none;
}

.btn-primary:not(.btn-disabled):active {
  transform: translateY(-1px);
}

.btn-disabled {
  opacity: 0.75;
  cursor: default;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(46, 230, 203, 0.4);
}

.hero-media {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.8s ease forwards 0.3s;
}

.hero-cluster {
  position: relative;
  max-width: 340px;
  width: 100%;
  margin: 20px 30px 40px;
}

.hero-cluster-main {
  display: block;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(46, 230, 203, 0.35), 0 0 0 1px var(--border);
  animation: float 5s ease-in-out infinite;
  transition: box-shadow 0.35s ease, opacity 0.2s ease, transform 0.2s ease;
}

.hero-cluster-main.is-swapping {
  opacity: 0;
  transform: scale(0.97);
}

.hero-cluster:hover .hero-cluster-main {
  box-shadow: 0 34px 90px -16px rgba(46, 230, 203, 0.55), 0 0 0 1px var(--border);
}

.hero-hotspots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  display: flex;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.hero-hotspot {
  flex: 1;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero-hotspot:hover,
.hero-hotspot:focus-visible {
  background: rgba(46, 230, 203, 0.18);
  outline: none;
}

.hero-hotspot.is-active {
  background: rgba(46, 230, 203, 0.12);
  box-shadow: inset 0 2px 0 var(--accent);
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 29, 44, 0.88);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  animation: cardIn 0.6s ease forwards, float 6s ease-in-out infinite 0.6s;
}

.hero-card-top {
  top: -18px;
  left: -24px;
  animation-delay: 0.5s, 0.5s;
}

.hero-card-top .hero-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: pulse 1.8s ease-in-out infinite;
}

.hero-card-bottom {
  bottom: -16px;
  right: -20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  animation-delay: 0.75s, 0.75s;
}

.hero-card-bottom strong {
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.2;
}

.hero-card-bottom span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero-cluster {
    margin: 20px 12px 34px;
  }
  .hero-card {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
  .hero-card-top { left: -8px; }
  .hero-card-bottom { right: -8px; }
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

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

/* Icon strip */
.icon-strip {
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}

.icon-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  text-align: center;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
}

.icon-strip.is-visible .icon-item {
  opacity: 1;
  transform: translateY(0);
}

.icon-strip.is-visible .icon-item:nth-child(1) { transition-delay: 0.05s; }
.icon-strip.is-visible .icon-item:nth-child(2) { transition-delay: 0.1s; }
.icon-strip.is-visible .icon-item:nth-child(3) { transition-delay: 0.15s; }
.icon-strip.is-visible .icon-item:nth-child(4) { transition-delay: 0.2s; }
.icon-strip.is-visible .icon-item:nth-child(5) { transition-delay: 0.25s; }
.icon-strip.is-visible .icon-item:nth-child(6) { transition-delay: 0.3s; }

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.icon-item:hover .icon-badge {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--accent);
  box-shadow: 0 14px 28px -14px rgba(46, 230, 203, 0.55);
}

.icon-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* Download section */
.download-section {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 64px 0;
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.download-text h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  color: var(--text);
}

.download-text p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.download-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1rem;
}

.store-btn small {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.store-btn-disabled {
  opacity: 0.7;
  cursor: default;
}

.store-btn:not(.store-btn-disabled):hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px -14px rgba(46, 230, 203, 0.5);
}

/* Content area / fluid_styled_content defaults */
.content-area {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

/* Feature cards */
.feature-section {
  padding: 64px 0 72px;
}

.feature-heading {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-grid .frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-section.is-visible .feature-grid .frame {
  opacity: 1;
  transform: translateY(0);
}

.feature-section.is-visible .feature-grid .frame:nth-child(1) { transition-delay: 0.05s; }
.feature-section.is-visible .feature-grid .frame:nth-child(2) { transition-delay: 0.1s; }
.feature-section.is-visible .feature-grid .frame:nth-child(3) { transition-delay: 0.15s; }
.feature-section.is-visible .feature-grid .frame:nth-child(4) { transition-delay: 0.2s; }
.feature-section.is-visible .feature-grid .frame:nth-child(5) { transition-delay: 0.25s; }
.feature-section.is-visible .feature-grid .frame:nth-child(6) { transition-delay: 0.3s; }

.feature-grid .frame:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px -20px rgba(46, 230, 203, 0.45);
}

.feature-grid .ce-gallery,
.feature-grid .ce-outer,
.feature-grid .ce-inner,
.feature-grid .ce-row,
.feature-grid .ce-column {
  display: contents;
}

.feature-grid figure.image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin: 0 0 18px;
}

.feature-grid figure.image img {
  width: 22px;
  height: 22px;
}

.feature-grid .frame header h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.feature-grid .frame .ce-bodytext p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.content-area .frame {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.content-area .frame.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-area h1,
.content-area h2,
.content-area h3 {
  color: var(--text);
  font-weight: 700;
  margin-top: 0;
}

.content-area h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.content-area p {
  color: var(--muted);
  max-width: 760px;
}

.content-area ul.ce-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.content-area ul.ce-bullets li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.content-area ul.ce-bullets li:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 34px -18px rgba(46, 230, 203, 0.5);
}

.content-area .frame.is-visible ul.ce-bullets li {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.content-area .frame.is-visible ul.ce-bullets li:hover {
  transform: translateY(-4px) scale(1);
}

.content-area .frame.is-visible ul.ce-bullets li:nth-child(1) { transition-delay: 0.05s; }
.content-area .frame.is-visible ul.ce-bullets li:nth-child(2) { transition-delay: 0.1s; }
.content-area .frame.is-visible ul.ce-bullets li:nth-child(3) { transition-delay: 0.15s; }
.content-area .frame.is-visible ul.ce-bullets li:nth-child(4) { transition-delay: 0.2s; }
.content-area .frame.is-visible ul.ce-bullets li:nth-child(5) { transition-delay: 0.25s; }
.content-area .frame.is-visible ul.ce-bullets li:nth-child(6) { transition-delay: 0.3s; }

/* Legal / text pages */
.page-legal .content-area {
  max-width: 820px;
}

.page-legal .content-area p {
  color: var(--text);
  max-width: none;
}

.page-legal .content-area h2 {
  margin-top: 36px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 40px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 56px 24px 32px;
  justify-content: space-between;
}

.footer-brand {
  flex: 1 1 260px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Gallery */
.gallery-page .ce-gallery .ce-outer,
.gallery-page .ce-gallery .ce-inner {
  display: contents;
}

.gallery-page .ce-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.gallery-page figure.image {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  line-height: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-page figure.image:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 34px -16px rgba(46, 230, 203, 0.5);
}

.gallery-page figure.image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-page figure.image:hover img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 20, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: lightboxIn 0.25s ease forwards;
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

@keyframes lightboxIn {
  to { opacity: 1; }
}

.lightbox img {
  max-width: min(900px, 100%);
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(46, 230, 203, 0.4);
  transform: scale(0.96);
  animation: lightboxZoom 0.25s ease forwards;
}

@keyframes lightboxZoom {
  to { transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(16, 29, 44, 0.8);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

/* About page */
.about-story {
  padding: 72px 0 24px;
}

.about-story .frame-type-header header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
}

.about-story .frame-type-header header h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  text-align: center;
  margin: 0 0 48px;
}

.about-story .frame-type-textmedia .ce-textpic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.about-story .ce-gallery,
.about-story .ce-outer,
.about-story .ce-inner,
.about-story .ce-row,
.about-story .ce-column {
  display: contents;
}

.about-story .frame-type-textmedia .ce-gallery {
  flex: 1 1 260px;
}

.about-story .frame-type-textmedia figure.image {
  margin: 0;
}

.about-story .frame-type-textmedia figure.image img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(46, 230, 203, 0.3), 0 0 0 1px var(--border);
}

.about-story .frame-type-textmedia .ce-bodytext {
  flex: 1 1 380px;
}

.about-story .frame-type-textmedia header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.about-story .frame-type-textmedia .ce-bodytext p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

/* ---------------------------------------------------------------------------
   Bilder aus dem Backend in Icon-Leiste und Store-Knoepfen

   Die Symbole waren frueher fest eingebaute SVG-Zeichnungen. Jetzt kommen sie als hochgeladene
   Bilder aus den Inhaltselementen - diese Regeln sorgen dafuer, dass ein hochgeladenes Bild
   genauso sitzt und genauso gross ist wie die fruehere Zeichnung. Die alten SVG-Regeln bleiben
   daneben bestehen, damit die Seite auch dann richtig aussieht, wenn ein Bereich noch leer ist
   und die Vorlage auf den fest eingebauten Stand zurueckfaellt.
   --------------------------------------------------------------------------- */
.icon-badge img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.store-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Ein Knopf ohne hinterlegtes Bild soll nicht in sich zusammenfallen, sondern denselben Platz
   lassen wie einer mit Bild - sonst stehen zwei Knoepfe nebeneinander unterschiedlich hoch. */
.store-btn > span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* ---------------------------------------------------------------------------
   Fragen und Antworten zum Aufklappen (SSS)

   Wird aus dem vorhandenen Text gebaut (siehe initFaq in main.js) - im Backend bleibt es ein
   normales Textelement. Die Regeln greifen nur, wenn wirklich Klappboxen entstanden sind; auf
   Seiten ohne Fragen aendert sich dadurch nichts.
   --------------------------------------------------------------------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  margin: 10px 0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.is-open {
  border-color: rgba(46, 230, 203, 0.45);
  box-shadow: 0 0 0 1px rgba(46, 230, 203, 0.15);
}
.faq-frage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1.45;
}
.faq-frage:hover .faq-text,
.faq-item.is-open .faq-text {
  color: var(--accent);
}
.faq-text {
  transition: color 0.2s ease;
}
/* Pfeil aus reinem CSS - kein zusaetzliches Bild noetig, das geladen werden muesste */
.faq-pfeil {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-pfeil {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq-antwort {
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 560px) {
  .faq-frage {
    padding: 14px 16px;
  }
  .faq-antwort {
    padding: 0 16px 16px;
  }
}

/* Das grosse Bild soll den Bildschirm ausnutzen, aber nie ueber ihn hinauslaufen. */
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}
