/* =========================================================
   1. SCHRIFTARTEN
   ========================================================= */

@font-face {
    font-family: "pantonRustHeavyBase";
    src: url("fonts/panton-rust-heavy-base.ttf") format("truetype");
    font-display: swap;
}


/* =========================================================
   2. VARIABLEN
   ========================================================= */

:root {
    --bg: #313338;
    --surface: #2b2d31;
    --surface-dark: #1e1f22;
    --surface-hover: #35373c;

    --text: #f2f3f5;
    --text-muted: #b5bac1;

    --primary: #5865f2;
    --primary-hover: #4752c4;
    --danger: #ff3333;
    --success: #57f287;

    --border: rgba(255, 255, 255, 0.08);
    --header-height: 65px;

    --content-width: 1100px;
    --form-width: 650px;
}


/* =========================================================
   3. RESET UND GRUNDEINSTELLUNGEN
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;

    background: var(--bg);
    color: var(--text);

    text-align: center;
    font-family: "Roboto", sans-serif;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--text);
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

section {
    width: 100%;
    min-height: 100svh;

    padding:
        clamp(90px, 10vw, 140px)
        clamp(18px, 5vw, 80px);

    scroll-margin-top: calc(var(--header-height) + 10px);
}


/* =========================================================
   4. TYPOGRAFIE
   ========================================================= */

h1 {
    margin: 0;

    color: var(--danger);

    font-family: "pantonRustHeavyBase", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

h2,
h3,
a {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

h2 {
    color: #0099ff;
}

h3 {
    margin: 0 0 8px;
    padding: 0;

    color: var(--text);
    font-size: clamp(30px, 4vw, 44px);
}

h4,
h6,
p,
li {
    color: var(--text-muted);
    font-family: "Roboto", sans-serif;
}

h4 {
    font-size: clamp(21px, 2.5vw, 27px);
}

p {
    line-height: 1.7;
}

hr {
    width: 30px;
    height: 3px;

    margin: 0 auto clamp(25px, 4vw, 40px);

    border: 0;
    background: var(--danger);
}


/* =========================================================
   5. GEMEINSAME ÜBERGÄNGE
   ========================================================= */

#logo,
#logo img,
header nav li,
.button,
.slider,
.slider::before,
#about img {
    transition: all 0.3s ease;
}


/* =========================================================
   6. HEADER UND NAVIGATION
   ========================================================= */

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;

    width: 100%;
    min-height: var(--header-height);

    padding:
        7px
        clamp(16px, 4vw, 50px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 35px);

    background: var(--surface-dark);

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.3);

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

#logo {
    width: clamp(50px, 5vw, 65px);
    margin: 0;
    flex: 0 0 auto;
}

#logo:hover {
    transform: scale(1.1) rotate(7deg);
}

#logo img {
    width: 100%;
}

header nav {
    margin-left: auto;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: clamp(12px, 2vw, 28px);
}

header nav li {
    margin: 0;
}

header nav li:hover {
    transform: translateY(-4px);
}

header nav a {
    position: relative;

    display: inline-block;
    padding: 8px 0;

    color: var(--text);
    font-size: clamp(12px, 1.3vw, 16px);
    white-space: nowrap;
}

header nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 9px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    background: #f2f3f5;

    border-radius: 999px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* X-Animation */

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* Light Mode */

body.light-mode .menu-toggle span {
    background: #222222;
}


/* =========================================================
   7. THEME-SCHALTER
   ========================================================= */

.theme-switch {
    position: static;
    flex: 0 0 auto;
}

.theme-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.slider {
    position: relative;

    display: block;

    width: 52px;
    height: 28px;

    border-radius: 999px;

    background: var(--primary);
    cursor: pointer;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.slider::before {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.35);
}

.theme-switch input:checked + .slider {
    background: var(--text-muted);
}

.theme-switch input:checked + .slider::before {
    transform: translateX(24px);
}

.theme-switch input:focus-visible + .slider {
    outline: 3px solid rgba(88, 101, 242, 0.4);
    outline-offset: 3px;
}


/* =========================================================
   8. HOME
   ========================================================= */

