/* #~ 📝 1. GLOBALE VARIABLEN */
  :root {
    --rich-black: #01161e;
    --midnight-green: #124559;
    --air-force-blue: #598392;
    --ash-gray: #aec3b0;
    --beige: #eff6e0;
    --beige-dark: #60605c;
    --seg-w: 4ch;
    --cell-w: clamp(3rem, 9vw, 6.5rem);
    --cell-h: clamp(2rem, 4vw, 4.5rem);
    --icon-size: clamp(3rem, 4vw, 5rem);
    --font-size-h1: clamp(2rem, 6vw, 2.25rem);
    --font-size-h2: clamp(1.5rem, 4.5vw, 1.75rem);
    --font-size-h3: clamp(1.25rem, 3.5vw, 1.5rem);
    --font-size-p:clamp(1rem, 3vw, 1.25rem);
    --font-size-other: clamp(0.75rem, 3vw, 1rem);
    --font-size-pw: clamp(0.5rem, 2.5vw, 0.75rem);
  }

/* #~ 🚧 2. BASIS-STYLES & RESET */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    font-size: 12px;
    height: 100%;
    overflow: hidden;
  }
  body {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-color: var(--beige);
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  @supports (height: 100svh) {
    body {
      height: 100svh;
    }
  }
  html,
  body {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .app-main {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }
  .auth-main,
  .flow-main,
  .save-main {
    width: 100%;
    min-height: 0;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  div {
    width: 100%;
    margin:0;
    padding:0;
  }

/* #~ 🔠 3. TYPOGRAFIE */
/* #* Globale Typographie */
  h1,
  h2,
  h3 {
    display: block;
    margin: .5rem 0;
  }
  h1 {
    font-family: 'Montserrat Alternates';
    font-size: var(--font-size-h1);
    font-weight: normal;
    text-align: center;
    color:var(--midnight-green);
  }
  h2, h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: normal;
    text-align: center;
    color:var(--air-force-blue);
  }
  h2 {font-size: var(--font-size-h2);}
  h3 {font-size: var(--font-size-h3);}
  p, a {
    font-family: 'Quicksand';
    font-size: var(--font-size-p);
    font-weight: 400;
    text-align: center;
    width: 100%;
    margin: 0.5rem 0;
  }
  p {
    color: var(--rich-black);
  }
  a {
    color: var(--air-force-blue);
    text-decoration: none;
  }
  a:hover {
    color: var(--midnight-green);
  }
/* #* Typographie für Content */
  .content h2 {
    font-size: var(--font-size-h2);
  }
  .content h3 {
    font-size: var(--font-size-h3);
  }
  .content p  {
    font-size: var(--font-size-p);
  }
  .content a {
    font-size: var(--font-size-p);
  }

/* #~ 📱 4. LAYOUT KOMPONENTEN */
/* #* Inhalt (Content) */
  .content,
  .auth .content,
  .page-entry-flow .content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  .page-dashboard .content {
    justify-content: flex-start;
    margin: 0;
  }
  .page-save-success .content,
  .page-logout .content {
    justify-content: flex-start;
    margin-top: 15vh
    }
/* #* Container/Wrapper */
  .flex-container {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
/* #* Flash & Logo */
  .flash {
    font-family: 'Quicksand';
    font-size: var(--font-size-other);
    font-weight: 400;
    color: var(--midnight-green);
    text-align: center;
    width: 100%;
    padding: 0.5rem;
    border-radius: 10px;
    border: none;
    margin: 0.5rem 0;
  }
  .logo {
    display: inline-block;
    max-width: 30%;
    margin: 0;
    padding: 0;
  }
/* #* Buttons & Submit-Input */
  button,
  input[type='submit'] {
    width: 100%;
    background-color: var(--air-force-blue);
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-size-p);
    font-weight: 400;
    color: var(--beige);
    text-align: center;
    border: 0;
    border-radius: 10px;
    padding: 0.5rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: background-color .2s ease, transform 80ms ease;
  }
  button > a {
    color:var(--beige);
  }
  button:active,
  input[type='submit']:active {
    transform: translateY(1px);
  }
  button:disabled,
  input[type='submit']:disabled {
    opacity: .8;
    cursor: not-allowed;
  }
  button.is-loading,
  input[type='submit'].is-loading {
    position: relative;
    pointer-events: none;
  }
  button.is-loading .btn-label {
    visibility: hidden;
  }
  button.is-loading::after,
  input[type='submit'].is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: 0 auto;
    width: 1rem;
    height: 1rem;
    border-radius: 10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: spin .8s linear infinite;
  }

/* #~ 🧭 5. HEADER & NAVIGATION */
/* #* Wrapper */
  .header {
    position: sticky;
    top: 0;
    z-index: 10;
    height:max-content;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .topnav-container {
    display: flex;
    position: relative;
    align-items: center;
    align-content: stretch;
    justify-content: center;
    background-color: var(--ash-gray);
    margin: 0;
    padding: 0.75rem;
    width: 100%;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    flex-wrap: nowrap;
  }
/* #* Elemente */
  .header-brand,
  .header-copy,
  .header-logout {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: fit-content;
  }
  .header-copy {
    flex-direction: column;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .header-copy h1,
  .header-copy h3 {
    font-family: 'Montserrat Alternates';
    width: auto;
    margin: 0;
    text-align: center;
  }
  .header-logo {
    display: block;
    max-height: calc(var(--font-size-h1) * 2);
    width: auto;
  }
  .header-logout a {
    display: block;
    width: fit-content;
    margin: 0;
  }
  .header-logout i {
    font-size: var(--font-size-h2);
  }

/* #~ 📋 6. FORMS & INPUTS */
/* #* Form Basis-Konfigurationen */
  form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family:'Quicksand';
    font-size: var(--font-size-p);
    font-weight: 400;
    color: var(--rich-black);
    text-align: left;
    gap: 0.5rem;
    width: 75%;
    margin: 0 auto;
  }
  @media (min-width: 768px) {
    form {
      width: 40%;
    }
  }
  #entry-flow-form {
    width: 100%;
  }
/* #+ Entry-Flow-Sections */
  .flow-section {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto
  }
  .flow-section.active {
    display: flex;
  }
  #section-date.flow-section,
  #section-dose.flow-section,
  #section-side_effects.flow-section,
  #section-extra_medi_tool.flow-section,
  #section-notes.flow-section {
    width: 75%;
  }
  #section-energy.flow-section {
    width: 100%;
  }
  #section-pain.flow-section {
    justify-content: flex-start;
    width: 75%;
    max-height: 80vh;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: grab;
    scrollbar-width: none;
  }
  #section-pain.flow-section.grabbing {
    cursor: grabbing;
  }
  @media (min-width: 768px) {
    #section-dose.flow-section,
    #section-pain.flow-section,
    #section-side_effects.flow-section,
    #section-extra_medi_tool.flow-section,
    #section-notes.flow-section   {
      width: 40%;
    }
  }
