/* ==========================================================================
   UT-Systems Apps — Ergänzungen zu main.css (übernommen von ut-systems.com)
   App-Karten, Produktseite, Support/FAQ. Farben nur über die Tokens aus main.css,
   pro App zusätzlich --app-accent (aus app.json).
   ========================================================================== */

:root {
  --app-accent: var(--cyan);
}

.brand__sub {
  margin-left: 2px;
  color: var(--text-mute);
  font-weight: 450;
}

/* Navigation bleibt auch auf dem Handy sichtbar (nur zwei, drei kurze Links, kein Menü-Skript). */
.nav--apps .lang {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .nav.nav--apps {
    display: flex;
    gap: 18px;
  }
  .nav--apps .nav__ext {
    display: none;
  }
}

/* ---------- Abschnitt für Start- und Produktseite (wie .legal, ohne Textstile) ---------- */
.page-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 10vh, 120px));
  padding-bottom: clamp(80px, 12vh, 140px);
}
.page-section .mesh {
  opacity: 0.45;
}
.page-section + .site-footer {
  padding-top: 0;
}

/* ---------- Startseite ---------- */
.apps-hero__title {
  margin-top: 16px;
  max-width: 14em;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.055em;
}
.apps-hero__text {
  margin-top: 20px;
  max-width: 34em;
  color: var(--text-soft);
  font-size: clamp(17px, 0.5vw + 15px, 20px);
}

.app-grid {
  margin-top: clamp(40px, 7vh, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--col-gap);
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 22, 48, 0.85), rgba(10, 18, 38, 0.75));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.app-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.app-card__main {
  display: block;
  padding: 28px 28px 20px;
  flex: 1;
}
.app-card__tagline {
  margin-top: 18px;
  color: var(--text-soft);
}
.app-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text);
}
.app-card__more svg {
  width: 12px;
  height: 12px;
  transition: transform 0.35s var(--ease-out);
}
.app-card:hover .app-card__more svg {
  transform: translate(2px, -2px);
}
.app-card__links {
  display: flex;
  gap: 20px;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}
.app-card__links a:hover {
  color: var(--text);
}
.app-card .app-head .label {
  margin-bottom: 0;
}

/* ---------- Kopf einer App (Icon, Plattformen, Name) ---------- */
.app-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.app-icon {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 50px -18px var(--app-accent);
}
.app-head .label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.app-head__name {
  margin-top: 6px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.04em;
}
.pill {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
}
.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--text-mute);
  vertical-align: 1px;
}
.status--live::before {
  background: var(--live);
}
.status--beta::before,
.status--soon::before {
  background: var(--wip);
}

/* ---------- Produktseite ---------- */
.app-page .app-icon {
  width: 96px;
  height: 96px;
}
.app-page .app-head__name {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 540;
  letter-spacing: -0.06em;
}
.app-intro {
  max-width: 780px;
}
.app-intro__tagline {
  margin-top: 28px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.app-intro__summary {
  margin-top: 16px;
  color: var(--text-soft);
  max-width: 38em;
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.app-actions .btn[aria-disabled="true"] {
  cursor: default;
}
.app-intro__req {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.app-section-label {
  margin-top: clamp(64px, 10vh, 110px);
}
.features {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--col-gap);
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 18, 38, 0.6);
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.feature h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--app-accent);
}
.feature p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 15px;
}
.app-page__links {
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-mute);
}
.app-page__links a {
  color: var(--text-soft);
}
.app-page__links a:hover {
  color: var(--text);
}

/* ---------- Support & FAQ ---------- */
.legal .back-link {
  margin-bottom: 20px;
}
.legal .support-mail {
  margin-top: 28px;
}
.legal .support-mail .btn {
  border-bottom: 0;
}
.support-hint {
  font-size: 15px;
}
.faq {
  margin-top: 8px;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  position: relative;
  padding: 18px 32px 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 500;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--mono);
  color: var(--text-mute);
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.legal .faq__item p {
  margin: 0 0 18px;
}
