/* apps.txmmes.de – Werte siehe DESIGN.md */

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

:root {
  --canvas: #ffffff;
  --ink: #000000;
  --body: #333333;
  --mute: #666666;
  --hairline: #e5e5e5;
  --soft: #f7f7f7;
  --gutter: 16px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wrap {
  max-width: calc(42rem + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

/* Links und Fokus */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--canvas);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus {
  top: 8px;
}

/* Kopf */
.top {
  border-bottom: 1px solid var(--hairline);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.top nav {
  display: flex;
  gap: 12px;
  font-size: 15px;
}

@media (min-width: 640px) {
  .top nav {
    gap: 20px;
  }
}

.top nav a {
  text-decoration: none;
  color: var(--body);
  padding: 8px 0;
  white-space: nowrap;
}

.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Inhalt */
main {
  padding-top: 48px;
  padding-bottom: 80px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

@media (min-width: 640px) {
  h1 {
    font-size: 36px;
  }
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 48px 0 12px;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 32px 0 8px;
}

p,
ul,
address {
  margin: 0 0 16px;
  hyphens: auto;
  text-wrap: pretty;
}

address {
  font-style: normal;
}

ul {
  padding-left: 1.25em;
}

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

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 32px;
}

.note {
  background: var(--soft);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
}

.meta {
  margin-top: 48px;
  font-size: 14px;
  color: var(--mute);
}

/* Startseite: App-Liste */
.app {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 8px;
}

.app h2 {
  margin: 0 0 2px;
}

.app .platform {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 12px;
}

.app .links,
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.legal {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}

.legal h2 {
  margin-top: 32px;
}

.toc {
  list-style: none;
  padding: 0;
}

/* Fuß */
.foot {
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--mute);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--mute);
}

.foot a:hover {
  color: var(--ink);
}
.back { margin-top: 32px; font-size: 15px; }

/* Kontaktformular */
.form {
  margin-top: 8px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.field label {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid #8a8a86;
  border-radius: 8px;
  padding: 10px 12px;
}

.field textarea {
  resize: vertical;
  min-height: 160px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
}

.form button {
  font: inherit;
  font-weight: 600;
  color: var(--canvas);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
}

.form button:hover {
  background: #333333;
}

.form button:active {
  transform: scale(0.98);
}

.small {
  font-size: 14px;
  color: var(--mute);
  margin-top: 16px;
}

.small a {
  color: var(--mute);
}

/* Honigtopf gegen Spam-Bots: für Menschen unsichtbar */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
