body, html, * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}
#pdfDropOverlay {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
#pdfDropOverlay.active {
    display: flex !important;
    pointer-events: all;
    opacity: 1;
}
#belowPdfButtons {
    width: 100%;
}
#discordBtn {
    width: 100%;
    height: 4vh;
    margin: 0;
    margin-top: 10px;
    background: linear-gradient(90deg, #5865F2 60%, #4752c4 100%);
    border: none;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px #5865F280;
    letter-spacing: 0.5px;
    outline: none;
    box-sizing: border-box;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#discordBtn:hover {
    background: linear-gradient(90deg, #4752c4 60%, #5865F2 100%);
    box-shadow: 0 4px 16px #5865F299;
    transform: translateY(-2px) scale(1.03);
}
#lawsBtn {
    width: 100%;
    height: 4vh;
    margin: 0;
    margin-top: 10px;
    background-color: var(--inputs);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.3vh;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    transition: all 0.3s;
}
#lawsBtn:hover {
    background-color: rgb(255, 44, 44);
}
#discordBtn {
    width: 100%;
    height: 4vh;
    background-color: #5865F2;
    border: none;
    border-radius: 5px;
    font-size: 1.3vh;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: none;
    justify-self: stretch;
}
#lawsBtn {
    width: 100%;
    height: 4vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.3vh;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
    justify-self: stretch;
}
#lawsBtn:hover {
    background-color: rgb(255, 44, 44);
}
#lawsBtn {
    width: 100%;
    height: 4vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.3vh;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
    justify-self: end;
}
#lawsBtn:hover {
    background-color: rgb(255, 44, 44);
}
.lawLinkBtn {
    background: #222;
    color: #fff;
    border: 1px solid #2176ff;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.lawLinkBtn:hover {
    background: #2176ff;
    color: #fff;
    border: 1px solid #fff;
}
#gesetzgptWebsiteBtn {
    background: #2176ff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px #00000030;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
#gesetzgptWebsiteBtn:hover {
    background: #0056b3;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}
#rightsButton {
    width: 70%;
    height: 4vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;
    margin-top: 1.5vh;
    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
    position: relative;
    left: 5%;
}
#rightsButton:hover {
    background-color: #ff1a1a;
    color: white;
}
.fadeDialog {
    opacity: 0;
    transition: opacity 0.5s;
}
.fadeDialog.show {
    opacity: 1;
}
/* Rechte-Button und Dialog wie resetButton */
#rightsButton {
    width: 70%;
    height: 4vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;
    margin-top: 1.5vh;
    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
    position: relative;
    left: 5%;
    z-index: 10;
}
#rightsButton:hover {
    background-color: rgb(255, 44, 44);
}
#rightsDialog {
    animation: fadeInDialog 0.3s;
}
@keyframes fadeInDialog {
    from { opacity: 0; transform: translate(-50%, -60%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
#gesetzgptButton {
    background-color: var(--button);
    color: var(--textsecond);
    border: none;
    border-radius: 10px;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #00000030;
}
#gesetzgptButton:hover {
    background-color: var(--buttonhover);
    color: var(--accent);
}
:root {
    --textprim: #bababa;
    --textsecond: #ffffff;
    --button: #2b2b2b;
    --accent: #002b36;
    --buttonhover: #89CFF0;
    --background: #1d1d1d;
    --inputs: #121212;
}


* {
    font-family: ProximaNova, sans-serif;
    color: var(--textprim);
}

html {  height: 100%; }

body {
    width: 100%;
    height: 100%;
    margin: 0px;
    background-color: var(--background);

    user-select: none;
}

#header {
    width: 100%;
    height: 5%;

    background-color: var(--inputs);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

    display: grid;
    grid-template-columns: 33.333% 33.333% 33.333%;
}

#title {
    line-height: 5vh;

    padding-left: 20px;
    font-size: 3vh;
    font-weight: 600;
    color: var(--textsecond);
}

