/* Akquise-Apps, Nachbau: die gemeinsame Gestaltung aller Seiten dieser Demo.
 *
 * Die Werte und Schriften kommen aus janickrolli.com, src/styles/global.css,
 * ohne Abwandlung. Wer dort einen Wert ändert, ändert ihn hier mit.
 *
 * DREI REGELN AUS DER SEITE GELTEN HIER GENAUSO:
 *   - Orange ist nie Schrift. Nur Fläche, Strich und Punkt. Auf Weiss misst
 *     es 1,90:1, auf Papier 1,76:1.
 *   - Ecken sind eckig. Rund sind nur Umschalter, Marken und Punkte.
 *   - Die Seite ist hell. Es gibt keinen dunklen Modus.
 *
 * Jede App lädt diese Datei zuerst und ergänzt in ihrem eigenen <style> nur,
 * was nur sie braucht. Alles hier beginnt mit "ak-", damit es mit den
 * Klassen der Apps nicht zusammenstösst.
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-latin.woff2") format("woff2-variations");
}

:root {
  /* Die sieben Werte der Unterlagen und die zwei abgeleiteten der Seite. */
  --papier: #fff4eb;
  --karte: #ffffff;
  --linie: #e7dbcf;
  --orange: #faa97d;
  --petrol: #2c5c5e;
  --petrol-tief: #234a4c;
  --schrift: #1a1a1a;
  --schrift-zwei: #4a423d;
  --schrift-leise: #7a6e66;

  /* Flächen, aus den Werten oben gemischt. Nie Schrift. */
  --orange-flaeche: color-mix(in oklab, var(--orange) 22%, #fff);
  --petrol-flaeche: color-mix(in oklab, var(--petrol) 9%, #fff);
  --petrol-rand: color-mix(in oklab, var(--petrol) 35%, #fff);

  /* Zwei Zustände, die eine Bedeutung tragen und in der Palette fehlen:
     Fehler und Verzug. Nur sparsam, nur als Schrift oder Strich auf Weiss.
     Rot auf Weiss 7,4:1, Ocker auf Weiss 6,0:1. */
  --rot: #a3282f;
  --rot-flaeche: #fbeceb;
  --ocker: #8a5a00;
  --ocker-flaeche: #fdf1dc;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --ease-weich: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--schrift);
  font: 400 15px/1.55 var(--font-sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

a {
  color: var(--petrol);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--papier);
  border: 1px solid var(--linie);
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   Kopfleiste: Name der App, Werkzeuge, darunter die Nachbau-Zeile.
   --------------------------------------------------------------------------- */

.ak-kopf {
  background: var(--karte);
  border-bottom: 1px solid var(--linie);
}

.ak-kopf__innen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
}

.ak-kopf__name {
  min-width: 0;
}

.ak-kopf__marke {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petrol);
}

.ak-kopf__titel {
  margin: 4px 0 0;
  font-size: clamp(24px, 3.4vw, 32px);
}

.ak-kopf__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--schrift-zwei);
}

.ak-kopf__werkzeuge {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ak-punkt {
  color: var(--orange);
}

/* Die Nachbau-Zeile. Sie steht in jeder App und bleibt auch im Rahmen der
   Arbeitsprobe stehen. Eine Einordnung, die sich ausblendet, sobald es
   bequem wäre, ist keine. */
.ak-kopf__nachbau {
  margin: 0;
  border-top: 1px solid var(--linie);
  background: var(--papier);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--schrift-zwei);
}

.ak-kopf__nachbau > span {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px 8px 17px;
  border-left: 3px solid var(--orange);
}

.ak-kopf__nachbau b {
  color: var(--schrift);
  font-weight: 600;
}

.ak-kopf__nachbau a {
  white-space: nowrap;
}

/* Die Fläche unter dem Kopf. Unten Platz für die Leiste der Demo. */
.ak-seite {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 104px;
}

/* ---------------------------------------------------------------------------
   Bausteine
   --------------------------------------------------------------------------- */

/* Kleine Beschriftung in Mono und Grossbuchstaben, wie die Marken der Seite. */
.ak-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--schrift-leise);
}

/* Eine Tafel: weisse Fläche, Haarlinie, keine Rundung, kein Schatten. */
.ak-tafel {
  background: var(--karte);
  border: 1px solid var(--linie);
}

.ak-tafel__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--linie);
}

.ak-tafel__kopf h2,
.ak-tafel__kopf h3 {
  margin: 0;
  font-size: 19px;
}

.ak-tafel__inhalt {
  padding: 16px 18px;
}

.ak-tafel__fuss {
  padding: 10px 18px;
  border-top: 1px solid var(--linie);
  background: var(--papier);
  font-size: 12.5px;
  color: var(--schrift-zwei);
}

