/* Linkseite diabetic.nik, angelehnt an die App (iOS-Unspike):
   Apple-Systemschrift, graue Seitenfläche, Karten mit Schatten ohne Rand,
   Knöpfe rund, Aktionsfarbe Schwarz bzw. Weiß, Text in vier Stufen. */

:root {
  --page: #F2F2F7;
  --card: #FFFFFF;
  --text-1: #000000;
  --text-2: rgba(60, 60, 67, .60);
  --text-3: rgba(60, 60, 67, .30);
  --line: rgba(60, 60, 67, .12);
  --action: #000000;
  --on-action: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
  --mesh-1: rgba(81, 192, 128, .30);
  --mesh-2: rgba(26, 127, 207, .18);
  --mesh-3: rgba(30, 142, 100, .16);
  --marker: #FFE45C;
  --marker-text: #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #000000;
    --card: #1C1C1E;
    --text-1: #FFFFFF;
    --text-2: rgba(235, 235, 245, .60);
    --text-3: rgba(235, 235, 245, .30);
    --line: rgba(84, 84, 88, .45);
    --action: #FFFFFF;
    --on-action: #000000;
    --shadow: none;
    --mesh-1: rgba(81, 192, 128, .22);
    --mesh-2: rgba(26, 127, 207, .16);
    --mesh-3: rgba(30, 142, 100, .14);
  }
}

:root[data-theme="dark"] {
  --page: #000000;
  --card: #1C1C1E;
  --text-1: #FFFFFF;
  --text-2: rgba(235, 235, 245, .60);
  --text-3: rgba(235, 235, 245, .30);
  --line: rgba(84, 84, 88, .45);
  --action: #FFFFFF;
  --on-action: #000000;
  --shadow: none;
  --mesh-1: rgba(81, 192, 128, .22);
  --mesh-2: rgba(26, 127, 207, .16);
  --mesh-3: rgba(30, 142, 100, .14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Mesh-Hintergrund wie der Hero auf Heute, Zustand „im Zielbereich“ */
.mesh {
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 8%, var(--mesh-1), transparent 70%),
    radial-gradient(55% 50% at 88% 12%, var(--mesh-2), transparent 70%),
    radial-gradient(70% 60% at 50% 45%, var(--mesh-3), transparent 75%);
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}

main {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 56px 16px 40px;
}

/* Kopf */
.kopf { text-align: center; margin-bottom: 32px; }

.bild {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 40px;
  font-weight: 600;
  color: var(--text-2);
}
.bild { position: relative; }
.bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}

.handle { margin: 4px 0 12px; color: var(--text-2); font-size: 15px; }

.bio { margin: 0 auto; max-width: 30ch; color: var(--text-1); font-size: 17px; }

/* Links */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text-1);
  text-decoration: none;
  transition: transform .15s ease;
}
.link:active { transform: scale(.98); }

.link .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--action);
  color: var(--on-action);
  display: grid;
  place-items: center;
}
.link .icon svg { width: 22px; height: 22px; }

.link .text { flex: 1; min-width: 0; }
.link .titel { display: block; font-weight: 600; }
.link .unter { display: block; font-size: 15px; color: var(--text-2); }

.link .pfeil { flex: none; width: 10px; height: 16px; color: var(--text-3); }

/* Impressum-Zeile: ruhiger, aber klar beschriftet */
.link.leise { min-height: 52px; box-shadow: none; background: transparent; border: 1px solid var(--line); }
.link.leise .icon { width: 32px; height: 32px; border-radius: 10px; background: transparent; color: var(--text-2); border: 1px solid var(--line); }
.link.leise .icon svg { width: 18px; height: 18px; }

.fuss { margin-top: 32px; text-align: center; font-size: 13px; color: var(--text-2); }
.fuss a { color: inherit; }

/* Rechtstexte */
.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
}
.zurueck svg { width: 10px; height: 16px; }

.blatt {
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.blatt h1 { font-size: 28px; margin-bottom: 4px; }
.blatt h2 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }
.blatt p { margin: 0 0 8px; }
.blatt .klein { color: var(--text-2); font-size: 15px; }
.blatt a { color: var(--text-1); }

/* Platzhalter, die vor dem Hochladen gefüllt werden müssen */
.platzhalter {
  background: var(--marker);
  color: var(--marker-text);
  border-radius: 4px;
  padding: 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
}

/* Kontaktformular */
.formular { display: grid; gap: 12px; margin-top: 16px; }
.formular label { display: grid; gap: 4px; font-size: 15px; font-weight: 600; }
.formular input,
.formular textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  color: var(--text-1);
  font: inherit;
  font-weight: 400;
}
.formular textarea { resize: vertical; }
.formular button {
  justify-self: start;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
