
::-moz-selection {
    background: #da2523;
    color: #fff;
}
::selection {
    background: #da2523;
    color: #fff;
}

/* CSS-Variablen für Schriftgrößen */
:root {
    /* Basis-Schriftgrößen für Mobile */
    --font-size-small: 0.9rem;
    --font-size-normal: 1.2rem;
    --font-size-medium: 1.4rem;
    --font-size-large: 2rem;
    --font-size-xlarge: 3rem;

    /* Secondary Color Palette - Blau */
    --secondary-100: #91b0ff;
    --secondary-200: #779eff;
    --secondary-300: #5787ff;
    --secondary-400: #497bf9; /*#4076ff;*/
    /* #3c73ff; */
    --secondary-500: #2863fc;
    /* #1d4a9f; */
    --secondary-600: #1b4dca;
    --secondary-700: #143a9b;
    --secondary-800: #091d4e;

    /* Automatisch berechnete Kontrastfarben für Text */
    --text-on-secondary-100: #000000cf;
    /* #191d27;*/
    --text-on-secondary-200: #000000cf;
    --text-on-secondary-300: #000000cf;
    --text-on-secondary-400: #000000cf;
    --text-on-secondary-500: #fff;
    --text-on-secondary-600: #fff;
    --text-on-secondary-700: #fff;
    --text-on-secondary-800: #fff;

    /* Andere häufig verwendete Variablen */
    --color-text: #262626;
    --color-text-dark: #e0e0e0;
    --color-accent: #FB9927;
    --color-accent-blue: var(--secondary-500);
    --color-background: #f7f5f2;
    --color-background-weak: #fff;

    /* Mobile Spacing (Default) */
    --spacing-xs: 0.5rem;
    /* Neue Variable für extra kleine Abstände */
    --spacing-small: 0.8rem;
    /* Kleiner als zuvor für Mobile */
    --spacing-medium: 1.5rem;
    /* Kleiner als zuvor für Mobile */
    --spacing-large: 2.5rem;
    /* Kleiner als zuvor für Mobile */
    --spacing-xlarge: 4rem;
    /* Kleiner als zuvor für Mobile */
    --spacing-xxlarge: 6rem;
    /* Kleiner als zuvor für Mobile */

    /* Für einfache prozentuale Anpassungen */
    --spacing-scale-tablet: 1.25;
    /* Tablet-Größen sind 125% der Mobile-Größen */
    --spacing-scale-desktop: 1.5;
    /* Desktop-Größen sind 150% der Mobile-Größen */


        /* Sticky Sections: Dynamische Variablen - werden durch JS gesetzt */
        --section-1-header-height: 4rem;
        --section-2-header-height: 4rem;
        --section-3-header-height: 4rem;
        --section-4-header-height: 4rem;
        --section-5-header-height: 4rem; /* Wird durch JS überschrieben */
        
        --section-1-cumulative-height: 4rem;  /* = section-1-header-height */
        --section-2-cumulative-height: 8rem;  /* = section-1-header-height + section-2-header-height */
        --section-3-cumulative-height: 12rem; /* = alle vorherigen header-heights */
        --section-4-cumulative-height: 16rem; /* = alle vorherigen header-heights */
        --section-5-cumulative-height: 20rem; /* = alle vorherigen header-heights */
    
        --headline-sentence-height: 4rem;
        /* Feste Werte für Fallback, wenn JS deaktiviert ist */
        --base-offset-mobile: 0.01rem; /* Bugfix / vorher 1rem; */
        --base-offset-desktop: 0.01rem; /* vorher 1.5rem */

}

body.dark-mode {
    --color-text: #e0e0e0;
    --color-background: rgb(25 25 25);
    --color-background-weak: #262626;

}

/* Hintergrundfarben */
.bg-secondary-100 {
    background-color: var(--secondary-100);
    color: var(--text-on-secondary-100);
}

.bg-secondary-200 {
    background-color: var(--secondary-200);
    color: var(--text-on-secondary-200);
}

.bg-secondary-300 {
    background-color: var(--secondary-300);
    color: var(--text-on-secondary-300);
}

.bg-secondary-400 {
    background-color: var(--secondary-400);
    color: var(--text-on-secondary-400);
}

.bg-secondary-500 {
    background-color: var(--secondary-500);
    color: var(--text-on-secondary-500);
}

.bg-secondary-600 {
    background-color: var(--secondary-600);
    color: var(--text-on-secondary-600);
}

.bg-secondary-700 {
    background-color: var(--secondary-700);
    color: var(--text-on-secondary-700);
}

/* Textfarben */
.text-secondary-100 {
    color: var(--secondary-100);
}

.text-secondary-200 {
    color: var(--secondary-200);
}

.text-secondary-300 {
    color: var(--secondary-300);
}

.text-secondary-400 {
    color: var(--secondary-400);
}

.text-secondary-500 {
    color: var(--secondary-500);
}

.text-secondary-600 {
    color: var(--secondary-600);
}

.text-secondary-700 {
    color: var(--secondary-700);
}

/* Rahmenfarben */
.border-secondary-100 {
    border-color: var(--secondary-100);
}

.border-secondary-200 {
    border-color: var(--secondary-200);
}

.border-secondary-300 {
    border-color: var(--secondary-300);
}

.border-secondary-400 {
    border-color: var(--secondary-400);
}

.border-secondary-500 {
    border-color: var(--secondary-500);
}

.border-secondary-600 {
    border-color: var(--secondary-600);
}

.border-secondary-700 {
    border-color: var(--secondary-700);
}

/* Hilfsklassen für Rahmen mit Breite */
.border-1 {
    border-width: 1px;
    border-style: solid;
}

.border-2 {
    border-width: 2px;
    border-style: solid;
}

.border-4 {
    border-width: 4px;
    border-style: solid;
}

/* Hover-Effekte */
.hover-bg-secondary-100:hover {
    background-color: var(--secondary-100);
}

.hover-bg-secondary-200:hover {
    background-color: var(--secondary-200);
}

.hover-bg-secondary-300:hover {
    background-color: var(--secondary-300);
}

.hover-bg-secondary-400:hover {
    background-color: var(--secondary-400);
}

.hover-bg-secondary-500:hover {
    background-color: var(--secondary-500);
}

.hover-bg-secondary-600:hover {
    background-color: var(--secondary-600);
}

.hover-bg-secondary-700:hover {
    background-color: var(--secondary-700);
}

/* Gradients - für schöne Verläufe */
.gradient-secondary-horizontal {
    background: linear-gradient(to right, var(--secondary-700), var(--secondary-100));
}

.gradient-secondary-vertical {
    background: linear-gradient(to bottom, var(--secondary-700), var(--secondary-100));
}

.gradient-secondary-radial {
    background: radial-gradient(circle, var(--secondary-100), var(--secondary-700));
}


