/* Laser-Anleitung (/laser, /laser-anleitung, /laser-material-guide).
   Schriften kommen aus ../ds/fonts (dieselben Dateien wie die Ausleihe).
   Design angelehnt an die Ausleihe (ausleihe.dpsg-marcelcallo.de) und die
   Förderverein-Website: Anton für Überschriften, Public Sans für Text,
   Vereinsfarben Schwarzgrün (Ink) + Gelb. Hintergrund bewusst hellgrau. */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../ds/fonts/Anton-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../ds/fonts/Anton-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../ds/fonts/PublicSans-400-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../ds/fonts/PublicSans-400-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #151d1d;
  --ink-soft: #232e2e;
  --yellow: #ffdc28;      /* Gelb der Vereins-Website */
  --yellow-deep: #f2c200;
  --yellow-soft: #fff4c2;
  --bg: #e8eeef;          /* Hellgrau der Vereins-Website */
  --fg: #151d1d;
  --muted: #5b6463;
  --card: #fff;
  --line: #d5d9d7;
  --warn-bg: #fff1e3;
  --warn-line: #f57c00;
  --tip-bg: var(--yellow-soft);
  --tip-line: var(--yellow-deep);
  --note-bg: #f3f4f3;
  --note-line: #9aa19f;
  --font-display: "Anton", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font-text);
}
a { color: var(--ink); text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
strong { font-weight: 700; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem max(.75rem, env(safe-area-inset-right)) .55rem max(.75rem, env(safe-area-inset-left));
  padding-top: max(.55rem, env(safe-area-inset-top));
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.home { display: flex; align-items: center; gap: .5rem; }
.home a { display: flex; align-items: center; color: var(--yellow); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; }
.home img.skyline { height: 30px; width: auto; }
.home a { gap: .5rem; }
.tabs { display: flex; gap: .25rem; margin-left: auto; }
/* Navigation wie auf der Vereins-Website: Textlinks, gelbe 2-px-Linie bei
   Hover und auf der aktiven Seite. Nur „Ausleihe“ ist ein Knopf. */
.tabs a, .toc-btn {
  position: relative;
  color: #e8eeef; text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap;
  padding: .4rem .6rem; border: 0; background: transparent; font-family: inherit;
}
.tabs a:not(.loan)::after, .toc-btn::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .15rem; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.tabs a:not(.loan):hover::after, .tabs a[aria-current="page"]::after, .toc-btn:hover::after { transform: scaleX(1); }
.tabs a.loan { background: var(--yellow); color: var(--ink); font-weight: 700; margin-left: .35rem; border-radius: 999px; padding: .4rem .9rem; }
.toc-btn { cursor: pointer; }
@media (max-width: 480px) {
  .toc-label, .tabs .emoji { display: none; }
  .bar { flex-wrap: wrap; }
  .tabs a.loan { margin-left: .1rem; }
}
@media (max-width: 420px) {
  .home span, .tabs a { font-size: .82rem; padding: .4rem .5rem; }
}

main { max-width: 820px; margin: 0 auto; padding: 1.2rem max(1rem, env(safe-area-inset-left)) 3rem; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); }

/* Document typography */
.doc h1, .doc h2, .doc h3, .hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; color: var(--ink);
}
.doc h1 { font-size: 2.2rem; margin: .6rem 0 1rem; }
.doc h2 { font-size: 1.6rem; margin: 2.6rem 0 .8rem; padding-top: .9rem; border-top: 2px solid var(--line); position: relative; }
.doc h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 3rem; height: 4px; background: var(--yellow); }
.doc h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.doc h4 { font-size: 1rem; font-weight: 700; margin: 1.3rem 0 .4rem; }
.doc hr { display: none; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: .3rem 0; }
.doc li::marker { color: var(--muted); font-weight: 700; }
.doc img { display: block; max-width: 100%; height: auto; margin: .8rem auto .2rem; border-radius: 10px; background: #fff; }
.doc img + em { display: block; text-align: center; color: var(--muted); font-size: .85rem; }
.doc code { background: var(--note-bg); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

blockquote {
  margin: 1rem 0; padding: .7rem 1rem;
  border-left: 5px solid var(--note-line); background: var(--note-bg); border-radius: 0 12px 12px 0;
}
blockquote p { margin: .3rem 0; }
blockquote.warn { border-color: var(--warn-line); background: var(--warn-bg); }
blockquote.tip { border-color: var(--tip-line); background: var(--tip-bg); }

/* Tables scroll sideways on phones instead of squashing */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .55rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; min-width: 7rem; }
/* Zweispaltige Tabellen (Punkt | Regelung) passen aufs Handy statt zu
   scrollen: lange Wörter dürfen umbrechen. Breitere Tabellen (Materialwerte)
   scrollen weiter seitlich. */
@media (max-width: 600px) {
  table:not(:has(th:nth-child(3))) td { overflow-wrap: anywhere; hyphens: auto; }
  table:not(:has(th:nth-child(3))) td:first-child { min-width: 0; width: 38%; }
}

/* Tickable checklists */
li.task-list-item, .doc li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.3rem; }
.doc input[type="checkbox"] { width: 1.25rem; height: 1.25rem; vertical-align: -.2rem; margin-right: .5rem; accent-color: var(--ink); }
.reset-checks { margin: .5rem 0 1rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }

