/* =========================================================
   MHN Mitgliederverzeichnis - Gemeinsames Stylesheet
   ========================================================= */

:root {
  color-scheme: light;
  --bg:          #f5f8fd;
  --panel:       #ffffff;
  --panel-soft:  #f7fafc;
  --text:        #101828;
  --muted:       #475569;
  --accent:      #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --border:      #e2e8f0;
  --shadow:      0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-panel: 1.5rem;
  --radius-card: 0.75rem;
  --radius-btn:  0.95rem;
  --sidebar-w:   260px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;

  &:hover,
  &:focus-visible {
    text-decoration: underline;
  }
}

img { display: block; max-width: 100%; }

small { white-space: nowrap; }


/* ── Utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Formulare ────────────────────────────────────────── */
input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.input-group {
  display: block;
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;

  &::placeholder, ::placeholder { color: var(--muted); }

  &:focus-visible, &:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

textarea {
  resize: vertical;
  min-height: 6rem;
}

button, .button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;

  &:hover { background: var(--accent-dark); }
  &:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 2px;
  }
}

button.secondary, .button.secondary {
  background: var(--accent-soft);
  color: var(--accent);

  &:hover { background: #c7d9ff; }
}

button.ghost, .button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border);

  &:hover { background: var(--accent-soft); }
}

button.danger, .button.danger {
  background: #dc2626;
  color: #fff;

  &:hover { background: #b91c1c; }
}

label, .label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);

  &:has(input[type="checkbox"], input[type="radio"]) {
    font-size: inherit;
    font-weight: normal;
    margin-left: 1.6rem;
    text-indent: -1.6rem;
  }

  & & {
    display: inline;
  }
}

fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  margin: 0;

  legend {
    font-weight: 600;
    padding: 0 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;

  &:has(.form-group) {
    gap: 0rem 1rem;
  }
}

.form-group {
  display: grid;
  gap: 0.35rem;
  margin-block: 0.5rem;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-btn);
    padding: 0 !important;

    &:has(input[type="file"]) {
        grid-template-columns: auto 1fr;
        label {
            padding: 0;
            margin: 0;
        }
    }

    input, select {
        border: none !important;
        box-shadow: none !important;
        padding: 0.6rem 0.85rem;
    }
}

::file-selector-button {
    display: none;
}

.form-actions {
  .panel + & {
    margin-top: 1.5rem;
  }
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.uncover-toggle {
  flex-shrink: 0;
  inset: 0;
  display: grid;

  input { display: none; width: auto; }

  input:checked + label i:nth-child(2) { display: none; }
  input:not(:checked) + label i:first-child { display: none; }

  label {
    display: grid;
    align-items: center;
    inset: 0;
    cursor: pointer;
    margin: 0;
    color: var(--muted);
    font-weight: normal;
    font-size: 1rem;
    padding: 0.8rem;
    border-radius: var(--radius-btn);
    transition: color 0.12s, background 0.15s;

    &:hover { color: var(--accent); background: var(--accent-soft); }
  }

  input:checked + label { color: var(--accent); }
}

/* ── Dialog ───────────────────────────────────────────────── */
dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  background: var(--panel);

  &:not(:first-child) {
    max-width: min(600px, 90vw);
    width: 100%;
  }

  &::backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
  }

  .dialog-title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
  }

  .dialog-subtitle {
    margin: 0 0 1.75rem;
    color: var(--muted);
    font-size: 0.95rem;
  }

  .form-actions {
    flex-direction: column;
    button { width: 100%; justify-content: center; }
  }

  .dialog-close {
    position: absolute;
    top: 1.25rem;
    right: 0.75rem;
    width: 32px; height: 32px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;

    &:hover { color: var(--accent); }
  }
}

body:has(dialog:first-child) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;

  main {
    flex: 1;
    display: flex;
    align-items: start;
    justify-content: center;
    width: min(420px, 100%);
  }
}

dialog:first-child {
  position: relative;
  width: 100%;
  padding: 2.5rem 2rem;
  margin-top: 0;

  h1 {
    line-height: 1.2;
    margin-block: 0.2rem;
  }
}

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--accent-dark);
  color: #fff;
  border-radius: var(--radius-btn);
  transform: translateX(-120%);
  transition: transform 0.2s ease;
  z-index: 1000;

  &:focus-visible {
    transform: translateX(0);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  display: grid;
  grid-template-areas: "brand search-bar nav-toggle";
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  container-type: inline-size;
}

.brand        { grid-area: brand; }
.topbar-search-form  { grid-area: search-bar; max-width: 400px; justify-self: end; width: 100%; }
.nav-toggle   { grid-area: nav-toggle; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  font-weight: normal;
  margin-block: 0;
  padding-block: 0.7rem;

  &:hover { text-decoration: none; }

  img {
    width: 42px; height: 42px;
    border-radius: 0;
    background: transparent;
  }
}


.brand-text {
  display: grid;
  line-height: 1.1;

  .name    { font-weight: 700; }
  .caption { color: var(--muted); font-size: 0.92rem; }
}