/* latin-ext */
@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 400;
    font-stretch: 100%;
    font-display: swap;
    src: url('/2025/fonts/RobotoFlex-Regular.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 500;
    font-stretch: 100%;
    font-display: swap;
    src: url('/2025/fonts/RobotoFlex-Medium.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 700;
    font-stretch: 100%;
    font-display: swap;
    src: url('/2025/fonts/RobotoFlex-Bold.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--color-accent-blue);
    outline-offset: 4px;
}

html {
    scroll-behavior: smooth;
    /* Aktiviert sanftes Scrollen für die ganze Seite */
}

/* Accessibility: Respektiert Benutzereinstellungen zur reduzierten Bewegung */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.mobile-only {
    display: inline-block !important;
}

.desktop-only {
    display: none !important;
}

/* BASE STYLES (Mobile First) */
body {
    margin: 0;
    overflow-x: hidden;
    /* background: rgb(255,252,170);
background: radial-gradient(at 70% center, rgba(255,252,170,1) 0%, rgba(236,164,164,1) 100%); */
    background-color: var(--color-background);
    font-family: 'Roboto Flex', sans-serif;
    color: var(--color-text);
    transition: background-color 0.3s ease;
    background-position: top center;
    background-attachment: fixed;
    font-weight: 400;
}


a {
    text-decoration: none;
    color: var(--color-text);
}

a:hover {
    color: var(--color-text);
}

h2,
.h2 {
    font-weight: 500;
    font-size: var(--font-size-large);
    line-height: 1;
}
h2 a, .h2 a {
    color: var(--text-on-secondary-400);
}

h4 {
    margin-bottom: 0;
}

p {
    font-size: var(--font-size-normal);
    line-height: 1.5;
}

li p {
    margin: 0.5rem 0;
}

.content-wrapper {
    margin: 0 1rem;
}

.section-container {
    padding: var(--spacing-large) 0;
}

/* Grid-Layout - Mobile First (eine Spalte) */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-small);
    width: 100%;
}

.column {
    width: 100%;
}


/* .content-block {
margin-bottom: var(--spacing-medium);
} */

/* Container für das Magnetfeld */
.container-field-wrapper {
    height: 80vh;
    max-height: 700px;
    max-width: 98%;
    /* overflow: hidden; */
    /* sonst kein smoother Üergang zum cursor-circle */
    position: relative;
}

#field.container {
    width: 80vw;
    height: 80vh;
    position: relative;
    z-index: -1;
}

p.field-headline {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: var(--color-background);
    padding: 2rem 0 0 0;
    max-width: 320px;
    margin: 0 0 2rem;
}

body.dark-mode p.field-headline {
    background-color: #191919;
    background-color: var(--color-background);
}


/* Header-Styles */
.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-small);
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1024;
    position: fixed;
    top: 0;
    backdrop-filter: blur(6px);
    width: 100%; */
}


.cta-primary,
.cta-secondary {
    position: relative;
    transition: transform 0.2s ease-out;
    cursor: pointer;
}

.logo {
    font-size: var(--font-size-medium);
    /* Variable für Schriftgröße */
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Navigation - auf Mobilgeräten ausgeblendet */
.nav-links {
    display: none;
    /* Standardmäßig ausgeblendet auf Mobilgeräten */
}

/* .navigation-container {

} */

.nav-links a {
    font-weight: 500;
    font-size: var(--font-size-small);
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}




/* Hero-Bereich */
.hero {
    /* position: relative;
    z-index: 1200; */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 var(--spacing-large);
    box-sizing: border-box;
}


.headline,
.headline-xxl,
.h1 {
    font-size: var(--font-size-xlarge);
    /* Variable für Schriftgröße */
    font-weight: 700;
    line-height: 1;
    word-break: auto-phrase;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin-bottom: var(--spacing-small);
    max-width: 980px;
    position: relative;
}

.headline {
    display: inline-flex;
    flex-direction: column-reverse;
    margin: 0 0 var(--spacing-small);
}

.headline-xxl {
    margin: 0;
}

.word-comma {
    display: inline;
}



/* Hover-Animation für den Magneten */
@keyframes magneticPulse {
    0% {
        transform: rotate(45deg) translateX(0) translateY(0);
    }

    10% {
        transform: rotate(47deg) translateX(-1px) translateY(1px);
    }

    25% {
        transform: rotate(48deg) translateX(2px) translateY(-1px);
    }

    40% {
        transform: rotate(46deg) translateX(-1px) translateY(0);
    }

    55% {
        transform: rotate(44deg) translateX(1px) translateY(1px);
    }

    70% {
        transform: rotate(45.5deg) translateX(0) translateY(-1px);
    }

    85% {
        transform: rotate(44.5deg) translateX(1px) translateY(0);
    }

    100% {
        transform: rotate(45deg) translateX(0) translateY(0);
    }
}

/* Magnet-Effekte */

.icon-magnet {
    transform: rotate(45deg);
    transform-origin: 12px 49px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Basisübergang für nicht-hover Zustand */
    padding-bottom: 2rem;
    animation: magneticPulse 5s ease-in-out infinite;
}

/* Glow-Animation für den Icon-Magnet beim Hover */
.icon-magnet {
transition: all 0.3s ease;
}

.icon-magnet:hover {
filter: drop-shadow(0 0 8px rgba(218, 38, 35, 0.2));
transform: scale(1.05) rotate(45deg);
}

/* Keyframes für einen pulsierenden Glow-Effekt */
@keyframes magnetGlow {
0% {
filter: drop-shadow(0 0 5px rgba(218, 37, 35, 0.2));
}
50% {
filter: drop-shadow(0 0 15px rgba(218, 37, 35, 0.4));
}
100% {
filter: drop-shadow(0 0 5px rgba(218, 37, 35, 0.2));
}
}

/* Erweiterte Animation mit dem pulsierenden Glow-Effekt */
.icon-magnet:hover {
animation: magnetGlow 3s infinite, magneticPulse 5.2s ease-in-out infinite;
/* transform-origin: 42px 49px; /* Muss mit dem vorhandenen transform-origin-Wert übereinstimmen */
}
/* ----------- */
/* Container für die Blitze hinzufügen */
.icon-magnet {
position: relative;
transition: all 0.3s ease;
}

/* Blitze als Pseudo-Elemente erzeugen */
.icon-magnet:hover::before,
.icon-magnet:hover::after {
content: "";
position: absolute;
width: 2px;
height: 20px;
background-color: #3c73ff;
top: -16px;
left: 14px;
transform-origin: bottom center;
animation: electricSpark 1s infinite;
/* box-shadow: 0 0 5px #3c73ff, 0 0 10px #3c73ff; */
z-index: 10;
}

.icon-magnet:hover::after {
animation-delay: 0.4s;
/* left: 35px; */
}

/* Zwei zusätzliche Blitze mit :nth-child Pseudo-Selektoren */
.icon-magnet:hover .magnet-sparks::before,
.icon-magnet:hover .magnet-sparks::after {
content: "";
position: absolute;
width: 2px;
height: 15px;
background-color: #3c73ff;
top: -16px;
left: 48px;
transform-origin: bottom center;
animation: electricSpark 0.8s infinite;
/* box-shadow: 0 0 5px #3c73ff, 0 0 10px #3c73ff; */
z-index: 10;
}

.icon-magnet:hover .magnet-sparks::after {
animation-delay: 0.3s;
/* left: 40px; */
}

/* Animation für die elektrischen Blitze */
@keyframes electricSpark {
0% {
transform: scaleY(0.1) translateY(0) rotate(-10deg);
opacity: 0;
}
20% {
transform: scaleY(0.6) translateY(-5px) rotate(20deg);
opacity: 0.8;
}
40% {
transform: scaleY(0.9) translateY(-10px) rotate(-15deg);
opacity: 1;
}
60% {
transform: scaleY(0.7) translateY(-15px) rotate(10deg);
opacity: 0.8;
}
80% {
transform: scaleY(0.3) translateY(-20px) rotate(-5deg);
opacity: 0.4;
}
100% {
transform: scaleY(0.1) translateY(-25px) rotate(0deg);
opacity: 0;
}
}

/* Respektiere Benutzereinstellungen für reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
.icon-magnet:hover::before,
.icon-magnet:hover::after,
.icon-magnet:hover .magnet-sparks::before,
.icon-magnet:hover .magnet-sparks::after {
animation: none;
opacity: 0.5;
height: 10px;
}
}



/* Für Dark Mode anpassen */
body.dark-mode .icon-magnet:hover {
filter: drop-shadow(0 0 8px rgba(253, 101, 99, 0.4));
}

/* Respektiere Benutzereinstellungen für reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
.icon-magnet:hover {
animation: none;
filter: drop-shadow(0 0 8px rgba(218, 37, 35, 0.4));
transform: scale(1.05) rotate(45deg);
}
}

/* Deaktiviere die Animation, wenn das Bild angezogen ist */
.magnet-active:hover {
    animation: none;
}

/* Zusätzliche Klasse für den Zustand, wenn der Magnet aktiv ist */
.magnet-active {
    transform: rotate(45deg) scale(1) !important;
}

/* Animation für das Portrait, wenn es angezogen wird */
.img-container img.portrait-attracted {
    transition: transform 0.7s cubic-bezier(0.2, 1.16, 0.2, 1) !important;
    cursor: default;
}


/* Respektiere Benutzereinstellungen für reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    .icon-magnet:hover {
        animation: none;
    }

    .portrait-attracted {
        transition: all 0.6s cubic-bezier(0.68, -0.15, 0.10, 1.15) !important;
    }
}


.subtitle {
    font-size: var(--font-size-medium);
    font-weight: 400;
    margin: 0 0 var(--spacing-medium);
    max-width: 100%;
    /* Volle Breite auf Mobilgeräten */

}