#credits {
    text-align: center;
    line-height: 5vh;
}

#searchbar input {
    float: right;
    width: 70%;
    height: 3vh;
    background-color: var(--background);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;

    margin-top: 1vh;
    margin-right: 2vw;

    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;

    text-indent: 5px;
    transition: box-shadow 0.4s, border-color 0.4s;
}

/* Animierter Babyblau-Rand, wenn aktiv oder fokussiert */
#searchbar_input.active {
    box-shadow: 0 0 0 3px #8ecaff80;
    border: 2px solid #8ecaff !important;
}
}

    /* Animierter Babyblau-Rand, wenn aktiv */
    #searchbar_input.active {
        box-shadow: 0 0 0 3px #8ecaff80;
        border: 2px solid #8ecaff;
    }

#contentbox {
    width: 100%;
    height: 93%;

    position: absolute;
    bottom: 0;

    background-color: var(--inputs);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

    display: grid;
    grid-template-columns: 75% 25%;
}

#fineslist {
    background-color: var(--background);
    border-radius: 20px;
    margin: 1vh;
    overflow: hidden;
    overflow-y: scroll;
}

#fineslist::-webkit-scrollbar {
    display: none;
}

#results::-webkit-scrollbar {
    display: none;
}


#results {
    background-color: var(--background);
    border-radius: 20px;
    margin: 1vh;
    margin-left: 0;

    overflow-y: scroll;
    overflow-x: hidden;

    padding-bottom: 30px;
}

#fineslist table {
    overflow: hidden;

    margin-top: 2%;

    width: 100%;
}

#fineslist table {
    border-spacing: 3px;
}

#finesHeader th {
    overflow: hidden;
    color: white;
    font-size: 20px;
}

#fineslist table tr td {
    text-align: center;

    transition: all 0.3s;
}

.paragraph {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.paragraph::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #89cff0 0%, #1d84d3 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.paragraph:hover::before {
    width: 100%;
}

.paragraph:hover {
    cursor: pointer;
    transition: background 0.3s, color 0.3s;C
}

.fine {
    transition: all 0.3s;
}

.showing {
    background: var(--inputs);
}

.hiding {
    display: none;
} 

.selected {
    background: linear-gradient(90deg, rgba(137, 207, 240, 0.25) 0%, rgba(137, 207, 240, 0.05) 70%, transparent 100%);
    box-shadow: inset 4px 0 0 0 #89CFF0;
}

.selected td {
    color: white;
}

#resultsTitle {
    width: 100%;
    font-size: 3vh;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-top: 5px;
}

#infoTitle {
    width: 90%;
    position: relative;
    left: 5%;
}

#plateInput {
    width: 90%;
    position: relative;
    left: 5%;
}

#blitzerInput {
    width: 90%;
    position: relative;
    left: 5%;
}

#systemwantedsInput {
    width: 90%;
    position: relative;
    left: 5%;
}

.result {
    width: 90%;
    position: relative;
    left: 5%;
}

#plateInput_input {
    width: 70%;
    height: 3vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;

    margin-top: 1vh;

    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;

    text-indent: 5px;
}

#blitzerInput_input {
    width: 70%;
    height: 3vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;

    margin-top: 1vh;

    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;

    text-indent: 5px;
}

#systemwantedsInput_input {
    width: 70%;
    height: 3vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;

    margin-top: 1vh;

    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;

    text-indent: 5px;
}

.categoryHeader th {
    color: var(--buttonhover);
    font-size: 20px;
}

/* Baby blue styling for all paragraph cells */
.paragraph {
    color: #89CFF0;
}



#actionButtonsContainer {
    width: 90%;
    position: relative;
    left: 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    margin-top: 1.5vh;
}

#actionButtonsContainer button {
    width: 100%;
    height: 4vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.3vh;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
}

#pdfExportBtn {
    grid-column: 1 / span 2;
    font-size: 1.5vh;
    background: #2176ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    height: 4vh;
}

