* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

/* DARK MODE */

body.dark-mode {
    background: #000;
    color: #fff;
}

/* LIGHT MODE */

body.light-mode {
    background: #f5f5f5;
    color: #111;
}

/* HEADER */

.top-header {
    width: 100%;
    padding: 22px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.brand h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* DARK / LIGHT SWITCH BOX */

.theme-switch-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-text {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.8;
}

/* ORIGINAL METALL-SWITCH, ABER KLEINER */

#switch {
    visibility: hidden;
    clip: rect(0 0 0 0);
    position: absolute;
    left: -9999px;
}

.switch {
    display: block;
    width: 72px;
    height: 34px;
    position: relative;
    cursor: pointer;
    border-radius: 0.35em;

    background: linear-gradient(
        to right,
        #ced8da 0%,
        #d8e0e3 29%,
        #ccd4d7 34%,
        #d4dcdf 62%,
        #fff9f4 68%,
        #e1e9ec 74%,
        #b7bfc2 100%
    );

    transition: all 0.2s ease-out;

    box-shadow:
        0 0 1px 1px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 1px rgba(0, 0, 0, 0.25),
        0 5px 8px rgba(0, 0, 0, 0.18);
}

/* Hintergrundplatte vom Switch */
.switch::before {
    display: block;
    position: absolute;
    left: -16px;
    right: -16px;
    top: -10px;
    bottom: -10px;
    z-index: -2;
    content: "";
    border-radius: 0.45em;

    background: linear-gradient(#d7dfe2, #bcc7cd);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 1px rgba(0, 0, 0, 0.25),
        0 0 6px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.15);

    pointer-events: none;
    transition: all 0.2s ease-out;
}

/* Kleiner Punkt rechts */
.switch::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #788b91;
    margin-top: -4.5px;
    z-index: -1;

    box-shadow:
        inset 0 -1px 5px rgba(0, 0, 0, 0.7),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        0 1px 0 white,
        0 -1px 0 rgba(0, 0, 0, 0.5),
        -26px 18px 8px 6px rgba(0, 0, 0, 0.25);
}

#switch:checked + .switch {
    background: linear-gradient(
        to right,
        #b7bfc2 0%,
        #e1e9ec 26%,
        #fff9f4 32%,
        #d4dcdf 38%,
        #ccd4d7 66%,
        #d8e0e3 71%,
        #ced8da 100%
    );
}

#switch:checked + .switch::after {
    background: #b1ffff;

    box-shadow:
        inset 0 -1px 5px rgba(0, 0, 0, 0.7),
        inset 0 -1px 1px rgba(0, 0, 0, 0.2),
        0 1px 0 white,
        0 -1px 0 rgba(0, 0, 0, 0.5),
        -61px 18px 8px 6px rgba(0, 0, 0, 0.25);
}

/* TASKBAR / NAVBAR */

