@charset "UTF-8";

/* Page "THW allgemein" (pages/GeneralPage.php). Uses .page-title (common-1.css) and .fleet-button (fleet-2.css) */
.general { container-type: inline-size; font-family: Calibri, "Droid Sans", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #202020;
  text-align: left; hyphens: auto; -webkit-hyphens: auto; }
.general > :first-child { margin-top: 0; }
.general p { margin: 0 0 12px; }
.general-intro { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.general-intro-text { flex: 1 1 360px; text-align: justify; }
.general figure { margin: 0; text-align: center; }
.general figure img { display: block; max-width: 100%; height: auto; margin: 0 auto 8px; }
.general figcaption { font-weight: bold; color: #039; }
.general-logo { flex: 0 1 210px; margin: 0 auto; }
.general-logo img { width: 100%; }
.general-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.general-figure { box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid #039; background: #fff; }
.general-figure strong { font-size: 36px; line-height: 1.1; color: #039; }
.general-section ol, .general-section ul { margin: 0 0 12px; padding-left: 24px; }
.general-section li { margin-bottom: 6px; }
.general-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
/* Structure: pyramid of trapezoid bands (no borders, so they do not look like buttons), brackets Hauptamt / Ehrenamt on the left.
   --level (0-3) is set per band in GeneralPage::structure().
   Band width = (--base + --level * --step) % of the column, --step = (100 - --base) / 3 so that the bottom band is 100 % wide;
   every 64 px of height move each side by --step / 2 %. The top band (THW-Leitung with seat, leadership and training centres) is --apex times
   as high, so its inset (--tip) is --apex times larger and all edges have the same slope; its top is cut off flat. */
.general-structure { --base: 64; --apex: 2.5; --step: calc((100 - var(--base)) / 3); --tip: calc(100% * var(--step) / 2 * var(--apex) / var(--base));
  display: flex; flex-direction: column; gap: 4px; max-width: 560px; margin: 0 auto 16px; }
.general-structure-group { display: grid; grid-template-columns: 96px 1fr; gap: 0 12px; }
.general .general-structure-label { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 0 0 0 10px;
  border: 2px solid #53616b; border-right: 0; color: #53616b; font-size: 14px; line-height: 1.3; hyphens: manual; -webkit-hyphens: manual; }
.general-structure-label strong { color: #202020; font-size: 16px; }
.general .general-section ol.general-levels { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.general .general-levels li { --width: calc(var(--base) + var(--level) * var(--step)); display: grid;
  grid-template-columns: minmax(0, 1fr) calc(1% * var(--width)) minmax(0, 1fr); align-items: center; margin: 0; }
.general-level { --inset: calc(100% * var(--step) / 2 / var(--width)); grid-column: 2; grid-row: 1; box-sizing: border-box; display: flex; flex-direction: column;
  align-items: center; justify-content: center; height: 64px; padding: 0 calc(var(--inset) - 4px); overflow: hidden;
  background: hsl(219, 56%, calc(88% - var(--level) * 7%)); color: #039; font-weight: bold; line-height: 1.25; text-align: center;
  clip-path: polygon(var(--inset) 0, calc(100% - var(--inset)) 0, 100% 100%, 0 100%); }
.general .general-structure-group:first-child li:first-child .general-level { --inset: var(--tip); height: calc(64px * var(--apex));
  justify-content: flex-end; padding: 0 calc(var(--inset) / 3) 8px; }
.general-level-facts { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; gap: 0 6px; margin-top: 10px; font-size: 14px; line-height: 1.3; }
.general-level-facts > :nth-child(odd) { text-align: right; }
.general-level-facts > :nth-child(even) { text-align: left; }
.general-level-role { color: #202020; font-weight: normal; }
.general-level-centres { display: flex; flex-direction: column; margin-top: 8px; padding-top: 6px; border-top: 1px solid #039; font-size: 14px; line-height: 1.3; }
.general-structure-group:last-child .general-level { background: #039; color: #fff; }
@container (max-width: 600px) {
  .general-structure { --base: 76; --apex: 3.4; }
  .general-structure-group { grid-template-columns: 86px 1fr; gap: 0 8px; }
  .general-structure-group:first-child .general-levels li:first-child .general-level { font-size: 15px; }
  .general-level-facts, .general-level-centres { font-size: 13px; }
  .general-level-facts { grid-template-columns: 1fr; }
  .general .general-level-facts > * { text-align: center; }
}
.general-founding { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.general-founding > div:first-child { flex: 1 1 320px; text-align: justify; }
.general-founding-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-left: auto; }
.general-portrait { width: 170px; }
.general .general-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; counter-reset: principle; }
.general-principles li { display: flex; gap: 12px; align-items: flex-start; counter-increment: principle; }
.general-principles li::before { content: counter(principle); content: counter(principle) / ""; flex: 0 0 32px; box-sizing: border-box; height: 32px; border-radius: 50%; background: #039; color: #fff;
  font-weight: bold; line-height: 32px; text-align: center; }
