/*
  Fernwartung mit RustDesk – SFWD
  Vereinfachte Fassung vom 30.09.2026: Einstieg, Downloadlinks,
  Fensterzeichnung, Kontakt. Alter Stand unter vorher/.
  Farben, Verlauf, Schrift, Kartenradien und Hintergrund aus der
  SFWD-Website (sfwd-website: src/styles/global.css, Background.astro).
  Mobile first. Keine externen Ressourcen, kein JavaScript.
*/

/* ---------- Schrift (lokal, SIL Open Font License, siehe assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-raised: rgba(255, 255, 255, 0.05);
  --bg-raised-2: #171717;
  --bg-bar: #111;
  --text: #fafafa;
  --text-lede: #e5e5e5;
  --text-soft: #d4d4d4;
  --muted: #a3a3a3;
  --subtle: #8f8f8f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.12);

  --accent: #06b6d4;
  --accent-300: #67e8f9;
  --accent-400: #22d3ee;
  --teal: #2dd4bf;

  /* Markenverlauf Teal → Cyan → Blau (Website) */
  --gradient: linear-gradient(120deg, #2dd4bf 0%, #06b6d4 50%, #3b82f6 100%);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --wrap: 72rem;
  --gutter: 1rem;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-300);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* Schrift mit Markenverlauf – wie .text-gradient der Website */
.text-gradient {
  background-image: var(--gradient);
  background-size: 100% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-block: 0.1em 0.15em;
}

/* Unterstrich im Verlauf, der beim Hover einwächst – .link-underline der Website */
.link-underline {
  text-decoration: none;
  background-image: var(--gradient);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.link-underline:hover { background-size: 100% 2px; color: var(--accent-400); }

/* Kleines Label in Monospace – über der H1 und als Überschrift der Blöcke */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--accent-400);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