/* ── Topbar Search ────────────────────────────────────────── */
.topbar-search-form {
  display: inline-flex;
  order: 0;
  align-items: center;
  flex: 1 1 300px;
  min-width: 0;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.15s;

  &:focus-within { border-color: var(--accent); }

  input.search-input {
    flex: 1; min-width: 0;
    border: none; background: transparent;
    font: inherit; color: var(--text); outline: none;

    &::placeholder { color: var(--muted); }

    &:focus-visible { box-shadow: none; }
  }

  .search-button {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: transparent !important; border: none;
    color: var(--accent-dark);
    cursor: pointer; flex-shrink: 0; padding: 0;

    .ti { font-size: 18px; }
  }
}

@media (min-width: 960px) {
  .topbar {
    grid-template-areas: "brand search-bar";
    grid-template-columns: auto 1fr;
  }
  .nav-toggle { display: none; }
  .topbar-search-form { max-width: 400px; }
}

@media (max-width: 640px) {
  .topbar:has(.topbar-search-form) {
    grid-template-areas:
      "brand nav-toggle"
      "search-bar search-bar";
    grid-template-columns: 1fr auto;
  }
  .brand { padding: 0 }
  .topbar-search-form {
    max-width: none;
    justify-self: stretch;
    padding: 0 0.4rem 0 0;
  }
}

/* ── Hamburger toggle ─────────────────────────────────────── */
#nav-toggle { display: none; }

.nav-toggle {
  display: inline-flex;
  order: 1;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  flex-shrink: 0;
  background: var(--panel);
  border-radius: var(--radius-btn);
  color: var(--text); cursor: pointer;
}

.hamburger {
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--text);
  position: relative;

  &::before,
  &::after {
    content: '';
    position: absolute;
    width: 100%; height: 2px;
    background: var(--text);
    left: 0;
  }

  &::before { top: -7px; }
  &::after  { top:  7px; }
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  max-width: 80vw;
  padding: 1.25rem 1rem;
  background: var(--panel);
  border-right: 1px solid var(--border);
  transform: translateX(-110%);
  transition: transform 0.25s ease;
  z-index: 20;
  box-shadow: 24px 0 64px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;

  nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow-y: auto;
    flex: 1;

    a {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.5rem 0.95rem;
      border-radius: var(--radius-btn);
      color: var(--text);
      transition: background 0.12s, color 0.12s;

      &:hover,
      &:focus-visible {
        background: var(--accent-soft);
        text-decoration: none;
      }

      &.active {
        background: var(--accent);
        color: #fff;
        font-weight: 600;

        .nav-icon { color: #fff; }
      }
    }
  }

  .sidebar-section-label {
    margin: 1.25rem 0 0.25rem;
    padding: 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);

    &:first-child { margin-top: 0; }
  }

  .sidebar-bottom {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
}

.nav-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 1rem; height: 1rem;
  color: var(--accent);
  flex-shrink: 0;

  .ti { font-size: 1rem; }
}

/* ── Overlay ──────────────────────────────────────────────── */
.overlay { display: none; }

#nav-toggle:checked ~ .sidebar { transform: translateX(0); }

#nav-toggle:checked ~ .overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  z-index: 10;
}

/* ── Main content ─────────────────────────────────────────── */
.main-content {
  padding: 1.5rem 1.25rem 2rem;
  max-width: 1200px;
  margin-inline: auto;
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  container-type: inline-size;

  .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--muted);
    font-size: 0.96rem;

    strong { color: var(--text); }
  }

  /* ── With image: two-column layout ───────────────────────── */
  &:has(.page-header-image) {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0;
    padding: 0;

    .page-header-image {
      aspect-ratio: 1 / 1;
      min-width: 180px;
      max-width: 220px;
      align-self: stretch;
      overflow: hidden;
      background: var(--accent-soft);

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .summary {
      padding: 1.75rem;
    }
  }
}

dialog, .page-header {
  .page-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
  }

  h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
  }

  .page-subtitle {
    margin-top: 0;
    color: var(--muted);
  }
}

/* ── Mobile: stacked, image full-width, text overlaps ────── */
@media (max-width: 500px) {
  .page-header:has(.page-header-image) {
    grid-template-columns: 1fr;

    .page-header-image {
      max-width: 100%;
      align-self: start;
      aspect-ratio: 1 / 1;
      position: relative;

      &::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
          to bottom,
          transparent 20%,
          var(--panel) 100%
        );
      }
    }

    .summary {
      margin-top: -8rem;
      position: relative;
      z-index: 1;
      padding: 0 1.75rem 1.75rem;
    }
  }
}

/* ── Button / Action link ─────────────────────────────────── */
.action-links {
  display: flex;
  gap: 0.75rem;

  a, button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--accent-soft);
    border-radius: var(--radius-btn);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    transition: background 0.15s;

    &:hover,
    &:focus-visible {
        background: #c7d9ff;
        text-decoration: none;
    }
  }
}

/* ── Panels / Cards ───────────────────────────────────────── */
.panel {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);

  & + & { margin-top: 1.5rem; }

  h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  h3 {
    font-size: 1rem;
  }

  p, li, dd { color: var(--muted); }
}