/* Table-of-contents drawer */
.toc { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.45); }
.toc[hidden] { display: none; }
.toc-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background: var(--card); overflow-y: auto; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: -4px 0 16px rgba(0,0,0,.25);
}
.toc-head {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(.8rem + env(safe-area-inset-top)) 1rem .8rem; background: var(--ink); color: var(--yellow);
  font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em;
}
.toc-close { border: 0; background: none; font-size: 1.2rem; color: #fff; cursor: pointer; }
.toc ul { list-style: none; margin: 0; padding: .4rem 0; }
.toc li a { display: block; padding: .55rem 1rem; text-decoration: none; color: var(--fg); font-weight: 600; }
.toc li.d3 a { padding-left: 2rem; font-size: .9rem; font-weight: 400; color: var(--muted); }
.toc li a:hover, .toc li a:active { background: var(--yellow-soft); }

.top {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--yellow); font-size: 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.top.show { opacity: 1; pointer-events: auto; }

/* Start page */
.eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: .4rem 0 .5rem; font-size: 2.8rem; }
.hero p { color: var(--muted); margin-top: 0; }
.cards { display: grid; gap: .9rem; margin: 1.4rem 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; gap: .9rem; align-items: center; padding: 1.1rem;
  background: var(--card); border: 2px solid transparent; border-radius: 16px;
  color: var(--fg); text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: border-color .15s;
}
.card:hover { border-color: var(--yellow); }
.card strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.card-icon { font-size: 2rem; }
.card small { color: var(--muted); }
.section-title { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 1.8rem 0 .7rem; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .85rem .3rem;
  background: var(--card); border: 2px solid transparent; border-radius: 14px;
  color: var(--fg); text-decoration: none; font-size: .88rem; font-weight: 600;
}
.quick a:hover { border-color: var(--yellow); }
.quick a span { font-size: 1.5rem; }
.contact { margin-top: 2rem; text-align: center; color: var(--muted); }

/* Schnellzugriff (Unterseiten) – Handy/schmal: Knopf unten links, klappt
   nach oben auf. Breiter Desktop: mitlaufende Leiste rechts, minimierbar. */
.quick-dock {
  position: fixed; z-index: 8;
  left: max(1rem, env(safe-area-inset-left)); bottom: calc(1rem + env(safe-area-inset-bottom));
}
.quick-toggle {
  display: flex; align-items: center; gap: .4rem;
  padding: .65rem 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--yellow); font: inherit; font-size: .9rem; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.quick-toggle { -webkit-tap-highlight-color: transparent; }
.quick-toggle:focus-visible, .quick-list a:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }
.quick-caret::before { content: "▴"; color: #fff; font-size: .8rem; margin-left: .15rem; }
.quick-dock.is-open .quick-caret::before { content: "▾"; }
.quick-list {
  display: none;
  position: absolute; left: 0; bottom: calc(100% + .5rem);
  width: min(86vw, 300px);
  grid-template-columns: 1fr 1fr; gap: .4rem; padding: .5rem;
  background: var(--card); border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.quick-dock.is-open .quick-list { display: grid; }
.quick-list a {
  display: flex; align-items: center; gap: .45rem; padding: .6rem .65rem; border-radius: 10px;
  color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 600;
  background: var(--note-bg);
}
.quick-list a:hover { background: var(--yellow-soft); }
@media (min-width: 1260px) {
  .quick-dock { left: auto; bottom: auto; right: 1.25rem; top: 5.5rem; width: 200px; }
  .quick-toggle { width: 100%; justify-content: space-between; border-radius: 12px; }
  .quick-caret::before { content: "+"; font-size: 1rem; }
  .quick-dock.is-open .quick-caret::before { content: "–"; }
  .quick-dock.is-open .quick-toggle { border-radius: 12px 12px 0 0; }
  .quick-list {
    position: static; width: auto; grid-template-columns: 1fr;
    border-radius: 0 0 12px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); margin-top: 0;
  }
}
@media print { .quick-dock { display: none; } }

/* Footer: Impressum/Datenschutz wie auf allen Seiten der Ausleihe */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; margin: 0 0 .6rem; font-size: .85rem; }
.footer-links a { color: var(--muted); }