/* ---------- Hintergrund (nach Background.astro) ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.22;
  will-change: transform;
}
.blob--teal {
  top: -12%; left: -8%;
  width: 40vmax; height: 40vmax;
  background: radial-gradient(circle, #2dd4bf, transparent 70%);
  animation: drift-teal 22s ease-in-out infinite;
}
.blob--cyan {
  top: 28%; right: -14%;
  width: 45vmax; height: 45vmax;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  animation: drift-cyan 26s ease-in-out infinite;
}
.blob--blue {
  bottom: -18%; left: 18%;
  width: 38vmax; height: 38vmax;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  animation: drift-blue 30s ease-in-out infinite;
}
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(250 250 250 / 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift-teal { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6%, 8%); } }
@keyframes drift-cyan { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8%, 5%); } }
@keyframes drift-blue { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5%, -6%); } }

/* ---------- Seitenaufbau ---------- */
.page {
  flex: 1 0 auto;
  padding-top: clamp(2.5rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.stage {
  display: grid;
  gap: 3rem;
}

/* ---------- Einstieg ---------- */
.intro h1 {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.125rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-lede);
}

/* ---------- Downloadlinks im Stil einer Adresszeile ---------- */
.sources {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  overflow: hidden;
}
.sources li + li { border-top: 1px solid var(--line); }
.source {
  position: relative;
  display: grid;
  gap: 0.625rem;
  padding: 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.source:hover { background: rgb(6 182 212 / 0.06); }
.source:focus-visible { outline-offset: -3px; border-radius: 0; }
.source__bar {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  background: var(--bg-bar);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: clamp(0.9375rem, 2.6vw, 1.0625rem);
  line-height: 1.45;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.source:hover .source__bar,
.source:focus-visible .source__bar {
  border-color: rgb(6 182 212 / 0.5);
  box-shadow: 0 0 0 3px rgb(6 182 212 / 0.1);
}
.icon--lock {
  display: inline-block;
  width: 1rem; height: 1rem;
  margin-right: 0.5rem;
  vertical-align: -0.12em;
  color: var(--teal);
}
.source__origin { white-space: nowrap; }
.source__scheme { color: var(--subtle); }
.source__host { color: var(--text); font-weight: 700; }
.source__path { color: var(--muted); }
.source__desc { color: var(--muted); font-size: 0.975rem; }
.source__arrow {
  display: none;
  position: absolute;
  color: var(--subtle);
  transition: color 0.2s ease, transform 0.2s ease;
}
.source:hover .source__arrow { color: var(--accent-400); transform: translate(2px, -2px); }

.hint {
  margin-top: 1rem;
  max-width: 34rem;
  padding-left: 1rem;
  border-left: 2px solid var(--teal);
  color: var(--text-soft);
  font-size: 0.975rem;
}

/* ---------- Vereinfachte Zeichnung des Programmfensters ----------
   Maße in em: Die ganze Zeichnung wächst über eine einzige Schriftgröße mit. */
.mock { isolation: isolate; }
.mock__window {
  position: relative;
  width: 100%;
  max-width: 25em;
  font-size: 0.9375rem;
  border-radius: 1em;
  background: var(--bg-raised-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgb(6 182 212 / 0.3);
}
/* weicher Schein im Markenverlauf hinter dem Fenster */
.mock__window::before {
  content: "";
  position: absolute;
  inset: -2.5em -1rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(6 182 212 / 0.22), rgb(59 130 246 / 0.08) 60%, transparent);
  pointer-events: none;
}
.mock__titlebar {
  display: flex;
  gap: 0.375em;
  padding: 0.75em 0.875em;
  border-bottom: 1px solid var(--line);
}
.mock__titlebar i {
  width: 0.625em; height: 0.625em;
  border-radius: 999px;
  background: #404040;
}
.mock__body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
.mock__panel {
  display: grid;
  gap: 0.875em;
  padding: 1em 0.875em 1.125em;
  border-right: 1px solid var(--line);
}
.mock__row { position: relative; display: grid; gap: 0.2em; }
.mock__label { font-size: 0.75em; color: var(--muted); }
.mock__value {
  font-family: var(--mono);
  font-size: 0.9375em;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mock__ghost { display: grid; align-content: start; gap: 0.625em; padding: 1.125em 0.875em; }
.mock__ghost i {
  display: block;
  height: 0.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.mock__ghost i:nth-child(2) { width: 70%; }
.mock__ghost i:nth-child(3) {
  height: 1.75em;
  margin-top: 0.25em;
  border-radius: 0.5em;
  border: 1px solid var(--line-strong);
  background: transparent;
}
.mock__status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.625em 0.875em;
  border-top: 1px solid var(--line);
}
.mock__state { font-size: 0.8125em; }
.mock__dot {
  width: 0.5em; height: 0.5em;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgb(45 212 191 / 0.2);
}

/* Nummern im Markenverlauf – in der Zeichnung und in der Legende */
.pin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.85em; height: 1.85em;
  border-radius: 999px;
  background-image: var(--gradient);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}
.mock__window .pin { font-size: 0.8125em; }
.mock__row .pin { position: absolute; right: -0.25em; top: 50%; transform: translateY(-50%); }
.mock__status .pin { margin-left: auto; }

.mock__caption { margin-top: 1.75rem; max-width: 25rem; }
.mock__legend { display: grid; gap: 0.625rem; }
.mock__legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-soft);
  font-size: 0.975rem;
  line-height: 1.5;
}
.mock__note { margin-top: 1rem; font-size: 0.8125rem; color: var(--subtle); }

/* ---------- Kontakt ---------- */
.contact {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "photo intro"
    "photo sig"
    "ways  ways";
  column-gap: 1.25rem;
  row-gap: 0.75rem;
  margin-top: clamp(3.5rem, 9vw, 6rem);
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
/* Verlaufslinie an der Oberkante – wie die Karten der Website */
.contact::before {
  content: "";
  position: absolute;
  top: -1px; left: 1.5rem; right: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
/* Porträt ungeschnitten im Format 3:4, abgerundet wie auf der Website (About.astro) */
.contact__photo {
  grid-area: photo;
  align-self: start;
  width: 4.75rem;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-raised-2);
}
.contact__intro { grid-area: intro; align-self: end; }
.contact__title {
  font-size: clamp(1.375rem, 3.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}
.contact__lede { margin-top: 0.25rem; color: var(--muted); }
.contact__sig {
  grid-area: sig;
  align-self: start;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--subtle);
}
.contact__sig span { display: block; }
.contact__name { color: var(--text-soft); font-weight: 600; }
.contact__ways {
  grid-area: ways;
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  margin-top: 0.75rem;
}
.contact__phone {
  display: inline-block;
  font-size: clamp(1.625rem, 8vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 0.5rem;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
}
.contact__mail .icon { color: var(--accent-400); }
.contact__mail:hover { color: var(--accent-300); }

/* ---------- Fußzeile ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
  font-size: 0.8125rem;
  color: var(--muted);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: 1.5rem;
}
.site-footer__copy {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1 1 auto;
}
.site-footer__logo { width: auto; height: 1.25rem; }
.site-footer__nav { display: flex; align-items: center; gap: 0.625rem; }
.site-footer__nav a { display: inline-block; padding-block: 0.5rem; color: var(--text); }
.site-footer__note { flex: 1 1 100%; max-width: 46rem; color: var(--subtle); }

/* ================= Breitere Bildschirme ================= */
@media (min-width: 30rem) {
  :root { --gutter: 1.5rem; }
  .source { padding: 1.5rem 3.75rem 1.5rem 1.5rem; }
  .source__arrow { display: block; right: 1.5rem; top: 1.6rem; }
  .contact { padding: 1.75rem; column-gap: 1.5rem; }
  .contact__photo { width: 6rem; }
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  body { font-size: 1.125rem; }
  .mock__window { font-size: 1rem; }
  /* Tablet, noch einspaltig: Legende neben die Zeichnung statt darunter */
  .mock {
    display: grid;
    grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }
  .mock__caption { margin-top: 0; }
  .contact { padding: 2rem; column-gap: 1.75rem; }
  .contact__photo { width: 7rem; border-radius: var(--radius-xl); }
}

/* Zwei Spalten: links Einstieg und Downloadlinks, rechts die Zeichnung */
@media (min-width: 64rem) {
  :root { --gutter: 3rem; }

  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    grid-template-areas:
      "intro    preview"
      "download preview";
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: 3rem;
    align-items: start;
  }
  .intro { grid-area: intro; }
  .download { grid-area: download; }
  .preview { grid-area: preview; align-self: center; }
  .mock { display: block; }
  .mock__caption { margin-top: 1.75rem; }
  .mock__window::before { inset: -3em -2.5em; }

  .contact {
    margin-top: clamp(3.5rem, 6vw, 4.5rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "photo intro ways"
      "photo sig   ways";
    column-gap: 2.5rem;
    padding: 2.25rem 2.5rem;
  }
  .contact__ways { align-self: center; justify-items: end; margin-top: 0; text-align: right; }
  .contact__phone { font-size: clamp(2.25rem, 3.6vw, 3rem); }
}

@media (min-width: 80rem) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); }
  .mock__window { font-size: 1.125rem; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Druck ---------- */
@media print {
  :root {
    --bg-raised: #fff;
    --bg-raised-2: #fff;
    --bg-bar: #fff;
    --text: #000;
    --text-lede: #000;
    --text-soft: #222;
    --muted: #333;
    --subtle: #555;
    --line: #bbb;
    --line-strong: #bbb;
  }
  body { display: block; background: #fff; color: #000; font-size: 11pt; }
  .backdrop, .skip-link, .source__arrow, .mock__window::before, .site-footer__logo { display: none; }
  .text-gradient { background: none; color: #000; -webkit-text-fill-color: currentColor; }
  .eyebrow, .contact__mail .icon, .icon--lock { color: #000; }
  .eyebrow::before, .contact::before { background: #000; }
  .mock__window, .source__bar { box-shadow: none; }
  .pin { background: #fff; color: #000; border: 1px solid #000; }
  .site-footer { background: none; }
}