.cards-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;

  h2 { margin: 0; font-size: 1.15rem; }
}

.cards-header-info {
  font-size: 0.88rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.75rem;
  gap: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  box-shadow: var(--shadow);
  overflow: hidden;

  &:hover,
  &:focus-visible {
    box-shadow: var(--shadow);
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
  }

  &:has(.card-image) {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0;

    .card-image {
      aspect-ratio: 1 / 1;
      width: 80px;
      align-self: stretch;
      overflow: hidden;
      background: var(--accent-soft);

      img { width: 100%; height: 100%; object-fit: cover; }

      .card-image-placeholder {
        width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center;
        color: var(--accent);
        font-size: 1.1rem;
        font-weight: 700;
      }
    }
  }
}

.card-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.5rem;
  padding-block: 1rem;
}


.card-caption {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
  min-height: 1.5em;

  .ti { font-size: 0.9rem; color: var(--accent); }
}

/* ── Definition grid ──────────────────────────────────────── */
dl {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;

  dt {
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
  }

  dd { margin: 0; }
}

@media (min-width: 760px) {
  dl {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Feature list ─────────────────────────────────────────── */
.feature-list {
  display: grid;
  gap: 0.2rem;
  padding-left: 1.2rem;
  margin-block: 0.5rem;

  li {
    margin: 0;

    &::marker { color: var(--accent); }
  }
}

.small-note { margin: 0; color: var(--muted); }

.meta-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ── Icons ────────────────── */
.label-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 1.2em; height: 1.2em;
  margin-right: 0.35em;
  color: var(--accent);
  vertical-align: middle;

  font-size: 1em;
}

.protected-value-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 1.2em; height: 1.2em;
  vertical-align: middle;

  font-size: 1em;

  &.ti-eye-off { color: red !important; }
  &.ti-eye { color: #00ff00 !important; }

  dd & {
    margin-left: 0.35em;
  }
}

/* ── Prose (Datenschutz etc.) ─────────────────────────────── */
.prose {
  max-width: 72ch;

  h2 {
    font-size: 1.2rem;
    margin: 2rem 0 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  h3 {
    font-size: 1rem;
    margin: 1.5rem 0 0.4rem;
  }

  p, li {
    color: var(--muted);
    margin-bottom: 0.75rem;
  }

  ul, ol { padding-left: 1.4rem; }

  ul li::marker,
  ol li::marker { color: var(--accent); }

  a { font-weight: 500; }

  strong { color: var(--text); }
}

/* ── Info box ─────────────────────────────────────────────── */
.info-box {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  margin: 1.5rem 0;

  .ti { font-size: 1.25rem; color: var(--accent); flex-shrink: 0; margin-top: 0.1rem; }
  p   { margin: 0; color: var(--accent-dark); font-size: 0.93rem; }
}

.info-box--warning {
  background: #fef9c3;
  border-color: #ca8a04;

  .ti { color: #ca8a04; }
  p   { color: #713f12; }
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;

  button { background: transparent; color: inherit; padding: 0.25rem 0.5rem; }

  &.alert--danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
  }

  &.alert--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
  }
}

/* ── Table ────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;

  th {
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 0.6rem 1rem;
    border-bottom: 2px solid var(--border);
  }

  td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);

    &:first-child { color: var(--text); font-weight: 500; }
  }

  tr {
    transition: background 0.1s;

    &:last-child td { border-bottom: none; }
    &:hover td { background: var(--accent-soft); }
    &.active td { color: var(--accent); font-weight: 600; }
    &.active td:first-child { color: var(--accent); }
  }
}

table.clickable td { cursor: pointer; }

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 960px) {
  .nav-toggle { display: none; }

  body { margin-left: var(--sidebar-w); }

  .sidebar {
    transform: translateX(0);
    position: fixed;
    height: 100dvh;
    top: 0; left: 0; right: auto;
    width: var(--sidebar-w);
    max-width: none;
    box-shadow: none;
    border-left: none;
    border-right: 1px solid var(--border);
  }

  .overlay { display: none !important; }

  .main-content {
    padding: 2rem 2rem 2.5rem;
  }
}

@media (max-width: 959px) {
  .sidebar { width: min(280px, 80vw); }
}

/* ── Ladeanimation ───────────────────────────────────────── */

.loader {
    display: grid;
}

.loader:not(.hidden) {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    @media (min-width: 960px) {
        left: calc(50% + var(--sidebar-w) / 2);
    }
}

.loader::before {
    place-self: center;
    content: "";
    width: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid #514b82;
    animation:
        l20-1 1s infinite linear alternate,
        l20-2 2s infinite linear;
}
/* https://css-loaders.com/spinner/ */
@keyframes l20-1 {
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2 {
    0%    {transform:scaleY(1)  rotate(0deg)}
    49.99%{transform:scaleY(1)  rotate(135deg)}
    50%   {transform:scaleY(-1) rotate(0deg)}
    100%  {transform:scaleY(-1) rotate(-135deg)}
}