/* Gemeinsame Basis-Styles für alle Auflösungen */
.headline-sentence {
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 5; /* Höherer z-index damit es über den Inhalten bleibt */
    background-color: var(--color-background-weak);
    color: var(--color-text);
}

.headline-sentence p {
    font-size: var(--font-size-normal);
    font-weight: 400;
    margin: 0;
    max-width: 100%;
    padding: 1rem 0;
    max-height: 6rem;
}

/* Call-to-Action Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    /* Buttons übereinander auf Mobilgeräten */
    gap: var(--spacing-small);
    margin-bottom: var(--spacing-large);
}

.cta-primary,
.cta-secondary {
    padding: 0.9rem 2rem 0.8rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: var(--font-size-normal);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    /* transition: transform 0.2s ease-out; */
    display: inline-block;
}

.cta-primary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    border-bottom: 4px solid var(--color-text);
    position: relative;
    cursor: pointer;

/* /////////////////////////////// Start ButtonMagnetic /////////////////////////////////////////// */

    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.2s,
                background-color 0.3s ease,
                color 0.3s ease;
    transform-origin: center center;

    will-change: transform;
}

.cta-primary:hover {
    background-color: var(--color-text);
    color: var(--color-text-dark);
}


.cta-primary.magnetic-active {
transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Spezielle Hover-Effekte für den Snap-Charakter */
.cta-primary:hover {
transition: all 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Diese Anpassung sorgt dafür, dass der magnetische Effekt schneller und "snappier" wirkt */
.magnetic-active.cta-primary {
transition-duration: 0.1s !important;
transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* /////////////////////////////// END ButtonMagnetic /////////////////////////////////////////// */



.logo {
    vertical-align: middle;
    gap: 8px;
}

.cta-primary .icon-wrapper {
    margin-left: 1rem;
    vertical-align: middle;
}

.cta-primary svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.cta-primary svg path {
    fill: var(--color-text);
    transition: fill 0.3s ease;
}

.cta-primary:hover svg path {
    fill: #fff;
}

body.dark-mode .cta-primary svg path {
    fill: var(--color-text);
}

body.dark-mode .cta-primary:hover svg path {
    fill: var(--color-background);
}

.cta-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-background);
}

.cta-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.potrait-wrapper {
    text-align: right;
    margin: 0;
}

.potrait {
    width: 40vw;
    max-width: 100%;
    height: auto;
}

input[type=checkbox] {
    display: none;
}


.img-container img {
    transition: all 0.5s cubic-bezier(.51, .92, .24, 1.15);
    cursor: zoom-in;
    z-index: 100;
    position: relative;
}

.img-container [type=checkbox]:checked~label>img {
    cursor: zoom-out;
    width: 100%;
    transform: translate(0%, 0%) scale(1) !important;
    z-index: 90;
    position: relative;
}

.img-container input[type=checkbox]:not(:checked)~label:before {
    content: '';
    opacity: 0;
}


.img-container input[type=checkbox]:not(:checked)~label:after {
    content: '';
    transition: all 0.3s ease;
    opacity: 0;
}

.img-container input[type=checkbox]:checked~label:after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    cursor: zoom-out;
    opacity: 1;
    z-index: 80;
}

.img-container input[type=checkbox]:not(:checked)~.close-x {
    display: none;
}

.img-container .img-container input[type=checkbox]:checked~.close-x {
    display: block;
}

.img-container input[type=checkbox]:checked~.close-x svg {
    fill: var(--color-text);
}

body.dark-mode .img-container input[type=checkbox]:checked~.close-x svg {
    fill: #fff;
}

.icon-wrapper.close-x.desktop-only {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    z-index: 100;
    cursor: pointer;
    pointer-events: none;

}

