/* ANCHOR Fonts */
@font-face {
    font-family: "IBM";
    src: url(../fonts/IBMPlexMono-Regular.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM";
    src: url(../fonts/IBMPlexMono-Italic.ttf) format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "IBM";
    src: url(../fonts/IBMPlexMono-ExtraLight.ttf) format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM";
    src: url(../fonts/IBMPlexMono-ExtraLightItalic.ttf) format("truetype");
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

/*ANCHOR - Toggle invert*/

.toggle-container {
    display: flex;
    align-items: center;
}

.ergebnis {
    font-size: 1.5rem;
    font-family: sans-serif;
    padding: 2rem 0 2rem 2rem;
}

.toggle {
    margin: 0 1.5rem 0 1rem;
    position: relative;
    display: inline-block;
    width: 4rem;
    height: 2.4rem;
}

.toggle input {
    display: none;
}

.roundbutton {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: #495A72;
    display: block;
    transition: all 0.3s;
    border-radius: 3.4rem;
    cursor: pointer;
}

.roundbutton:before {
    position: absolute;
    content: "";
    height: 1.4rem;
    width: 1.5rem;
    border-radius: 100%;
    display: block;
    left: 0.5rem;
    top: 0.5rem;
    background-color: white;
    transition: all 0.3s;
}

input:checked+.roundbutton {
    background-color: #ffa602;
}

input:checked+.roundbutton:before {
    transform: translate(1.6rem, 0);
}

/* ANCHOR Custom Properties  */

body {
    --color-black: #191919;
    --color-lightgrey: #d6d2d0;
    --color-white: #e1e1e1;
    --color-grey: #898989;
    --color-green: #13f270;
    --color-red: #ff0000;
    --color-purple: #cb06d9;
    --color-yellow: #c1de04;
    --color-blue: #03dfee;
    --color-orange: #ffa602;

    --font: "IBM", monospace;
    --line: 3ch;
    --font-scale: 00.4vw;
}

body.invert {
    --color-black: #d6d2d0;
    --color-lightgrey: #191919;
    --color-white: #191919;
    --color-grey: #6e6e6e;
    --color-green: #1f864a;
    --color-red: #bd1616;
    --color-purple: #9e02e1;
    --color-yellow: #e37e02;
    --color-blue: #0856af;
    --color-orange: #ff5202;
}

/* ANCHOR Hilfsklassen*/

.standard-container {
    max-width: 1080px;
    margin: 0 auto;
}

#page-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ANCHOR Animation */
.stickkarte {
    background-color: #FF0000;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* ANCHOR Top Btn*/

html {
    scroll-behavior: smooth;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
}


/* ANCHOR Body Style*/

body {

    justify-content: center;
    align-items: start;
    gap: 16px;
    margin: 0;
    padding: 16px;
}

/*ANCHOR Main Style */

*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: calc(1rem + var(--font-scale));
    line-height: var(--line);
    color: var(--color-white);
    background-color: var(--color-black);
}

footer {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px;
}

header {
    width: 100%;
}

main {
    display: flex;
    flex-direction: row;
    width: 80%;
    container-type: inline-size;
}

/* ANCHOR Aside Style */

aside {
    display: flex;
    flex-direction: row;
    width: 80%;
    container-type: inline-size;
}

/* ANCHOR Content Style */

h1,
h2,
h3 {
    color: var(--color-blue);
    font-size: calc(1.6rem + var(--font-scale));
    font-weight: 400;
    line-height: var(--line);
    margin: 0;
}

.h3info {
    font-weight: bold;
    color: var(--color-grey);
    text-decoration-line: underline;
}

#stickkarte {
    font-size: 1rem;
    text-decoration-line: underline;
    text-underline-offset: 0.5rem;
    cursor: pointer;
}

a {
    text-decoration: none;
}

.contenColum {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 50px 0 50px 0;
    width: 80%;

}

/*ANCHOR - Popup */

.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.popup .popuptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    margin-left: -80px;
}

.popup .popuptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #555 transparent;
}

.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*ANCHOR Navigation */