/* #+ Übergeordnete Form-Elemente */
  fieldset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    width: 100%;
    margin: 0 auto;
  }
  legend {
    font-weight: 500;
    color: var(--midnight-green);
    width: 100%;
    text-align: center;
    margin: 0.75rem 0;
    padding: 0;
  }
  label {
    width: fit-content;
    margin: 0.25rem 0;
    padding: 0.25rem 0;
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: normal;
  }
  .flow-controls {
    display: flex;
    position: relative;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
  }
  .flow-controls .back,
  .flow-controls .cancel {
    text-align: left;
    padding: 0;
    margin: 0;
  }
  .flow-controls .cancel {
    text-align: right;
    padding: 0;
    margin: 0;
  }
/* #* Input */
  input{
    font-family: 'Quicksand';
    font-size: var(--font-size-p);
    color:var(--rich-black);
    text-align: left;
    font-weight: 300;
    padding: 0.25rem;
    margin: 0.25rem 0;
  }
/* #+ text- und nummernbasierte Input */
  input[type='text'],
  input[type='password'],
  input[type='email'],
  input[type='hidden'] {
    width: 100%;
    border-radius: 5px;
    border: 0.5px solid var(--ash-gray);
    background-color: #fff;
  }
  input[type='number'] {
    font-size: var(--font-size-p);
    font-weight: 300;
    width: 6ch;
  }
/* #+ Text-Felder */
  textarea {
    font-family: 'Quicksand';
    font-size: var(--font-size-p);
    font-weight: 300;
    height: 6ch;
    width: 100%;
    padding: 0.25rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    border: 1px solid var(--midnight-green);
    background-color: #fff;
  }
  textarea::placeholder {
    font-size: var(--font-size-p);
    color:var(--ash-gray);
  }