/* Magnetfeld-Element-Styles */
.line {
    position: absolute;
    width: 4px;
    height: 40px;
    background-color: rgba(224, 224, 224, 0.5);
    transform-origin: top center;
    will-change: transform;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.cursor-area {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px dashed var(--color-accent-blue);
    background: var(--color-accent-blue);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 80;
    transition: border-color 0.3s ease;
}

/* Magnetische Elemente */
.magnetic-active {
    z-index: 20;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    /* position: fixed;
    bottom: 20px;
    right: 20px; */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    border: none;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* .dark-mode-toggle:hover {
    transform: scale(1.1);
} */

.dark-mode-toggle .icon {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: var(--color-background);
    background: rgba(0, 0, 0, 0.9);
    color: var(--color-text);
}

body.dark-mode .header,
body.dark-mode .hero {
    color: var(--color-text);
}

body.dark-mode .logo,
body.dark-mode .nav-links a {
    color: var(--color-text);
}

body.dark-mode .cta-primary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-bottom: 4px solid #fff;
    transition: background-color 0.3s ease, transform 0.2s ease-out;
}

body.dark-mode .cta-primary:hover {
    background-color: #fff;
    color: var(--color-background);
}

body.dark-mode .cta-secondary {
    color: var(--color-text);
    border-color: var(--color-text);
}

body.dark-mode .line {
    background-color: rgba(224, 224, 224, 0.15);
}

body.dark-mode .dark-mode-toggle {
    background-color: #333;
}

body.dark-mode .dark-mode-toggle .icon {
    filter: invert(1);
}

.sticky-top {
    position: sticky;
    top: 0;
}

/* --------- Start Sticky Sections ------------ */

.needs {
    position: relative;
}


.fullscreen-bg p {
    margin-top: 0;
  }


  /* Gemeinsame Basis-Styles für alle sticky Sections */
  .fullscreen-bg[class*="row-"] {
    position: sticky;
    padding-bottom: 2rem;
    overflow: visible;
    z-index: 1; /* Basis z-index, wird überschrieben */

    min-height: 100vh; /* Volle Viewport-Höhe als Standard */
    margin-bottom: 0;
  }
  

  /* 100vh benötigt für den Content */
  .process-section .fullscreen-bg[class*="row-"] {
  
    min-height: 100vh !important;
    top: var(--spacing-medium) !important;
  }

  .headline-sentence {
    position: sticky;
    top: var(--base-offset-mobile);
    z-index: 5;
    background-color: var(--color-background-weak);
    color: var(--color-text);
  }

  .fullscreen-bg.row-1 {
    top: calc(var(--headline-sentence-height) + var(--base-offset-mobile));
    min-height: calc(100vh - 6rem);
    z-index: 10;
  }
  
  .fullscreen-bg.row-2 {
    top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--base-offset-mobile));
    min-height: calc(100vh - 11.5rem);
    z-index: 20;
  }
  
  .fullscreen-bg.row-3 {
    top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--section-2-header-height) + var(--base-offset-mobile));
    min-height: calc(100vh - 17rem);
    z-index: 30;
  }
  
  .fullscreen-bg.row-4 {
    top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--section-2-header-height) + var(--section-3-header-height) + var(--base-offset-mobile));
    min-height: calc(100vh - 22.5rem);
    z-index: 40;
  }

  .fullscreen-bg.row-5 {
    top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--section-2-header-height) + var(--section-3-header-height) + var(--section4-header-height) + var(--base-offset-mobile));
    min-height: calc(100vh - 22.5rem);
    z-index: 50;
    
  }
  
  .fullscreen-bg.sticky-end {
    pointer-events: none;
    top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--section-2-header-height) + var(--section-3-header-height) + var(--base-offset-mobile));
    z-index: 50;
    min-height: 14.5rem;
    background-color: var(--color-background-weak);
    color: var(--color-text);
}
.fullscreen-bg.sticky-end:after {
/* Bugfix flimmern vom ParentContainerBG */
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-background-weak);
    bottom: -2px;
    position: absolute;
}
.fullscreen-bg.fullscreen-bg.sticky-end p {
    padding: 1rem 0;
    margin: 1px 0;
}
  
  /* Abstand für die Anker, damit beim Klick die Überschrift sichtbar bleibt */
  .anchor-target {
    display: block;
    position: relative;
    /* Scrollmargin wird dynamisch durch JS gesetzt */
    scroll-behavior: smooth;
    height: 0;
    visibility: hidden;
  }
  
  /* Gestaltung der Überschriften */
  .fullscreen-bg h3.h2 {
    margin: 0;
    padding: 1.125rem 0;
  }
  
  .fullscreen-bg h3.h2 a {
    font-size: var(--font-size-medium);
    margin: 0;
    min-height: 2rem;
    display: block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    padding: 1.125rem 0 0;
  }
 
  /* Accessibility-Verbesserungen */
  .fullscreen-bg h3.h2 a:focus-visible {
    outline: 2px solid var(--color-background);
    outline-offset: 0.25rem;
  }

.section-container.about {
    padding: var(--spacing-xxlarge) 0;
}

.about .headline-wrapper {
    margin: 0 0 var(--spacing-large) 0;
}

.process-section .headline-wrapper h2,
.about .headline-wrapper h2 {
    margin: 1rem 0;
}

.about .two-column-grid.asymmetric {
    gap: var(--spacing-xxlarge);
    row-gap: 4rem;
}

.fullscreen-bg.references {
    background-color: #ffffffab;
}

body.dark-mode .fullscreen-bg.references {
    background-color: #ffffff03;
}

.section-container.references {
    padding: var(--spacing-xlarge) 0 var(--spacing-xxlarge);
}

.companies-wrapper {
    margin-top: var(--spacing-medium);
}

.companies-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    row-gap: 0.5em;   
    padding: 0.75rem 1.5rem;
    list-style: none;
}


.company-item {
    font-size: var(--font-size-normal);
    line-height: 1.5;
    padding: 0.2rem 0;
    /* Etwas Abstand für bessere Touch-Bereiche */
}

/* Tabs System mit reinem CSS */
.tabs {
    margin-top: 2rem;
}

.tab-inputs {
    display: none;
    /* Radio-Buttons ausblenden */
}

.tab-labels {
    display: flex;
    margin-bottom: 2rem;
}

.tab-label {
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
}

.tab-label:hover {
    color: var(--color-accent-blue);
}

/* Tab-Inhalte standardmäßig ausblenden */
.tab-content {
    display: none;
}

/* Aktive Tab-Anzeige durch CSS */
#tab1:checked~.tab-labels .tab1-label,
#tab2:checked~.tab-labels .tab2-label {
    color: var(--color-accent-blue);
}

#tab1:checked~.tab-labels .tab1-label:after,
#tab2:checked~.tab-labels .tab2-label:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent-blue);
}

/* Tab-Inhalte je nach ausgewähltem Tab anzeigen */
#tab1:checked~.tab-contents .tab1-content,
#tab2:checked~.tab-contents .tab2-content {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Logos Grid */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0;
    max-width: 1430px;
}


.logo-container {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1) invert(1);
    padding: 0.5rem;
    max-height: 6rem;
    transform: scale(0.6);
}

.logo-item.logo-inverted {
    filter: grayscale(1) invert(0);
}

body.dark-mode .logo-item {
    filter: grayscale(1) invert(0);
}
body.dark-mode .logo-item.logo-inverted {
    filter: grayscale(1) invert(1);
}


/* Styling für das Profilbild */
.profile-image-container {
    text-align: center;
    margin-bottom: var(--spacing-large);
}

.profile-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
}


/* Verbesserte Struktur für die Eckdaten */
.info-item {
    margin-bottom: var(--spacing-medium);
}

.info-title {
    font-size: var(--font-size-normal);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.info-description {
    font-size: var(--font-size-normal);
    margin: 0;
}

.info-subdescription {
    margin: 0;
    opacity: 0.7;
}

body.dark-mode .info-subdescription {
    opacity: 0.6;
}

body.dark-mode .info-title {
    color: var(--secondary-300);
}



footer a {
    color: var(--color-text);
}

body.dark-mode footer a {
    color: var(--color-text);
}

footer {
    padding: var(--spacing-xlarge) 0;
    position: relative;
    height: 85vh;

}

footer::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0%;
    right: 0;
    z-index: -1;
    background-image: url(https://dennism.de/2025/img/field-bg.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.05;
}

footer .headline-xxl {
    margin-bottom: var(--spacing-xxlarge);
    /* font-weight: 500; */
    max-width: 1440px;
}

.contact-info {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--spacing-medium);
}

.contact-link {
    font-size: var(--font-size-large);
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
}

.contact-link:hover {
    color: var(--color-accent-blue);
}

.footer-bottom {
    position: absolute;
    /* right: 8rem; */
    bottom: 0.5rem;
    /* max-height: 4.5rem; */
}

.footer-links {
    display: flex;
    gap: var(--spacing-medium);
}

.words-reveal .fade-word {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 2s ease-in, transform 1.5s ease;
    display: inline-block;
    /* margin-right: 0.05em; */
}

.words-reveal.visible .fade-word {
    opacity: 1;
    transform: translateY(0);
}

/* Verzögerung für jedes Wort, um sequentielles Einblenden zu erzeugen */
.words-reveal.visible .fade-word:nth-child(1) {
    transition-delay: 0ms;
}

