/* Shared styles for the brand pages (/ and /impressum/).
   Tokens and components mirror maxmatics/index.html so all pages look alike. */
:root {
  --brand: #3453f6;
  --brand-2: #5b73ff;
  --brand-ink: #1b2a8a;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-elev: #ffffff;
  --card-border: rgba(20, 26, 51, 0.08);
  --text: #12172a;
  --text-soft: #5b6178;
  --shadow-sm: 0 1px 2px rgba(16, 22, 46, .06), 0 8px 24px rgba(16, 22, 46, .06);
  --shadow-md: 0 4px 12px rgba(16, 22, 46, .08), 0 24px 60px rgba(16, 22, 46, .12);
  --shadow-brand: 0 18px 45px rgba(52, 83, 246, .35);
  --radius: 20px;
  --nav-h: 64px;
  --maxw: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0c0e16;
  --bg-soft: #12141f;
  --bg-elev: #161926;
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f3f5fb;
  --text-soft: #a3a9bd;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 1.08rem; }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 11px;
  font-weight: 700; font-size: .98rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 55px rgba(52,83,246,.45); }
.btn-ghost {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border-color: color-mix(in srgb, var(--text) 16%, transparent);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--brand) 12%, transparent); border-color: var(--brand); }
.btn:focus-visible, .appstore-link:focus-visible, .app-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.appstore-link { display: inline-flex; border-radius: 11px; transition: transform .2s ease; }
.appstore-link:hover { transform: translateY(-2px); }
.appstore-badge { height: 52px; width: auto; display: block; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--card-border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  padding: 8px 14px; border-radius: 999px; color: var(--text-soft); font-weight: 600; font-size: .95rem;
  transition: color .2s ease, background .2s ease;
}
.nav-links a.link:hover { color: var(--text); background: var(--bg-soft); }
.nav-tools { display: flex; gap: 8px; margin-left: 6px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--card-border); background: var(--bg-elev); color: var(--text);
  cursor: pointer; font-size: 1rem; font-weight: 700;
  transition: transform .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 80px); padding-bottom: 40px; overflow: hidden; text-align: center; }
.hero::before {
  content: ""; position: absolute; top: -300px; left: 50%; width: 1000px; height: 1000px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, rgba(52,83,246,.20), rgba(52,83,246,0) 62%);
  z-index: -1; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand); font-weight: 700; font-size: .85rem; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 850; line-height: 1.04; letter-spacing: -0.03em; }
.grad {
  background: linear-gradient(115deg, var(--brand), var(--brand-2) 60%, #9aa9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 22px auto 32px; font-size: 1.18rem; color: var(--text-soft); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- App cards ---------- */
.apps { padding-top: 56px; }
.app-icon { width: 72px; height: 72px; border-radius: 17px; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.app-icon.placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #8b93ad, #5b6178);
  color: #fff; font-weight: 850; font-size: 2rem; letter-spacing: -0.03em;
}
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.status.soon { color: var(--text-soft); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.status.live::before { background: #22c55e; }

.app-feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: 40px 44px; border-radius: 32px; overflow: hidden; position: relative;
  background: var(--bg-elev); border: 1px solid var(--card-border); box-shadow: var(--shadow-md);
}
.app-feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 55%);
}
.app-feature > * { position: relative; }
.app-feature .head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.app-feature h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 850; letter-spacing: -0.02em; line-height: 1.1; }
.app-feature p.desc { color: var(--text-soft); font-size: 1.08rem; max-width: 46ch; }
.app-feature .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.app-feature .shots { display: flex; justify-content: center; align-items: center; padding: 10px 0; }
.app-feature .shot { width: 200px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--brand); transition: transform .35s ease; }
.app-feature .shot.s1 { transform: rotate(-6deg); margin-right: -40px; z-index: 1; }
.app-feature .shot.s2 { transform: rotate(5deg); z-index: 2; }
@media (hover:hover) {
  .app-feature .shots:hover .shot.s1 { transform: rotate(-9deg) translateY(-8px); }
  .app-feature .shots:hover .shot.s2 { transform: rotate(8deg) translateY(-8px); }
}

.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.app-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--bg-elev); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); color: inherit; transition: transform .25s ease, box-shadow .25s ease;
}
a.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-card .head { display: flex; align-items: center; gap: 16px; }
.app-card .app-icon { width: 60px; height: 60px; border-radius: 14px; }
.app-card .app-icon.placeholder { font-size: 1.7rem; }
.app-card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.app-card p { color: var(--text-soft); font-size: .98rem; flex: 1; }
.app-card .more { font-weight: 700; color: var(--brand); font-size: .95rem; }
.app-card .more.muted { color: var(--text-soft); font-weight: 600; }

/* ---------- Legal page ---------- */
.legal { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 40px; }
.legal .card {
  max-width: 760px; margin: 0 auto; padding: 40px 44px;
  background: var(--bg-elev); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 850; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.legal h2 { font-size: 1.1rem; font-weight: 750; margin: 28px 0 8px; }
.legal p { color: var(--text-soft); }
.legal p strong { color: var(--text); }
.legal a { color: var(--brand); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--text-soft); font-weight: 600; font-size: .95rem; }
.back-link:hover { color: var(--brand); }

