*, *::before, *::after { box-sizing: border-box; }

/* JOST FONT */
@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/jost-v19-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/jost/jost-v19-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* VARIABLES */
:root {
    --min_hero_headline: 2rem;
    --pref_hero_headline: 4vw;
    --max_hero_headline: 3rem;

    --min_section_headline: 1.75rem;
    --pref_section_headline: 3.5vw;
    --max_section_headline: 2.5rem;

    --min_item_headline: 1.5rem;
    --pref_item_headline: 3vw;
    --max_item_headline: 2rem;

    --min_hero_text: 1.125rem;
    --pref_hero_text: 1.8vw;
    --max_hero_text: 2rem;

    --min_section_text: 1.125rem;
    --pref_section_text: 1.5vw;
    --max_section_text: 1.5rem;

    --item_text: 1.125rem;

    --content_max_width: 1100px;

    --Electric_Crimson: #FF003F;
    --Electric_Ultramarine: #3F00FF;
    --Image_Background_Yellow: #EBEBAD;
    --Image_Background_Green: #C2EBAD;
    --Gray_Light: #999999;
    --Gray_Dark: #666666;
    --White: #ffffff;
    --Black: #000000;
    --header_background: rgba(242, 242, 242, 0.2);
    --LightModeParagraph: #4F4F4F;

    --Background: #F2F2F2;
    --Header: #262626;
    --Paragraph: #4F4F4F;
    --Contrast: var(--Black);
    --Contrast_inverted: var(--White);

}
@media (prefers-color-scheme: dark) {
    :root {
        --Background: #262626;
        --Header: #F2F2F2;
        --Paragraph: #C9C9C9;
        --Contrast: var(--White);
        --Contrast_inverted: var(--Gray_Dark);
        --header_background: rgba(242, 242, 242, 0.05);

    }
}
/* -------------------- */

/* ELEMENT ANIMATION */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}
.animate-on-scroll.is-visible-instantly {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: none;
}
.animate-on-scroll.two-left { transition-delay: 200ms; }
.animate-on-scroll.two-right { transition-delay: 400ms; }
/* -------------------- */

/* BASIC STYLES */
body {
    font-family: 'Jost', sans-serif;
    font-size: var(--item_text);
    color: var(--Paragraph);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--Background);
}
.container {
    max-width: var(--content_max_width);
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: 32px 0rem 0rem 0rem;
    min-height: 90dvh;
}
.section-headline {
    font-size: clamp(var(--min_section_headline),var(--pref_section_headline),var(--max_section_headline));
    color: var(--Contrast);
    margin: 2rem 0 2rem 0;
    hyphens: manual;
}
.section-text {
    font-size: clamp(var(--min_section_text),var(--pref_section_text),var(--max_section_text));
    margin: 0 auto 2rem 0;
    hyphens: manual;
}
.item-headline {
    font-size: clamp(var(--min_item_headline),var(--pref_item_headline),var(--max_item_headline));
    margin: 0 0 0 0;
    hyphens: manual;
}
.item-text {
    font-size: var(--item_text);
    margin: 1rem 0 1rem 0;
    hyphens: manual;
}
.highlight {
    font-weight: 700;
}
.external-source {
    display: block;
    width: fit-content;
    color: var(--Gray_Light);
    font-size: 0.875rem;
    text-decoration: none;
    margin: 0 0 2rem auto;
    transition: color 0.3s ease;
}
.external-link {
    color: var(--Paragraph);
    text-decoration: none;
    transition: color 0.3s ease;
}
img {
    border-radius: 0px;
    max-width: 100%;
    height: auto;
    margin: 0 0 1rem 0;
}
/* -------------------- */

/* HEADER AND NAVIGATION */
header {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 1000;
    color: var(--Header);
    display: flex;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}
header .header-shell {
    width: 100%;
    max-width: 1400px;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    background-color: var(--header_background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    border-radius: 999px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3),
    inset 0px -30px 30px -30px rgba(255, 255, 255, 0.1);
}
header a {
    color: var(--Header);
    text-decoration: none;
}
header .logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
header .logo svg {
    display: block;
}
.logo-text {
    fill: var(--Contrast);
    transition: fill 0.3s ease;
}
.header-logo{
    margin-left: 0.5rem;
    order: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.header-nav {
    order: 2;
    flex: 2;
    justify-content: center;
}
.header-cta-div {
    order: 3;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);/*-20*/
    pointer-events: none;
}
.header-cta-div.header-cta-div--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* -------------------- */

/* CTA BUTTONS */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    padding: 4px 16px;
    border: 1px solid var(--Electric_Crimson);
    border-radius: 999px;
    text-decoration: none;
    color: var(--White);
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    background-size: 200% 100%; 
    background-position: 0 0;
    transition: transform 0.5s ease;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    /*inset 0px -4px 8px rgba(255, 255, 255, 0.2);*/
}
.btn-cta-header {
    text-align: center;
    overflow: hidden;
    background: var(--Electric_Crimson);
}
.btn-cta-header .cta-label-short { display: none; }
.btn-cta-header .cta-label-full { display: inline; }
.btn-cta-primary {
    background: var(--Electric_Crimson);
    overflow: hidden;
    min-width: 250px;
    margin: 8px 0px;
}
.btn-cta-secondary {
    background: var(--White);
    color: var(--Electric_Crimson);
    overflow: hidden;
    min-width: 250px;
    margin: 8px 0px;      
}