.words-reveal.visible .fade-word:nth-child(2) {
    transition-delay: 100ms;
}

.words-reveal.visible .fade-word:nth-child(3) {
    transition-delay: 200ms;
}

.words-reveal.visible .fade-word:nth-child(4) {
    transition-delay: 300ms;
}

.words-reveal.visible .fade-word:nth-child(5) {
    transition-delay: 400ms;
}

.words-reveal.visible .fade-word:nth-child(6) {
    transition-delay: 500ms;
}

.words-reveal.visible .fade-word:nth-child(7) {
    transition-delay: 600ms;
}

.words-reveal.visible .fade-word:nth-child(8) {
    transition-delay: 700ms;
}

.words-reveal.visible .fade-word:nth-child(9) {
    transition-delay: 800ms;
}

.words-reveal.visible .fade-word:nth-child(10) {
    transition-delay: 900ms;
}

.words-reveal.visible .fade-word:nth-child(11) {
    transition-delay: 1000ms;
}

.words-reveal.visible .fade-word:nth-child(12) {
    transition-delay: 1100ms;
}

.words-reveal.visible .fade-word:nth-child(13) {
    transition-delay: 1200ms;
}


.about .column {
    position: relative;
}

.column.data::before {
    display: block;
    content: "";
    background-image: url(https://dennism.de/2025/img/fridge-personal.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    bottom: -143px;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.references .content-block {
    position: relative;
}

.companies-wrapper::before {
    display: block;
    content: "";
    background-image: url(https://dennism.de/2025/img/fridge.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    bottom: -159px;
    position: absolute;
    right: -400px;
    width: 100%;
    height: 100%;
    z-index: 1;
}



/* neuer Code -------------------- */

/* Accordion Container */
.accordion-container {
    width: 100%;
}

/* Accordion Item */
.accordion-item {
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Accordion Header */
.accordion-header {
    /* background-color: #DFE8FF; */
    padding: 0;
    border-radius: 40px;
    max-width: 1440px;
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    row-gap: 0;
    position: relative;
}

.button-container.expanded {
    background-color: #ccdeff;
    border-radius: 40px;
}

/* Mobile-Ansicht: Nur Primary Button zeigen */
.button-container:not(.expanded) .accordion-button:not(.primary) {
    display: none;
}

/* Accordion-Item als Grid für mobile Ansicht */
.accordion-item {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 24px;
}

/* Accordion Buttons */
.accordion-button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: var(--font-size-normal);
    background-color: #c0d5ff;
    position: relative;
    transition: background-color 0.2s, color 0.2s;
    z-index: 1;
}

.expanded .accordion-button {
    border: 2px solid;
    margin: 0 1rem 1rem;
}

.expanded button.accordion-button.active:after {
    content: '';
    /* height: 100vh; */
}


button.accordion-button:first-of-type:after {
    content: '';
    border-radius: 40px 40px 0 0;
}

.accordion-button.primary {
    font-size: var(--font-size-normal);
    color: #fff;
    border: 2px solid var(--color-accent-blue);
    background-color: var(--color-accent-blue);
    margin: 0;
    min-width: 280px;
}

.accordion-button.active {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-position: under;
    margin-bottom: 0;
}

.accordion-button.primary.active {
    background-color: var(--color-accent-blue);
}


@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
        max-height: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
        max-height: 500px;
    }
}

/* Accordion Content */
.accordion-content {
    display: none;
    font-size: var(--font-size-normal);
    color: #172037;
    padding: 1rem var(--spacing-medium);
}

@media (max-width: 769px) {
    .expanded .accordion-content:first-of-type {
        display: block;
    }
}


.accordion-content.active {
    display: block;
    color: #172037;
    /* background-color: #ccdeff; */
    position: relative;
    animation: slideDown 0.5s ease-in-out forwards;
}

.only-1.accordion-content.active {
    overflow: scroll;
}

.ux-writing-services ul {
    padding: 0 0 0 1rem;
}


.two-column-grid.human-magnet-col {
    position: relative;
    align-items: end;
    margin-bottom: var(--spacing-xlarge);    
}

.icon-wrapper.human-magnet {
    position: relative;
    right: 0;
    bottom: -8.2rem;
}

.icon-wrapper.human-magnet svg {
    width: 100%;
    max-width: 980px;
    height: auto;
    margin-bottom: 4rem;
}



/* Dev-Bereich Accordions mit anderer Farbgebung */
#dev-heading~.accordion-item .accordion-button.primary {
    background-color: #dd1e20; /* #F62225;*/
    border-color: #dd1e20; /* #F62225;*/
}

#dev-heading~.accordion-item .accordion-button.primary.active {
    background-color: #dd1e20; /* #F62225;*/
}

#dev-heading~.accordion-item button.accordion-button:after {
    background-color: #FEDEDF;
}

#dev-heading~.accordion-item button.accordion-button:first-of-type:before {
    background-color: #FEDEDF;
}

#dev-heading~.accordion-item button.accordion-button.primary.only-1:first-of-type:before {
    background-color: transparent;
}

#dev-heading~.accordion-item button.accordion-button:first-of-type:after {
    background-color:  #dd1e20; /* #F62225;*/
}

#dev-heading~.accordion-item .tab-background {
    background-color: rgba(246, 34, 37, 0.2);
}

#dev-heading~.accordion-item .accordion-content.active {
    background-color: #FEDEDF;
}

#dev-heading~.accordion-item .accordion-button {
    background-color: #fedfdf;
}

#dev-heading~.accordion-item .button-container.expanded {
    background-color: #FEDEDF;
}



/* ---------------------- Burgermenü ----------------------------------- */


/* Mobile-First Navigation Styles */

/* Basis-Styling für Mobile */
.pill-menu {
position: fixed;
top: auto;
right: auto;
bottom: 1rem;
left: 50%;
transform: translateX(-50%) translateY(0);
width: 72px;
height: 72px;
border-radius: 40px;
z-index: 1000;
display: flex;
align-items: center;
backdrop-filter: blur(6px);
background-color: transparent; /* Kein Hintergrund im nicht-expandierten Zustand */
padding: 4px;
transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
overflow: hidden;
box-shadow: none; /* Kein Schatten im nicht-expandierten Zustand */

/* transition: transform 0.3s ease-out;
*/
}

.pill-menu.menu-hidden {
transform:  translateX(-50%) translateY(100px); /* Nach unten außerhalb des sichtbaren Bereichs schieben */
}

/* Wenn das Menü geöffnet ist, soll es immer sichtbar sein */
.pill-menu.expanded.menu-hidden {
transform: translateY(0);
}


