/* --------------------------------------------------------------------------
   ki-tools.cloud – Visitenkarte

   Gestaltung übernommen aus der neuen KPNS-Webseite (C:\Code\KpnsWebseite,
   src/styles/global.css, Leitbild „Quiet Infrastructure“). Dort läuft
   Tailwind; hier bewusst handgeschriebenes CSS, weil drei statische Seiten
   kein Build-Werkzeug rechtfertigen – bei All-Inkl wird nur hochgeladen.

   Ändert sich ein Farbton auf kpns.de, hier nachziehen, sonst laufen die
   beiden Auftritte auseinander.
   -------------------------------------------------------------------------- */

/* Schriften vom eigenen Server – keine Verbindung zu Google Fonts, sonst
   müsste die Datenschutzerklärung eine Übermittlung an Google nennen. */
@font-face {
  font-family: 'IBM Plex Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('schrift/ibm-plex-sans-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('schrift/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --blau-50: #f2f6fa;
  --blau-100: #e2ecf4;
  --blau-200: #c5d9e9;
  --blau-300: #9bbcd8;
  --blau-400: #6a99c1;
  --blau-500: #4a7cab;
  --blau-600: #3d6890;
  --blau-700: #335475;
  --blau-800: #2c4661;
  --blau-900: #283c52;
  --blau-950: #1a2736;
  --blau-990: #0c1620;

  --signal-300: #ecbf5a;
  --signal-500: #d98c1c;

  --papier: #f9f8f5;
  --stein-200: #e5e8ec;
  --stein-300: #cfd4da;
  --stein-500: #646d79;
  --stein-700: #444c57;
  --stein-800: #2f353d;
  --gruen-400: #4ade80;

  --sans: 'IBM Plex Sans Variable', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --text-2xs: 0.75rem;
  --raster: 1.75rem;
  --radius-knopf: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--papier);
  color: var(--stein-800);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blau-900);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blau-400);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background-color: var(--blau-200);
  color: var(--blau-950);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.springen:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--blau-990);
}

.umschlag {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .umschlag {
    padding-inline: 2rem;
  }
}

/* ── Kopf ──────────────────────────────────────────────────────────────── */

.kopf {
  border-bottom: 1px solid var(--blau-800);
  background-color: var(--blau-950);
}

.kopf .umschlag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

.wortmarke {
  display: block;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wortmarke-gross {
  font-size: 1.375rem;
}

.wortmarke-klein {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blau-400);
}

.kopf-telefon {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  /* Ohne nowrap bricht die Nummer auf dem Handy in zwei Zeilen – eine
     halbe Telefonnummer liest niemand richtig ab. */
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}

@media (min-width: 640px) {
  .kopf-telefon {
    font-size: 0.9375rem;
  }
}

.kopf-telefon:hover {
  color: var(--signal-300);
}

/* ── Dunkle Bühne mit Lichtschein und Raster ──────────────────────────── */

.buehne {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--blau-990);
}

/* Zwei weiche Lichtquellen statt eines Farbverlaufs – wirkt wie Licht im
   Raum und nicht wie eine aufgelegte Verlaufsgrafik. */
.buehne::before,
.buehne::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.buehne::before {
  top: -14rem;
  left: 8%;
  width: min(50rem, 75%);
  height: 35rem;
  background: radial-gradient(
    ellipse at center,
    rgb(90 142 190 / 0.46) 0%,
    rgb(74 124 171 / 0.16) 44%,
    rgb(74 124 171 / 0) 72%
  );
}

.buehne::after {
  right: -4rem;
  bottom: -16rem;
  width: min(40rem, 60%);
  height: 29rem;
  background: radial-gradient(ellipse at center, rgb(61 104 144 / 0.3) 0%, rgb(61 104 144 / 0) 68%);
}

/* Millimeterpapier: jede fünfte Linie kräftiger – das macht aus „kariert“
   eine Zeichenfläche. Läuft zu den Rändern aus, damit es keine Tapete wird. */
.raster {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --fein: rgb(255 255 255 / 0.045);
  --grob: rgb(255 255 255 / 0.1);
  background-image:
    linear-gradient(to right, var(--grob) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grob) 1px, transparent 1px),
    linear-gradient(to right, var(--fein) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fein) 1px, transparent 1px);
  background-size:
    calc(var(--raster) * 5) calc(var(--raster) * 5),
    calc(var(--raster) * 5) calc(var(--raster) * 5),
    var(--raster) var(--raster),
    var(--raster) var(--raster);
  background-position: center center;
  mask-image: radial-gradient(ellipse 110% 85% at 50% 35%, black 45%, transparent 88%);
}

.held {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .held {
    padding-block: 5rem;
  }
}

@media (min-width: 1024px) {
  .held {
    padding-block: 6rem;
  }
}

.plakette {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--blau-800);
  border-radius: 999px;
  background-color: var(--blau-950);
  padding: 0.375rem 0.875rem;
  font-family: var(--mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--blau-300);
}