/* ---------- Footer ---------- */
footer { background: #0b0d15; color: #e8eaf2; padding: 56px 0 40px; margin-top: 40px; }
[data-theme="dark"] footer { background: #06070c; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 7px; }
footer p, footer a { color: #9aa0b4; font-size: .9rem; }
footer a:hover { color: #fff; }
footer h5 { font-size: .95rem; margin-bottom: 12px; color: #fff; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .84rem; color: #7c8296; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .app-feature { grid-template-columns: 1fr; padding: 32px 26px; gap: 20px; }
  .app-feature .shots { order: -1; }
  .app-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .foot-brand { justify-content: center; }
  .legal .card { padding: 30px 24px; }
}
@media (max-width: 640px) {
  .nav-links a.link { display: none; }
  .wrap { padding: 0 16px; }
  .app-feature .shot { width: 160px; }
  .app-feature .shot.s1 { margin-right: -32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reviews (brand page) ---------- */
.rating-line { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: .95rem; color: var(--text-soft); }
.rating-line[hidden] { display: none; }
.rating-line strong { color: var(--text); }
.rating-line:hover { color: var(--brand); }
.stars { color: #ffb300; letter-spacing: 2px; }
.reviews { background: var(--bg-soft); }
.reviews[hidden] { display: none; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: var(--bg-elev); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.review .stars { font-size: 1.05rem; }
.review h4 { margin: 12px 0 8px; font-size: 1.06rem; font-weight: 750; overflow-wrap: anywhere; }
.review .body { color: var(--text-soft); font-size: .96rem; flex: 1; overflow-wrap: anywhere; }
.review .meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--card-border); font-size: .84rem; }
.review .meta .who { color: var(--brand); font-weight: 700; }
.all-reviews { text-align: center; margin-top: 28px; }
.all-reviews a { color: var(--brand); font-weight: 700; }
.all-reviews a:hover { text-decoration: underline; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Whole-tile links ---------- */
/* .tile-link stretches over the whole tile; elements with .above (App Store badge) stay clickable on top */
.tile { position: relative; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile-link:focus-visible { outline: none; }
.tile:has(.tile-link:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.tile .above { position: relative; z-index: 2; }
.app-feature.tile:hover { box-shadow: 0 8px 20px rgba(16,22,46,.10), 0 32px 70px rgba(16,22,46,.16); }
.app-sub { font-size: .92rem; font-weight: 600; color: var(--text-soft); margin-top: 1px; }
.app-card .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.app-feature .actions .more { font-weight: 700; color: var(--brand); }
.appstore-badge.sm { height: 44px; }
.app-card .rating-line, .app-feature .rating-line { margin-bottom: 0; }
.app-feature .rating-line { margin-bottom: 12px; }
.rating-line:hover { color: var(--text-soft); }

/* ---------- Ratings per app + review app tag ---------- */
.rating-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -16px 0 32px; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--card-border); box-shadow: var(--shadow-sm);
  font-size: .92rem; color: var(--text-soft); transition: transform .2s ease, border-color .2s ease;
}
.rating-chip:hover { transform: translateY(-2px); border-color: var(--brand); }
.rating-chip img { width: 30px; height: 30px; border-radius: 8px; }
.rating-chip .name { font-weight: 800; color: var(--text); margin-right: 4px; }
.rating-chip strong { color: var(--text); }
.review .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-soft); }
.app-tag:hover { color: var(--brand); }
.app-tag img { width: 20px; height: 20px; border-radius: 5px; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 620px; margin: 0 auto; text-align: center; padding: 40px 32px;
  background: var(--bg-elev); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 1.8rem;
  border-radius: 18px; background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.contact-card h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.contact-card > p { margin: 10px auto 0; color: var(--text-soft); max-width: 46ch; }
.topic { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 20px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--bg-soft);
  color: var(--text-soft); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.contact-addr { margin-top: 16px; font-size: .95rem; }
.contact-addr a, .contact-help a { color: var(--brand); font-weight: 600; }
.contact-addr a:hover, .contact-help a:hover { text-decoration: underline; }
.contact-help { margin-top: 10px; font-size: .9rem; }

.app-feature .shots { pointer-events: none; } /* clicks fall through to the tile link */
/* stretched link must span the whole featured tile, not just its text column */
.app-feature { isolation: isolate; }
.app-feature::before { z-index: -1; }
.app-feature.tile > div:first-child { position: static; }
.hero .tagline { margin-top: 14px; font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hero .tagline + .lead { margin-top: 16px; }
footer h5 a { color: inherit; font-size: inherit; }
footer h5 a:hover { text-decoration: underline; color: #fff; }
.rating-chip { white-space: nowrap; }
@media (max-width: 420px) { .rating-chip { font-size: .82rem; padding-right: 12px; } .rating-chip .stars { letter-spacing: 0; } }
