/* Technikhilfe – Hannes Sippel. Gemeinsames Stylesheet für Start, Kontakt und Impressum. */
:root {
  --bg: #17181b;
  --bg-2: #1f2125;
  --card: #1d1f23;
  --line: rgba(255, 255, 255, .09);
  --text: #f2f3f5;
  --body: #cfd2d7;
  --muted: #a3a8b0;
  --accent: #5be0a6;
  --accent-ink: #07210f;
  --placeholder: #ffd166;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 60% at 50% 0%, #212328 0%, rgba(33, 35, 40, 0) 70%), var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Feine Leiterbahnen in den Ecken, hinter dem Inhalt */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  background-repeat: no-repeat;
}
body::before { top: 0; right: 0; width: 390px; height: 260px; background-image: url("../assets/circuit-top.svg"); background-position: right top; }
body::after { bottom: 0; left: 0; width: 390px; height: 344px; background-image: url("../assets/circuit-bottom.svg"); background-position: left bottom; }

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 36px 24px 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Kopfzeile: Marke führt zurück zur Startseite */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-decoration: none; }
.brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 224, 166, .14); }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 10px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }

/* Kontakt */
.intro { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.photo { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); background: var(--bg-2); overflow: hidden; }
/* Ausschnitt: Kopf und Schultern, Gesicht horizontal mittig (Prozentwerte skalieren mit dem Kreis) */
.photo img { display: block; width: 125%; max-width: none; height: auto; margin: 0 0 0 -10.9%; }
.who small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.who strong { font-size: 20px; font-weight: 650; }

h1 { margin-top: 26px; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
h1 span { color: var(--accent); }
.lead { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--body); }

.services { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.services li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.services svg { flex: none; width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modes span { padding: 8px 16px; background: var(--bg); white-space: nowrap; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.modes b { color: var(--text); font-weight: 600; }

/* Button mittig im Raum zwischen letztem Inhalt und unterem Rand */
.cta { margin: auto 0; padding: 24px 0; }
.call { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 76px; border-radius: 20px; text-decoration: none; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(91, 224, 166, .22), inset 0 1px 0 rgba(255, 255, 255, .35); }
.call:hover { filter: brightness(1.06); }
.call:active { transform: translateY(1px); }
.call svg { width: 30px; height: 30px; fill: var(--accent-ink); }
.call .t { display: flex; flex-direction: column; line-height: 1.15; }
.call .t b { font-size: 23px; font-weight: 750; }
.call .t span { font-size: 15px; font-weight: 600; opacity: .8; }

/* Impressum / Textseiten */
.legal { margin-top: 32px; padding-bottom: 32px; }
.legal h1 { margin-top: 0; font-size: 30px; }
.legal .lead { font-size: 16px; }
.legal section { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.legal h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.legal p, .legal address { font-size: 16px; line-height: 1.55; font-style: normal; color: var(--body); }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }

/* Noch einzutragende Angaben */
.ph { background: rgba(255, 209, 102, .14); color: var(--placeholder); border-radius: 4px; padding: 0 4px; }

main { flex: 1; display: flex; flex-direction: column; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Niedrigere Bildschirme: Kontakt-Seite bleibt ohne Scrollen vollständig sichtbar */
@media (max-height: 800px) {
  .page { padding-top: 24px; }
  .intro { margin-top: 20px; }
  h1 { margin-top: 20px; font-size: 30px; }
  .lead { margin-top: 10px; font-size: 16px; }
  .services { margin-top: 18px; gap: 8px; }
  .services li { padding: 10px 16px; }
  .modes { margin-top: 12px; }
  .cta { padding: 18px 0; }
  .call { height: 68px; }
}
@media (max-height: 700px) {
  .photo { width: 76px; height: 76px; }
  .who strong { font-size: 18px; }
  h1 { margin-top: 14px; font-size: 26px; }
  .lead { font-size: 15px; line-height: 1.4; }
  .services { margin-top: 14px; gap: 6px; }
  .services li { padding: 8px 14px; font-size: 15px; }
  .modes span { padding: 6px 14px; }
  .cta { padding: 14px 0; }
  .call { height: 62px; }
  .call .t b { font-size: 21px; }
}
@media (max-width: 359px) {
  .brand { letter-spacing: .1em; }
  h1 { font-size: 27px; }
}