.taskbar {
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;

    background: rgba(25, 25, 25, 0.85);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.light-mode .taskbar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* BUTTONS: NORMAL OHNE BUNTE BORDER */

.glow-on-hover {
    min-width: 130px;
    height: 48px;
    padding: 0 26px;

    border: 2px solid transparent;
    border-radius: 999px;
    outline: none;

    color: #fff;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    background: #111;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

body.light-mode .glow-on-hover {
    color: #111;
    background: #eeeeee;
}

.glow-on-hover.active {
    background: #5f5f5f;
    color: #fff;
}

/* BUNTE BORDER NUR BEIM HOVER */

.glow-on-hover:hover {
    transform: scale(1.06);

    background:
        linear-gradient(#111, #111) padding-box,
        linear-gradient(
            45deg,
            #00eaff,
            #0066ff,
            #7a00ff,
            #ff00c8,
            #00eaff
        ) border-box;

    background-size: 100%, 300%;
    animation: borderMove 3s linear infinite;

    box-shadow:
        0 0 15px rgba(0, 234, 255, 0.7),
        0 0 30px rgba(122, 0, 255, 0.45),
        0 0 45px rgba(255, 0, 200, 0.25);
}

body.light-mode .glow-on-hover:hover {
    background:
        linear-gradient(#eeeeee, #eeeeee) padding-box,
        linear-gradient(
            45deg,
            #00eaff,
            #0066ff,
            #7a00ff,
            #ff00c8,
            #00eaff
        ) border-box;
}

.glow-on-hover:active {
    transform: scale(0.97);
}

/* CONTENT */

.content {
    max-width: 900px;
    margin: 90px auto 0 auto;
    padding: 0 30px;
    text-align: center;
}

.content h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.content p {
    font-size: 24px;
    line-height: 1.5;
    opacity: 0.85;
}

/* ANIMATION */

@keyframes borderMove {
    0% {
        background-position: 0 0, 0 0;
    }

    50% {
        background-position: 0 0, 300% 0;
    }

    100% {
        background-position: 0 0, 0 0;
    }
}

/* HANDY-ANSICHT */

@media (max-width: 700px) {
    .top-header {
        padding: 18px 22px;
        flex-direction: column;
        gap: 18px;
    }

    .brand h2 {
        font-size: 26px;
    }

    .logo {
        width: 58px;
        height: 58px;
    }

    .theme-switch-box {
        margin-top: 8px;
    }

    .taskbar {
        width: calc(100% - 30px);
        border-radius: 24px;
        flex-wrap: wrap;
    }

    .glow-on-hover {
        min-width: 120px;
    }

    .content {
        margin-top: 60px;
    }

    .content h1 {
        font-size: 36px;
    }

    .content p {
        font-size: 19px;
    }
}

/* BOOTSTRAP CARDS DARK / LIGHT MODE */

body.dark-mode .card {
    background: #151515;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.06);
}

body.dark-mode .card-title {
    color: #ffffff;
}

body.dark-mode .card-text {
    color: #d6d6d6;
}

body.dark-mode .card-img-top {
    background: #222;
    border-bottom: 1px solid #333;
}


body.light-mode .card {
    background: #ffffff;
    color: #111111;
    border: 1px solid #ddd;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

body.light-mode .card-title {
    color: #111111;
}

body.light-mode .card-text {
    color: #333333;
}

/* From Uiverse.io by FColombati */ 
.button {
  all: unset;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
  border-radius: 100em;
  background-color: rgba(0, 0, 0, 0.75);
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1);
}

.button::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  border-radius: inherit;
  background: linear-gradient(
    -135deg,
    rgba(5, 5, 5, 0.5),
    transparent 20%,
    transparent 100%
  );
  filter: blur(0.0125em);
  opacity: 0.25;
  mix-blend-mode: multiply;
}

.button .button-outer {
  position: relative;
  z-index: 1;
  border-radius: inherit;
  transition: box-shadow 300ms ease;
  will-change: box-shadow;
  box-shadow:
    0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1),
    0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5),
    0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25);
}

.button:hover .button-outer {
  box-shadow:
    0 0 0 0 rgba(5, 5, 5, 1),
    0 0 0 0 rgba(5, 5, 5, 0.5),
    0 0 0 0 rgba(5, 5, 5, 0.25);
}

.button-inner {
  --inset: 0.035em;
  position: relative;
  z-index: 1;
  border-radius: inherit;
  padding: 1em 1.5em;
  background-image: linear-gradient(
    135deg,
    rgba(230, 230, 230, 1),
    rgba(180, 180, 180, 1)
  );
  transition:
    box-shadow 300ms ease,
    clip-path 250ms ease,
    background-image 250ms ease,
    transform 250ms ease;
  will-change: box-shadow, clip-path, background-image, transform;
  overflow: clip;
  clip-path: inset(0 0 0 0 round 100em);
  box-shadow:
        /* 1 */
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    /* 2 */ -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25),
    /* 3 */ 0 0 0 0 inset rgba(5, 5, 5, 0.1),
    /* 4 */ 0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25),
    /* 5 */ 0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 1),
    /* 6 */ 0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
    /* 7 */ -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25);
}

.button:hover .button-inner {
  clip-path: inset(
    clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px)
      clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 100em
  );
  box-shadow:
        /* 1 */
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75),
    /* 2 */ -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5),
    /* 3 */ 0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5),
    /* 4 */ 0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15),
    /* 5 */ 0 0 0 0 inset rgba(255, 255, 255, 1),
    /* 6 */ 0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
    /* 7 */ -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25);
}

.button .button-inner span {
  position: relative;
  z-index: 4;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: rgba(0, 0, 0, 0);
  background-image: linear-gradient(
    135deg,
    rgba(25, 25, 25, 1),
    rgba(75, 75, 75, 1)
  );
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform 250ms ease;
  display: block;
  will-change: transform;
  text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.button:hover .button-inner span {
  transform: scale(0.975);
}

.button:active .button-inner {
  transform: scale(0.975);
}
