/* GroupPilot Hilfe — tokens from the app (src/main/resources/static/css/gp/tokens.css), light theme only */

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

:root {
  --bg: #F4F1EB;
  --surface: #FFFFFF;
  --sunken: #EBE7DF;
  --line: rgba(21, 18, 14, .08);
  --line2: rgba(21, 18, 14, .16);
  --ink: #15120E;
  --ink2: rgba(21, 18, 14, .66);
  --ink3: rgba(21, 18, 14, .60);
  --accent: #E2571A;
  --accent-ink: #B5420F;
  --accent-soft: rgba(226, 87, 26, .11);
  --warn: #965700;
  --good: #1E7A4C;
  --shadow: 0 1px 2px rgba(21, 18, 14, .06), 0 8px 24px rgba(21, 18, 14, .06);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --content: 720px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.kopf { border-bottom: 1px solid var(--line); background: var(--bg); }
.kopf__innen {
  max-width: calc(var(--content) + 40px); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marke { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 18px; text-decoration: none; }
.marke svg { width: 26px; height: 26px; color: var(--accent); }
.marke__zusatz { font-weight: 500; color: var(--ink3); }
.kopf__link { font-size: 15px; font-weight: 550; }

/* Content */
main { max-width: calc(var(--content) + 40px); margin: 0 auto; padding: 28px 20px 56px; }
.pfad { font-size: 14px; color: var(--ink3); margin: 0 0 18px; }
.pfad a { color: var(--ink2); }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.1; margin: 0 0 12px; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: 22px; font-weight: 650; letter-spacing: -.4px; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 18px; font-weight: 650; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
.einleitung { font-size: 19px; color: var(--ink2); margin-bottom: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.meta li { font-size: 13px; font-weight: 550; background: var(--sunken); border-radius: 999px; padding: 4px 10px; }

ol.schritte { padding-left: 0; list-style: none; counter-reset: schritt; }
ol.schritte > li { counter-increment: schritt; position: relative; padding-left: 44px; margin-bottom: 14px; }
ol.schritte > li::before {
  content: counter(schritt); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 650; display: grid; place-items: center;
}
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
b, strong { font-weight: 650; }
.ui { font-weight: 650; white-space: nowrap; }

/* Screenshots */
figure { margin: 22px 0 26px; }
figure img { display: block; height: auto; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
figure.handy img { width: 100%; max-width: 300px; border-radius: 28px; }
figure.desktop img { width: 100%; }
figcaption { font-size: 14px; color: var(--ink3); margin-top: 10px; }
.bilder { display: flex; flex-wrap: wrap; gap: 20px; }
.bilder figure { margin: 0; flex: 1 1 240px; max-width: 300px; }

/* Boxes */
.hinweis { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px; margin: 26px 0; }
.hinweis h2, .hinweis h3 { margin-top: 0; font-size: 17px; }
.hinweis > :last-child { margin-bottom: 0; }
.hinweis--warn { border-left: 4px solid var(--warn); }
.hinweis--tipp { border-left: 4px solid var(--good); }

/* Start page cards */
.kacheln { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 0 0 8px; padding: 0; list-style: none; }
.kacheln li { margin: 0; }
.kachel {
  display: block; height: 100%; text-decoration: none; background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow); padding: 16px 18px; border: 1px solid transparent;
}
.kachel:hover { border-color: var(--line2); color: var(--ink); }
.kachel__titel { display: block; font-weight: 650; font-size: 17px; }
.kachel__text { display: block; font-size: 15px; color: var(--ink2); margin-top: 2px; }

.weiter { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.weiter h2 { font-size: 17px; margin: 0 0 8px; }

/* Footer */
.fuss { border-top: 1px solid var(--line); }
.fuss__innen { max-width: calc(var(--content) + 40px); margin: 0 auto; padding: 18px 20px 28px; font-size: 14px; color: var(--ink3); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  .einleitung { font-size: 17px; }
  figure.handy img { max-width: 260px; }
}

@media print {
  .kopf, .fuss, .skip { display: none; }
  body { background: #fff; }
  figure img { box-shadow: none; }
}