/* #+ Select */
  select {
    font-family: 'Quicksand';
    font-size: var(--font-size-p);
    color:var(--rich-black);
    text-align: left;
    font-weight: 300;
    padding: 0.25rem;
    margin: 0.25rem 0;
    width: 20ch;
    border: 0.5px solid var(--midnight-green);
    border-radius: 5px;
    background-color: #fff;
  }
  .custom-select {
    position: relative;
    width: 20ch;
    font-family: 'Quicksand';
    font-size: var(--font-size-p);
  }
  .custom-select-trigger {
    border: 0.5px solid var(--midnight-green);
    border-radius: 5px;
    background-color: #fff;
    color: var(--midnight-green);
    padding: 0.25rem;
    cursor: pointer;
    font-weight: 300;
  }
  .custom-select-trigger.placeholder {
    font-family:'Quicksand';
    font-size: var(--font-size-p);
    font-weight: 300;
    color: var(--ash-gray);
    text-align: left;
    letter-spacing: .02em;
  }
  .custom-select.open .custom-select-trigger {
    border-color: var(--midnight-green);
  }
  .custom-select.open .custom-options {
    display: block;
  }
/* #+ Optionen */
  .custom-options {
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border: 0.5px solid var(--midnight-green);
    border-radius: 5px;
    margin-top: 2px;
    z-index: 1000;
    display: none;
  }
  .custom-option {
    padding: 0.25rem;
    cursor: pointer;
    font-weight: 300;
  }
  .custom-option:hover,
  .custom-option.selected {
    background-color: var(--midnight-green);
    color: var(--beige);
  }
/* #+ Radio-Buttons & Check-Boxen */
  input[type=radio] {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color:var(--beige);
    border: 1px solid var(--midnight-green);
    accent-color: var(--midnight-green);
    cursor: pointer;
    padding: 0.25rem;
    margin: 0.25rem;
    position: relative;
  }
  input[type=checkbox] {
    width: 1rem;
    height: 1rem;
    background-color:var(--beige);
    border: 1px solid var(--midnight-green);
    accent-color: var(--midnight-green);
    cursor: pointer;
    padding: 0.25rem;
    margin: 0.25rem;
    position: relative;
  }
  input[type=radio]:checked,
  input[type=checkbox]:checked {
    background-color: var(--air-force-blue);
    border-color: var(--midnight-green);
  }

/* #~ 🎚️ 7. FORM GRAFIKOBJEKTE */
/* #* Dosierung */
  .dose-wrapper {
    display: flex;
    position: relative;
    flex-direction: row;
    width: max-content;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 2rem;
    gap: 1.25rem;
    flex-wrap: nowrap;
  }
  .dose-container {
    display: flex;
    position: relative;
    flex-direction: column;
    width: max-content;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0;
    flex-wrap: nowrap;
  }
/* #* Pain */
/* #+ Tooltip */
  .tooltip {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: max-content;
    background: #fff;
    padding: 0;
    font-family: 'Quicksand';
    font-size: var(--font-size-p);
    font-weight: 400;
    color: var(--rich-black);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
  }
  .info-wrap.is-open .tooltip {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
  }
  .tooltip-close {
    background: none;
    position: relative;
    width: fit-content;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-h2);
    color: var(--air-force-blue);
    padding: 0.25rem;
    line-height: 1;
  }
  .tooltip-close:hover {
    background: none;
    color: var(--midnight-green);
  }
/* #+ Info Button */
  .info-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: 'Quicksand';
    font-size: var(--font-size-p);
    font-weight: 400;
    color: var(--rich-black);
    margin: 0;
    padding: 0;
  }
  .info-btn {
    background: none;
    width: fit-content;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-h2);
    color: var(--air-force-blue);
    padding: 0.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .info-btn:hover {
    color: var(--midnight-green);
    background-color: inherit !important;
  }
/* #+ Vollbild-Tooltip für Mobile */
  .tooltip.fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
  }
  .tooltip.fullscreen img {
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    object-fit: contain;
  }
  .tooltip img {
    width: 100%;
    height: auto;
  }
/* #+ Pain-Wrapper */
  #pain.container-pan {
    display: flex;
    position: relative;
    width:100%;
    height: auto;
    justify-content: center;
    overflow: hidden;
  }