.plakette-punkt {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background-color: var(--gruen-400);
}

/* Die eine große Geste der Fläche: zweite Zeile in gedämpftem Blau. */
.held h1,
.held .zeile-zwei {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08;
}

.held h1 {
  margin-top: 2rem;
  color: #fff;
}

.held .zeile-zwei {
  color: var(--blau-500);
}

@media (min-width: 768px) {
  .held h1,
  .held .zeile-zwei {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .held h1,
  .held .zeile-zwei {
    font-size: 4.4rem;
    line-height: 1.02;
  }
}

.held-text {
  margin-top: 2rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--blau-300);
}

.knoepfe {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.knopf {
  display: inline-block;
  border-radius: var(--radius-knopf);
  padding: 0.875rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.knopf-hell {
  background-color: #fff;
  color: var(--blau-990);
}

.knopf-hell:hover {
  background-color: var(--blau-100);
}

.knopf-rahmen {
  border: 1px solid var(--blau-800);
  color: #fff;
  font-family: var(--mono);
}

.knopf-rahmen:hover {
  border-color: var(--blau-600);
  background-color: var(--blau-950);
}

/* Aussage vorn, Beleg dahinter – wie auf kpns.de */
.belege {
  border-top: 1px solid var(--blau-900);
}

.belege dl {
  display: grid;
  margin: 0;
}

.belege dl > div {
  border-bottom: 1px solid var(--blau-900);
  padding-block: 1.5rem;
}

.belege dl > div:last-child {
  border-bottom: 0;
}

.belege dt {
  font-weight: 500;
  color: #fff;
}

.belege dd {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--blau-400);
}

@media (min-width: 768px) {
  .belege dl {
    grid-template-columns: repeat(3, 1fr);
  }

  .belege dl > div {
    border-bottom: 0;
    padding-inline: 1.75rem;
  }

  .belege dl > div + div {
    border-left: 1px solid var(--blau-900);
  }

  .belege dl > div:first-child {
    padding-left: 0;
  }

  .belege dl > div:last-child {
    padding-right: 0;
  }
}

/* ── Heller Abschnitt: Hinweis für Kunden ─────────────────────────────── */

.abschnitt {
  padding-block: 4.5rem;
}

.augenbraue {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blau-600);
}

.augenbraue::before {
  content: '';
  width: 1.75rem;
  height: 5px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
}

/* Karte im Zeichnungsstil: Rahmen statt Schatten, Passermarken in den Ecken */
.zeichnung {
  position: relative;
  margin-top: 1.5rem;
  max-width: 44rem;
  border: 1px solid var(--stein-300);
  background-color: #fff;
  padding: 1.75rem;
}

.zeichnung::before,
.zeichnung::after {
  content: '';
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-color: var(--blau-400);
  pointer-events: none;
}

.zeichnung::before {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.zeichnung::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

.schriftfeld {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid var(--stein-200);
  padding-bottom: 0.625rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stein-500);
}

.zeichnung h2 {
  font-size: 1.5rem;
}

.zeichnung p {
  margin-top: 0.75rem;
  color: var(--stein-700);
}

.zeichnung a {
  color: var(--blau-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.zeichnung a:hover {
  color: var(--blau-800);
}

/* ── Rechtstexte ──────────────────────────────────────────────────────── */

.seitenkopf {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .seitenkopf {
    padding-block: 3.5rem;
  }
}

.seitenkopf h1 {
  font-size: 1.875rem;
  color: #fff;
}

@media (min-width: 768px) {
  .seitenkopf h1 {
    font-size: 2.25rem;
  }
}

.seitenkopf .stand {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--blau-400);
}

.prose {
  max-width: 44rem;
  padding-block: 3.5rem;
  color: var(--stein-700);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  font-size: 1.625rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h2 + * {
  margin-top: 0;
}

.prose a {
  color: var(--blau-600);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose strong {
  font-weight: 600;
  color: var(--blau-900);
}

.prose ul {
  list-style: none;
  padding-left: 1.4em;
}

.prose ul > li {
  position: relative;
}

.prose ul > li + li {
  margin-top: 0.4em;
}

.prose ul > li::before {
  content: '';
  position: absolute;
  left: -1em;
  top: 0.68em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 1px;
  background-color: var(--signal-500);
}

/* Hinweisblock für Christian – vor dem Livegang löschen */
.prose .hinweis {
  border-left: 3px solid var(--signal-500);
  background-color: #fdf8ed;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
}

/* ── Fuß ───────────────────────────────────────────────────────────────── */

.fuss {
  border-top: 4px solid var(--signal-500);
  background-color: var(--blau-950);
  color: var(--blau-200);
  font-size: 0.875rem;
}

.fuss .umschlag {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.5rem;
}

@media (min-width: 640px) {
  .fuss .umschlag {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fuss p {
  color: var(--blau-400);
}

.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss a {
  text-decoration: none;
  transition: color 0.15s;
}

.fuss a:hover {
  color: var(--signal-300);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