#pdfExportBtn:hover {
    background: #0056b3;
}

#actionButtonsContainer button {
    width: 100%;
    height: 4vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.3vh;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
}

#rightsButton, #showButton, #showAttorneysButton, #showTowButton, #resetButton, #gesetz {
    width: 100%;
    left: 0;
    margin-top: 0;
}

#rightsButton:hover {
    background-color: rgb(255, 44, 44);
}

#showButton:hover {
    background-color: #89CFF0;
}

#showAttorneysButton:hover {
    background-color: #89CFF0;
}

#showTowButton:hover {
    background-color: #89CFF0;
}

#resetButton:hover {
    background-color: rgb(255, 44, 44);
}

#gesetz:hover {
    background-color: #89CFF0;
}



.selected_extrawanted {
    color: yellow;
}

.extrawanted {
    transition: 0.1s all;
}

.extrawanted:hover {
    color: yellow;
}



/* Altes Checkbox-Design */
[type="checkbox"] {
    position: relative;
    left: 10px;
    top: 0px;
    z-index: 0;
    -webkit-appearance: none;
}

[type="checkbox"] + label {
    position: relative;
    display: block;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 16px;
    color: white;
    font-weight: 600;
    padding-left: 50px;
    position: relative;
    margin-top: -20px;
}

#checkboxfont1 {
    font-family: sans-serif;
    font-size: 16px;
    color: white;
    font-weight: 600;
}

[type="checkbox"] + label:before {
    width: 40px;
    height: 20px;
    border-radius: 30px;
    border: 2px solid var(--button);
    background-color: var(--inputs);
    content: "";
    margin-right: 15px;
    transition: background-color 0.5s;
    z-index: 5;
    position: absolute;
    left: 0px;
}

[type="checkbox"] + label:after {
    width: 20px;
    height: 20px;
    border-radius: 30px;
    background-color: #e64949;
    content: "";
    transition: all 0.4s;
    box-shadow: 0px 0px 2px #e64949;
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: 10;
}

[type="checkbox"]:checked + label:after {
    margin: 0 0 0 20px;
    background-color: #49e656;
    box-shadow: 0px 0px 2px #49e656;
}

#checkbox {
    position: relative;
    left: 5%;
    width: 90%;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
    
}

#rightsRead {
    position: relative;
    left: 5%;
    width: 90%;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
}

#rightsReadInfo {
    font-size: 0.75rem;
    color: #888;
    cursor: help;
    margin-top: 2px;
    margin-left: 35px; /* Align with label text roughly */
}

/* CUSTOM SELECT */

#übergabeInput {
    width: 90%;
    position: relative;
    left: 5%;
}

#übergabeInput_input {
    width: 70%;
    height: 3vh;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;

    margin-top: 1vh;

    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;

    text-indent: 5px;
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  #notepadArea textarea {
    scrollbar-width: auto;
    scrollbar-color: #89CFF0 #ffffff00;
  }

  /* Chrome, Edge, and Safari */
  #notepadArea textarea::-webkit-scrollbar {
    width: 3px;
  }

  #notepadArea textarea::-webkit-scrollbar-track {
    background: #ffffff00;
  }

  #notepadArea textarea::-webkit-scrollbar-thumb {
    background-color: #89CFF0;
    border-radius: 10px;
    border: 1px solid #ffffff00;
  }

#notepadArea {
    width: 90%;
    position: relative;
    left: 5%;

    max-height: 250px;
}

#notepadArea textarea {
    width: 70%;
    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;
    margin-top: 1vh;

    min-height: 2.5vh;
    max-width: 90%;
    min-width: 100px;
    max-height: 240px;

    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;

    padding-left: 5px;

}

#systemfehler {
    position: relative;
    left: 5%;
    width: 90%;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
    
}

#reue {
    position: relative;
    left: 5%;
    width: 90%;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
    
}