/* Knöpfe. Petrol füllt, Petrol umrandet, Linie für das Leise. */
.ak-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.25;
  padding: 8px 15px;
  border: 1px solid var(--petrol);
  border-radius: 0;
  background: var(--petrol);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ak-knopf:hover {
  background: var(--petrol-tief);
  border-color: var(--petrol-tief);
  color: #fff;
}

.ak-knopf--rand {
  background: transparent;
  color: var(--petrol);
  border-color: color-mix(in oklab, var(--petrol) 70%, transparent);
}

.ak-knopf--rand:hover {
  background: var(--petrol);
  color: #fff;
}

.ak-knopf--leise {
  background: var(--karte);
  color: var(--schrift-zwei);
  border-color: var(--linie);
}

.ak-knopf--leise:hover {
  background: var(--karte);
  color: var(--petrol);
  border-color: var(--petrol);
}

.ak-knopf--klein {
  font-size: 12.5px;
  padding: 5px 10px;
}

.ak-knopf:disabled,
.ak-knopf[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* Umschalter: die einzige runde Form neben Marken und Punkten. */
.ak-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ak-wahl > button,
.ak-wahl > a {
  font: inherit;
  font-size: 12.5px;
  padding: 4px 12px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--karte);
  color: var(--schrift-zwei);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ak-wahl > button:hover,
.ak-wahl > a:hover {
  border-color: var(--petrol);
}

.ak-wahl > [aria-pressed="true"],
.ak-wahl > [aria-current="page"],
.ak-wahl > .an {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}

/* Felder. Eckig, Haarlinie, Petrol beim Fokus. */
.ak-feld,
.ak-seite input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.ak-seite select,
.ak-seite textarea {
  font: inherit;
  font-size: 14px;
  color: var(--schrift);
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 0;
  padding: 7px 10px;
}

.ak-feld:focus,
.ak-seite input:focus,
.ak-seite select:focus,
.ak-seite textarea:focus {
  border-color: var(--petrol);
  outline: none;
  box-shadow: 0 0 0 1px var(--petrol);
}

.ak-seite input::placeholder,
.ak-seite textarea::placeholder {
  color: var(--schrift-leise);
}

/* Marke für einen Zustand: rund, Mono, klein. */
.ak-tag {
  display: inline-block;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--karte);
  color: var(--schrift-zwei);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

.ak-tag--petrol {
  background: var(--petrol-flaeche);
  border-color: var(--petrol-rand);
  color: var(--petrol);
}

.ak-tag--orange {
  background: var(--orange-flaeche);
  border-color: var(--orange);
  color: var(--schrift);
}

.ak-tag--rot {
  background: var(--rot-flaeche);
  border-color: color-mix(in oklab, var(--rot) 35%, #fff);
  color: var(--rot);
}

.ak-tag--ocker {
  background: var(--ocker-flaeche);
  border-color: color-mix(in oklab, var(--ocker) 30%, #fff);
  color: var(--ocker);
}

.ak-tag--voll {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
}

/* Zahlenleiste: grosse Zahlen nebeneinander, durch Haarlinien getrennt,
   wie die Zahlentafeln der Seite. */
.ak-zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  background: var(--karte);
  border: 1px solid var(--linie);
}

.ak-zahl {
  padding: 12px 16px 14px;
  border-right: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  margin: 0 -1px -1px 0;
  text-align: left;
}

.ak-zahl__wert {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--schrift);
}

.ak-zahl__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--schrift-leise);
}

/* Der Strich unter einem Titel, 3 Pixel Orange, wie unter dem Namen im
   Lebenslauf. */
.ak-strich {
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--orange);
}

/* Der Hinweis in der Form der Seite: Strich links in Orange, weisse Fläche,
   fetter Anfang. Dieselbe Form wie "Das ist eine Demo." auf janickrolli.com. */
.ak-hinweis {
  margin: 0;
  border-left: 2px solid var(--orange);
  background: var(--karte);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--schrift-zwei);
}

.ak-hinweis b,
.ak-hinweis strong {
  color: var(--schrift);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Die Leiste der Demo, unten links. browser.js hängt sie an.
   --------------------------------------------------------------------------- */

#akquiseDemoLeiste {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  background: var(--karte);
  border: 1px solid var(--linie);
  border-left: 3px solid var(--orange);
  padding: 6px 6px 6px 12px;
  font: 400 12.5px/1.4 var(--font-sans);
  color: var(--schrift-zwei);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.08);
}

#akquiseDemoLeiste b {
  font-weight: 600;
  color: var(--schrift);
}

#akquiseDemoLeiste a,
#akquiseDemoLeiste button {
  font: inherit;
  color: var(--petrol);
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 0;
  padding: 3px 10px;
  text-decoration: none;
  cursor: pointer;
}

#akquiseDemoLeiste a:hover,
#akquiseDemoLeiste button:hover {
  border-color: var(--petrol);
}

@media print {
  #akquiseDemoLeiste {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
