/* Fotofrei: App-Seite und Hilfe auf apps.txmmes.de.
   Farben aus der App (Asset-Farben Paper, Ink, Muted, Line, Card, Signal), hell und dunkel wie dort.
   Schrift Inter (selbst gehostet), Überschriften kräftig wie die App.
   Hub-Regeln: keine Verläufe auf Flächen, keine Schatten, nichts von fremden Servern, kein Geviertstrich.
   Ecken: Karten und Kacheln fest 18px (liegen frei), Bild in der Karte konzentrisch 18 − 12 = 6px,
   Knöpfe, Hinweise und Stempel als Kapsel bzw. fest 6px. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f2ee;
  --ink: #111111;
  --body: #2c2b29;
  --muted: #6e6b66;
  --line: #e2ded7;
  --card: #ffffff;
  --signal: #cc2f35;
  --on-signal: #ffffff;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --page: 1080px;
  --gutter: 20px;
  --section: 88px;
  --radius: 18px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141312;
    --ink: #f3f0ea;
    --body: #d9d5ce;
    --muted: #9c978f;
    --line: #2b2926;
    --card: #1f1e1b;
    --signal: #e5484d;
    --on-signal: #141312;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--signal);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
    --section: 120px;
  }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 10px;
}

/* Kopf */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 10px;
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .lang {
  margin-left: 4px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .site-nav .optional {
    display: none;
  }
}

/* Start */
.hero {
  padding-block: 56px var(--section);
}

.hero .wrap {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 96px;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
  }
}

.lead {
  margin-top: 22px;
  max-width: 34rem;
  color: var(--body);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.store-button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
}

.store-button:hover {
  background: var(--signal);
  color: var(--on-signal);
}

.store-button:focus-visible {
  border-radius: 999px;
}

.text-link {
  font-weight: 600;
}

/* Bild in der Startfläche: eine Karte wie in der App, mit den drei Richtungen */
.demo {
  display: grid;
  grid-template-areas:
    "up up"
    "card card"
    "left right";
  gap: 18px 12px;
  width: min(100%, 250px);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .demo {
    width: min(100%, 300px);
  }
}

/* Wie das App-Icon: ein Sofortbild, weiß mit dunklem Bild, in beiden Modi gleich */
.demo-card {
  grid-area: card;
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 12px 12px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transform: rotate(-6deg);
}

.demo-photo {
  height: 100%;
  border-radius: 6px;
  background: #111111;
}

.demo-stamp {
  position: absolute;
  top: 30px;
  right: 26px;
  padding: 4px 12px;
  border: 3px solid #e5484d;
  border-radius: 6px;
  color: #e5484d;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  transform: rotate(12deg);
}

.demo-dir {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.demo-dir.up {
  grid-area: up;
  justify-self: center;
}

.demo-dir.left {
  grid-area: left;
  color: var(--signal);
}

.demo-dir.right {
  grid-area: right;
  justify-self: end;
}

/* Abschnitte */
.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.section-lead {
  margin-top: 18px;
  max-width: 40rem;
  font-size: 1.12rem;
}

.narrow > * + * {
  margin-top: 16px;
}

.narrow {
  max-width: 44rem;
}

.narrow h2 + p {
  margin-top: 20px;
}

/* Drei Schritte */
.steps {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 18px;
  color: var(--signal);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
}

.steps p {
  margin-top: 8px;
}

/* Stapel und Funktionen */
.features {
  display: grid;
  gap: 32px 40px;
  margin-top: 44px;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features div {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.features p {
  margin-top: 8px;
}

.note {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Gratis und Pro */
.plans {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.plan.is-pro {
  border-color: var(--ink);
}

.plan ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-top: 1px solid var(--line);
}

.plan li:first-child {
  border-top: 0;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
}

/* Fragen */
.faq {
  margin-top: 36px;
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--signal);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 0 22px;
  max-width: 42rem;
}

.faq details p + p {
  margin-top: -10px;
}

/* Schluss */
.closing {
  text-align: center;
}

.closing .actions {
  justify-content: center;
}

.closing p {
  margin-inline: auto;
}

/* Hilfe */
.page {
  padding-block: 56px var(--section);
}

.page h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

.page h2 {
  margin-top: 48px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.page h2 + p,
.page p + p {
  margin-top: 14px;
}

.page ol {
  margin: 14px 0 0;
  padding-left: 1.3em;
}

.page li + li {
  margin-top: 6px;
}

.hint {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--body);
  font-size: 0.97rem;
}

/* Fuß */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