@media (hover: hover) and (pointer: fine) {
    .external-source:hover,
    .external-link:hover {
        color: var(--Electric_Crimson);
    }

    header .logo:hover .logo-text {
        fill: var(--Electric_Crimson);
    }

    header .main-nav a:hover {
        color: var(--Electric_Crimson);
    }

/*    .btn-cta-header:hover,
    .btn-cta-primary:hover,
    .btn-cta-secondary:hover {
    }
*/
    .tile-toggle:hover {
        color: var(--Electric_Crimson);
    }

    .profile-link:hover {
        color: var(--Electric_Crimson);
    }

    footer ul li a:hover {
        color: var(--Electric_Crimson);
    }

    .error-page .simple-error a:hover {
        text-decoration: underline;
    }
}

.btn-cta-header::before,
.btn-cta-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
  }

  .btn-cta-secondary::before {
      content: "";
      position: absolute;
      top: 0;
      left: -50%;
      width: 50%;
      height: 100%;
      background: linear-gradient(
        120deg,
        rgba(255, 0, 85, 0) 0%,
        rgba(255, 0, 85, 0.6) 50%,
        rgba(255, 0, 85, 0) 100%
      );
      transform: skewX(-20deg);
      pointer-events: none;
    }
  
.btn-cta-header:hover::before,
.btn-cta-primary:hover::before,
.btn-cta-secondary:hover::before {
    animation: flash 0.3s ease-out;
  }

@keyframes flash {
    0% {
      left: -50%;
    }
    100% {
      left: 120%;
    }
  }
/* -------------------- */

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--Contrast);
    font-size: 2rem;
    cursor: pointer;
    margin-left: 1rem;
}
.close-menu-btn {
    display: none;
}
main {
    padding-top: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 1rem;
}
nav ul li a {
    color: var(--Contrast);
    text-decoration: none;
    transition: color 0.3s ease;
}
/* -------------------- */

/* HERO */
#hero {
    background: var(--Background);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.header-cta-sentinel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    pointer-events: none;
}
.header-cta-sentinel--top {
    top: 40px;
}
.header-cta-sentinel--bottom {
    bottom: 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-bg picture {
    width: 100%;
    height: 100%;
    display: block;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.2;
}
.hero-container {
    text-align: left;
    max-width: var(--content_max_width);
    margin: 0 auto;
    padding: 0 1rem;
}
.hero-headline {
    font-size: clamp(var(--min_hero_headline),var(--pref_hero_headline),var(--max_hero_headline));
    color: var(--Contrast);
}
.hero-text {
    font-size: clamp(var(--min_hero_text),var(--pref_hero_text),var(--max_hero_text));
    color: var(--Contrast);
}
.hero-cta-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
}
/* -------------------- */

/* PROCESS (LEISTUNGEN) */
.process-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.process-step {
    position: relative;
    text-align: left;
    max-width: 700px;
    margin: 0 0 2rem 0;
}
.process-step-1 {
    align-self: flex-start;
}
.process-step-2 {
    align-self: flex-end;
}
.process-step-3 {
    align-self: flex-start;
}
@media (max-width: 800px) {
    .process-step {
        width: 100%;
    }
    .process-step-1, .process-step-2, .process-step-3 {
        align-self: auto;
    }
}
/* -------------------- */

/* TILES (ANWENDUNGEN) */
.tile-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
}
@media (max-width: 800px) {
    .animate-on-scroll.two-left,
    .animate-on-scroll.two-right { transition-delay: 0ms; }

    .tile-container {
        grid-template-columns: 1fr;
    }
}
.tile {
    max-width: 700px;
    width: 100%;
    margin: 0px auto;
}
.tile p {
    color: var(--Paragraph);
}
.tile-text {
    position: relative;
    margin-top: 1rem;
}
.tile-text--collapsible {
    overflow: hidden;
    transition: max-height 0.4s ease;
    will-change: max-height;
}
.tile-text > *:first-child {
    margin-top: 0;
}
.hook + .tile-text {
    margin-top: 0.75rem;
}
.tile-text--collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3rem;
    background: linear-gradient(to bottom, transparent, var(--Background));
    pointer-events: none;
}
.tile-text--expanded {
    overflow: visible;
}
.tile-text--expanded::before,
.tile-text--expanded::after {
    display: none;
}
.tile-toggle {
    margin-top: 0.75rem;
    font: inherit;
    color: var(--Gray_Light);
    font-size: 0.875rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.3s ease;
}
.tile-toggle:focus-visible {
    color: var(--Electric_Crimson);
    outline-offset: 2px;
}
/* -------------------- */

