
@font-face {
    font-family: "Basis-Grotesque-Black";
    src: url("./fonts/Basis-Grotesque-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: "Basis-Grotesque-Medium";
    src: url("./fonts/basis-grotesque-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Basis-Grotesque-Light";
    src: url("./fonts/basis-grotesque-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "MixtaPro-Regular";
    src: url("./fonts/MixtaPro-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Basis-Grotesque-Medium", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "MixtaPro-Regular", serif;
}


@font-face {
    font-family: "WeltAtPi";
    src: url("/fonts/weltatpi.ttf") format("truetype");
    /* lokaler Pfad */
    font-weight: normal;
    font-style: normal;
}

#atlas-register-container {
    margin-top: 20px;
}

@media (max-width: 767px) {
    #atlas-register-container {
        margin-top: 0px;
    }
}

.register-layout {
    display: flex;
    column-gap: 2rem;
    align-items: flex-start;
}

.register-sidebar {
    width: 25vw;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
}

.register-content {
    flex: 1;
    width: 100%;
}

.register-search {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
}

#searchInput {
    font-family: "Basis-Grotesque-Light", sans-serif; /* added for searchInput */
    padding: 15px 30px 15px 30px;
    width: 100%;
    flex: 1;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 99px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    transition: all 0.3s ease;
}

#searchInput:focus::placeholder {
    color: #bbbbbb;
    /* Farbe fÃ¼r den Platzhaltertext */
    opacity: 1;
    /* Volle Sichtbarkeit */
}

#searchInput:focus {
    border: 1px solid #0081a2; // Entspricht $sw-color-info
}

#clearSearch {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 30px;
    color: #707070;
    user-select: none;
    display: none;
    pointer-events: all;
}

#clearSearch.visible {
    display: inline;
}

#clearSearch:hover {
    color: #000;
}

.register-filter {
    text-align: center;
    margin-bottom: 20px;
}

.pikt-filters-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    position: relative;
}

.reset-pikt-btn {
    width: 100%;
    max-width: 200px;
    min-height: 2rem;
    padding: 0.25rem 1rem;
    line-height: normal;
    margin-bottom: 10px;
    font-weight: 400;
    font-family: Basis-Grotesque-Medium, sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 99px;
    color: #6e6e6e;
    background-color: #f4f2f2;
    border: 1px solid #e3e3e3;
    box-shadow: inset 0px 0px 0px 0px black;
    transition: all 0.3s ease;
}

.reset-pikt-btn:enabled {
    background-color: #e4f3f4;
    border: 1px solid #707070;
    color: black;
    cursor: pointer;
}

.reset-pikt-btn:enabled:hover {
    box-shadow: inset 0px 0px 0px 1px black;
    border: 1px solid black;
}

.pikt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