/* #+ Schmerz-Skala (links Skala 1-10, rechts Bezeichnung) */
  #painTrack.scale {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(11, auto);
    grid-template-columns: repeat(2, max-content);
    gap: clamp(.1rem, 1vw, .25rem);
    padding:0;
    height: auto;
    width: fit-content;
    margin: 0;
  }
  .segments {
    width: fit-content;
    height: fit-content;
    align-self: center;
    justify-self: center;
  }
  .segments .seg {
    width: var(--seg-w);
    height: var(--seg-w);
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-content: center;
    line-height: 1;
    box-sizing: border-box;
    transform-origin: center center;
    transition: transform 0.2s ease, margin 0.2s ease;
  }
  .segments .seg span {
    display: block;
    align-self: center;
    width: max-content;
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-size-h3);
    font-weight: 500;
  }
  .segments .seg.active {
    transform: scale(1.25);
    margin: 0.25rem 0;
  }
  .segments .seg.active span {
    font-weight: 700;
    font-size: var(--font-size-h2);
  }
  .seg-labels {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.25rem;
    margin: 0 auto 0;
    line-height: 1;
    box-sizing: border-box;
  }
  .seg-labels span {
    display: block;
    width:max-content;
    font-size: var(--font-size-p);
    text-align: center;
  }

/* #* Energy & Mood Matrix */
/* #+ Matrix-Wrapper */
  #energy_n_mood.container-pan {
    width: 95vw;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
  }
  #energy_n_mood.container-pan.grabbing {
    cursor: grabbing;
  }
  #energy_n_moodSegments.matrix {
    --cell-w: clamp(3rem, 9vw, 6.5rem);
    --cell-h: clamp(1rem, 4vw, 1.5rem);
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(10, var(--cell-h));
    grid-auto-columns: var(--cell-w);
    gap: clamp(.1rem, 1vw, .25rem);
    padding:0;
    height: auto;
    margin: 0;
  }
/* #+ Matrix-Elemente */
  .matrix-seg {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: var(--cell-w);
    height: var(--cell-h);
    border-radius: .25rem;
    border: 0.25px solid var(--rich-black);
    margin:0;
    line-height: 2;
    user-select: none;
    box-sizing: content-box;
    transform-origin: center center;
    transition: transform 0.2s ease;
  }
  .matrix-seg > span {
    display: block;
    align-self: center;
    font-size: var(--font-size-other);
    color: var(--beige);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
  }
  .matrix-seg.active {
    transform: scale(1.25);
    z-index: 2;
  }
  .matrix-seg.active span {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: var(--font-size-p);
  }


/* #* Side-Effects */
  .side-effects-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    width: auto;
    min-width: 0;
  }
  .side-effect-item {
    display: contents;
  }
  .side-effect {
      grid-column: 1;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0.25rem;
    }
  .choices {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    gap: 0.5rem;
    padding: 0.25rem;
  }
  .choices > span {
    font-size: var(--font-size-other);
    text-align: left;
    align-items: center;
    justify-content: flex-start;
  }
  .comment {
      grid-column: 1 / -1;
      width: 100%;
      min-width: 0;
      align-items: center;
      justify-content: flex-start;
      padding: 0.25rem;
    }

/* #~ 📊 8. DASHBOARD */
/* #* Wrapper */
  #dashboard.container-pan {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
  }
  iframe.dashboard {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
  }
  #react-entry-point {
    height: 100%;
  }
  #my_ldn_tracker.dashboard {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    width: 100%;
    min-height: 0;
  }

/* #* Mode-Bar */
  .dash-filter-bar {
    display: flex;
    align-items: center;
    align-content: stretch;
    flex-direction: row;
    gap: 0.5rem;
    height: fit-content;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
  }
  .dash-filter-bar .dash-filter-btn {
    background-color: var(--beige);
    color: var(--air-force-blue);
    font-size: var(--font-size-p);
    border: none;
    border-radius: 0;
    display: block;
    padding: 0.25rem;
    width: 33%;
    margin: auto;
    cursor: pointer;
  }
  .dash-filter-bar .dash-filter-btn.is-active {
    color: var(--beige);
    background-color: var(--air-force-blue);
  }

/* #* Graph */
  #my_ldn_tracker-graph-wrapper.graph-wrapper {
  position: relative;
  height: 50%;
  width: 100%;
  overflow: hidden;
  }
  #my_ldn_tracker-graph.graph {
    height: auto;
    width: 100%;
  }

/* #* Legende */
  #my_ldn_tracker-legend.legend {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: fit-content;
    width: 100%;
    background-color: var(--beige);
    padding: 1rem;
  }
/* #+ Legende Tag/Zeitspanne */
  .legend-period {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    padding: 0 0 1rem;
  }
  .legend-period-item {
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-size-p);
    font-weight: 500;
    text-align: left;
    padding: 0;
    margin: 0;
  }
