@font-face {
    font-family: FiraCode;
    src: url('../fonts/FiraCode.ttf');
}

@font-face {
    font-family: Karla;
    src: url('../fonts/Karla.ttf');
}

:root {
    --white: #fff;
    --grey-white: #fffc;
    --white-gray: #d9d9d9;
    --teal: #3dcfb6;
    --teal-dot: #6ad7bf;
    --mint: #3dcfb61a;
    --black: #1c1c1c;
    --dark: #141414;
    --carousel: #26524b;
    --line: #3dcfb680;
    --error: #ec7b7b;
    --error-soft: #ec7b7bcc;
    --turquoise-30: #3dcfb64d;
    --marquee: #ffffff1f;

    --fs-body: clamp(1rem, .975rem + .125vw, 1.125rem);
    --fs-nav: clamp(1.125rem, 1.1rem + .125vw, 1.25rem);
    --fs-xl: clamp(1.125rem, 1.05rem + .375vw, 1.5rem);
    --fs-xxl: clamp(1.5rem, 1.4rem + .5vw, 2rem);
    --fs-hero-sub: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
    --fs-title: clamp(3.5rem, 3.4rem + .5vw, 4rem);
    --fs-hero: clamp(3.875rem, 3.05rem + 4.125vw, 8rem);

    --content-max: 1440px;
    --content-pad: 6rem;
}

*:not(dialog) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    scrollbar-color: var(--teal) #292929;
}

html::-webkit-scrollbar-thumb {
    background: #3dcfb6;
}

html::-webkit-scrollbar-track {
    background: #292929;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--black);
    color: var(--white);
    font-family: Karla, sans-serif;
}

body.dialog-open,
body.menu-open {
    overflow: hidden;
}

img,
picture {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style-type: none;
}

button,
input,
textarea {
    border: none;
    outline: none;
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

.fira {
    font-family: FiraCode, monospace;
}

.karla {
    font-family: Karla, sans-serif;
}

.container {
    margin-inline: auto;
    padding-inline: var(--content-pad);
    max-width: var(--content-max);
    width: 100%;
}

.app-section {
    background-color: var(--black);
}

.section-eyebrow {
    font-weight: 500;
    font-size: var(--fs-xl);
    color: var(--teal);
    margin-bottom: 1.25rem;
}

.section-title {
    color: var(--teal);
    font-size: var(--fs-title);
    font-weight: 700;
}

.glass-card {
    background-color: var(--mint);
    border: 1px solid var(--teal);
    border-radius: 30px;
    padding: 2rem;
    display: block;
}

.portfolio-btn {
    color: #fff;
    border: 1px solid #fff;
    border-radius: 100px;
    padding: .813rem 1.5rem;
    font-weight: 400;
    font-size: var(--fs-body);
    transition: border-color .3s ease-out, color .3s ease-out;
    background-color: transparent;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.portfolio-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.scroll-btn {
    overflow-x: auto;
    scrollbar-width: none;
}

.scroll-btn::-webkit-scrollbar {
    display: none;
}

.scroll-btn:hover > .btn-text {
    animation: move-left 4s infinite linear;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

/* Button: Text außerhalb abschneiden */
.hero-section__actions .scroll-btn {
  overflow: hidden;
}

/* Ausgangsposition des Textes */
.hero-section__actions .scroll-btn .btn-text {
  display: inline-block;
  transition: transform 900ms ease-out;
}

/* Text beim Hover vollständig nach links bewegen */
.hero-section__actions .scroll-btn:hover .btn-text {
  animation: none;
  transform: translateX(calc(-100% - 40px));
}

.btn-text {
    white-space: nowrap;
}

.d-none {
    display: none !important;
}

@keyframes move-left {
    0% {
        transform: translate(0);
    }

    49.99% {
        transform: translate(-300%);
    }

    50% {
        transform: translate(300%);
    }

    to {
        transform: translate(0);
    }
}

@media (max-width: 768px) {
    :root {
        --content-pad: 1rem;
    }

    .portfolio-btn {
        border-color: var(--teal);
        color: var(--teal);
    }
}

@media (max-width: 576px) {
    .portfolio-btn {
        padding: .625rem;
    }
}