nav>ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav {
    display: flex;
}

/*ANCHOR Link Colors */

.link-blue,
.link-purple,
.link-green,
.link-grey,
.link-white,
.link-orange,
.link-red {
    cursor: pointer;
}

.link-blue {
    color: var(--color-blue);
    padding: 5px 10px;
    border-radius: 5px;
}

.link-blue:hover {
    color: var(--color-black);
    background-color: var(--color-blue);
}

.link-purple {
    color: var(--color-purple);
}

.link-purple:hover {
    color: var(--color-black);
    background-color: var(--color-purple);
}

.link-green {
    color: var(--color-green);
}

.link-green:hover {
    color: var(--color-black);
    background-color: var(--color-green);
}

.link-grey {
    color: var(--color-grey);
}

.link-grey:hover {
    color: var(--color-black);
    background-color: var(--color-grey);
}

.link-white {
    color: var(--color-white);
}

.link-white:hover {
    color: var(--color-black);
    background-color: var(--color-white);
}

.link-red {
    color: var(--color-red);
}

.link-red:hover {
    color: var(--color-black);
    background-color: var(--color-red);
}

.link-orange {
    color: var(--color-orange);
}

.link-orange:hover {
    color: var(--color-black);
    background-color: var(--color-orange);
}

/*ANCHOR Text Colors */

.text-black {
    color: var(--color-black);
}

.text-white {
    color: var(--color-white);
}

.text-green {
    color: var(--color-green);
}

.text-grey {
    color: var(--color-grey);
}

.text-red {
    color: var(--color-red);
}

.text-purple {
    color: var(--color-purple);
}

.text-yellow {
    color: var(--color-yellow);
}

.text-blue {
    color: var(--color-blue);
}

.text-orange {
    color: var(--color-orange);
}

#page-logo {
    font-style: italic;
}

/*ANCHOR  Footer Styles */

footer>ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/*ANCHOR  Card Styles */


.card,
.inputCard {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    border: solid #888;
    border-width: 2px 2px 2px 2px;
    border-radius: 5%;
    margin: 10px;
}

.card>img {
    width: 100%;
    height: auto;
}

.card>p,
.card>div>p,
.eingabe,
.inputCard>div>p {
    padding: 8px;
}

/*ANCHOR  Images Styles */

.imgCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

img {
    padding: 8px 0 2px 0;
}

.gluehBirne {
    border-radius: 50%;
    cursor: pointer;
}


.responsive {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/*ANCHOR  Inhalte-werden-zentriert */

#Inhalte-werden-zentriert {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*ANCHOR Text zentrieren */

.centerText,
.content {
    text-align: center;
    font-size: 1.5rem;
}

/*ANCHOR Text links */

.leftText {
    text-align: left;
    margin: 15px;
    font-size: 1.5rem;
}

/*ANCHOR Label Input Box */
.form-box input::placeholder {
    color: #ffffff;
}

.form-box input {
    padding: 5px 1px;
    text-align: center;
    background: var(--color-red);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-box input:valid {
    background: var(--color-green);
    color: var(--color-black);
}

.reset {
    text-align: center;
}

.reset input[type="reset"] {
    cursor: pointer;
    background: var(--color-grey);
    color: var(--color-black);
    font-size: 1rem;
    text-align: center;
    padding: 10px 10px;
    margin-top: 15px;
    margin-right: 2rem;
    border-radius: 5px;
}

.reset input[type="reset"]:hover {
    background: var(--color-red);
    color: white;
    font-weight: bold;
}

.inputLabel {
    display: inline-block;
    width: 30%;
    font-size: large;
}

/* ANCHOR Label */

label {
    padding: 4px 10px;
}

#form-submit {
    display: flex;
    height: 150px;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    padding: 0px;

}

/* ANCHOR Button Style */

.buttonBox {

    cursor: pointer;
    padding: 10px;
    text-align: center;
    font-size: large;
    border: solid #888;
    border-width: 2px 2px 2px 2px;
    border-radius: 5px;
    color: var(--color-black);
    background-color: var(--color-grey);
}

.buttonBox:hover {
    background-color: var(--color-green);
}

/* ANCHOR Cutoff text */

.cutoff-text0 {
    --max-lines: 0;
    --line-height: 1.4;

    max-height: calc(var(--max-lines)* 1rem * var(--line-height));
    line-height: var(--line-height);

    overflow: hidden;
    position: relative;
}

.cutoff-text2 {
    --max-lines: 2;
    --line-height: 1.4;

    max-height: calc(var(--max-lines)* 1rem * var(--line-height));
    line-height: var(--line-height);

    overflow: hidden;
    position: relative;
}

.cutoff-text0:has(+ .expand-btn:not(:checked))::before,
.cutoff-text2:has(+ .expand-btn:not(:checked))::before {
    content: "";
    position: absolute;
    height: calc(1em * var(--line-height));
    width: 100%;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--color-black));
}