/*
*#home {
*    position: relative;
*
*    min-height: 100svh;
*
*    padding:
*        clamp(100px, 12vw, 150px)
*        clamp(16px, 5vw, 70px)
*        clamp(35px, 6vw, 70px);
*
*    display: flex;
*    flex-direction: column;
*    align-items: center;
*    justify-content: center;
*
*    background:
*        linear-gradient(
*            rgba(0, 0, 0, 0.18),
*            rgba(0, 0, 0, 0.48)
*        ),
*        url("landing.jpg");
*
*    background-position: center;
*    background-size: cover;
*    background-repeat: no-repeat;
*    background-attachment: fixed;
*}
*
*#home h1 {
*    max-width: 100%;
*
*    font-size: clamp(48px, 13vw, 240px);
*    line-height: 0.9;
*    letter-spacing: clamp(0, 0.3vw, 5px);
*    overflow-wrap: anywhere;
*
*    animation: titleAnimation 1.5s ease;
*
*    text-shadow:
*        2px 2px 4px rgba(0, 0, 0, 0.6),
*        6px 6px 12px rgba(0, 0, 0, 0.4),
*        0 0 10px rgba(255, 51, 51, 0.8),
*        0 0 20px rgba(255, 51, 51, 0.5);
*}
*
*#home h2 {
*    margin: clamp(12px, 2vw, 24px) 0 0;
*
*    color: #ffffff;
*    font-size: clamp(17px, 2.5vw, 28px);
*}
*
*#home > a {
*    margin-top: clamp(55px, 12vh, 150px);
*
*    display: inline-flex;
*    align-items: center;
*    justify-content: center;
*}
*
*#home > a img {
*    width: clamp(38px, 5vw, 70px);
*    margin: 0;
*
*    opacity: 0.75;
*
*    animation: floating 2s ease-in-out infinite;
*}
*
*#home > a img:hover {
*    opacity: 1;
*}
*/

/* =========================================================
   HERO-BEREICH
   ========================================================= */

#home {
    position: relative;
    isolation: isolate;

    min-height: 100svh;

    padding:
        clamp(110px, 14vw, 170px)
        clamp(18px, 6vw, 90px)
        clamp(45px, 7vw, 80px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(15, 16, 20, 0.48),
            rgba(15, 16, 20, 0.82)
        ),
        url("img/landing.jpg");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#home::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(
            circle at center,
            rgba(88, 101, 242, 0.10),
            transparent 55%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(100%, 1050px);

    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    transform: translateY(35px);
    padding-bottom: 80px;
}

.hero-label {
    margin: 0 0 clamp(14px, 2vw, 22px);
    padding: 8px 15px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    background: rgba(43, 45, 49, 0.65);
    color: #b5bac1;

    font-size: clamp(12px, 1.5vw, 15px);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    backdrop-filter: blur(10px);
}

#home h1 {
    width: 100%;
    max-width: 1400px;
    margin: 0;

    color: #ff3333;

    font-size: clamp(64px, 10vw, 190px);
    line-height: 0.9;
    letter-spacing: clamp(0px, 0.15vw, 3px);

    white-space: nowrap;

    opacity: 0;
    transform: translateY(-40px);

    text-shadow:
        3px 4px 8px rgba(0, 0, 0, 0.8),
        8px 10px 24px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(255, 51, 51, 0.7),
        0 0 40px rgba(255, 51, 51, 0.3);
}

#home h2 {
    max-width: 850px;

    margin:
        clamp(22px, 3vw, 32px)
        auto
        0;

    color: #f2f3f5;

    font-size: clamp(20px, 2.5vw, 32px);
    line-height: 1.25;
    text-transform: none;
}

.hero-description {
    width: min(100%, 720px);

    margin:
        clamp(16px, 2.5vw, 26px)
        auto
        0;

    color: #b5bac1;

    font-size: clamp(15px, 1.7vw, 19px);
    line-height: 1.7;
}

.hero-buttons {
    margin-top: clamp(28px, 4vw, 42px);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 14px;
}

.hero-button {
    min-width: 190px;
    min-height: 52px;

    padding: 14px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 700;
    text-transform: uppercase;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-5px);
}

.hero-button-primary {
    background: #5865f2;
    color: #ffffff;

    box-shadow:
        0 12px 30px rgba(88, 101, 242, 0.32);
}

.hero-button-primary:hover {
    background: #4752c4;

    box-shadow:
        0 18px 38px rgba(88, 101, 242, 0.45);
}

.hero-button-secondary {
    border-color: rgba(255, 255, 255, 0.2);

    background: rgba(43, 45, 49, 0.68);
    color: #f2f3f5;

    backdrop-filter: blur(10px);
}

