/* DK 04.10.: Archiv übersichtlich – Ordner zum Aufklappen, kompakter Kopf, Suche, Projektor darunter. Graphit & Gold. */
.ah-wrap { padding: 16px 0 10px; background: linear-gradient(180deg, #191816, #161512); }
.ah-wrap .wrap, #zeitreise > .wrap { width: min(860px, calc(100% - 28px)); margin-inline: auto; }
.ah-wrap .gx-head, #zeitreise .gx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(226,200,127,.28); margin-bottom: 14px; }
.ah-wrap .gx-head h1, #zeitreise .gx-head h2 { margin: 0; font-family: "Bodoni Moda", Georgia, serif; font-weight: 700; font-size: 26px; line-height: 1.1;
  letter-spacing: 0; color: #f3ebd5; text-transform: none; }
.ah-wrap .gx-meta, #zeitreise .gx-meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #c9ab65; white-space: nowrap; }

/* Suche – eine Zeile */
.ah-search { margin: 0 0 14px; }
.ah-search form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ah-search .archive-input-row { display: flex !important; flex-wrap: nowrap !important; width: 100%; box-sizing: border-box; gap: 0; border: 1px solid rgba(226,200,127,.35); border-radius: 12px; overflow: hidden; background: #201f1b; }
.ah-search input { flex: 1 1 0; width: 0 !important; min-width: 0; height: 46px; padding: 0 14px; border: 0; background: transparent; color: #f3ebd5; font-size: 16px; }
.ah-search input::placeholder { color: rgba(243,235,213,.45); }
.ah-search input:focus { outline: none; }
.ah-search .archive-input-row:focus-within { border-color: #e2c87f; box-shadow: 0 0 0 3px rgba(226,200,127,.18); }
.ah-search button[type=submit] { flex: none; width: auto !important; min-height: 46px; border: 0; padding: 0 14px; white-space: nowrap; background: linear-gradient(135deg, #e2c87f, #b89855); color: #181715; font-weight: 700; font-size: 14px; cursor: pointer; }
.ah-search .archive-status { margin: 8px 2px 0; font-size: 13px; color: rgba(243,235,213,.7); }
.ah-search .archive-status { display: none; }
.ah-search:has(input:not(:placeholder-shown)) .archive-status:not(:empty) { display: block; }
.ah-search .archive-results { list-style: none; margin: 8px 0 0; padding: 0; }
.ah-search .archive-results:empty { display: none; }
.ah-search .archive-results li { border-top: 1px solid rgba(255,255,255,.06); }
.ah-search .archive-results a { display: block; padding: 10px 4px; color: #f3ebd5; text-decoration: none; font-size: 15px; }
.ah-search .archive-results a small, .ah-search .archive-results a span + span { display: block; font-size: 12px; color: #c9ab65; }
.ah-search .archive-more { margin-top: 8px; border: 1px solid rgba(226,200,127,.35); background: none; color: #e2c87f; border-radius: 10px; padding: 8px 14px; font-size: 14px; }

/* Ordnerbaum */
.ah-tree { display: grid; gap: 8px; }
.ah-folder > summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ah-folder > summary::-webkit-details-marker { display: none; }
.ah-name { flex: 1; min-width: 0; }
.ah-count { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: rgba(226,200,127,.12); color: #e2c87f;
  font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.ah-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid #c9ab65; border-bottom: 2px solid #c9ab65; transform: rotate(45deg) translate(-2px,-2px);
  transition: transform .25s ease; }
.ah-folder[open] > summary .ah-chev { transform: rotate(225deg) translate(-2px,-2px); }

/* Ebene 1: Hauptordner */
.ah-l1 { border-radius: 14px; background: linear-gradient(160deg, #262420, #1f1d19); box-shadow: inset 0 0 0 1px rgba(226,200,127,.16); }
.ah-l1[open] { box-shadow: inset 0 0 0 1px rgba(226,200,127,.38); }
.ah-l1 > summary { min-height: 58px; padding: 10px 16px; }
.ah-l1 > summary .ah-name { font-family: "Bodoni Moda", Georgia, serif; font-weight: 700; font-size: clamp(16px, 4.6vw, 19px); color: #f3ebd5; line-height: 1.2; }
.ah-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(226,200,127,.1); color: #e2c87f; }
.ah-ico svg { width: 20px; height: 20px; }
.ah-l1 > .ah-body { padding: 0 10px 10px; }

/* Ebene 2: Seiten */
.ah-l2 { border-top: 1px solid rgba(255,255,255,.07); }
.ah-l2 > summary { min-height: 48px; padding: 8px 8px 8px 14px; }
.ah-l2 > summary .ah-name { font-size: 16px; font-weight: 600; color: #efe7d0; }
.ah-l2 > .ah-body { margin: 0 0 8px 14px; padding-left: 10px; border-left: 1px solid rgba(226,200,127,.25); }

/* Ebene 3: Liga-Unterordner */
.ah-l3 > summary { min-height: 42px; padding: 6px 8px 6px 4px; }
.ah-l3 > summary .ah-name { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c9ab65; }
.ah-l3 > .ah-body { margin: 0 0 6px 4px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.1); }
.ah-l3 .ah-count { background: none; color: rgba(226,200,127,.75); padding: 0; min-width: 0; }

/* Einträge */
.ah-list { list-style: none; margin: 0; padding: 0; }
.ah-l2list { border-top: 1px solid rgba(255,255,255,.07); }
.ah-l2list .ah-leaf { padding-left: 14px; font-weight: 600; font-size: 16px; color: #efe7d0; min-height: 48px; }
.ah-leaf { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 8px 7px 4px; color: rgba(243,235,213,.88); text-decoration: none;
  font-size: 15px; line-height: 1.3; border-radius: 8px; }
.ah-leaf > span { flex: 1; min-width: 0; }
.ah-leaf small { display: block; font-size: 12px; color: #c9ab65; }
.ah-leaf svg { flex: none; width: 16px; height: 16px; color: #c9ab65; opacity: .75; }
.ah-body > .ah-list:first-child .ah-leaf:first-child { color: #e2c87f; font-weight: 600; }
.ah-leaf:hover, .ah-leaf:focus-visible { background: rgba(226,200,127,.08); color: #fff; }
.ah-folder > summary:focus-visible, .ah-leaf:focus-visible { outline: 2px solid #e2c87f; outline-offset: 2px; }

/* Zeitreise / Projektor direkt darunter, ohne Einleitung */
#zeitreise.r45-timeline { padding-top: 26px !important; }
#zeitreise .r45-lead, #zeitreise .r45-kick { display: none !important; }

@media (min-width: 961px) {
  .ah-wrap { padding-top: 104px; }
  .ah-wrap .gx-head h1, #zeitreise .gx-head h2 { font-size: 32px; }
  .ah-tree { grid-template-columns: 1fr 1fr; align-items: start; }
  .ah-l1 > summary { min-height: 64px; }
  .ah-wrap .wrap, #zeitreise > .wrap { width: min(1180px, calc(100vw - 80px)); }
}
@media (prefers-reduced-motion: reduce) { .ah-chev { transition: none; } }

/*PG-TONE-1*/
