html {
    font-size: 16px;
}

body {
    overflow: hidden;
    opacity: 1;
    /*background-image: radial-gradient(#000000 0.4px, transparent 0.4px);*/
    background-size: 4px 4px;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
}

:root {
    --font-size: 80px;
    --letter-spacing: 0px;
    --line-height: 0.9;
    --text-color: #000000;
    --bg-color: #fdfcf9;
    --bg-gradient: radial-gradient(#000000 0.4px, transparent 0.4px);
  }


/*---------------------------
    TEXT im HINTERGRUND
---------------------------*/
.text-im-hintergrund-print {
    display: none;
}
.text-im-hintergrund {
    font-family: Gloridot, sans-serif;
    font-size: clamp(5rem, 16.6vw, 15rem);
    z-index: -5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 55px;
    margin-top: -3.5%;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #000000;
    color: transparent;
}
.text-im-hintergrund > div {
    margin-bottom: calc(-0.54 * clamp(5rem, 16.6vw, 15rem));
}

.text-marshall {
    animation: moveTextMarshall 24s linear infinite alternate;
    /*color: orange;
    mix-blend-mode: difference;*/
}
@keyframes moveTextMarshall {
    0% {
        transform: translateX(0.5%);
    }
    50% {
        transform: translateX(51.6%);
    }
    100% {
        transform: translateX(0.5%);
    }
}

.text-mcluhan {
    animation: moveTextMcLuhan 26s linear infinite alternate;
    /*color: orange;
    mix-blend-mode: difference;*/
}
@keyframes moveTextMcLuhan {
    0% {
        transform: translateX(0.5%);
    }
    50% {
        transform: translateX(64%);
    }
    100% {
        transform: translateX(0.5%);
    }
}

.text-themedium {
    animation: moveTextTheMedium 9s linear infinite alternate;
    /*color: orange;
    mix-blend-mode: difference;*/
}
@keyframes moveTextTheMedium {
    0% {
        transform: translateX(0.7%);
    }
    50% {
        transform: translateX(8.2%);
    }
    100% {
        transform: translateX(0.7%);
    }
}

.text-themessage {
    animation: moveTextTheMessage 10s linear infinite alternate;
    /*color: greenyellow;
    mix-blend-mode: difference;*/
}
@keyframes moveTextTheMessage {
    0% {
        transform: translateX(0.7%);
    }
    50% {
        transform: translateX(16.5%);
    }
    100% {
        transform: translateX(0.7%);
    }
}

/*---------------------------
    GRID mit PUNKTEN
---------------------------*/
.grid {
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(30px, 1fr));
    gap: 5px;
    z-index: -1;
}

.cell {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.4s ease-in-out;
    box-sizing: border-box; /* Stellt sicher, dass die Border nicht das Grid verschiebt */
}

.black {
    background: transparent; /* Kein ausgefüllter Kreis */
    border: 2px solid #000000; /* Schwarze Umrandung */
}

/*---------------------------
    TEXTAUSZÜGE (Feld+Button)
---------------------------*/
#textField {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 93.5vw;
    height: 89.5vh;
    padding: 10px;
    padding-top: 19px;
    border: none; /* 1px solid red */
    background-color: transparent;
    resize: none;
    overflow: hidden;
    font-family: Fraunces-variable;
    /*font-size: 5rem;
    color: #000000;*/
    font-size: var(--font-size);
    letter-spacing: var(--letter-spacing);
    line-height: var(--line-height);
    color: var(--text-color);
}

#changeTextButton {
    position: absolute; /* Absolute Positionierung */
    top: 0px;  /* Beispiel: Abstand vom oberen Rand des Viewports */
    left: 0px;   /* Beispiel: Button in der Mitte der Seite */
    width: 30px;    /* Breite des Buttons */
    height: 30px;   /* Höhe des Buttons (gleiche wie Breite für den Kreis) */
    background-color: #000000; /* Grüner Hintergrund */
    border: 2px solid #000000; /* Schwarze Umrandung */
    border-radius: 50%; /* Macht den Button rund */
    z-index: 20;
}