.pikt-filter {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    width: max-content;
    max-width: 100%; /* Verhindert das Herausragen aus der Sidebar */
    min-width: 0;    /* Erlaubt dem Flex-Item zu schrumpfen */
    padding: 0.25rem 1rem;
    line-height: normal;
    margin: 2px;
    border: 1px solid #e3e3e3;
    border-radius: 100px;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    box-shadow: inset 0px 0px 0px 0px black;
    transition: all 0.3s ease;

    > span {
        display: block;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.pikt-filter:hover {
    border: 1px solid black;
    box-shadow: inset 0px 0px 0px 1px black;
}

.pikt-filter input[type="checkbox"] {
    display: none;
}

.pikt-filter.active {
    background-color: #e6f0ff;
    border-color: #007bff;
}

.pikt-filter.active:hover {
    box-shadow: inset 0px 0px 0px 1px #007bff;
}

.pikt-filter .pikt {
    font-family: "WeltAtPi", monospace;
    font-size: 0.875rem;
}

.page-block {
    display: grid;
    gap: 30px 10px;
    margin-bottom: 20px;
    grid-template-columns: repeat(2, 1fr);
}

.column {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 8px;
    box-sizing: border-box;
    border-left: 1px solid #00000010;
}

.letter-group {
    margin-bottom: 40px;
}

/* WICHTIG: keine absolute Positionierung mehr */
.virtual-spacer {
    width: 100%;
}

.virtual-pad {
    width: 100%;
    height: 0px;
    /* wird per JS gesetzt */
}

.virtual-list-host {
    width: 100%;
}

.virtual-row {
    width: 100%;
    box-sizing: border-box;
}

/* EintrÃ¤ge dÃ¼rfen jetzt natÃ¼rlich umbrechen (keine line-clamp) */
.entry {
    contain: strict;
    box-sizing: border-box;
    /* Wichtig! */
    height: 1.25rem;
    /* JS: ROW_HEIGHT_ENTRY_ESTIMATE */
    line-height: 1.25rem;
    /* Vertikal zentrieren */
    font-size: 0.875rem;
    margin: 0;
    padding: 0;

    /* ErmÃ¶glicht horizontales Scrollen bei zu langem Text */
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    /* Verhindert vertikale Scrollbars */
    text-overflow: clip;
    /* Kein Abschneiden mit "..." */

    /* Scrollbars ausblenden */
    -ms-overflow-style: none;
    /* IE und Edge */
    scrollbar-width: none;
    /* Firefox */
}

.entry::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari und Opera */
}

.entry-span {
    padding-inline: 5px;
}

.entry-staat {
    font-family: "Basis-Grotesque-Black", sans-serif;
    font-weight: 600;
    /* Semi Bold */
    letter-spacing: 0;
}

.entry-pikt {
    font-family: "WeltAtPi", monospace;
    font-size: 12px;
}

.pikt {
    font-family: "WeltAtPi", monospace;
    font-size: 12px;
}

.letter-heading {
    font-family: "Basis-Grotesque-Black"; /* added for letter-heading */
    font-weight: 900;
    contain: strict;
    box-sizing: border-box;
    margin: 0;
    /* KEIN Margin, das zerstÃ¶rt die Berechnung */
    width: 100%;

    /* JS: HEADING_TOP_PADDING_PX (40) + ROW_HEIGHT_HEADING_ESTIMATE (40) = 80px Total */
    height: 40px;
    /* padding-top: 40px; Der optische Abstand nach oben */

    line-height: 40px;
    /* HÃ¶he des eigentlichen Textes */
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(90deg, #fafafa, #c7c7c7);
    padding-inline: 20px;
    margin-bottom: 5px;
}

/* Virtualisierung: verhindert teils "Scroll anchoring"-SprÃ¼nge */
.pages-container {
    overflow-anchor: none;
}

/* Alphabet Navigation */
.alphabet-nav {
    position: relative;
    left: 10px;
    //right: 10px;
    transform: none;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 2px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 4px;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.alphabet-link {
    display: block;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    color: black;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    user-select: none;
    line-height: 1.2;

    --dock-scale: 1;
    /* Default */
    transform: scale(var(--dock-scale, 1));
    transform-origin: center;
    will-change: transform;

    transition: all 0.3s ease;
}

.alphabet-link:hover:not(.disabled) {
    transform: scale(var(--dock-scale, 1));
    /* Hover Ã¼berschreibt Dock nicht */
}

.alphabet-link.nav-active {
    font-weight: 700;
    /* WICHTIG: kein transform hier, sonst Ã¼berschreibt es den Dock-Scale */
}

.alphabet-link:hover {
    text-decoration: none;
}

.alphabet-link.disabled {
    cursor: default;
    /* Prevent pointer cursor */
    pointer-events: none;
    /* Disable interactions */
}

.alphabet-link.disabled:hover {
    pointer-events: none;
    color: inherit;
    /* Beibehaltung der aktuellen Farbe */
}

/* Mobile Anpassung */

@media (max-width: 991px) {
    .register-layout {
        flex-direction: column;
    }

    .register-sidebar {
        width: 100%;
        position: static;
    }

    .pikt-filters {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;

        width: 100%;

        align-content: flex-start;
        height: calc(2 * 34px);
        /* exakt 2 Reihen */

        column-gap: 10px;
        row-gap: 6px;

        overflow-x: auto;
        overflow-y: hidden;

        padding-top: 5px;
        padding-bottom: 5px;
        padding-right: 30px;
        //padding-left: 30px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    /* Gemeinsame Styles fÃ¼r beide Schatten */
    .pikt-filters-wrapper::before,
    .pikt-filters-wrapper::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 40px;
        /* HÃ¶he angepasst an deine 2 Reihen (2x34px) + Padding */
        height: 78px;
        pointer-events: none;
        z-index: 5;
    }

    /* Linker Schatten */
    .pikt-filters-wrapper::before {
        left: 0;
        background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
        opacity: 0;
        transition: opacity 160ms ease;
    }

    .pikt-filters-wrapper.scrolled::before {
        opacity: 1;
    }

    /* Rechter Schatten */
    .pikt-filters-wrapper::after {
        right: 0;
        background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
    }

    .pikt-filters::-webkit-scrollbar {
        display: none;
    }

    .pikt-filter {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        margin: 0;
    }

    .page-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .entry {
        letter-spacing: 0;
    }

    .pages-wrapper::before,
    .pages-wrapper::after {
        width: 100% !important;
    }
}

/* Responsive Spaltenanzahl */

@media (max-width: 991px) {
    .page-block {
        grid-template-columns: 1fr;
    }

    .column {
        border-left: none;
    }
}

#pages-container {
    max-height: 60vh;
    overflow-y: auto;
    flex: 1;
    padding-block: 0px 40px;
    background:
        linear-gradient(to bottom, white, rgba(255, 255, 255, 0)) 0 0 / 100% 40px no-repeat,
        linear-gradient(to top, white, rgba(255, 255, 255, 0)) 0 100% / 100% 40px no-repeat;
    background-attachment: local;
}

@media (max-width: 768px) {
    #pages-container {
        /* Scrollbars ausblenden */
        -ms-overflow-style: none;
        /* IE und Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    #pages-container::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari und Opera */
    }
}

/* Abstand NUR nach einem Block (Desktop/Tablet) */
.virtual-row.is-block-row {
    padding-bottom: 0px;
    /* = BLOCK_GAP_PX */
}

.pages-with-nav {
    display: flex;
    align-items: flex-start;
    /* vertikal mittig */
    //gap: 10px;
    width: 100%;
}

.virtual-list-host {
    will-change: transform;
    transform: translateZ(0);
    /* Aktiviert GPU-Beschleunigung */
}

.pages-wrapper {
    position: relative;
    /* Fixpunkt fÃ¼r den Verlauf */
    flex: 1;
    min-width: 0;
    /* Wichtig fÃ¼r Flexbox, damit es schrumpfen kann */
}

.pages-wrapper::before,
.pages-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    /* Breite anpassen, um die Scrollbar auszulassen */
    width: calc(100% - var(--scrollbar-width, 15px));
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.pages-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 160ms ease;
}

