@charset "UTF-8";

/* History page: Ortsbeauftragte timeline */
.history-obs { container-type: inline-size; font-family: Calibri, "Droid Sans", Arial, sans-serif; color: #202020; text-align: left; }
.history-obs-line { list-style: none; margin: 0; padding: 0; }
.history-ob { position: relative; padding: 12px 0 0 40px;
  background: linear-gradient(#039, #039) no-repeat 8px 35px / 32px 2px; }
.history-ob::before { /* line segment, drawn per entry so it starts and ends at a dot */
  content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; background: #039; }
.history-ob:first-child::before { top: 36px; }
.history-ob:last-child::before { bottom: auto; height: 36px; }
.history-ob::after { /* dot */
  content: ""; position: absolute; top: 28px; left: 0; box-sizing: border-box; width: 16px; height: 16px; border-radius: 50%; background: #039; }
.history-ob.is-current::after { background: #ffe600; border: 3px solid #039; }
.history-ob-card { box-sizing: border-box; min-width: 0; background: #fff; border: 2px solid #039; padding: 10px 12px; }
.history-ob.is-current .history-ob-card { border-top-width: 5px; }
.history-ob-period { display: block; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: 1px; color: #53616b; overflow-wrap: anywhere; }
.history-ob-name { font-size: 16px; line-height: 1.3; font-weight: bold; margin-top: 3px; overflow-wrap: anywhere; }
.history-ob-bar, .history-ob-term { display: none; }

@container (min-width: 560px) {
  .history-ob { display: grid; grid-template-columns: 120px 34px 1fr; padding-left: 0;
    background-position: 137px 35px; background-size: 17px 2px; }
  .history-ob::before { left: 136px; }
  .history-ob::after { left: 129px; }
  .history-ob-card { display: contents; }
  .history-ob-period { grid-column: 1; margin-top: 12px; padding-right: 12px; text-align: right; font-size: 16px; line-height: 24px;
    font-weight: bold; text-transform: none; letter-spacing: 0; color: #039; }
  .history-ob-box { grid-column: 3; box-sizing: border-box; min-width: 0; display: flex; align-items: flex-start; gap: 16px;
    background: #fff; border: 2px solid #039; padding: 12px 16px; }
  .history-ob.is-current .history-ob-box { border-top-width: 5px; padding-top: 9px; }
  .history-ob-main { flex: 1 1 auto; min-width: 0; }
  .history-ob-name { margin-top: 0; }
  .history-ob-bar { display: block; width: var(--bar); min-width: 6px; height: 6px; margin-top: 8px; background: #039; }
  .history-ob-term { display: block; flex: none; font-size: 12px; line-height: 1.3; color: #53616b; margin-top: 4px; text-align: right; }
}

/* History page: timeline of the chronicle, values taken from the .org-* rules of the leadership chart */
.history { container-type: inline-size; font-family: Calibri, "Droid Sans", Arial, sans-serif; font-size: 16px; line-height: 1.5;
  color: #202020; text-align: left; overflow-wrap: anywhere; }
.history-line { list-style: none; margin: 0; padding: 0; }
.history-line > li { position: relative; }
.history-line > li::before { /* line segment, drawn per entry so it can stop at the last dot */
  content: ""; position: absolute; top: 0; bottom: 0; left: 14px; width: 2px; background: #039; }
.history-line > li:last-child::before { bottom: auto; height: 48px; }
.history-label { padding-top: 22px; }
.history-label:first-child { padding-top: 0; }
.history-label span { display: inline-block; position: relative; background: #039; color: #fff;
  font-weight: bold; font-size: 20px; line-height: 1.2; padding: 6px 18px; }
.history-item { margin-left: 16px; padding: 12px 0 0 24px;
  background: linear-gradient(#039, #039) no-repeat 0 47px / 9px 2px; }
.history-line > .history-item::before { left: -2px; }
.history-item::after { /* dot */
  content: ""; position: absolute; top: 40px; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: #039; }
.history-card { position: relative; box-sizing: border-box; display: flow-root; background: #fff; border: 2px solid #039; padding: 12px 14px; }
.history-card::before, .history-card::after { content: ""; position: absolute; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.history-card::before { left: -15px; top: 21px; width: 15px; height: 30px; background: #039; }
.history-card::after { left: -12px; top: 22px; width: 14px; height: 28px; background: #fff; }
.history-card p { margin: 0 0 12px; }
.history-card p:last-child { margin-bottom: 0; }
.history time { font-weight: bold; color: #039; white-space: nowrap; }
.history-card figure { float: right; width: 210px; margin: 0 0 8px 16px; }
.history-card img { display: block; max-width: 100%; height: auto; }
.history-card figcaption { margin-top: 8px; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: 1px; color: #53616b; }

@container (max-width: 420px) {
  .history-card { padding: 10px 12px; }
  .history-card figure { float: none; width: auto; margin: 0 0 12px; }
  .history-card img { width: 100%; }
}