/* Wenn geöffnet, nach oben erweitern */
.pill-menu.expanded {
width: 100%;
max-width: 81vw;
height: auto;
bottom: 1rem;
border-radius: 32px;
padding: var(--spacing-medium) var(--spacing-medium);
flex-direction: column;
align-items: center;
background-color: rgba(255, 255, 255, 0.8); /* Hintergrund nur wenn expandiert */
backdrop-filter: blur(6px); /* Blur-Effekt nur wenn expandiert */
-webkit-backdrop-filter: blur(6px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Schatten nur wenn expandiert */
}

/* Burger-Icon immer unten zentriert */
.burger-icon {
    position: absolute;
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    bottom: 8px;
    width: 64px;
    height: 64px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: transparent;
    border: none;
    border-radius: 40px;
    margin: 0;
    }

.burger-line {
width: 24px;
height: 3px;
background-color: var(--color-text);
position: absolute;
transition: all 0.3s ease;
}

.burger-line:nth-child(1) {
transform: translateY(-8px);
}

.burger-line:nth-child(3) {
transform: translateY(8px);
}

.pill-menu.expanded .burger-line:nth-child(1) {
transform: rotate(45deg);
}

.pill-menu.expanded .burger-line:nth-child(2) {
opacity: 0;
}

.pill-menu.expanded .burger-line:nth-child(3) {
transform: rotate(-45deg);
}

/* Menüpunkte vertikal anordnen */
.nav-items {
opacity: 0;
visibility: hidden;
transition: opacity 0.5s ease;
margin-left: 0;
width: 100%;
}

.pill-menu.expanded .nav-items {
opacity: 1;
visibility: visible;
}

.nav-items ul {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
list-style: none;
margin: 0;
padding: 0 0 84px 0;
}

.nav-items li {
margin: 10px 0;
width: 100%;
text-align: center;
}

.nav-items a {
display: block;
text-decoration: none;
color: #333;
font-size: var(--font-size-large);
font-weight: 500;
padding: 0;
position: relative;
transition: color 0.3s ease;
}

.nav-items .about-link {
    min-width: 74px; /* Bugfix Flex flimmern */
}


.nav-items a:hover {
color: var(--color-accent-blue);
}

.nav-items a::after {
content: '';
position: absolute;
bottom: 8px;
left: 0;
width: 0;
height: 2px;
background-color: var(--color-accent-blue);
transition: width 0.3s ease;
}

.nav-items a:hover::after {
width: 100%;
}

/* Dark Mode Toggle für Mobil */
.dark-mode-toggle {
position: relative;
top: auto;
right: auto;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #fff;
border: none;
cursor: pointer;
z-index: 50;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease;
margin-bottom: 15px;
}

/* Dunkelmodus-Anpassung */
body.dark-mode .pill-menu {
background-color: rgba(38, 38, 38, 0.8);
}

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

body.dark-mode .nav-items a {
color: #fff;
}

body.dark-mode .nav-items a:hover {
color: var(--secondary-300);
}

body.dark-mode .nav-items a::after {
background-color: var(--secondary-300);
}

body.dark-mode .dark-mode-toggle {
background-color: #333;
}


/* ---------------------- Ende Burgermenü ----------------------------------- */




/* Animationen für die Figur */
@keyframes headMovement {

    0%,
    100% {
        transform: rotate(0deg);
    }

    30% {
        transform: rotate(2deg);
    }

    60% {
        transform: rotate(-1deg);
    }
}

@keyframes leftArmMovement {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(0, -2px) rotate(1deg);
    }
}

@keyframes rightArmMovement {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2px, -5px) rotate(2deg);
    }

    75% {
        transform: translate(-2px, 3px) rotate(-2deg);
    }
}

@keyframes rightLegMovement {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }
}

@keyframes torsoMovement {

    0%,
    100% {
        transform: rotate(0deg);
    }

    40% {
        transform: rotate(0.5deg);
    }

    80% {
        transform: rotate(-0.3deg);
    }
}


/* Klassen für die zu animierenden Teile */
#head {
    animation: headMovement 8s ease-in-out infinite;
    transform-origin: center 152px;
    /* Drehpunkt am Hals */
}

#leftArm {
    animation: leftArmMovement 3s ease-in-out infinite;
}

#rightArm {
    animation: rightArmMovement 8s ease-in-out infinite;
}

#rightLeg {
    animation: rightLegMovement 2s ease-in-out infinite alternate;
}


#torso {
    animation: torsoMovement 6s ease-in-out infinite;
    transform-origin: center 400px;
    /* Drehpunkt in der Mitte des Körpers */
}



.magnet-poles-container img {
    transform-origin: center;
    transform: rotate(60deg);
    transition: transform 0.1s ease-out;
    will-change: transform;
    /* Standard-Animation für Mobile */
    animation: needleSwing 6s ease-in-out infinite;
    width: 100%;
}

@keyframes needleSwing {
    0% { transform: rotate(55deg); }
    50% { transform: rotate(65deg); }
    100% { transform: rotate(55deg); }
}

/* Deaktivierung für Desktop-Geräte */
@media (hover: hover) {
    .magnet-poles-container img {
        animation: none;
    }
}


.interferences-container {
    /* top: -7rem; */
    position: relative;
}

.interferences-container svg {
    width: 100%;
}


/* Mittlerer Breakpoint für größere Smartphones/kleine Tablets */
@media (min-width: 769px) {

    :root {
        --font-size-normal: 1.2rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 3rem;

        --spacing-small: calc(0.8rem * var(--spacing-scale-tablet));
        /* = 1rem */
        --spacing-medium: calc(1.5rem * var(--spacing-scale-tablet));
        /* = 1.875rem */
        --spacing-large: calc(2.5rem * var(--spacing-scale-tablet));
        /* = 3.125rem */
        --spacing-xlarge: calc(4rem * var(--spacing-scale-tablet));
        /* = 5rem */
        --spacing-xxlarge: calc(6rem * var(--spacing-scale-tablet));
        /* = 7.5rem */
    }

    .magnet-poles-container img {   
        position: absolute;
        right: -20%;
    }

    .content-wrapper {
        margin: 0 2rem;
    }

    .two-column-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-large);
    }

    /* Umgekehrte Reihenfolge für besondere Sektionen auf Mobile */
    .two-column-grid.reversed .column:first-child {
        order: 2;
        /* Zweite Position auf Mobile */
    }

    .two-column-grid.reversed .column:last-child {
        order: 1;
        /* Erste Position auf Mobile */
    }

    /* Variante mit ungleichen Spaltenbreiten (optional) */
    .two-column-grid.asymmetric {
        grid-template-columns: 1fr 1fr;
    }

    .two-column-grid.asymmetric-reversed {
        grid-template-columns: 1fr 1fr;
    }

    .desktop-only {
        display: inline-block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .hero {
        margin: var(--spacing-large) auto;
    }

    .hero-image img.potrait {
        max-width: 50%;
    }


    .headline,
    .h1 {
        margin-left: -4px;
    }

    .headline {
        display: inline-block;
        margin: var(--spacing-large) 0 0;

    }

    .img-container input[type=checkbox]:checked~label:after {
        backdrop-filter: blur(8px);
    }

    span.desktop-only.word-attraction {
        word-break: break-word;
        display: inline;
    }

    .word-comma {
        display: none;
    }

    /* About Profilbild */
    .profile-image-container {
        text-align: left;
    }


    .companies-list {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(10, auto);
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(15, auto);
        gap: 0.75rem;
        row-gap: 0.5em;
        list-style: none;
    }

    .logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1430px;
}
.logo-item {
    transform: scale(1);
}

        /* Dark Mode Toggle */
        .dark-mode-toggle {
    top: 30px;
    right: 30px;
    bottom: inherit;

}


/* ---------------------- Burgermenü ----------------------------------- */
.pill-menu {
position: fixed;
top: 20px;
right: 20px;
bottom: auto;
left: auto;
transform: none;

border-radius: 40px;
padding: 0;
}

.pill-menu.expanded {
width: 530px;
height: 72px; /* Feste Höhe für expandierten Zustand */
flex-direction: row;
padding: 0 0.5rem;
max-width: none;
border-radius: 40px;
}

