/* TEMEgroup – Vorschlag 2 „Raster hell“
   Helles, ruhiges Schweizer Raster mit Haarlinien. Folgt automatisch dem Dunkelmodus. */

@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f4f2ee;
  --fg: #16181b;
  --muted: #5d6167;
  --faint: #6f737a;
  --line: #d9d5ce;
  --accent: #d6402b;
  --golf: #1d8a4a;
  --reisen: #2563d6;
  --data: #7c4ad4;
  --zuhause: #c2410c;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --fg: #ecebe8;
    --muted: #a9adb3;
    --faint: #8d9298;
    --line: #2a2e33;
    --accent: #ff6a52;
    --golf: #5fd08a;
    --reisen: #74a8ff;
    --data: #b493ff;
    --zuhause: #ff9a62;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding-inline: var(--gutter);
}

/* Kopfzeile */
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  font: 500 .78rem var(--mono); letter-spacing: .02em; color: var(--faint);
}
.top a { text-decoration: none; color: var(--fg); }
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark::before {
  content: ""; width: 10px; height: 10px; background: var(--accent);
}

/* Bühne */
.hero {
  display: grid; align-content: end;
  padding-block: clamp(48px, 10vh, 120px) clamp(32px, 6vh, 64px);
}
.eyebrow {
  margin: 0 0 clamp(16px, 3vh, 28px);
  font: 500 .78rem var(--mono); color: var(--faint); letter-spacing: .02em;
}
h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(3.2rem, 16vw, 16rem);
  padding-bottom: .14em;
  line-height: .86;
  letter-spacing: -.055em;
  margin-left: -.04em;
}
h1 sup {
  font: 500 clamp(.8rem, 1.6vw, 1.3rem) var(--mono);
  letter-spacing: 0; vertical-align: top;
  position: relative; top: .6em; margin-left: .35em; color: var(--faint);
}
.lead {
  margin: clamp(20px, 4vh, 36px) 0 0;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.35;
  color: var(--muted);
  text-wrap: balance;
}
.lead strong { color: var(--fg); font-weight: 500; }
.cursor {
  display: inline-block; width: .5em; height: 1.05em; margin-left: .12em;
  vertical-align: -.15em; background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}

/* Fakten-Raster */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts.three { grid-template-columns: repeat(3, 1fr); }
.facts div {
  padding: 18px 20px 22px 0;
  min-width: 0;
}
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font: 500 .72rem var(--mono); color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts.three div:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .facts, .facts.three { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 14px 0 16px; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
}

/* Fusszeile */
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
  font: .78rem var(--mono); color: var(--faint);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }

/* Fliesstext (Impressum, Datenschutz) */
.prose { max-width: 66ch; padding-block: clamp(40px, 8vh, 88px); }
.prose h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: .95; margin: 0 0 32px; }
.prose h2 {
  margin: 32px 0 6px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 500 .72rem var(--mono); color: var(--faint); letter-spacing: .04em; text-transform: uppercase;
}
.prose p, .prose address { margin: 0 0 10px; color: var(--fg); font-style: normal; }
mark { background: #ffe6a6; color: #4a3500; padding: 0 3px; border-radius: 2px; }

/* Unterseiten (VAsoft, Themen) */
.sub h1 { font-size: clamp(3rem, 12vw, 10rem); }
.dot-golf { --dot: var(--golf); }
.dot-reisen { --dot: var(--reisen); }
.dot-data { --dot: var(--data); }
.dot-zuhause { --dot: var(--zuhause); }
.sub .mark::before, .hero.sub .eyebrow::before { background: var(--dot, var(--accent)); }
.hero.sub .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero.sub .eyebrow::before { content: ""; width: 10px; height: 10px; }

.section { padding-block: 0 clamp(40px, 7vh, 72px); }
.section-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding-block: 14px; border-top: 1px solid var(--fg);
  font: 500 .72rem var(--mono); color: var(--faint); letter-spacing: .04em; text-transform: uppercase;
}
.section-head h2 { margin: 0; font: inherit; color: var(--fg); }

/* Themen als Zeilen */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 8px 24px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.row .nr { font: 500 .78rem var(--mono); color: var(--faint); }
.row h3 {
  margin: 0; display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1;
}
.row h3::before { content: ""; width: .32em; height: .32em; background: var(--dot); flex: none; }
.row p { margin: 0; color: var(--muted); }
.row .state { font: 500 .78rem var(--mono); color: var(--faint); white-space: nowrap; }
a.row .state { color: var(--fg); }
a.row .state::after { content: " →"; color: var(--dot); }
.row.soon h3 { color: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  a.row { transition: padding .2s; }
  a.row:hover { padding-left: 10px; }
}
a.row:hover { color: inherit; }
a.row:hover h3 { color: var(--dot); }
@media (max-width: 640px) {
  .row { grid-template-columns: 2.5rem 1fr; }
  .row p, .row .state { grid-column: 2; }
}