.hero-button-secondary:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.16);
}

.hero-highlights {
    margin-top: clamp(25px, 4vw, 42px);
    margin-bottom: 35px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px 20px;
}

.hero-highlights span {
    padding: 8px 12px;

    color: #b5bac1;

    font-size: clamp(12px, 1.3vw, 15px);

    border-radius: 8px;

    background: rgba(30, 31, 34, 0.55);

    backdrop-filter: blur(8px);
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: clamp(18px, 4vh, 38px);
    z-index: 3;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    color: #b5bac1;

    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-down img {
    width: clamp(36px, 4vw, 48px);

    opacity: 0.8;

    animation: floating 2s ease-in-out infinite;
}

.scroll-down:hover img {
    opacity: 1;
}

.hero-glow {
    position: absolute;
    z-index: -1;

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;

    animation: none;
}

.hero-glow-one {
    top: 10%;
    left: -8%;

    width: clamp(220px, 30vw, 500px);
    aspect-ratio: 1;

    background: rgba(255, 51, 51, 0.18);
}

.hero-glow-two {
    right: -10%;
    bottom: 5%;

    width: clamp(240px, 35vw, 550px);
    aspect-ratio: 1;

    background: rgba(88, 101, 242, 0.2);

    animation-delay: -3s;
}


/* =========================================================
   9. ABOUT
   ========================================================= */

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about img {
    width: clamp(150px, 22vw, 300px);

    margin: 0 auto clamp(25px, 4vw, 45px);

    border-radius: 35%;
}

#about img:hover {
    transform: scale(1.1) rotate(5deg);

    box-shadow:
        0 0 35px rgba(0, 153, 255, 0.6);
}

#about h4 {
    margin: clamp(20px, 3vw, 35px) 0 12px;
}

#about p,
#ein-paar {
    width: min(100%, 900px);
    margin-inline: auto;
}

#about p {
    font-size: clamp(15px, 1.4vw, 18px);
}

#ein-paar {
    margin-top: clamp(25px, 4vw, 45px);
}


/* =========================================================
   10. BOT-BEREICH
   ========================================================= */

#work {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.bot-card {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 5vw, 70px);

    padding: clamp(28px, 5vw, 60px);

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28);

    text-align: left;
}

.bot-info,
.bot-features {
    min-width: 0;
}

.bot-card h4 {
    margin: 0 0 24px;

    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
}

.bot-card p {
    width: 100%;
    margin: 0 0 20px;

    color: var(--text-muted);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.75;
}

.bot-features ul {
    display: grid;
    gap: 16px;
}

.bot-features li {
    padding: 14px 16px;

    background: var(--bg);
    border-radius: 10px;

    color: var(--text);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.5;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.bot-features li:hover {
    transform: translateX(6px);
    background: var(--surface-hover);
}


/* =========================================================
   11. KONTAKT UND FEEDBACK
   ========================================================= */

#contact {
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--bg);
}

#feedback-form,
form {
    width: min(100%, var(--form-width));
    margin: 0 auto;
}

#feedback-form label {
    display: block;

    margin: 0 0 8px;

    color: var(--text);
    text-align: left;
    font-weight: 500;
}

form input,
form textarea {
    width: 100%;

    margin-bottom: 12px;
    padding: 14px;

    border: 2px solid #444;
    border-radius: 6px;
    outline: none;

    background: var(--surface);
    color: #ffffff;

    font-family: "Roboto Slab", serif;
    font-size: clamp(14px, 1.2vw, 16px);

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(88, 101, 242, 0.2);
}

form textarea {
    min-height: clamp(170px, 25vh, 230px);
    resize: vertical;
}

::placeholder {
    color: #999999;
}

.button {
    width: 100%;
    min-height: 52px;

    border: 0;
    border-radius: 6px;

    background: var(--primary);
    color: #ffffff;

    cursor: pointer;

    font-weight: 600;
    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.3);
}

.button:active {
    transform: translateY(-1px);
}

.website-field {
    position: absolute;
    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}

.feedback-success {
    width: min(100%, var(--form-width));

    margin: 20px auto 0;
    padding: 14px 18px;

    background: rgba(35, 165, 90, 0.16);
    color: var(--success);

    border: 1px solid rgba(87, 242, 135, 0.35);
    border-radius: 6px;
}

.feedback-success[hidden] {
    display: none;
}


/* =========================================================
   12. FOOTER
   ========================================================= */