.pill-menu, 
.pill-menu.menu-hidden {
transform: translateY(0) !important; /* Nie ausblenden auf Desktop */
}

.burger-icon {
position: absolute;
top: 50%;
right: 0;
bottom: auto;
left: auto;
transform: translateY(-50%) translateX(-4px);
margin: 0;
}

/* Menüpunkte horizontal anordnen */
.nav-items {
height: 100%;
display: flex;
align-items: center;
}

.nav-items ul {
flex-direction: row;
align-items: center;
padding: 0;
height: 100%;
}

.nav-items li {
margin: 0 var(--spacing-small);
width: auto;
text-align: left;
height: 100%;
display: flex;
align-items: center;
}

.nav-items a {
padding: 0.5rem 0;
font-size: var(--font-size-small);
font-weight: 500;
height: auto;
}

.nav-items a::after {
bottom: 6px;
}

/* Dark Mode Toggle für Desktop */
.dark-mode-toggle {
position: relative;
top: auto;
right: auto;
width: 40px;
height: 40px;
margin: 0;
}

/* ---------------------- Ende Burgermenü ----------------------------------- */


   .hero .content-wrapper {
       padding: 0;
   }
   

   .button-container:not(.expanded) .accordion-button:not(.primary) {
       display: block;
   }

   .button-container {
       flex-direction: row;
       flex-wrap: wrap;
   }

   .button-container.expanded,
   #dev-heading~.accordion-item .button-container.expanded {
       background-color: transparent;
       border-radius: 40px;
   }

   .expanded .accordion-content:first-of-type {
       order: 10;
   }

   /* Content erscheint immer direkt unter der aktiven Row */
   .accordion-content.active {
       order: 2;
       width: 60%;
   }

   .expanded .accordion-button {
       border: 0;
       margin: 0;
   }

   button.accordion-button:after {
       content: '';
       background-color: #BFD5FF;
       position: absolute;
       width: calc(100% + 0rem);
       height: 100%;
       top: 0;
       z-index: -1;
       left: 1.5rem;
   }

   button.accordion-button:first-of-type:before {
       content: '';
       border-radius: 0;
       position: absolute;
       height: 100%;
       top: 0;
       background-color: #BFD5FF;
       width: 80%;
       left: 5rem;
       z-index: -1;
   }

   /* button.accordion-button:last-of-type {
       margin-right: 30%;
   } */

   button.accordion-button.primary.only-1:first-of-type:before,
   button.accordion-button.primary.only-1:first-of-type:after {
       background-color: transparent;
       border-radius: 40px;
   }

   button.accordion-button:first-of-type:after {
       content: '';
       border-radius: 40px;
       background-color: var(--secondary-500);
       width: calc(100% - 1.5rem);
   }

   button.accordion-button:last-of-type:after {
       content: '';
       border-radius: 40px;
       left: 0rem;
   }


button.accordion-button:not(:last-of-type, :first-of-type):before {
   border-radius: 40px;
   content: '';
   background-color: #c0d5ff;
   position: absolute;
   width: calc(100% + 0rem);
   height: 100%;
   top: 0;
   z-index: -1;
   right: -3.5rem;
}
.dev-heading button.accordion-button:not(:last-of-type, :first-of-type):before { 
   background-color: #FEDEDF;
}
   /* .accordion-button:hover {
       background-color: rgba(0, 0, 0, 0.2);
   } */
   .accordion-button.primary {
       border: none;
   }

   .accordion-button.primary:hover {
       background-color: var(--color-accent-blue);
   }

   .accordion-item {
       position: relative;
       /* CSS-Variablen für jede Tab-Position, werden per JS gesetzt */
       --tab1-width: 0;
       --tab1-left: 0;
       --tab2-width: 0;
       --tab2-left: 0;
       --tab3-width: 0;
       --tab3-left: 0;
       --tab4-width: 0;
       --tab4-left: 0;
       --tab5-width: 0;
       --tab5-left: 0;
       /* Aktive Tab-Position */
       --active-tab: 1;

       border-radius: 32px;

   }

   /* Basis-Stil für den Tab-Hintergrund */
   .tab-background {
       position: absolute;
       top: 0;
       height: 54px;
       background-color: rgb(40 99 252 / 20%);
       border-radius: 40px;
       pointer-events: none;
       transition: left 0.3s ease, width 0.3s ease, opacity 0.3s ease;
       z-index: 1;
       opacity: 0;

   }

   .accordion-item .button-container .accordion-button:hover~.tab-background {
       opacity: 1;
   }

   /* Standardposition des Hintergrunds (beim ersten Button) */
   .accordion-item .tab-background {
       width: var(--tab1-width);
       left: var(--tab1-left);
   }

   /* 
* Wichtig: Erhöhte Spezifität für die Hover-Zustände, die auch
* mit der expanded-Klasse funktionieren
*/

   /* Für normale und expandierte Button-Container */
   .accordion-item .button-container .accordion-button:nth-of-type(1):hover~.tab-background,
   .accordion-item .button-container.expanded .accordion-button:nth-of-type(1):hover~.tab-background {
       width: var(--tab1-width);
       left: var(--tab1-left);
   }

   .accordion-item .button-container .accordion-button:nth-of-type(2):hover~.tab-background,
   .accordion-item .button-container.expanded .accordion-button:nth-of-type(2):hover~.tab-background {
       width: var(--tab2-width);
       left: var(--tab2-left);
   }

   .accordion-item .button-container .accordion-button:nth-of-type(3):hover~.tab-background,
   .accordion-item .button-container.expanded .accordion-button:nth-of-type(3):hover~.tab-background {
       width: var(--tab3-width);
       left: var(--tab3-left);
   }

   .accordion-item .button-container .accordion-button:nth-of-type(4):hover~.tab-background,
   .accordion-item .button-container.expanded .accordion-button:nth-of-type(4):hover~.tab-background {
       width: var(--tab4-width);
       left: var(--tab4-left);
   }

   .accordion-item .button-container .accordion-button:nth-of-type(5):hover~.tab-background,
   .accordion-item .button-container.expanded .accordion-button:nth-of-type(5):hover~.tab-background {
       width: var(--tab5-width);
       left: var(--tab5-left);
   }


   /* Wenn über einen Button gehovert wird, aktualisiere die Tab-Hintergrund-Position */
   .accordion-button:hover {
       position: relative;
       z-index: 1;
       /* Höherer z-index als der Hintergrund */
   }

   /* Fix für mögliche Layout-Probleme mit dem geöffneten Inhalt */
   .accordion-content.active {
       position: relative;
       z-index: 0;
       /* Niedrigerer z-index als die Buttons */
       background-color: #ccdeff;
       border-radius: 40px;
   }

   /* Neuberechnung der Position nach dem Öffnen erzwingen */
   .button-container.expanded {
       z-index: 1;
       border-radius: 0;
   }

   .icon-wrapper.human-magnet svg {
       max-width: 550px;
       margin-bottom: 2rem;
    }

   .headline-sentence p {
    font-size: var(--font-size-medium);
    font-weight: 400;
}