.pages-wrapper.scrolled::before {
    opacity: 1;
}

.pages-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
}

/* Hover-Effekte fÃ¼r Touch-GerÃ¤te deaktiviert */
@media (hover: none) {
    .alphabet-link:hover {
        color: inherit;
        /* Farbe vom Eltern behalten */
        transform: scale(1);
        /* Keine Skalierung */
    }

    .pikt-filter:hover {
        border: 1px solid #e3e3e3;
        /* UrsprÃ¼nglicher Wert */
        box-shadow: inset 0px 0px 0px 0px black;
        /* UrsprÃ¼nglicher Wert */
    }

    .pikt-filter:active {
        transform: scale(0.9);
        /* kleines DrÃ¼cken */
    }

    .pikt-filter.active:hover {
        box-shadow: inset 0px 0px 0px 0px #007bff;
        /* UrsprÃ¼nglicher Wert */
        border: 1px solid #007bff;
        /* UrsprÃ¼nglicher Wert */
    }

    .reset-pikt-btn:enabled:active {
        transform: scale(0.9);
    }

    .reset-pikt-btn:enabled:hover {
        border: 1px solid #707070;
        /* UrsprÃ¼nglicher Wert */
        box-shadow: inset 0px 0px 0px 0px black;
        /* UrsprÃ¼nglicher Wert */
    }

    .pikt-filter,
    .alphabet-link,
    .reset-pikt-btn:enabled {
        user-select: none;
        /* Text kann nicht markiert werden */
        -webkit-user-select: none;
        /* Safari/iOS */
        -moz-user-select: none;
        /* Ã¤ltere Firefox-Versionen */
        -ms-user-select: none;
        /* IE/Edge */
        transition: all 0.2s ease;
        /* Schnellere ÃœbergÃ¤nge */
    }
}

.register-divider-line {
    width: 100%;
}

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wdth,wght@0,75,100..900;1,75,100..900&display=swap");