footer {
    width: 100%;
    min-height: 70px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface-dark);

    transition: background-color 0.3s ease;
}

footer h6 {
    margin: 0;

    color: #f0f0f0;
    font-size: clamp(12px, 1.2vw, 14px);
}


/* =========================================================
   14. LIGHT MODE
   ========================================================= */

body.light-mode {
    --bg: #ffffff;
    --surface: #f2f3f5;
    --surface-dark: #ffffff;
    --surface-hover: #e3e5e8;

    --text: #222222;
    --text-muted: #4e5058;

    --border: rgba(0, 0, 0, 0.08);

    background: var(--bg);
    color: var(--text);
}

body.light-mode header {
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.12);
}

body.light-mode #home h2 {
    color: #ffffff;
}

body.light-mode hr {
    background: #333333;
}

body.light-mode form input,
body.light-mode form textarea {
    background: #ffffff;
    color: #111111;
    border-color: #b5bac1;
}

body.light-mode footer h6 {
    color: #333333;
}

body.light-mode .feedback-success {
    background: rgba(35, 165, 90, 0.12);
    color: #18773b;
}

body.light-mode .cookie-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.12);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2);
}

body.light-mode #home h2,
body.light-mode .hero-description,
body.light-mode .hero-label,
body.light-mode .hero-highlights span,
body.light-mode .scroll-down {
    color: #f2f3f5;
}

body.light-mode .hero-button-secondary {
    color: #f2f3f5;
}

body.light-mode #socials {
    background: #f2f3f5;
}

body.light-mode .social-link {
    background: #ffffff;
    color: #222222;

    border-color: rgba(0, 0, 0, 0.08);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .social-link:hover {
    color: #ffffff;
}


/* =========================================================
   15. ANIMATIONEN
   ========================================================= */

@keyframes titleAnimation {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes cookieBannerIn {
    from {
        opacity: 0;
        transform: translate(-50%, 35px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowMovement {
    from {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    to {
        transform:
            translate3d(40px, -25px, 0)
            scale(1.15);
    }
}


/* =========================================================
   16. RESPONSIVE: TABLETS UND KLEINE LAPTOPS
   ========================================================= */

@media screen and (max-width: 900px) {
    header {
        gap: 15px;
    }

    header nav ul {
        gap: 10px 16px;
    }

    header nav a {
        font-size: 12px;
    }

    #home {
        background-attachment: scroll;
    }

    #home h1 {
        font-size: clamp(52px, 15vw, 135px);
    }
}

@media screen and (max-width: 760px) {
    .bot-card {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 25px 20px;
    }

    .bot-card h4 {
        text-align: center;
    }

    .bot-card p {
        text-align: left;
    }
}


/* =========================================================
   17. RESPONSIVE: HANDYS
   ========================================================= */

@media screen and (max-width: 700px) {
    .cookie-content {
        grid-template-columns: 1fr;
        gap: 14px;

        text-align: center;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-text {
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        min-width: 0;
    }
}

@media screen and (max-width: 680px) {

    header {
        min-height: 65px;

        padding: 7px 14px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;
    }

    #logo {
        width: 52px;
    }

    .header-actions {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
    }


    /* MOBILE NAVIGATION */

    #main-nav {
        position: fixed;

        top: 65px;
        left: 0;

        width: 100%;
        height: calc(100svh - 65px);

        margin: 0;
        padding: 35px 20px;

        display: flex;
        justify-content: center;
        align-items: flex-start;

        background:
            rgba(30, 31, 34, 0.98);

        backdrop-filter: blur(18px);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-15px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    #main-nav.open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    #main-nav ul {
        width: min(100%, 420px);

        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    #main-nav li {
        width: 100%;
    }

    #main-nav li:hover {
        transform: none;
    }

    #main-nav a {
        width: 100%;

        padding: 17px 20px;

        display: block;

        background: #2b2d31;

        border: 1px solid rgba(255,255,255,.06);
        border-radius: 10px;

        color: #f2f3f5;

        font-size: 17px;
        text-align: left;
    }

    #main-nav a:hover {
        background: #35373c;
    }

    #main-nav a::after {
        display: none;
    }


    /* LIGHT MODE */

    body.light-mode #main-nav {
        background:
            rgba(255,255,255,.98);
    }

    body.light-mode #main-nav a {
        background: #f2f3f5;
        color: #222222;

        border-color:
            rgba(0,0,0,.06);
    }

    body.light-mode #main-nav a:hover {
        background: #e3e5e8;
    }

}