#changeTextButton:hover {
    background-color: #fdfcf9; /* Dunkleres Grün beim Hover */
}


/*---------------------------
    SLIDER & BUTTON für Variable Schrift
---------------------------*/
#toggleSlidersButton {
    position: absolute;
    top: 390.5px;
    left: 0px;
    width: 30px;
    height: 30px;
    background: black;
    border: 2px solid #000000; /* Schwarze Umrandung */
    border-radius: 50%;
    z-index: 20;
}
#toggleSlidersButton:hover {
    background-color: #fdfcf9;
}

#sliderContainer {
    position: absolute;
    top: 395px;
    left: 10px;
    background: transparent;
    color: black;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

#sliderContainer label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-family: Fraunces-variable;
}

#sliderContainer input {
    width: 150px;
}

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    padding: 12px;
    background: transparent;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: black;
    border-radius: 50%;
}
input[type="range"]::-webkit-slider-thumb:hover {
    background: #fdfcf9;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: black;
    border-radius: 50%;
}
input[type="range"]::-moz-range-thumb:hover {
    background: #fdfcf9;
}

input[type="range"]::-ms-thumb {
    width: 22px;
    height: 22px;
    background: black;
    border-radius: 50%;
}
input[type="range"]::-ms-thumb:hover {
    background: #fdfcf9;
}


/*---------------------------
    BUTTON für Farbeinstellung
---------------------------*/
#colorSchemeButton {
    position: absolute;
    bottom: 0.5px;
    left: 0px;
    width: 30px;
    height: 30px;
    background: black;
    border: 2px solid #000000; /* Schwarze Umrandung */
    border-radius: 50%;
    z-index: 20;
}
#colorSchemeButton:hover {
    background-color: #fdfcf9;
}

/*---------------------------
    BUTTONS (About & Web to Print)
---------------------------*/
#aboutButton {
    position: absolute;
    bottom: 0.5px;
    right: 0px;
    width: 30px;
    height: 30px;
    background: black;
    border: 2px solid #000000; /* Schwarze Umrandung */
    border-radius: 50%;
    z-index: 20;
}
#aboutButton:hover {
    background-color: #fdfcf9;
}

#webtoprintButton {
    display: none;
}
.popup {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 93.5vw;
    height: 89.5vh;
    border: 2px solid black;
    z-index: 30;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.MassAgeMessAge {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    grid-template-rows: auto;
}
.Impressum {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    grid-template-rows: auto;
    padding-top: 22px;
}

p{
    padding-left: 20px;
    padding-right: 20px;
    margin: 0;
    font-family: Fraunces-variable;
    font-size: 1.7rem;
    font-variation-settings: "wght" 350, "opsz" 14, "SOFT" 0, "WONK" 0;
}

.p-1 {
    padding-top: 22px;
}
.p-2 {
    padding-top: 22px;
}


h1 {
    margin: 0;
    padding: 0;
    padding-left: 20px;
    padding-right: 20px;
    font-family: Fraunces-variable;
    font-size: 2rem;
    font-variation-settings: "wght" 900, "wdth" 120, "SOFT" 40, "WONK" 1;
}
h2 {
    margin: 0;
    padding: 0;
    padding-left: 20px;
    font-family: Fraunces-variable;
    font-size: 1.7rem;
    font-variation-settings: "wght" 620, "wdth" 120, "SOFT" 40, "WONK" 1;
}

.bold {
    font-variation-settings: "wght" 620, "WONK" 0;
}
.italic {
    font-style: italic;
    font-variation-settings: "WONK" 1, "wght" 350;
}

#button-print-preview {
    background-color: #4CAF50;
    color: white;
}

#button-print-preview:hover {
    background-color: #45a049;
}