.headline-sentence {
    top:0;
    padding: 2rem 0;
}



    .fullscreen-bg.row-1 {
        top: calc(var(--headline-sentence-height) + var(--base-offset-desktop));
        min-height: calc(100vh - 6rem);
    }

    .fullscreen-bg.row-2 {
        top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--base-offset-desktop));
        min-height: calc(100vh - 12rem);
    }

    .fullscreen-bg.row-3 {
        top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--section-2-header-height) + var(--base-offset-desktop));
        min-height: calc(100vh - 18rem);
    }

    .fullscreen-bg.row-4 {
        top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--section-2-header-height) + var(--section-3-header-height) + var(--base-offset-desktop));
        min-height: calc(100vh - 24rem);
    }
    .fullscreen-bg.row-5 {
        top: calc(var(--headline-sentence-height) + var(--section-1-header-height) + var(--section-2-header-height) + var(--section-3-header-height) + var(--section-4-header-height) + var(--base-offset-desktop));
      }

    .fullscreen-bg h3.h2 {
        padding: 1.5rem 0;
    }

    .fullscreen-bg h3.h2 a {
        padding: 0.75rem 0;
    }

    .fullscreen-bg.sticky-end {
        min-height: calc(100vh - 50rem);

    }
    .fullscreen-bg.fullscreen-bg.sticky-end p {
        padding: var(--spacing-xxlarge) 0;

    }
}



/* DESKTOP STYLES - Tablet und größer */
@media (min-width: 1279px) {


    /* Überschreiben der Schriftgrößen-Variablen für Desktop */
    :root {
        --font-size-small: 1rem;
        --font-size-normal: 1.5rem;
        --font-size-medium: 2rem;
        --font-size-large: 3rem;
        --font-size-xlarge: 5rem;
        --spacing-small: calc(0.8rem * var(--spacing-scale-desktop));
        /* = 1.2rem */
        --spacing-medium: calc(1.5rem * var(--spacing-scale-desktop));
        /* = 2.25rem */
        --spacing-large: calc(2.5rem * var(--spacing-scale-desktop));
        /* = 3.75rem */
        --spacing-xlarge: calc(4rem * var(--spacing-scale-desktop));
        /* = 6rem */
        --spacing-xxlarge: calc(6rem * var(--spacing-scale-desktop));
        /* = 9rem */
    }

    .two-column-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-medium);
    }

    /* Umgekehrte Reihenfolge für besondere Sektionen auf Mobile */
    .two-column-grid.reversed .column:first-child {
        order: 2;
        /* Zweite Position auf Mobile */
    }

    .two-column-grid.reversed .column:last-child {
        order: 1;
        /* Erste Position auf Mobile */
    }

    /* Variante mit ungleichen Spaltenbreiten (optional) */
    .two-column-grid.asymmetric {
        grid-template-columns: 3fr 2fr;
    }

    .two-column-grid.asymmetric-reversed {
        grid-template-columns: 2fr 3fr;
    }

    .two-column-grid.human-magnet-col {
        position: relative;
    }

    .content-wrapper {
        max-width: 80vw;
        margin: 0 auto;
        padding: 0 var(--spacing-medium);
    }


    .img-container input[type=checkbox]:checked~label>img {
        transform: translate(-100%, 25%) scale(2) !important;
    }


    .header {
        max-width: 80vw;
        padding: var(--spacing-medium) 0;
        margin: 0 auto;

    }

    .nav-links {
        display: flex;
        /* Navigation einblenden auf Desktop */
        gap: var(--spacing-medium);
    }

    .hero {
        max-width: 80vw;
    }

    .container-field-wrapper {
        max-height: initial;
    }

    p.field-headline {
        padding: 2rem 3rem 0 0;
        max-width: initial;
    }

    .cta-buttons {
        flex-direction: row;
        /* Buttons nebeneinander auf Desktop */
    }

    .potrait-wrapper {
        text-align: center;
        z-index: 1001;
        position: relative;
    }

    .potrait {
        max-width: 400px;
    }

    .icon-magnet {
        display: inline-block;
        transform-origin: 42px 49px;
    }

    .companies-list {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(10, auto);
        gap: 1rem;
    }

    .footer-bottom {
        position: absolute;
        right: 7rem;
        bottom: 0.25rem;
    }
    .tab-background {
            height: 60px;
    }

}




/* Magnet-Fallanimation */
@keyframes magnetFall {

    0%   { transform: scale(-1,-1)          translateY(200vh) rotate(-360deg) ; }
    70%  { transform: scale(-1,-1)        translateY(0) rotate(-360deg) ; }
    75%  { transform: scale(-1,-1)        translateY(-100px) rotate(-360deg) ; }
    85%  { transform: scale(-1.05,-0.95)    translateY(0) rotate(-360deg) ; }
    90%  { transform: scale(-1,-1)          translateY(-7px) rotate(-360deg) ; }
    96%  { transform: scale(-1,-1)          translateY(0) rotate(-360deg) ; }
    100% { transform: scale(-1,-1)          translateY(0) rotate(-360deg) ; }
}
@media (min-width: 769px) {

    .falling-magnet-container img {
        width: 40%;
        height: auto;
        position: fixed;
        bottom: 0;
        right: 6rem;
        animation: magnetFall 2s cubic-bezier(0.4, 0, 1, 1) forwards;
        will-change: transform;
    }    
}


.interferences-container {
    position: relative;
    width: 100%;
    /* max-width: 598px; */
    margin: 0 auto;
    overflow: hidden;
}

.interferences-container svg {
    width: 100%;
    height: auto;
    display: block;
}






/* ---------------------------- */


/* Prozess-Sektion Styling */

.process-section .two-column-grid {
    align-items: center;
}

.process-section {
    position: relative;
    padding: var(--spacing-xlarge) 0;
    background: radial-gradient(ellipse 50% 50% at 48% 100%, #272727 0%, #1E1E1E 100%);
    color: var(--color-text-dark);    
}

.process-section .headline-wrapper {
    margin-bottom: var(--spacing-large);
}

.process-section .headline-xxl {
    margin-top: 0.5rem;
}

.process-steps-container {
    position: relative;
    margin-top: var(--spacing-large);
}

.process-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-medium);
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
        "number title"
        "description description";
    gap: 0.5rem var(--spacing-small);
    opacity: 0.15;
    transition: opacity 0.5s ease;
    padding: var(--spacing-small) 0;
}

.process-step.active {
    opacity: 1;
}

.step-number {
    grid-area: number;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text-dark);
    font-family: 'Roboto Flex', sans-serif;
}

.step-title {
    grid-area: title;
    font-size: var(--font-size-medium);
    font-weight: 500;
    align-self: center;
    color: var(--color-text-dark);
}


.process-navigation {
    display: flex;
    justify-content: center;
    gap: var(--spacing-small);
    margin-top: var(--spacing-medium);
}

.process-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(224, 224, 224, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}


.process-nav-btn.active {
    background-color: var(--color-text-dark);
    transform: scale(1.2);
}


/* Desktop Styles */
@media (min-width: 769px) {
    .process-steps {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--spacing-small);
        overflow-x: auto;
        padding-bottom: var(--spacing-medium);
    }
    
    .process-step {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
        display: flex;
        flex-direction: column;
        grid-template-columns: initial;
        grid-template-rows: initial;
        grid-template-areas: initial;
        text-align: center;
        justify-content: flex-start;
        align-items: center;
        gap: var(--spacing-small);
    }
    
    .step-number {
        font-size: 8rem;
        line-height: 1;
    }
    
    


}

@media (min-width: 1279px) {
    .process-steps {
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .step-number {
        font-size: 12rem;
        line-height: 0.8;
    }
    
    
    .process-step {
        max-width: 200px;
    }
}