/* =========================================================
   18. RESPONSIVE: SEHR KLEINE HANDYS
   ========================================================= */

@media screen and (max-width: 380px) {
    header nav ul {
        gap: 3px 10px;
    }

    header nav a {
        font-size: 10px;
    }

    #home h1 {
        font-size: clamp(40px, 15vw, 60px);
    }

    h3 {
        font-size: 28px;
    }

    section {
        padding-inline: 14px;
    }
}


/* =========================================================
   19. RESPONSIVE: GROSSE UND ULTRAWIDE-BILDSCHIRME
   ========================================================= */

@media screen and (min-width: 1600px) {
    #about p,
    #ein-paar {
        max-width: 1000px;
    }

    #projects {
        max-width: 1300px;
    }

    form,
    #feedback-form {
        max-width: 720px;
    }
}


/* =========================================================
   20. BARRIEREFREIHEIT
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   LADEANIMATION
   ========================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1e1f22;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.loader-logo {
    width: clamp(90px, 16vw, 150px);

    animation: loaderLogoPulse 1.6s ease-in-out infinite;
}

.loader-spinner {
    width: 48px;
    height: 48px;

    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top-color: #5865f2;
    border-radius: 50%;

    animation: loaderSpin 0.9s linear infinite;
}

.loader-content p {
    margin: 0;

    color: #b5bac1;
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 1px;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderLogoPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.35));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 22px rgba(88, 101, 242, 0.8));
    }
}

body.page-loaded .hero-content {
    animation: heroContentIn 1.2s ease forwards;
}

body.page-loaded #home h1 {
    animation: heroTitleIn 1.2s ease forwards;
    animation-delay: 0.15s;
}

body.page-loaded .hero-glow {
    animation: glowMovement 8s ease-in-out infinite alternate;
}

body.page-loaded .hero-glow-two {
    animation-delay: -3s;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   SOCIAL MEDIA
   ========================================================= */

#socials {
    min-height: auto;

    padding:
        clamp(70px, 9vw, 110px)
        clamp(18px, 5vw, 80px);

    background: #2b2d31;
}

.social-description {
    width: min(100%, 600px);

    margin:
        0
        auto
        clamp(30px, 5vw, 45px);

    color: #b5bac1;
    font-size: clamp(15px, 1.5vw, 18px);
}

.social-links {
    width: min(100%, 850px);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(min(220px, 100%), 1fr)
        );

    gap: clamp(16px, 3vw, 25px);
}

.social-link {
    min-height: 120px;
    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    background: #313338;
    color: #f2f3f5;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.social-link i {
    font-size: 38px;
}

.social-link span {
    font-size: 16px;
    font-weight: 700;
}

.social-link:hover {
    transform: translateY(-7px);
}

.social-link.twitch:hover {
    background: #9146ff;
    border-color: #9146ff;

    box-shadow:
        0 15px 35px rgba(145, 70, 255, 0.4);
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;

    box-shadow:
        0 15px 35px rgba(255, 0, 0, 0.4);
}

.social-link.x-twitter:hover {
    background: #000000;
    border-color: #ffffff;

    box-shadow:
        0 15px 35px rgba(255, 255, 255, 0.15);
}

.social-icon-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.twitch-live-badge {
    position: absolute;

    top: -12px;
    right: -35px;

    padding: 4px 7px;

    border-radius: 5px;

    background: #ed4245;
    color: white;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;

    box-shadow:
        0 0 12px rgba(237, 66, 69, .7);

    animation: twitchLivePulse 1.6s ease-in-out infinite;
}

.twitch-live-badge[hidden] {
    display: none;
}

#twitch-social-info {
    margin-top: 4px;

    color: #949ba4;

    font-size: 12px;

    text-transform: none;
}

.social-link.twitch.is-live {
    border-color: #9146ff;

    box-shadow:
        0 0 25px rgba(145, 70, 255, .35);
}

.social-link.twitch.is-live #twitch-social-info {
    color: #57f287;
}

@keyframes twitchLivePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}

/* =========================================================
   DISCORD LIVE
   ========================================================= */

#discord-live {
    min-height: auto;

    padding:
        clamp(70px, 9vw, 120px)
        clamp(18px, 5vw, 80px);

    background:
        radial-gradient(
            circle at top,
            rgba(88, 101, 242, 0.14),
            transparent 45%
        ),
        #313338;
}