/* ABOUT SECTION */
.about-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.about-profile {
    flex: 0 0 300px;
    text-align: center;
    margin: auto 0px;
}
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.profile-name {
    font-size: clamp(var(--min_item_headline),var(--pref_item_headline),var(--max_item_headline));
    color: var(--Header);
    margin: 0;
}
.profile-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}
.profile-links--start {
    justify-content: flex-start;
}
.profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 50%;
    color: var(--Contrast);
    text-decoration: none;
    transition: color 0.3s ease;
}
.profile-link-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    color: inherit;
}
.profile-link-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.profile-title {
    font-size: clamp(var(--min_item_headline),var(--pref_item_headline),var(--max_item_headline));
    color: var(--Electric_Crimson);
    margin: 0.5rem 0 0 0;
}
.about-text {
    flex: 1;
}
/* -------------------- */

/* GENERIC DROP SHADOW */
.drop-shadow {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  }
/* -------------------- */


/* CONTACT OVERLAY */
.contact-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}
.contact-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.contact-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.contact-overlay__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 24px;
    background: var(--Background);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    color: var(--LightModeParagraph);
}
.contact-overlay__dialog h2 {
    margin: 0 0 1.5rem 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--LightModeParagraph);
}
.contact-overlay__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: var(--LightModeParagraph);
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.contact-overlay__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-overlay__label {
    font-weight: 600;
    color: var(--LightModeParagraph);
}
.contact-overlay__input,
.contact-overlay__textarea {
    font: inherit;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: var(--LightModeParagraph);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-overlay__textarea {
    resize: vertical;
    min-height: 140px;
}
.contact-overlay__input:focus,
.contact-overlay__textarea:focus {
    outline: none;
    border-color: var(--Electric_Crimson);
    box-shadow: 0 0 0 3px rgba(230, 0, 76, 0.15);
}
.contact-overlay__submit {
    text-align: center;
    margin-top: 0.5rem;
    width: 100%;
}
.contact-overlay__submit[disabled] {
    opacity: 0.6;
    cursor: progress;
}
.contact-overlay__status {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    min-height: 1.25em;
}
.contact-overlay__status[data-status="success"] {
    color: #0f8f4d;
}
.contact-overlay__status[data-status="error"] {
    color: #d80032;
}
.contact-overlay__secondary {
    display: inline-flex;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
}
body.contact-overlay-open {
    overflow: hidden;
}
@media (max-width: 600px) {
    .contact-overlay {
        padding: 1.5rem;
    }
    .contact-overlay__dialog {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 18px;
    }
    .contact-overlay__close {
        top: 12px;
        right: 12px;
    }
}
/* -------------------- */


/* FOOTER */
footer {
    background-color: var(--Background);
    color: var(--Paragraph);
    padding: 4rem 0rem 4rem 0rem;
}
footer .container {
    text-align: center;
}
footer ul {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
footer ul li {
    margin: 0 1rem;
}
footer ul li a {
    color: var(--Header);
    text-decoration: none;
    transition: color 0.3s ease;
}
/* -------------------- */

/* CONTACT PAGES */
.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100dvh - 71px);
    width: 100%; 
}

.btn-contact-primary{
    margin: 2rem 0 0 0;
    text-align: center;
}
/* -------------------- */

/* 404 PAGE */
.error-page main { padding: 6rem 1rem; text-align: center; }
.error-page .simple-error { max-width: 480px; margin: 0 auto; }
.error-page .error-code { font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; color: var(--Contrast); margin: 0; }
.error-page .simple-error h1 { color: var(--Contrast); margin: 0.75rem 0; }
.error-page .simple-error p { color: var(--Paragraph); margin-bottom: 1.5rem; }
.error-page .simple-error a { color: var(--Electric_Crimson); text-decoration: none; margin: 0 0.5rem; }
/* -------------------- */

/* MOBILE ADJUSTMENTS */
  @media (max-width: 768px) {
    header .container {
        justify-content: space-between;
    }
    .header-logo{
        order: 1;
        flex: 1 0 0;
        display: flex;
        justify-content: flex-start;
    }
    .header-nav {
        display: contents;
    }
    .header-cta-div {
        order: 2;
        flex: 2 0 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .header-burger {
        order: 3;
        flex: 1 0 0;
        display: flex;
        justify-content: flex-end;
    }
    .main-nav {
        display: none;
    }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
        margin: 0;
        border-radius: 0;
        background-color: var(--Background);
        z-index: 1001;
    }
    .main-nav.active .close-menu-btn {
        display: block;
        position: absolute;
        top: 8px;
        right: 16px;
        background: none;
        border: none;
        color: var(--Contrast);
        font-size: 2.5rem;
        cursor: pointer;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul li {
        margin: 1rem 0;
    }
    .main-nav.active ul li a {
        font-size: var(--h1line);
    }
    .hamburger {
        display: block;
    }
    .btn-cta-header {
        display: block;
    }
    .btn-cta-header .cta-label-short { display: inline; }
    .btn-cta-header .cta-label-full { display: none; }
    main {
        padding-top: 0;
    }
    .about-container {
        flex-direction: column;
        align-items: center;
    }
    .about-profile {
        flex-basis: auto; /* Reset flex-basis */
        margin-bottom: 2rem;
    }
    .hero-container {
        flex-direction: column;
        text-align: left;
        margin-bottom: 2rem;
    }
}
/* -------------------- */