/* #+ Legenden-Liste Wrapper */
  .legend-list {
    flex: 1 1 auto;
    width: 100%;
    max-height: 40vh;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: grab;
    scrollbar-width: none;
    color: var(--rich-black);
    padding: 0;
  }
  .legend-list.grabbing {
    cursor: grabbing;
  }
  .legend-list--mobile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.1rem;
  }
  .legend-list--desktop {
    display: none;
  }
/* #+ Legenden Item (3 Spalten - icon, Bezeichnung, Wert */
  .legend-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    height: auto;
    width: 100%;
    column-gap: 0.1rem;
    padding: 0.25rem 0;
  }
  .legend-icon {
    height: 3ch;
    width: 3ch;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.25rem 0;
    margin: 0;
    box-sizing: border-box;
  }
  .legend-icon i {
    font-size: var(--font-size-p);
    line-height: 1.5;
    width: auto;
  }
  .legend-name {
    display: flex;
    flex: 0 0 32%;
    flex-wrap: nowrap;
    width: 32%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.25rem;
    margin: 0;
    line-height: 1.5;
    box-sizing: border-box;
  }
  .legend-name span {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: var(--font-size-p);
    text-align: left;
    white-space: pre;
  }
  .legend-value {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0.25rem;
    margin: 0;
    line-height: 1.5;
    box-sizing: border-box;
  }
  .legend-value span {
    display: block;
    font-family:'Quicksand';
    font-size: var(--font-size-p);
    text-align: left;
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .legend-value strong {
    font-weight: 500;
    color: var(--midnight-green);
  }
/* #* Desktop-Legende */
  @media (min-width: 768px) {
    .legend-list--mobile {
      display: none;
    }
    .legend-list--desktop {
      display: block;
    }
/* #+ Wrapper für Legenden-Liste (3 Spalten) */
  .legend-columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .legend-column,
  .legend-column-fm {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
  }
  .legend-col-1 {
    flex: 0 0 30%;
    width: 30%;
    min-width: 0;
  }
  .legend-col-2 {
    flex: 0 0 35%;
    width: 35%;
    min-width: 0;
  }
  .legend-col-3 {
    flex: 0 0 35%;
    width: 35%;
    min-width: 0;
  }
  .legend-col-fm-1 {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
  }
  .legend-col-fm-2 {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
  }
/* #+ Legenden-Item */
  .legend-list--desktop .legend-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon name"
      "value value";
    align-items: start;
    width: 100%;
    margin: 0;
    column-gap: 0.35rem;
    row-gap: 0.1rem;
  }
  .legend-list--desktop .legend-icon {
    grid-area: icon;
  }
  .legend-list--desktop .legend-name {
    grid-area: name;
  }
  .legend-list--desktop .legend-value {
    grid-area: value;
    padding-left: 4ch;
  }
}

/* #~ 👣 9. FOOTER */
/* #* Wrapper */
  .footer {
    width: 100%;
    background-color: var(--ash-gray);
    flex: 0 0 auto;
  }
  .footer footer {
    width: 100%;
    height: max-content;
    background-color: var(--ash-gray);
    padding: 0.5rem;
    padding-bottom: calc(clamp(0.5rem, 2vw, 1.5rem) + env(safe-area-inset-bottom));
  }
  .footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.25rem, 1vw, 0.75rem);
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
  }
/* #* Elemente */
  .footer-nav__item {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  .footer-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: fit-content;
    margin: 0;
    color: var(--air-force-blue);
  }
  .footer-nav__link i {
    font-size: var(--font-size-h2);
    color: inherit;
  }
  .footer-nav__link span {
    width: auto;
    margin: 0;
    font-family: 'Quicksand';
    font-size: var(--font-size-other);
    color: var(--rich-black);
    line-height: 1.1;
  }
  .footer-nav__link.is-active i {
    color: var(--midnight-green);
  }


/* #~ 🛠️ 10. HILFSKLASSEN */
/* #* Utility */
  .visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1%;
    height: 1%;
  }
  .is-hidden {
    display: none;
  }
/* #* Mobile Anpassungen */
  @media screen and (max-width: 580px) and (hover: hover) and (pointer: fine) {
    a:hover {
      color: var(--midnight-green);
    }
    button:hover,
    input[type='submit']:hover {
      background-color: var(--midnight-green);
      color: var(--ash-gray);
    }
  }
/* #* Animationen */
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes rotateY360 {
    from {
      transform: rotateY(0deg);
    }
    to {
      transform: rotateY(360deg);
    }
  }
  .rotate-animation {
    animation-name: rotateY360;
    animation-duration: 1.5s;
    animation-iteration-count: 1;
  }