.discord-live-card {
    width: min(100%, 1100px);

    margin: 0 auto;
    padding: clamp(24px, 4vw, 45px);

    background: #2b2d31;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.3);

    text-align: left;
}

.discord-live-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 18px;

    margin-bottom: 35px;
}

.discord-live-icon {
    width: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;


    background: transparent;

    font-size: 30px;

}

.discord-live-label {
    margin: 0;

    color: #949ba4;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.discord-live-header h3{

    margin-top:2px;

    margin-bottom:0;

    font-size: clamp(28px, 9vw, 42px);

    white-space: normal;

    overflow-wrap: anywhere;

    font-weight:800;

    color:white;

}

.discord-status {
    padding: 8px 14px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.discord-status.loading {
    background: rgba(250, 166, 26, 0.15);
    color: #faa61a;
}

.discord-status.online {
    background: rgba(35, 165, 90, 0.16);
    color: #57f287;
}

.discord-status.error {
    background: rgba(237, 66, 69, 0.16);
    color: #ed4245;
}

.discord-live-stats {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: clamp(14px, 2vw, 22px);

    margin-bottom: 30px;
}

.discord-stat {
    padding: 22px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #313338;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;

    text-align: center;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.discord-stat:hover {
    transform: translateY(-6px);

    border-color: rgba(88, 101, 242, 0.55);

    box-shadow:
        0 13px 30px rgba(0, 0, 0, 0.22);
}

.discord-stat-icon {
    margin-bottom: 10px;
    font-size: 28px;
}

.discord-stat strong {
    color: #f2f3f5;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.discord-stat span:last-child {
    margin-top: 8px;

    color: #b5bac1;

    font-size: 14px;
}

.discord-bot-info {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.discord-bot-info > div {
    padding: 18px;

    background: #313338;

    border-radius: 10px;

    text-align: center;
}

.discord-bot-info span {
    display: block;

    margin-bottom: 7px;

    color: #b5bac1;

    font-size: 13px;
}

.discord-bot-info strong {
    color: #f2f3f5;

    font-size: 18px;
}

.bot-status.online {
    color: #57f287;
}

.bot-status.offline {
    color: #ed4245;
}

.discord-live-footer {
    margin-top: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.discord-live-footer p {
    margin: 0;

    color: #949ba4;

    font-size: 12px;
}

.discord-invite-button {
    min-height: 48px;

    padding: 13px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #5865f2;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.discord-invite-button:hover {
    transform: translateY(-4px);

    background: #4752c4;

    box-shadow:
        0 12px 27px rgba(88, 101, 242, 0.32);
}

/* Light Mode */

body.light-mode #discord-live {
    background:
        radial-gradient(
            circle at top,
            rgba(88, 101, 242, 0.11),
            transparent 45%
        ),
        #f2f3f5;
}

body.light-mode .discord-live-card {
    background: #ffffff;

    border-color: rgba(0, 0, 0, 0.08);

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.12);
}

body.light-mode .discord-stat,
body.light-mode .discord-bot-info > div {
    background: #f2f3f5;
}

body.light-mode .discord-stat strong,
body.light-mode .discord-bot-info strong {
    color: #222222;
}



/* Mobile */

@media screen and (max-width: 900px) {
    .discord-live-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 680px) {

    #discord-live {
        padding:
            100px
            12px
            60px;
    }

    .discord-live-card {
        width: 100%;
        padding: 20px 14px;

        border-radius: 14px;
    }

    .discord-live-header {
        grid-template-columns: auto 1fr;
        gap: 14px;

        margin-bottom: 24px;
    }

    .discord-server-icon {
        width: 58px;
        height: 58px;
    }

    .discord-live-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .discord-live-header h3 {
        margin: 2px 0 0;

        font-size: clamp(28px, 9vw, 42px);

        line-height: 1;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .discord-status {
        grid-column: 1 / -1;

        justify-self: start;

        margin-top: 6px;
    }

    .discord-live-stats {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .discord-stat {
        min-height: 170px;

        padding: 22px 16px;
    }

    .discord-stat strong {
        font-size: 34px;
    }

    .discord-stat span:last-child {
        font-size: 14px;
    }

    .discord-bot-info {
        grid-template-columns: 1fr;
    }

    .discord-live-footer {
        flex-direction: column;
        align-items: stretch;

        gap: 14px;

        text-align: center;
    }

    .discord-invite-button {
        width: 100%;
    }
}

/* =========================================================
   FOOTER
========================================================= */

.main-footer {
    width: 100%;

    padding:
        60px
        clamp(18px, 5vw, 80px)
        25px;

    background: #111214;

    border-top:
        1px solid rgba(255,255,255,.06);
}

.footer-content {
    width: min(100%, 1200px);

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        1.2fr 2fr;

    gap: 60px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    text-align: left;
}

.footer-brand img {
    width: 70px;

    filter:
        drop-shadow(
            0 0 12px rgba(255,0,0,.45)
        );
}

.footer-brand strong {
    display: block;

    color: #f2f3f5;

    font-size: 28px;
}

.footer-brand p {
    margin-top: 8px;

    color: #949ba4;
}

.footer-links {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 35px;
}

.footer-links > div {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}

.footer-links h4 {
    margin: 0 0 8px;

    color: #f2f3f5;

    font-size: 16px;
}

.footer-links a,
.footer-cookie-button {
    color: #949ba4;

    font-size: 14px;

    text-transform: none;

    transition: .2s;
}

.footer-links a:hover,
.footer-cookie-button:hover {
    color: #ffffff;
}

.footer-cookie-button {
    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.footer-bottom {
    width: min(100%, 1200px);

    margin:
        45px auto 0;

    padding-top: 22px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-top:
        1px solid rgba(255,255,255,.06);

    color: #6d6f78;

    font-size: 12px;
}

@media screen and (max-width: 680px) {

    .footer-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;

        gap: 8px;
    }
}

/* =========================================================
   IMPRESSUM & DATENSCHUTZ
========================================================= */

.legal-page {
    min-height: 100svh;

    padding:
        clamp(110px, 12vw, 150px)
        clamp(18px, 5vw, 80px)
        80px;

    background: #313338;

    text-align: left;
}

.legal-container {
    width: min(100%, 900px);
    margin: 0 auto;
}

.legal-container > h1 {
    margin: 35px 0 45px;

    font-size: clamp(42px, 8vw, 85px);

    line-height: 1;
}

.legal-back {
    display: inline-flex;

    padding: 10px 15px;

    border-radius: 7px;

    background: #2b2d31;
    color: #b5bac1;

    font-size: 13px;

    text-transform: none;
}

.legal-back:hover {
    color: #ffffff;
    background: #35373c;
}

.legal-section {
    min-height: auto;

    padding: 0;

    margin-bottom: 40px;
}

.legal-section h2 {
    margin-bottom: 15px;

    color: #f2f3f5;

    font-size: clamp(21px, 3vw, 28px);

    text-transform: none;
}

.legal-section p {
    margin: 0;

    color: #b5bac1;

    line-height: 1.8;
}

.legal-section a {
    color: #5865f2;

    text-transform: none;
}

body.light-mode .legal-page {
    background: #ffffff;
}

body.light-mode .legal-section h2 {
    color: #222222;
}

body.light-mode .legal-section p {
    color: #4e5058;
}

/* =========================================================
   ABOUT
========================================================= */

.about-text {
    width: min(100%, 950px);

    margin: 45px auto 70px;

    text-align: center;
}

.about-text p {
    margin-bottom: 28px;

    font-size: 18px;
    line-height: 1.9;

    color: #b5bac1;
}

.about-text strong {
    color: #ffffff;
}

.about-cards {
    width: min(100%, 1200px);

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.about-card {
    padding: 35px 25px;

    background: #2b2d31;

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;

    transition: .35s;
}

.about-card:hover {
    transform: translateY(-8px);

    border-color: rgba(255,51,51,.5);

    box-shadow:
        0 18px 35px rgba(0,0,0,.25),
        0 0 25px rgba(255,51,51,.15);
}

.about-card span {
    display: block;

    font-size: 42px;

    margin-bottom: 18px;
}

.about-card h4 {
    margin: 0 0 12px;

    color: #f2f3f5;

    font-size: 22px;
}

.about-card p {
    margin: 0;

    color: #b5bac1;

    font-size: 16px;
}

/* Light Mode */

body.light-mode .about-text strong,
body.light-mode .about-card h4 {
    color: #222222;
}

body.light-mode .about-card {
    background: #ffffff;

    border-color: rgba(0,0,0,.08);
}

/* Mobile */

@media (max-width: 900px) {

    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .about-text p {
        font-size: 16px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

}