/* Apps */
.app {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.app-icon {
  width: 88px; height: 88px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--dot); color: var(--bg);
  font: 700 2.2rem var(--sans); letter-spacing: -.04em;
  overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.app h3 { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -.02em; }
.app p { margin: 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block; padding: 9px 14px; border-radius: 10px;
  background: var(--fg); color: var(--bg); text-decoration: none;
  font: 500 .82rem var(--mono); white-space: nowrap;
}
a.badge:hover { background: var(--dot); color: var(--bg); }
.badge[aria-disabled] { background: transparent; color: var(--faint); border: 1px dashed var(--line); }
@media (max-width: 640px) {
  .app { grid-template-columns: 64px 1fr; }
  .app-icon { width: 64px; height: 64px; border-radius: 15px; font-size: 1.6rem; }
  .app .links { grid-column: 2; }
}
.note { margin: 0; max-width: 46ch; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4; }

/* App-Detailseite */
.demo {
  margin: 16px 0 0; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 6px;
  font: .78rem var(--mono); color: var(--accent);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; font: .78rem var(--mono); color: var(--faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--dot); }

.app-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 96px);
  align-items: center; padding-block: clamp(40px, 8vh, 96px);
}
.app-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; font-size: 2.4rem; margin-bottom: 24px; }
.app-hero h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .9; }
.app-hero .lead { max-width: 30ch; }
.app-hero .links { margin-top: 28px; align-items: center; }
.app-hero .links small { font: .78rem var(--mono); color: var(--faint); }
@media (max-width: 760px) { .app-hero { grid-template-columns: 1fr; } }

/* Telefon-Attrappe */
.phone {
  justify-self: center; width: min(100%, 300px); aspect-ratio: 9 / 19;
  padding: 12px; border-radius: 44px; background: var(--fg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.screen {
  height: 100%; border-radius: 34px; overflow: hidden;
  background: #fbfaf7; color: #16181b;
  padding: 42px 16px 16px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
  font-size: .78rem;
}
.screen-head { display: flex; justify-content: space-between; align-items: baseline; }
.screen-head b { font-size: 1.05rem; letter-spacing: -.02em; }
.screen-head span { font: .68rem var(--mono); color: #6f737a; }
.score-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.score-big div { padding: 10px; border-radius: 12px; background: #eef1ec; }
.score-big div:first-child { background: #1d8a4a; color: #fff; }
.score-big small { display: block; font: .62rem var(--mono); opacity: .8; }
.score-big strong { font-size: 1.6rem; letter-spacing: -.03em; }
.card { width: 100%; border-collapse: collapse; font: .7rem var(--mono); }
.card th, .card td { padding: 6px 2px; text-align: center; border-bottom: 1px solid #e6e3dd; }
.card th { color: #6f737a; font-weight: 500; }
.card td:first-child, .card th:first-child { text-align: left; }
.card .b { color: #1d8a4a; font-weight: 500; }
.card .o { color: #d6402b; }
.screen-btn { padding: 11px; border-radius: 12px; background: #16181b; color: #fff; text-align: center; font-weight: 500; }

/* Platzhalter, bis echte Screenshots da sind */
.screen.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, #f4f2ee 0 12px, #ebe8e2 12px 24px);
}
.screen.placeholder img { width: 56px; height: 56px; border-radius: 13px; }
.screen.placeholder b { font-size: .95rem; }
.screen.placeholder span { font: .68rem var(--mono); color: #6f737a; }
/* Bild-Bildschirm liegt fest im Rahmen (Abstand = Rahmenbreite), unabhängig von der Höhe der Rasterzeile */
.phone, .tablet { position: relative; }
.screen.bild { position: absolute; inset: 12px; height: auto; padding: 0; display: block; background: #000; }
.geraete .phone .screen.bild { inset: 7px; }
.screen.bild img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.shots .phone { width: 100%; max-width: 260px; }
/* Tablet-Attrappe (iPad hochkant, 3:4) */
.tablet {
  justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 3 / 4;
  padding: 12px; border-radius: 30px; background: var(--fg);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.tablet .screen { border-radius: 18px; }
.shots.tablets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* iPad quer (4:3) */
.tablet.quer { aspect-ratio: 4 / 3; max-width: 560px; }

/* Startbild mit iPad und iPhone: iPad quer hinten, iPhone vorne links */
.app-hero.mit-ipad { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
/* Weniger Platz neben den Geräten: Titel kleiner, damit auch lange Namen passen */
.app-hero.mit-ipad h1 { font-size: clamp(2.4rem, 4.2vw, 4.5rem); overflow-wrap: anywhere; }
.geraete { position: relative; width: 100%; padding-bottom: 10%; }
.geraete .tablet { width: 88%; max-width: none; margin-left: auto; }
.geraete .phone {
  position: absolute; left: 0; bottom: 0; width: 29%;
  padding: 7px; border-radius: 26px;
  box-shadow: 0 0 0 3px var(--bg), 0 30px 60px -30px rgba(0,0,0,.45);
}
.geraete .phone .screen { border-radius: 20px; }
@media (max-width: 760px) { .app-hero.mit-ipad { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .shots .phone { scroll-snap-align: start; }
  .shots.tablets { grid-template-columns: repeat(2, 86%); }
  .shots .tablet { scroll-snap-align: start; }
}

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.features li { padding: 22px 24px 26px 0; border-top: 1px solid var(--line); }
.features li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.features .nr { font: 500 .78rem var(--mono); color: var(--dot); }
.features h3 { margin: 8px 0 6px; font-size: 1.25rem; letter-spacing: -.02em; }
.features p { margin: 0; color: var(--muted); max-width: 42ch; }
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .features li:nth-child(even) { padding-left: 0; border-left: 0; }
}
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--dot); }
.steps li::before { content: "0" counter(s); display: block; font: 500 .78rem var(--mono); color: var(--faint); margin-bottom: 8px; }
.steps b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.facts.wide { border-top: 0; }
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; }
.privacy p { margin: 0; max-width: 52ch; color: var(--muted); }
.privacy .note { color: var(--fg); margin-bottom: 8px; }
.textlinks { display: flex; gap: 20px; font: .85rem var(--mono); }
@media (max-width: 640px) { .privacy { grid-template-columns: 1fr; } }
.app h3 a { text-decoration: none; }
.app h3 a:hover { color: var(--dot); }
.badge.more { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
a.badge.more:hover { background: var(--dot); border-color: var(--dot); color: var(--bg); }