/* ANCHOR expand btn style */

.expand-btn {
    appearance: none;
    border: 1px solid var(--color-lightgrey);
    padding: .5em;
    border-radius: .25em;
    cursor: pointer;
    margin: 1rem;

    background-color: var(--color-black);
    color: var(--color-grey);
}

.expand-btn:hover {
    background-color: var(--color-grey);
    color: var(--color-black);
}

.expand-btn::before {
    content: "mehr info";
}

.expand-btn:checked::before {
    content: "weniger info";
}


/* ANCHOR text aufklappen */

.cutoff-text0:has(+ .expand-btn:checked),
.cutoff-text2:has(+ .expand-btn:checked) {
    max-height: none;
}

/* ANCHOR text aufklappen per Label */

.h3info {
    font-size: 1.5rem;
}

#ch0,
#ch1,
#ch2,
#ch3,
#ch4,
#ch5,
#ch6,
#ch7 {
    display: none;
}

#ch0:checked~.contentInfo,
#ch1:checked~.contentInfo,
#ch2:checked~.contentInfo,
#ch3:checked~.contentInfo,
#ch4:checked~.contentInfo,
#ch5:checked~.contentInfo,
#ch6:checked~.contentInfo,
#ch7:checked~.contentInfo {
    display: block;
}

#ch0:checked~label,
#ch1:checked~label,
#ch2:checked~label,
#ch3:checked~label,
#ch4:checked~label,
#ch5:checked~label,
#ch6:checked~label,
#ch7:checked~label {
    display: none;
}

.contentInfo {
    display: none;
}

.infoLabel {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 3px 13px;
    border-radius: 3px;
    margin-top: 12px;
    font-size: 1em;
}

.infoLabel:hover {
    background-color: var(--color-white);
}

/*ANCHOR Style <p> Info Box*/

.pInfoBox {
    border-radius: .5rem;
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 15px;
}

/* ANCHOR print Tabelle*/

table {
    width: 100%;
    margin-top: 20px;
}

table,
th,
td {
    border: 1px solid var(--color-white);
    border-collapse: collapse;
    text-align: left;
    padding: 1px 1px 1px 1rem;
    font-size: 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

}

tbody {
    border-bottom: 10px double #898888;
}

tr:nth-child(even) {
    background-color: var(--color-white);
    color: var(--color-black);
}

th {
    background-color: var(--color-white);
    color: var(--color-black);
}

@media print {

    header,
    footer {
        display: none;
    }

    .no-print {
        display: none;
    }
}



/* ANCHOR @Container */

@container (min-width: 700px) {

    #page-logo,
    .card {
        flex-direction: row;
        align-items: stretch;
    }

    .card>img {
        max-width: 180px;

    }

    .card>p {
        border-width: 2px 2px 2px 2;
    }
}



/*ANCHOR @Media */

@media (max-width: 700px) {

    body,
    main,
    aside,
    #page-logo {
        flex-direction: column;
    }

    main,
    aside {
        width: 100%;
    }


}

@media (max-width: 1000px) {

    .cardRow {
        flex-direction: column;
    }

    .cardRow {
        width: 90%;
    }
}