select {

    background-color: var(--inputs);
    border: none;
    border-radius: 5px;
    font-size: 1.5vh;

    width: 70%;
    height: 3vh;

    margin-top: 1vh;

    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;

    text-indent: 5px;
}



#finesListContainer {
    width: 50%;
    height: 50%;

    position: fixed;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background-color: var(--background);
    box-shadow: 0px 0px 10px black;

    border-radius: 16px;

    overflow-y: scroll;

    opacity: 0;
    transition: opacity 0.3s;
}

#fineListContainer[data-showing="true"] {
    opacity: 1;
}

#finesListContainer::-webkit-scrollbar {
    display: none;
}

#finesListContainer_title {
    width: 100%;
    color: white;
    text-align: center;

    padding-top: 5px;
    font-size: 25px;
    font-weight: 600;
}

#finesListContainer table {
    position: relative;
    width: 95%;
    margin-top: 10px;
    left: 2.5%;
    border-spacing: 3px;

    color: white;
    text-align: center;
}

#finesListContainer table tr th {
    color: white;
}

.finesList_fine {
    background-color: var(--inputs);
}

/* ! DISCLAIMER */

#disclaimer {
    opacity: 0;
    position: fixed;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 500px;

    z-index: 100;

    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;

    padding: 32px;

    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

#disclaimer_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#disclaimer_title_warning {
    color: #ff4949;
    font-size: 1.2em;
}

#disclaimer_text {
    margin-bottom: 32px;
    font-size: 1rem;
    color: #e5e5e5;
    line-height: 1.6;
}

#disclaimer_text p {
    margin: 0 0 16px 0;
}

#disclaimer_text p:last-child {
    margin-bottom: 0;
}

.disclaimer_warning {
    color: #ff6b6b;
    font-weight: 600;
    background: rgba(255, 73, 73, 0.1);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 73, 73, 0.2);
    margin-top: 16px !important;
}

#disclaimer_button {
    border: none;
    background-color: #ff4949;
    color: white;
    font-size: 1rem;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    outline: none;
}

#disclaimer_button:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 73, 73, 0.25);
}

#disclaimer_button:active {
    transform: translateY(0);
}

#disclaimerBackgroundBlocker {
    width: 100vw;
    height: 100vh;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.5s ease;
}
}

#loading {
    background: var(--inputs);
    padding: 20px;
    border-radius: 20px;
    width: auto;
    height: auto;

    position: fixed;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

#loading img {
    width: 10vw;
}

#dotContainer {
    padding-top: 10px;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
    
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot {
    padding: 5px;
    aspect-ratio: 1 / 1;
    height: 16px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.dotContent {
    background-color: #89CFF0;
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

#dot1 .dotContent {
    animation-name: dotAnim;
    animation-duration: 1.25s;
    animation-delay: -0.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

#dot2 .dotContent {
    animation-name: dotAnim;
    animation-duration: 1.25s;
    animation-delay: -0.25s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

#dot3 .dotContent {
    animation-name: dotAnim;
    animation-duration: 1.25s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes dotAnim {
    0% { height: 100%; width: 100%; }
    40% { height: 0%; width: 0%; }
    60% { height: 0%; width: 0%; }
    100% { height: 100%; width: 100%; }
}


#attorneyContainer {
    width: 50.5%;
    height: 75%;

    overflow-y: hidden;

    position: fixed;
    z-index: 11;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background-color: var(--background);
    box-shadow: 0px 0px 10px black;

    border-radius: 16px;

    opacity: 0;
    transition: opacity 0.3s;
}

#attorneyContainer[data-showing="true"] {
    opacity: 1;
}

#attorneyContainer::-webkit-scrollbar {
    display: none;
}

#attorneyContainer_title {
    width: 100%;
    color: white;
    text-align: center;

    padding-top: 5px;
    font-size: 25px;
    font-weight: 600;
}

#attorneyContainer iframe {
    width: 100%;
    height: 100%;
}