/* Archivgruppe Heikendorf – bewusst gekapselt, ohne Einfluss auf das Theme. */
.agh-chronik {
  --agh-ink: #20383c;
  --agh-ink-soft: #536467;
  --agh-muted: #788585;
  --agh-line: #d9e0de;
  --agh-paper: #faf9f6;
  --agh-card: #ffffff;
  --agh-accent: #aa654b;
  --agh-accent-pale: #fbf0e9;
  --agh-ring: #235b64;
  color: var(--agh-ink);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4px 50px;
}
.agh-chronik *, .agh-chronik *::before, .agh-chronik *::after { box-sizing: border-box; }
.agh-chronik [hidden] { display: none !important; }
.agh-chronik :is(input, select, button, a, summary):focus-visible { outline: 3px solid var(--agh-ring); outline-offset: 3px; }
.agh-chronik .agh-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.agh-chronik-intro { padding: clamp(32px, 5vw, 66px) clamp(22px, 5.2vw, 70px) clamp(28px, 4.2vw, 48px); background: var(--agh-paper); border: 1px solid #e9e7e0; border-radius: 23px; margin-bottom: 31px; position: relative; overflow: hidden; }
.agh-chronik-intro::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid #d5d0c3; border-radius: 50%; right: -90px; top: -140px; box-shadow: 0 0 0 39px #faf9f6, 0 0 0 40px #e6e2da, 0 0 0 80px #faf9f6, 0 0 0 81px #ebe7df; pointer-events: none; opacity: .8; }
.agh-chronik-intro.agh-has-image { background-color: #20383c; background-image: linear-gradient(95deg, rgba(14, 31, 34, .88) 0%, rgba(14, 31, 34, .67) 60%, rgba(14, 31, 34, .39) 100%), var(--agh-hero-image); background-position: center; background-size: cover; border-color: rgba(28, 46, 49, .32); }
.agh-chronik-intro.agh-has-image::after { display: none; }
.agh-chronik-intro.agh-has-image h2, .agh-chronik-intro.agh-has-image .agh-chronik-facts strong { color: #fff !important; }
.agh-chronik-intro.agh-has-image .agh-chronik-lead { color: rgba(255, 255, 255, .92); }
.agh-chronik-intro.agh-has-image .agh-chronik-facts { color: rgba(255, 255, 255, .86); }
.agh-chronik-intro.agh-has-image .agh-chronik-dot { background: rgba(255, 255, 255, .72); }
.agh-chronik-intro h2 { font: 500 clamp(32px, 4.5vw, 54px)/1.1 Georgia, "Times New Roman", serif !important; letter-spacing: -.035em; color: var(--agh-ink); margin: 0 0 16px !important; max-width: 690px; }
.agh-chronik-lead { font-size: 15px; line-height: 1.7; color: var(--agh-ink-soft); max-width: 530px; margin: 0 0 22px !important; }
.agh-chronik-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--agh-ink-soft); font-size: 13px; }
.agh-chronik-facts strong { color: var(--agh-ink); font-weight: 700; }
.agh-chronik-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--agh-muted); }
.agh-chronik-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; padding: 14px; background: #f6f7f5; border: 1px solid #e5e9e6; border-radius: 17px; }
.agh-chronik-toolbar label { margin: 0; }
.agh-chronik-search { flex: 2 1 280px; position: relative; display: flex; align-items: center; min-width: 180px; color: #7b8787; }
.agh-chronik .agh-chronik-search > svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 2; display: block; flex: none; width: 19px; height: 19px; }
.agh-chronik :is(.agh-chronik-search input, .agh-chronik-select-wrap select) { width: 100%; height: 46px; min-height: 46px; max-width: 100%; margin: 0; border: 1px solid #e0e5e2; border-radius: 11px; background: #fff; color: var(--agh-ink); box-shadow: none; font-size: 13px; font-weight: 500; line-height: 1.4; font-family: inherit; padding: 0 13px; outline: none; }
.agh-chronik .agh-chronik-search input[type="search"].agh-js-search { padding: 0 42px 0 53px !important; text-indent: 0 !important; box-sizing: border-box !important; font-size: 14px; min-width: 0; appearance: none; -webkit-appearance: none; }
.agh-chronik .agh-chronik-search input::placeholder { color: #798687; opacity: 1; }
.agh-chronik .agh-chronik-select-wrap { flex: 0 1 165px; min-width: 150px; position: relative; }
.agh-chronik .agh-chronik-select-wrap select { padding-right: 30px; cursor: pointer; appearance: none; -webkit-appearance: none; font-size: 13px; }
.agh-chronik .agh-chronik-select-wrap::after { content: ""; position: absolute; border: solid var(--agh-ink-soft); border-width: 0 1.5px 1.5px 0; width: 7px; height: 7px; transform: rotate(45deg); right: 15px; top: 18px; pointer-events: none; }
.agh-chronik .agh-chronik-order { flex-basis: 155px; }
.agh-chronik-status { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--agh-ink-soft); font-size: 13px; padding: 8px 4px; }
.agh-chronik-reset { background: none !important; border: none !important; box-shadow: none !important; color: var(--agh-accent) !important; cursor: pointer; padding: 5px 4px !important; font-family: inherit; font-size: 13px; line-height: 1.5; font-weight: 600; }
.agh-chronik-reset:hover { text-decoration: underline; }
.agh-chronik-period { margin: 6px 0 26px; }
.agh-chronik-period-header { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin: 27px 0 24px; }
.agh-chronik-period-dash { height: 2px; width: 27px; background: var(--agh-accent); border-radius: 5px; }
.agh-chronik-period-header h3 { margin: 0 !important; font: 500 clamp(23px,3vw,30px)/1.2 Georgia, "Times New Roman", serif !important; letter-spacing: -.03em; color: var(--agh-ink); }
.agh-chronik-period-count { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .025em; color: var(--agh-muted); background: #f2f4f1; border-radius: 100px; padding: 5px 12px; }
.agh-chronik-events { position: relative; }
.agh-chronik-events::before { content: ""; position: absolute; top: 17px; bottom: 13px; left: 115px; width: 2px; background: var(--agh-line); }
.agh-chronik-event { position: relative; display: grid; grid-template-columns: 100px 32px minmax(0,1fr); align-items: start; gap: 0; margin: 0 0 15px; }
.agh-chronik-year { text-align: right; padding: 21px 17px 0 0; font: 500 24px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--agh-ink-soft); }
.agh-chronik-node { position: relative; width: 11px; height: 11px; z-index: 1; border-radius: 50%; background: var(--agh-card); border: 2px solid var(--agh-accent); margin: 28px auto 0; box-shadow: 0 0 0 5px #fff; }
.agh-chronik-card { background: var(--agh-card); border: 1px solid #e2e6e2; border-radius: 14px; padding: clamp(20px, 3vw, 29px) clamp(19px, 3vw, 31px); box-shadow: 0 4px 22px rgba(23,44,46,.035); min-width: 0; transition: border-color .17s, box-shadow .17s; }
.agh-chronik-event:hover .agh-chronik-card { border-color: #c6d1ce; box-shadow: 0 7px 22px rgba(23,44,46,.06); }
.agh-chronik-featured .agh-chronik-card { border-left: 3px solid var(--agh-accent); }
.agh-chronik-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 9px; }
.agh-chronik-date { text-transform: uppercase; letter-spacing: .11em; color: var(--agh-accent); font-size: 11px; line-height: 1.6; font-weight: 750; }
.agh-chronik-important { color: var(--agh-accent); background: var(--agh-accent-pale); border-radius: 50px; font-size: 10px; line-height: 1.6; padding: 4px 8px; font-weight: 600; }
.agh-chronik-card h4 { color: var(--agh-ink); font: 600 clamp(18px, 2vw, 22px)/1.37 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; letter-spacing: -.02em; margin: 0 0 11px !important; text-wrap: pretty; }
.agh-chronik-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; }
.agh-chronik-tags span { background: #eff3f0; border-radius: 6px; color: #566e64; font-size: 11px; line-height: 1.4; padding: 4px 8px; font-weight: 600; }
.agh-chronik-image { overflow: hidden; border-radius: 9px; margin: 15px 0 18px; max-height: 420px; }
.agh-chronik-image img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }
.agh-chronik-description, .agh-chronik-excerpt { margin: 0 !important; color: #4d5e60; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.agh-chronik-description p { margin: 0 0 12px !important; font: inherit; color: inherit; }
.agh-chronik-description p:last-child { margin-bottom: 0 !important; }
.agh-chronik-description a, .agh-chronik-footer a { color: #9c563e; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.agh-chronik-description img { max-width: 100%; height: auto; border-radius: 8px; }
.agh-chronik-excerpt { margin: 0 0 7px !important; }
.agh-chronik-details { margin: 8px 0 0; }
.agh-chronik-details summary { display: inline-flex; gap: 9px; align-items: center; width: fit-content; cursor: pointer; color: var(--agh-accent); font-size: 13px; font-weight: 650; list-style: none; padding: 4px 0; }
.agh-chronik-details summary::-webkit-details-marker { display: none; }
.agh-chronik-details summary span { transition: transform .2s; }
.agh-chronik-details[open] summary span { transform: rotate(180deg); }
.agh-chronik-details .agh-chronik-description { padding: 15px 0 5px; }
.agh-chronik-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid #ebeeea; margin-top: 19px; padding-top: 14px; color: var(--agh-muted); font-size: 11px; line-height: 1.6; }
.agh-chronik-place { display: inline-flex; align-items: center; gap: 5px; }
.agh-chronik-footer a { font-weight: 650; }
.agh-chronik-no-results { text-align: center; border: 1px dashed #cbd5cf; border-radius: 16px; padding: 36px 22px; background: #fafbf9; }
.agh-chronik-no-results h3 { margin: 0 0 4px !important; font: 500 23px/1.3 Georgia, serif !important; }
.agh-chronik-no-results p { color: var(--agh-ink-soft); margin: 0 0 16px; font-size: 14px; }
.agh-chronik-no-results button { background: var(--agh-ink); color: #fff; border: 0; padding: 11px 18px; border-radius: 8px; cursor: pointer; }
.agh-chronik-more-wrap { display: flex; justify-content: center; margin-top: 15px; }
.agh-chronik-more { display: inline-flex; align-items: center; gap: 14px; justify-content: center; background: var(--agh-ink) !important; border: 1px solid var(--agh-ink) !important; border-radius: 100px !important; color: #fff !important; padding: 12px 22px !important; line-height: 1.4 !important; font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; cursor: pointer; transition: background .2s, transform .2s; }
.agh-chronik-more:hover { background: #335259 !important; transform: translateY(-1px); }
.agh-chronik-bottom { margin: 37px 0 0; color: #9ba7a2; text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: .17em; }
.agh-chronik-bottom span { font-size: 18px; color: var(--agh-accent); display: block; line-height: 2.2; }
.agh-chronik-empty-static { border-radius: 16px; padding: 24px; background: var(--agh-paper); }
@media (min-width: 1000px) {
  .agh-chronik-events { max-width: 1030px; }
  .agh-chronik-event { grid-template-columns: 105px 36px minmax(0,1fr); }
  .agh-chronik-events::before { left: 122px; }
}
@media (max-width: 700px) {
  .agh-chronik { padding: 0 0 28px; }
  .agh-chronik-intro { border-radius: 15px; padding: 28px 21px; }
  .agh-chronik-intro::after { opacity: .35; }
  .agh-chronik-intro h2 { font-size: clamp(29px, 8vw, 39px) !important; }
  .agh-chronik-lead { font-size: 13px; }
  .agh-chronik-toolbar { padding: 10px; gap: 8px; border-radius: 13px; }
  .agh-chronik-search { flex-basis: 100%; }
  .agh-chronik .agh-chronik-select-wrap { flex: 1 1 42%; min-width: 130px; }
  .agh-chronik-period-header { gap: 9px; }
  .agh-chronik-period-header h3 { font-size: 22px !important; }
  .agh-chronik-period-count { font-size: 10px; padding: 4px 8px; }
  .agh-chronik-events::before { left: 11px; }
  .agh-chronik-event { grid-template-columns: 24px minmax(0,1fr); gap: 0; }
  .agh-chronik-year { display: none; }
  .agh-chronik-node { grid-column: 1; grid-row: 1; margin: 26px 0 0 6px; }
  .agh-chronik-card { grid-column: 2; grid-row: 1; padding: 19px; border-radius: 12px; }
  .agh-chronik-card h4 { font-size: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .agh-chronik *, .agh-chronik *::before, .agh-chronik *::after { transition: none !important; scroll-behavior: auto !important; }
}