/* CSS fÃ¼r LegendenerklÃ¤rungen */
.register-item-explanation-container {
    display: grid;
    /* Nutzt max-content als Minimum, damit Text nicht Ã¼berlÃ¤uft, und 1fr zum AuffÃ¼llen */
    grid-template-columns: repeat(5, minmax(max-content, 1fr));
    grid-template-rows: auto auto auto;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid black;
    overflow-x: auto;
    /* Globaler Schutz vor Ãœberlauf auf jeder Fensterbreite */
    -webkit-overflow-scrolling: touch;

    /* Cross-Browser Scrollbar Styling */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #888888 transparent;
    /* Firefox */
    padding-bottom: 8px;
    /* Platz fÃ¼r den Scrollbalken, damit er nicht Ã¼ber dem Text liegt */
}

/* Webkit-spezifische Scrollbar-Styles (iOS, Android, Chrome, Safari) */
.register-item-explanation-container::-webkit-scrollbar {
    height: 6px;
    /* HÃ¶he des horizontalen Balkens */
}

.register-item-explanation-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.register-item-explanation-container::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 10px;
}

.register-item-explanation-container::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.register-item-explanation-box {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    min-width: 0;
    font-size: 1rem;
    /* Min 16px */
    padding-inline: 2rem;
    padding-block: 1rem;
    gap: 0.5rem;
}

.register-item-explanation-box span {
    white-space: nowrap;
}

/* Sorgt dafÃ¼r, dass die Werte (erste Zeile) vertikal zentriert sind */
.register-item-explanation-box>span:first-child {
    display: flex;
    align-items: center;
    min-height: 1.5em;
}

.register-item-explanation-number {
    display: grid;
    place-items: center;
    line-height: 1;
    padding: 0;
    color: white;
    background-color: #888888;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-family: Basis-Grotesque-Black;
    font-size: 1rem;
    flex-shrink: 0;
}

#register-item-explanation-nation span:first-child {
    font-family: "Basis-Grotesque-Black", sans-serif;
    font-weight: bold;
    letter-spacing: 0;
}

.register-item-explanation-box span:last-child {
    font-size: 0.875rem;
    /* Min 14px */
    line-height: normal;
    display: flex;
    align-items: flex-end;
}

#register-item-explanation-pictogram-icon {
    font-size: 1rem;
    /* Konsistent mit Haupttext */
    padding-inline: 0;
}

@media (max-width: 575px) {
    .register-item-explanation-container {
        border-width: 1px;
        column-gap: 10px;
        justify-content: flex-start;
    }
}


.register-explanation-segment {
}

#register-explanation-pictogram-list {
  column-count: 3;
  column-gap: 100px;
}

.pictogram-item {
  display: flex;
  align-items: center;
  gap: 20px;
  break-inside: avoid; /* Verhindert Umbruch im Item */
  line-height: normal;
  margin-bottom: 0.5rem;
}

.pictogram-item .pict {
  font-family: "WeltAtPi", monospace;
  font-size: 1rem;
  width: 25px;
  text-align: center;
}

.pictogram-text {
  font-size: 1rem;
}

/* Mobil-Ansicht: Untereinander */


@media (max-width: 1024px) {
  #register-explanation-pictogram-list {
    column-count: 2;
  }
}


@media (max-width: 575px) {
  #register-explanation-pictogram-list {
    column-count: 1;
  }
}


.country-list-container {
  column-count: 3;
  column-gap: 100px;
  width: 100%;
  margin: 0 auto;
}

.country-row {
  display: flex;
  justify-content: space-between; /* KÃ¼rzel links, Name rechts */
  align-items: baseline;
  font-size: 1rem;
  break-inside: avoid; /* Verhindert das ZerreiÃŸen einer Zeile beim Spaltenumbruch */
  line-height: normal;
  margin-bottom: 0.5rem;
}

/* Styling fÃ¼r das KÃ¼rzel (links) */
.country-row span:first-child {
  padding-right: 20px;
}

/* Styling fÃ¼r den LÃ¤ndernamen (rechts) */
.country-row span:last-child {
  text-align: right;
}

/* Mobil-Ansicht: Auf kleinen Bildschirmen Spaltenanzahl reduzieren */
@media (max-width: 1024px) {
  .country-list-container { column-count: 2; }
}

@media (max-width: 575px) {
  .country-list-container { column-count: 1; }
}



