@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/inter-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/inter-800.woff2") format("woff2");
}

:root {
  --ink: #102c3f;
  --text: #243b4a;
  --muted: #627b8d;
  --blue-900: #003d66;
  --blue-800: #004b76;
  --blue-700: #005f96;
  --blue-100: #eaf7ff;
  --blue-050: #f4fbff;
  --teal: #138779;
  --teal-soft: #d9f4ef;
  --orange: #f6a23a;
  --line: #c9ddeb;
  --line-soft: #e2edf5;
  --surface: #ffffff;
  --surface-muted: #f3f5f7;
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: var(--blue-700); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: var(--container); margin: 0 auto; }
.skip-link { position: absolute; left: 16px; top: -120px; z-index: 30; padding: 10px 14px; color: #fff; background: var(--blue-900); }
.skip-link:focus { top: 16px; }
.notice-bar { color: #fff; background: var(--blue-900); font-size: 0.92rem; }
.notice-bar__inner { display: flex; gap: 18px; justify-content: space-between; align-items: center; min-height: 44px; }
.notice-bar span:first-child { font-weight: 800; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(14px); }
.header-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; min-height: 86px; }
.brand { display: inline-flex; align-items: center; width: min(212px, 52vw); }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; justify-content: flex-end; gap: 6px; }
.main-nav a { padding: 10px 12px; color: var(--ink); border-radius: 4px; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--blue-800); background: var(--blue-050); }
.nav-toggle { display: none; justify-self: end; align-items: center; gap: 10px; padding: 10px 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; font-weight: 700; cursor: pointer; }
.nav-toggle__line, .nav-toggle__line::before, .nav-toggle__line::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; }
.nav-toggle__line { position: relative; }
.nav-toggle__line::before, .nav-toggle__line::after { position: absolute; left: 0; }
.nav-toggle__line::before { top: -6px; }
.nav-toggle__line::after { top: 6px; }
.eyebrow { margin: 0 0 12px; color: var(--blue-800); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.12; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.08rem; }
.library-hero { padding: 78px 0 72px; background: var(--blue-100); border-bottom: 1px solid var(--line); }
.library-hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr); gap: 64px; align-items: end; }
.library-hero__lead { max-width: 760px; margin: 0 0 30px; font-size: 1.16rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--blue-800); border-radius: 4px; font-weight: 800; text-decoration: none; }
.button--primary { color: #fff; background: var(--blue-800); }
.button--primary:hover { color: #fff; background: var(--blue-900); }
.button--secondary { color: var(--blue-800); background: #fff; }
.library-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85); }
.library-stats div { min-width: 0; padding: 22px 12px; text-align: center; }
.library-stats div + div { border-left: 1px solid var(--line); }
.library-stats dt { color: var(--blue-900); font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.library-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.safety-band { padding: 44px 0; color: #fff; background: var(--blue-900); }
.safety-band__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.safety-band h2, .safety-band .eyebrow { color: #fff; }
.safety-band h2, .safety-band p { margin-bottom: 0; }
.library-section { padding: 84px 0 96px; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p:last-child { margin-bottom: 0; }
.library-controls { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(210px, 0.8fr) auto; gap: 18px; align-items: end; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-field, .select-field { display: grid; gap: 7px; color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.search-field input, .select-field select { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.type-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.type-filter legend { margin-bottom: 7px; color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.segmented-control { display: grid; grid-template-columns: repeat(3, auto); min-height: 48px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.segmented-control button { padding: 8px 14px; color: var(--ink); background: #fff; border: 0; cursor: pointer; }
.segmented-control button + button { border-left: 1px solid var(--line); }
.segmented-control button.is-active { color: #fff; background: var(--blue-800); }
.results-line { display: flex; gap: 18px; justify-content: space-between; align-items: center; min-height: 72px; }
.reset-button { padding: 8px 0; color: var(--blue-700); background: transparent; border: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.category-section { padding: 34px 0 12px; border-top: 1px solid var(--line-soft); }
.category-heading { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.category-heading h3 { margin: 0; font-size: 1.5rem; }
.category-heading span { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.library-item { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.library-item.is-open { grid-column: 1 / -1; }
.library-item details { height: 100%; }
.library-item summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 118px; padding: 20px; cursor: pointer; list-style: none; }
.library-item summary::-webkit-details-marker { display: none; }
.library-item summary::after { width: 28px; color: var(--blue-700); font-size: 1.5rem; font-weight: 700; text-align: center; content: "+"; }
.library-item details[open] summary::after { content: "−"; }
.item-type { display: inline-block; margin-bottom: 8px; color: var(--teal); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.library-item h4 { margin: 0 0 7px; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.item-summary { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.item-body { padding: 0 20px 22px; border-top: 1px solid var(--line-soft); }
.item-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 0; }
.icon-button { display: inline-grid; width: 44px; height: 44px; place-items: center; color: var(--blue-800); background: var(--blue-050); border: 1px solid var(--line); border-radius: 4px; font-size: 1.25rem; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; }
.icon-button:hover { color: #fff; background: var(--blue-800); }
.source-content { max-height: 520px; margin: 0; padding: 18px; overflow: auto; color: #dbeeff; background: #102c3f; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 0.84rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.loading-text, .empty-state { padding: 46px 0; color: var(--muted); text-align: center; }
.site-footer { padding: 32px 0; color: #dbeeff; background: var(--blue-900); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-grid p { margin: 0; }
.footer-grid nav { display: flex; gap: 16px; }
.footer-grid a { color: #fff; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 40; max-width: min(360px, calc(100vw - 36px)); padding: 12px 16px; color: #fff; background: var(--blue-900); border-radius: 4px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.static-item-content { position: relative; min-height: 180px; padding: 20px; }
.static-item-content h4 a, .library-item summary h4 a { color: inherit; text-decoration: none; }
.static-item-content h4 a:hover, .library-item summary h4 a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.static-item-content .item-actions { position: absolute; right: 16px; bottom: 6px; }
.prompt-detail__header { padding: 64px 0 52px; background: var(--blue-050); border-bottom: 1px solid var(--line-soft); }
.prompt-detail__header h1 { max-width: 900px; margin: 10px 0 18px; color: var(--ink); font-size: 4rem; line-height: 1.05; overflow-wrap: anywhere; hyphens: auto; }
.prompt-detail__header p:not(.eyebrow) { max-width: 780px; margin: 0; font-size: 1.12rem; }
.prompt-detail__actions { display: flex; gap: 10px; margin-top: 26px; }
.icon-button--large { width: 50px; height: 50px; }
.prompt-detail__safety { margin-top: 40px; padding: 24px 28px; background: var(--teal-soft); border-left: 4px solid var(--teal); }
.prompt-detail__safety h2 { margin: 0 0 7px; color: var(--ink); font-size: 1.12rem; }
.prompt-detail__safety p { margin: 0; }
.prompt-detail__content { padding-top: 54px; padding-bottom: 84px; }
.prose { max-width: 960px; }
.prose h1 { display: none; }
.prose h2 { margin: 52px 0 16px; color: var(--ink); font-size: 1.65rem; }
.prose h3 { margin: 36px 0 12px; color: var(--ink); font-size: 1.25rem; }
.prose p, .prose li { max-width: 82ch; }
.prose li + li { margin-top: 8px; }
.prose pre { overflow-x: auto; margin: 24px 0; padding: 26px; color: #eaf7ff; background: #09283b; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.prose :not(pre) > code { padding: 2px 5px; color: var(--blue-900); background: var(--blue-050); border: 1px solid var(--line-soft); border-radius: 3px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--line); color: var(--muted); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .library-hero__grid, .safety-band__grid { grid-template-columns: 1fr; gap: 34px; }
  .library-controls { grid-template-columns: 1fr 1fr; }
  .type-filter { grid-column: 1 / -1; }
  .segmented-control { grid-template-columns: repeat(3, 1fr); }
  .item-grid { grid-template-columns: 1fr; }
  .library-item.is-open { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .prompt-detail__header h1 { font-size: 2.25rem; }
  :root { --container: min(100vw - 28px, 1180px); }
  .notice-bar__inner { display: block; padding: 10px 0; }
  .notice-bar span { display: block; }
  .notice-bar span:last-child { margin-top: 2px; font-size: 0.8rem; }
  .header-grid { grid-template-columns: auto 1fr; min-height: 74px; }
  .brand { width: min(178px, 56vw); }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 14px; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px 14px; }
  .library-hero { padding: 58px 0; }
  h1 { font-size: 2.55rem; }
  .library-stats { grid-template-columns: 1fr; }
  .library-stats div + div { border-top: 1px solid var(--line); border-left: 0; }
  .library-controls { grid-template-columns: 1fr; }
  .type-filter { grid-column: auto; }
  .results-line { align-items: flex-start; flex-direction: column; justify-content: center; padding: 14px 0; }
  .category-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .library-item summary { min-height: 0; padding: 18px 16px; }
  .item-body { padding: 0 16px 18px; }
  .source-content { max-height: 430px; padding: 14px; font-size: 0.78rem; }
  .footer-grid nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}


/* === lauer-design: Barrierefreiheit, ergaenzt 25.08.2026 === */
/* Regelwerk: .claude/skills/lauer-design/SKILL.md, Kapitel 8 */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  .site-header {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #102c3f !important;
  }
  :focus-visible { outline-width: 3px !important; }
}


/* === lauer-design: Laufweite nach Groesse, ergaenzt 25.08.2026 === */
/* Regelwerk: .claude/skills/lauer-design/SKILL.md, Kapitel 7 */
/* Ersetzt die frueher pauschale Regel "keine negative Laufweite". */
/* Kleintext leicht positiv, Fliesstext 0, Ueberschriften -0.01em, Display -0.02em. */
/* Eyebrows und Kicker behalten ihre Sperrung von 0.08em. */

h1 { letter-spacing: -0.02em; }   /* clamp(2.5rem, 6vw, 5rem) — Display */
h2 { letter-spacing: -0.015em; }  /* clamp(1.8rem, 3.2vw, 2.8rem) — Uebergang */
h3 { letter-spacing: 0; }         /* 1.08rem — unveraendert */


/* === lauer-design: Rueckmeldung beim Druecken, ergaenzt 26.08.2026 === */
/* Regelwerk: .claude/skills/lauer-design/SKILL.md, Kapitel 1 */
/* Rueckmeldung beim Druecken, nicht beim Loslassen. */
/* Zone 1: eine Eigenschaft, unter 200 ms, nur transform. */

:root {
  --dur-press: 100ms;
  --dur-state: 150ms;
  --dur-layer: 200ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.button,
.icon-button,
.reset-button,
.nav-toggle {
  transition: transform var(--dur-press) var(--ease-out);
}

.button:active,
.icon-button:active,
.reset-button:active,
.nav-toggle:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .button:active,
  .icon-button:active,
  .reset-button:active,
  .nav-toggle:active {
    transform: none;
  }
}
