/* Importiert die "Geist Mono"-Schriftart */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Outfit:wght@100..900&display=swap');
/* Importiert die "Titillium Web"-Schriftart */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Outfit:wght@100..900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

/* Importiert "Pressio X-Compressed" */
@font-face {
    font-family: 'Presio X-Compressed';
    src: url('/assets/fonts/PressioTEST-No.24.woff2') format('woff2'),
        url('/assets/fonts/PressioTEST-No.24.woff') format('woff');
}

/* Importiert "AcidGR-Compacta"-Schriftart */
@font-face {
    font-family: "AcidGR-Compacta";
    src: url('/assets/fonts/AC-Compacta.woff') format('woff2');
}

/* Importiert "AC-Compacta Unicode" in .ttf-Format */
@font-face {
    font-family: "AC-Compacta Unicode";
    src: url('/assets/fonts/unicode.compacta.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Importiert "OPTI Aurota Grotesk Eight"-Schriftart */
@font-face {
    font-family: "OPTI Aurora Grotesk Eight";
    src: url("/assets/fonts/OPTIAuroraGroteskEight-XCn.otf") format('opentype');
}

/* Importiert die "PC.DE"-Schriftart */
@font-face {
    font-family: "PC.DE";
    src: url('/assets/fonts/PC DE-Regular.ttf');
}

/* Das Verhalten des HTML-Dokuments konfigurieren, wenn man z.B. runterscrollt */
html {
    scroll-snap-type: y mandatory;
    scroll-padding: 10px 0;
    height: 100%;
}

html.no-snap {
    scroll-snap-type: none;
}

/* Funktioniert, die nur für Webkit basierte Browser funktionieren */
::-webkit-scrollbar {
    display: none;
}

/* Farbschema konfigurieren durch "root" (Für den Standard Light Mode) */
:root {
    --bg-color: #eaeaf0;
    /* Hintergrundfarbe */
    --navbar-color: #1795d9;
    /* Navigationsleiste */
    --branding-color: #28A745;
    /* Farbe für das Branding */
    --mouse-container-color: #5D91D2;
    /* Hintergrund des Maus-Containers */
    --title-and-text-color: #1795d9;
    /* Überschriften und Paragraphen */
    --thought-card-color: #ffffff;
    /* Farben der Gedanken in [Über Mich] */
    /* Eigenschaften der Though-Karten  */
    --thought-card-bg: #ffffff;
    --thought-card-text: #333333;
    --thought-card-title: #0056B3;
    --thought-card-shadow: rgba(0, 0, 0, 0.1);
    --thought-card-hover-shadow: rgba(0, 0, 0, 0.15);
    --button-color-1: #28A745;
    /* Entspricht der Akzentfarbe für die erste Farbe des "explore-more"-Buttons */
    --button-color-2: #0056B3;
    /* Entspricht der Sekundärfarbe für die zweite Farbe des "explore-more"-Buttons */
    --button-font-color: #ffffff;
    /* Text der Knöpfe */
    --bar-percent: #ffffff;
    /* Farbe des Prozentwerts */
    --bar-border-color: #4D93FF;
    /* Säulendiagramm Border Color */
    --bar-gradient-start: rgba(40, 87, 157, 1);
    /* Anfang des Farbverlaufs vom Säulendiagramm */
    --bar-gradient-end: rgba(136, 192, 169, 1);
    /* Ende vom Farbverlauf vom Säulendiagramm */
    --fun-fact-bullet-points: #1795d9;
    /* Farbe der Aufzählungszeichen */
    --line-color: #ccc;
    /* Farbe der Linien bei den Hobbys */
    --overlay-bg: #a8c7ea;
    /* Hintergrundfarbe des Overlays */
    --overlay-text: black;
    /* Textfarbe im Overlay */
    --overlay-close: black;
    /* Farbe des Schließen-Buttons */
    --skills-icon: #000000;
    /* Farbe der Icons im Lightmode */
    --skills-text: #1795d9;
    /* Textfarbe für Skills */
    --skills-card-color: #ffffff;
    /* Skills-Karten */
    --skill-card-border: #1e40af;
    /* Blaue Farbe für den Kartenrand */
    --skill-text-preview: #1795d9;
    --skill-label: #666666;
    /* Farbe der Skill-Beschriftung */
    --switch-button: #e5e5e5;
    /* Farbe des Schalter-Buttons */
    --progress-bar-bg: #e5e7eb;
    /* Hellgraue Farbe für den Fortschrittsbalken-Hintergrund */
    --progress-bar-fill: #1e40af;
    /* Blaue Farbe für den Fortschrittsbalken */
    --skill-description-color: #4b5563;
    /* Dunkelgraue Farbe für die Skill-Beschreibung */
    --secondary-color: #0056B3;
    /* Sekundärfarbe */
    --accent-color: #5cb85c;
    /* Akzentfarbe */
    --text-primary: #333333;
    /* Primäre Farbe für Text */
    --text-secondary: #666666;
    /* Sekundäre Farbe für Text */
    --form-color: #ffffff;
    /* Kontaktformular Textfelder */
    --placeholder-text: #4D93FF;
    /* Platzhalter Text im Kontaktfeld */
    --footer-bg: #eaeaf0;
    /* Hintergrundfarbe des Footers */
    --table-bg: #ffffff;
    /* Tabellen-Hintergrund */
    --table-alt-bg: #f8f8f8;
    /* Alternierende Zeilen */
    --table-border: #cccccc;
    /* Zarte Rahmenfarbe */
    --table-text: var(--text-primary);
    /* Haupttextfarbe */
    --svg-header: green;
}

/* Farbeigenschaften für den Dark Mode */
[data-theme="dark"] {
    --bg-color: #243c67;
    /* Hintergrundfarbe */
    --navbar-color: #ffffff;
    /* Navigationsleiste */
    --branding-color: #ffffff;
    /* Farbe für das Branding */
    --mouse-container-color: #A9D25E;
    /* Hintergrund des Maus-Containers */
    --title-and-text-color: #ffffff;
    /* Überschriften und Paragraphen */
    --thought-card-color: #eaeaf0;
    /* Farben der Gedanken-Felder in [Über Mich] */
    /* Eigenschaften für die Farben der Tought-Karten */
    --thought-card-bg: #243c67;
    --thought-card-text: #A0A0A0;
    --thought-card-title: #6BA5FF;
    --thought-card-shadow: rgba(0, 0, 0, 0.2);
    --thought-card-hover-shadow: rgba(0, 0, 0, 0.3);
    --button-color-1: #4aa54a;
    /* Entspricht der Akzentfarbe für die erste Farbe des "explore-more"-Buttons */
    --button-color-2: #4D93FF;
    /* Entspricht die Sekundärfarbe als zweite Farbe für "explore-more"-Button */
    --button-font-color: #ffffff;
    /* Text der Knöpfe */
    --bar-percent: #f0efef;
    /* Farbe des Prozentwerts */
    --bar-border-color: #6BA55F;
    /* Säulendiagramm Border Color */
    --bar-gradient-start: rgba(112, 178, 195, 1);
    /* Anfang des Farbverlaufs vom Säulendiagramm */
    --bar-gradient-end: rgba(168, 210, 96, 1);
    /* Ende des Farbverlaufs vom Säulendiagramm */
    --fun-fact-bullet-points: #ffffff;
    /* Farbe der Aufzählungszeichen */
    --overlay-bg: #a8c7ea;
    /* Dunkle Hintergrundfarbe für das Overlay */
    --overlay-text: #e0e0e0;
    /* Hellere Textfarbe für bessere Lesbarkeit im Dark Mode */
    --overlay-close: #e0e0e0;
    /* Hellere Farbe für den Schließen-Button */
    --skills-icon: #243c67;
    /* Farbe der Icons im Lightmode */
    --skills-text: #28A745;
    /* Textfarbe für Skills */
    --skills-card-color: #f8f8f8;
    /* Skills-Karten */
    --skill-card-border: #4D93FF;
    /* Helleres Blau für den Kartenrand */
    --skill-text-preview: #243c67;
    --skill-label: #ffffff;
    /* Farbe der Skill-Beschriftung */
    --switch-button: #5cb85c;
    /* Farbe des Schalter-Buttons */
    --progress-bar-bg: #243c67;
    /* Dunkleres Blau für den Fortschrittsbalken-Hintergrund */
    --progress-bar-fill: #6BA5FF;
    /* Helleres Blau für den Fortschrittsbalken */
    --skill-description-color: #A0A0A0;
    /* Hellgrau für die Skill-Beschreibung */
    --secondary-color: #4D93FF;
    /* Sekundärfarbe */
    --accent-color: #9dd545;
    /* Akzentfarbe */
    --text-primary: #E0E0E0;
    /* Primäre Farbe für Text */
    --text-secondary: #A0A0A0;
    /* Sekundäre Farbe für Text */
    --form-color: #ffffff;
    /* Kontaktformular Textfelder */
    --placeholder-text: #243c67;
    --footer-bg: rgba(255, 255, 255, 0.1);
    /* Dunklerer Hintergrund für den Footer */
    --table-bg: #1E2A47;
    /* Tabellen Hintergrund */
    --table-alt-bg: #243c67;
    /* Alternierende Zeilen */
    --table-border: #4D93FF;
    /* Zarte Rahmenfarbe */
    --table-text: #E0E0E0;
    /* Haupttextfarbe */
    --svg-header: white;
}

/* Für die weisse Farbe des Titels im Dark-Mode */
[data-theme="dark"] .homepage-logo-svg {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Passt den Schatten für den "explore-more"-Button im Dark-Mode an */
[data-theme="dark"] .explore-more-button {
    box-shadow:
        0px 0px 20px rgba(93, 147, 255, 0.5),
        0px 5px 5px -1px rgba(93, 147, 255, 0.25),
        inset 4px 4px 8px rgba(147, 197, 253, 0.5),
        inset -4px -4px 8px rgba(59, 130, 246, 0.35);
}

/* Verfeinerungen vom Stil der Knöpfe im Dark-Mode */
[data-theme="dark"] .explore-more-button:is(:focus, :focus-visible, :active) {
    box-shadow:
        0 0 0 3px var(--button-font-color),
        0 0 0 6px var(--button-color-2);
}

/* Verfeinerung der Farbe vom Balken im Säulendiagramm */
[data-theme="dark"] .bar-chart .turqoise {
    box-shadow: 0 0 10px rgba(109, 165, 255, 0.3);
}

[data-theme="dark"] .bar-chart .percent,
[data-theme="dark"] .bar-chart .skill {
    color: var(--text-primary);
}

[data-theme="dark"] .bar-chart .axis .label {
    color: var(--text-secondary);
}

/* Eigenschaften für das Styling der Gedankenkarte im Dark Mode */
[data-theme="dark"] .thought-card {
    background-color: var(--thought-card-bg);
    /* Setzt Hintergrundfarbe */
    box-shadow: 0 4px 6px var(--thought-card-shadow);
    /* Fügt Schatten hinzu */
}

/* Hover-Effekt für die Gedankenkarte */
[data-theme="dark"] .thought-card:hover {
    box-shadow: 0 6px 12px var(--thought-card-hover-shadow);
    /* Verstärkt Schatten bei Hover */
}

/* Styling für den Titel der Gedankenkarte */
[data-theme="dark"] .thought-card h3 {
    color: var(--thought-card-title);
    /* Setzt Titelfarbe */
}

/* Styling für den Textinhalt der Gedankenkarte */
[data-theme="dark"] .thought-text {
    color: var(--thought-card-text);
    /* Setzt Textfarbe */
}

/* Aktiver Tab wird gehighlighted */
.navbar a.active {
    background-color: none;
    /* Grün */
    color: var(--accent-color);
}

/* Eigenschaften für den body-Element */
body {
    font-family: "Titillium Web", "Geist Mono";
    background-color: var(--bg-color);
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Transitions für Light/Dark-Mode */
body,
.some-element,
.another-element {
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Stil für Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
    background-color: var(--table-bg);
    color: var(--table-text);
    border-radius: 10px;
    overflow: hidden;
}

/* Kopfzeilen */
thead {
    background: var(--accent-color);
    color: white;
    font-weight: bold;
}

/* Tabellenzeilen */
tr {
    border-bottom: 1px solid var(--table-border);
}

/* Tabellenzellen */
th,
td {
    padding: 15px;
}

/* Wechselnde Hintergrundfarbe für bessere Lesbarkeit */
tbody tr:nth-child(even) {
    background: var(--table-alt-bg);
}

/* Tabellenrahmen */
th:first-child,
td:first-child {
    border-left: 2px solid var(--accent-color);
}

th:last-child,
td:last-child {
    border-right: 2px solid var(--accent-color);
}

/* Anpassungen für verschachtelte Listen (Systemanforderungen) */
td ul {
    padding-left: 20px;
    margin: 0;
}

td ul li {
    margin-bottom: 5px;
}

/* Eigenschaften, damit Snap-Scrolling funktionieren kann */
.snap-section {
    scroll-snap-align: center;
    min-width: 50vh;
}

/* Eigenschaften der Hauptsections */
section {
    scroll-snap-align: center;
    height: 100vh;
    margin: 0 auto 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

html.no-snap section {
    height: auto;
}

/* Hamburger-Button (Mobile Only) */
.hamburger-button {
    display: none;
    /* Versteckt den Button auf Desktop-Geräten */
}

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

/* Liquid Glass Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: rgba(255, 255, 255, 0.20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(17, 24, 39, 0.58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Geist Mono";
    font-weight: 700;
    color: var(--navbar-color);
    padding: 0.6rem 1.2rem;
    min-height: 60px;
    max-width: 1300px;
    width: min(100%, 1300px);
    margin: 0 auto;
    gap: 0.5rem;
}

/* Segment: Home-Maus unten nicht abgeschnitten */
#homepage {
    padding-top: 80px;
}

#homepage .mouse-wrapper {
    top: 230px;
}


/* Eigenschaften zum Logo, welches aus Buchstaben besteht */
.logo {
    font-family: "Geist Mono";
    font-weight: 400;
    color: var(--navbar-color);
    font-size: 3.5em;
    letter-spacing: -0.40em;
    margin: -20px 20px auto;
    padding: auto;
    transform: translateX(-20px);
    /* Verschiebt das Logo nach oben */
    display: none;
    /* Versteckt den Text-basierten Logo */
}

/* Eigenschaften für den Logo-Container */
.logo-container {
    position: relative;
    width: 100px;
    /* Anpassen nach Bedarf */
    height: 100px;
    /* Anpassen nach Bedarf */
    color: var(--navbar-color);
}

.logo-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    fill: var(--branding-color);
    /* Verwendet die sekundäre Farbe */
}

/* Eigenschaften der Navigationsleiste */
.navbar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.45rem 0.25rem;
    margin: 0;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.navbar a {
    position: relative;
    text-decoration: none;
    color: var(--navbar-color);
    padding: 0.65rem 0.95rem;
    transition: all 0.3s ease-in-out;
    border-radius: 999px;
    margin: 0 0.15rem;
}

.navbar a:hover,
.navbar a:focus {
    background: rgba(255, 255, 255, 0.35);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.navbar a.active {
    background: rgba(29, 78, 216, 0.22);
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(40, 116, 252, 0.25);
}

.navbar a:not(:last-child)::after,
.navbar::before,
.navbar::after {
    content: none;
}

.navbar {
    align-items: center;
}


.navbar a:active {
    box-shadow: #D6D6E7 0 3px 7px inset;
    transform: translateY(2px);
    border-radius: 15px;
}

/* Implementierung für den "Dark Mode"-Button mit besserem Slider-Design */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 70px;
    height: 36px;
    margin-left: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 2px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    inset: 2px;
    background: transparent;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    z-index: 1;
}

.slider .circle {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.switch input:checked+.slider {
    background: rgba(45, 85, 180, 0.2);
}

.switch input:checked+.slider .circle {
    left: calc(100% - 32px);
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-color: rgba(30, 64, 175, 0.8);
    box-shadow: 0 0 12px rgba(30, 64, 175, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.sun {
    left: 8px;
    color: #fbbf24;
}

.moon {
    right: 8px;
    color: #60a5fa;
}

.switch input:checked~.slider .sun {
    opacity: 0.3;
}

.switch input:checked~.slider .moon {
    opacity: 1;
}

/* Language Select - positioned left of theme toggle */
.language-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: var(--navbar-color);
    padding: 0.5rem 0.85rem;
    margin: 0 0.25rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.language-select:hover,
.language-select:focus {
    background: rgba(255, 255, 255, 0.35);
    color: var(--accent-color);
}

.language-select option {
    background: var(--bg-color);
    color: var(--title-and-text-color);
}

/* Nur auf dem Desktop sichtbar */
.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

/* Mobile Navigation und Tab-Schalter */
@media (max-width: 1024px) {
    .desktop-only {
        display: none;
    }

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

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0.5rem;
        padding: 0.8rem 0.7rem;
        flex-direction: column;
        align-items: stretch;
        display: none;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.35);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        margin: 0.3rem 0;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .hamburger-button {
        display: inline-flex;
        width: 45px;
        height: 45px;
        justify-content: center;
        align-items: center;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.2);
        color: var(--navbar-color);
        font-size: 1.4rem;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.45rem 0.65rem;
    }

    .navbar {
        margin: 0.2rem;
    }

    .logo-container {
        width: 70px;
        height: 70px;
    }

    .logo-container svg {
        transform: rotate(-90deg) scale(0.9);
    }
}

/* Eigenschaften für den Maus-Container, wo auch das Bild der Computermaus reinkommt */
.mouse-container {
    background-color: var(--mouse-container-color);
    /* Violette Hintergrundfarbe für das Mauspad */
    width: 100%;
    /* Breite des Mauspads */
    height: 400px;
    /* Höhe des Mauspads */
    border-radius: 15px;
    /* Abgerundete Ecken */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Optionaler Schatten */
    z-index: 0;
    /* Hintergrundelement */
    margin: 50px auto 0 auto;
}

.mouse-image {
    position: absolute;
    /* Unabhängige Positionierung */
    top: -325px;
    /* Verschiebt die Maus oberhalb des Pads */
    left: 50%;
    /* Zentriert die Maus relativ zum Container */
    transform: translateX(-50%);
    /* Exakte Zentrierung */
    width: 75%;
    /* Breite der Maus */
    height: auto;
    /* Höhe der Maus */
    z-index: 1;
    /* Vordergrundelement */
}

.mouse-wrapper {
    position: absolute;
    /* Verbindet die Elemente innerhalb des Wrappers */
    width: 550px;
    /* Breite des Wrappers */
    height: 475px;
    top: 200px;
    right: 40px;
    margin: 50px auto auto auto;
    /* Zentriert den Wrapper auf der Seite */
}

/* Eigenschaften zum Namens-Design */
.name-container {
    position: absolute;
    top: 45%;
    left: 15%;
    transform: translateX(-50%) translateY(-50%);
    width: 60%;
    /* Anpassen nach Bedarf */
    max-width: 600px;
    /* Anpassen nach Bedarf */
}

.homepage-logo-svg {
    margin: 21.875rem 0 1.25rem 7.5rem;
    width: 75%;
    height: auto;
    background-image: url('\assets\images\Homepage_Titel_Gruen.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    fill: var(--accent-color);
    /* Setzt die Akzentfarbe */
    filter: invert(0);
    /* Initialzustand */
}

[data-theme="dark"] .homepage.logo-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Ende vom Hauptbereich */
/* "Über Mich"-Bereich auf der Startseite in der Preview */
.about-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    /* Fügt einen Innenabstand hinzu */
    max-width: 1200px;
    /* Begrenzt die maximale Breite */
    margin: 0 auto;
    /* Zentriert horizontal */
}

/* Zusätzlichen Abstand am Anfang des Abschnitts hinzufügen */
#about-me-preview {
    margin-top: 60px;
    /* Fügt Abstand vor dem gesamten Abschnitt hinzu */
}

.about-title h2 {
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.125rem;
    color: var(--accent-color);
    text-align: center;
}

.about-description-preview p {
    font-size: 1.55rem;
    color: var(--accent-color);
    margin: 5px auto 25px 10rem;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.about-description-p-span-preview {
    margin-left: -0.2rem;
    vertical-align: baseline;
}

.about-description-title-span-preview {
    margin-left: -0.4rem;
    vertical-align: baseline;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    /* Elemente umbrechen, wenn der Platz nicht reicht */
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    /* Abstand zwischen den Elementen */
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
}

.about-img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    /* Bild bleibt bei kleinerem Platz gleich groß */
    margin: 35px 25px 0 0;
    object-fit: cover;
    object-position: center 75%;
}

.about-text-title h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0 0;
    color: var(--title-and-text-color);
}

.about-text {
    font-family: "Titillium Web";
    color: var(--title-and-text-color);
    flex: 1;
    /* Textblock nimmt restlichen Platz ein */
    max-width: 675px;
    /* Begrenzte Breite für bessere Lesbarkeit */
    height: 10rem;
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0.25rem 0 0.25rem 0;
    text-align: left;
    justify-content: space-between;
}

.about-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1200px;
    text-align: left;
    margin: 1rem 0 1rem 0;
}

.about-preview-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: 3rem auto 0 -45rem;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

/* Eigenschaft für Überschrift "Über Mich"-Preview */
.headline-about-me-preview h2,
.headline-projects-preview h2,
.headline-skills-preview h2,
.headline-contact-preview h2,
.headline-about-me h2,
.headline-projects h2,
.headline-skills h2,
.headline-contact h2 {
    font-family: "AC-Compacta Unicode", "AcidGR-Compacta", Arial, sans-serif;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin: 1rem auto;
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 5rem);
}

.headline-about-me-preview h2 {
    max-width: 400px;
    /* Übernimmt die max-width vom SVG */
    margin: 4rem auto auto -24.5rem;
    /* Abstand oben, links 1rem, rechts auto */
    font-size: 5rem;
    /* Beispielgröße, passend zur max-width */
    line-height: 1.2;
    text-align: left;
    /* Text links ausrichten */
    color: var(--accent-color);
    /* Setzt die Akzentfarbe */
    position: relative;
    /* Damit Margin wirkt wie beim SVG */
}

[data-theme="dark"] .about-preview-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Container für den Button */
.more-about-me-container {
    margin: 30px auto 0 auto;
    text-align: center;
}

/* Knopf, um zur "Über Mich" und anderen Seiten zu gelangen */
.explore-more-button {
    --btn-bg-1: var(--button-color-1);
    --btn-bg-2: var(--button-color-2);
    --btn-bg-color: var(--button-font-color);
    --radii: 10px;
    cursor: pointer;
    padding: 0.9em 1.4em;
    margin: 20px auto 20px;
    min-width: 120px;
    min-height: 44px;
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: background-position 0.8s, transform 0.3s ease;
    /* Hinzugefügt */
    background-size: 280% auto;
    background-image: linear-gradient(325deg,
            var(--btn-bg-1) 15%,
            var(--btn-bg-2) 60%,
            var(--btn-bg-1) 95%);
    border: none;
    border-radius: var(--radii);
    color: var(--btn-bg-color);
    box-shadow:
        0px 0px 20px rgba(71, 184, 255, 0.5),
        0px 5px 5px -1px rgba(58, 125, 233, 0.25),
        inset 4px 4px 8px rgba(175, 230, 255, 0.5),
        inset -4px -4px 8px rgba(19, 95, 216, 0.35);
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
}

.explore-more-button:hover {
    background-position: right top;
    transform: translateY(-2px);
}

.explore-more-button:is(:focus, :focus-visible, :active) {
    outline: none;
    box-shadow:
        0 0 0 3px var(--btn-bg-color),
        0 0 0 6px var(--btn-bg-2);
}

.explore-more-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.explore-about-button {
    margin: auto 25.5rem auto 0;
}

/* Ende vom "Über Mich"-Preview */
/* "Über Mich"-Seite */
.about-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.about-profile-picture {
    width: 375px;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Optionaler Schatten */
    flex-shrink: 0;
    /* Bild bleibt bei kleinerem Platz gleich groß */
    margin: 0 75px 0 0;
    object-fit: cover;
    object-position: right 75%;
}

.about-info-box {
    flex: 1;
    padding-right: 25px;
    /* Abstand zum Bild */
}

.about-me-title {
    font-family: "Geist Mono";
    color: var(--accent-color);
    font-size: 3rem;
    letter-spacing: -0.125rem;
    margin: 0 0 0 0;
    padding: 0 200px 30px 0;
    text-align: left;
}

.about-me-description {
    max-width: 600px;
    font-family: "Titillium Web";
    font-size: 1.25rem;
    color: var(--title-and-text-color);
}

/* Der Bereich, wo ich meine Hobbys präsentiere */
.about-hobby-title {
    text-align: right;
    margin: 0 -3rem 3rem 0;
    font-size: 3em;
    font-family: "Geist Mono";
    letter-spacing: -0.125rem;
    color: var(--accent-color);
}

.about-me-short-description {
    margin: -2rem 0 2rem 24rem;
    font-family: "Titillium Web";
    font-size: 1.25rem;
    color: var(--title-and-text-color);
}

/* Diagramm-Grundstruktur */
.bar-chart {
    list-style: none;
    padding: 0 auto;
    margin: 0 auto;
    display: flex;
    height: 450px;
    width: 80%;
    align-items: flex-end;
    position: relative;
}

/* Achse mit Beschriftungen */
.bar-chart .axis {
    position: absolute;
    left: -75px;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Beschriftungsstil */
.bar-chart .axis .label {
    text-align: right;
    /* Text rechts ausrichten */
    font-size: 16px;
    color: var(--text-primary);
    position: relative;
    display: inline-flex;
    /* Inline-Flexbox verwenden */
    align-items: center;
    /* Vertikal zentrieren */
    justify-content: flex-end;
    /* Inhalt rechts ausrichten */
    padding-right: 1rem;
    /* Abstand zwischen Text und Linie */
    height: 3rem;
    /* Höhe des Labels anpassen */
}

/* Kurze Linien neben den Beschriftungen */
.bar-chart .axis .label::after {
    content: '';
    position: absolute;
    top: 50%;
    /* Linie in der Mitte der Label-Höhe positionieren */
    margin: -1rem 0 0 0;
    transform: translateY(-50%);
    /* Vertikal zentrieren */
    right: -4.25rem;
    width: 7.5px;
    /* Länge der Linie anpassen */
    height: 1px;
    background-color: var(--text-primary);
    /* Farbe der Linie */
}

/* Kurze Linien neben den Beschriftungen */
.bar-chart .axis .label::before {
    content: '';
    width: 20px;
    /* Länge der Linie */
    height: 1px;
    background-color: var(--text-primary);
    /* Farbe der Linien */
    margin-left: 1rem;
    /* Abstand zur Beschriftung */
}

/* Säulen-Styles */
.bar-chart .bar {
    flex: 1;
    margin: 0 10px;
    position: relative;
    border-radius: 4px 4px 0 0;
    transition: all 0.5s ease;
    animation: growUp 1s ease-out forwards;
    position: relative;
    margin-bottom: 40px;
    animation-name: growUp;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

/* Prozentwert auf den Säulen */
.bar-chart .percent {
    position: absolute;
    top: -25px;
    margin: 35px 0 0 0px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    font-family: "Titillium Web";
    color: var(--bar-percent);
}

/* Text unter den Säulen */
.bar-chart .skill {
    position: absolute;
    bottom: -75px;
    transform: translateX(-50%) rotate(-53deg);
    left: 50%;
    white-space: nowrap;
    text-align: left;
    align-items: flex-start;
    font-size: 18px;
    color: var(--title-and-text-color);
}

/* Farben für die Balken im Säulendiagramm */
.bar-chart .turqoise {
    border-color: var(--bar-border-color);
    background: var(--bar-gradient-start);
    background: linear-gradient(0deg, var(--bar-gradient-start) 0%, #7fbd82 50%, var(--bar-gradient-end) 100%);
}

/* Animation */
@keyframes growUp {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.bar-chart .bar {
    position: relative;
    margin-bottom: 40px;
    animation-name: growUp;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

/* "Fun Fact"-Beriech zeigt Fakten über mich */
.fun-fact-container {
    display: flex;
    align-items: center;
    /* Ändert von flex-start zu center */
    justify-content: space-between;
    /* Fügt gleichmäßigen Abstand zwischen den Elementen hinzu */
    gap: 4em;
    /* Erhöht den Abstand zwischen Bild und Text */
    max-width: 1200px;
    /* Leicht reduziert für bessere Kontrolle */
    width: 100%;
    /* Nutzt die volle verfügbare Breite */
    margin: 0 auto;
    padding: 2em;
    /* Fügt Polsterung hinzu */
}

.image-for-fun-fact {
    flex: 0 0 45%;
}

.image-for-fun-fact img {
    width: 350px;
    height: 350px;
    border-radius: 15px;
    flex-shrink: 0;
    /* Bild bleibt bei kleinerem Platz gleich groß */
    margin: 5.5rem 0 0 4rem;
    /* Margin angepasst */
    order: -1;
}

.fun-facts {
    flex: 1;
}

.fun-facts h2 {
    font-size: 2.5rem;
    letter-spacing: -0.125rem;
    color: var(--accent-color);
    font-family: "Geist Mono";
    margin: 0 8rem 2rem 0;
}

.fun-facts ul {
    list-style-type: none;
    padding: 5px auto;
    color: var(--title-and-text-color);
}

.fun-facts li {
    margin: 0 0 1rem 0;
    padding: 0 0 0 1.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.5;
    /* Fügt konsistenten Zeilenabstand hinzu */
}

.fun-facts li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    /* Setzt den Bullet-Point an den Anfang der Zeile */
    color: var(--fun-fact-bullet-points);
    /* Farbe des Bullet-Points */
    font-size: 1.5rem;
    line-height: 1;
    /* Verhindert zusätzlichen Abstand um den Bullet-Point */
}

/* In diesem Bereich erkläre ich meine Gedanken, was ich über Wissenschaft und Technologie denke */
.section-title {
    font-family: "Geist Mono";
    font-size: 4rem;
    margin: 3.25rem 0;
    letter-spacing: -0.125rem;
    text-align: center;
    color: var(--accent-color);
}

.thoughts-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1600px;
}

.thought-card {
    background-color: var(--skills-card-color) !important;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--thought-card-shadow);
    padding: 30px 20px 30px 20px;
    width: calc(33.333% - 20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    position: relative;
    /* Positionierungskontext setzen */
}

.thought-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--thought-card-hover-shadow);
}

.thought-icon {
    font-size: 3rem;
    position: absolute;
    /* Absolute Positionierung */
    bottom: 10px;
    /* Unten positionieren */
    right: 10px;
    /* Rechts positionieren */
    margin: 0 7.5 0 0;
}

.thought-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-align: left;
    font-family: "Geist Mono";
}

.thought-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--skill-text-preview);
}

/* Vektorgrafik = "Über Mich" */
.about-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: -5rem auto 0 -20rem;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

[data-theme="dark"] .about-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Eigenschaft für Überschrift "Über Mich" */
.headline-about-me h2 {
    font-family: "AC-Compacta Unicode", "AcidGR-Compacta", Arial, sans-serif;
    font-weight: normal;
    max-width: 400px;
    /* Übernimmt die max-width vom SVG */
    margin: -4rem auto auto 57.5rem;
    /* Abstand oben, links 1rem, rechts auto */
    font-size: 5rem;
    /* Beispielgröße, passend zur max-width */
    line-height: 1.2;
    text-align: left;
    /* Text links ausrichten */
    color: var(--accent-color);
    /* Setzt die Akzentfarbe */
    position: relative;
    /* Damit Margin wirkt wie beim SVG */
}

/* Ende der "Über Mich"-Seite */
/* "Projekte"-Bereich auf der Startseite in der Preview */
.project-title h2 {
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 3.5em;
    letter-spacing: -0.125rem;
    font-weight: bold;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 15px;
    margin-top: 15px;
    margin-right: auto;
    margin-left: auto;
}

.project-description-preview {
    font-size: 1.55rem;
    color: var(--accent-color);
    margin: 10px auto 30px auto;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.project-card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
    /* Abstand zwischen Karten */
    max-width: 1200px;
    width: 100%;
    margin: 15px auto 40px auto;
}

.project-card {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.05);
    /* Vergrößert die Karte leicht */
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bild skalieren und zuschneiden */
    border-radius: 15px;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.RasPi-NAS-img {
    object-fit: cover;
    /* Bild skalieren und zuschneiden */
    object-position: 25% center;
    /* Bild leicht nach links verschieben */
    width: 100%;
    /* Breite des Containers ausfüllen */
    height: 300px;
    /* Höhe des Containers festlegen */
    border-radius: 10px;
    /* Optional: Abrundung der Ecken */
}

.project-card .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(16, 160, 230, 0.85);
    /* Halbtransparenter Hintergrund */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    color: white;
    text-align: center;
    padding: 5px 5px;
    border-radius: 15px;
}

.project-card:hover .project-overlay {
    opacity: 1;
    /* Zeigt den Text beim Hover */
}

.project-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 4.75px 8px;
    border-radius: 8px;
}

.project-content {
    padding: 0 17.5px;
}

.project-content h3 {
    font-family: "Geist Mono";
    font-size: 1.4rem;
    font-weight: 700;
    margin: 5px 0 15px 0;
    max-width: 500px;
}

.project-content p {
    font-size: 1.10rem;
    line-height: 1.5;
    max-width: 350px;
    height: auto;
    padding: 5px 5px 10px 5px;
    margin: 0 0 10px 0;
}

/* Button um mehr über Prpjekte zu erfahren ist in der Klasse ".explore-more-button" */
/* Dieser Button ist für die kleinen Projekt-Boxen */
.project-box-button {
    --btn-bg-1: var(--button-color-1);
    --btn-bg-2: var(--button-color-2);
    --btn-bg-color: var(--button-font-color);
    cursor: pointer;
    padding: 0.9em 1.4em;
    margin: 20px auto 20px;
    min-width: 120px;
    min-height: 44px;
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: 0.8s;
    background-size: 280% auto;
    background-image: linear-gradient(325deg,
            var(--btn-bg-2) 0%,
            var(--btn-bg-1) 55%,
            var(--btn-bg-2) 90%);
    border: none;
    --radii2: 10px;
    border-radius: var(--radii2);
    color: var(--btn-bg-color);
    box-shadow:
        0px 0px 20px rgba(71, 184, 255, 0.5),
        0px 5px 5px -1px rgba(58, 125, 233, 0.25),
        inset 4px 4px 8px rgba(175, 230, 255, 0.5),
        inset -4px -4px 8px rgba(19, 95, 216, 0.35);
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
}

.project-box-button:hover {
    background-position: right top;
    transform: translateY(-2px);
}

.project-box-button:is(:focus, :focus-visible, :active) {
    outline: none;
    box-shadow:
        0 0 0 3px var(--btn-bg-color),
        0 0 0 6px var(--btn-bg-2);
}

.project-box-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.project-preview-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: 3rem auto 0 80rem;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

/* Eigenschaft für Überschrift "Projekt"-Preview */
.headline-projects-preview h2 {
    font-family: "AC-Compacta Unicode", "AcidGR-Compacta", Arial, sans-serif;
    font-weight: normal;
    max-width: 400px;
    /* Übernimmt die max-width vom SVG */
    margin: 1rem -9.5rem auto auto;
    /* Abstand oben, links 1rem, rechts auto */
    font-size: 6rem;
    /* Beispielgröße, passend zur max-width */
    line-height: 1.2;
    text-align: left;
    /* Text links ausrichten */
    color: var(--accent-color);
    /* Setzt die Akzentfarbe */
    position: relative;
    /* Damit Margin wirkt wie beim SVG */
}

[data-theme="dark"] .project-preview-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Ende von "Projekt"-Preview */
/* Projekt-Seite */
.projects-title {
    font-size: 4rem;
    font-family: "Geist Mono";
    margin: 10px 0 20px 0;
    padding: 0 0 0 0;
    color: var(--accent-color);
    letter-spacing: -0.125rem;
    text-align: center;
}

.project-description {
    font-size: 1.55rem;
    color: var(--accent-color);
    margin: 10px auto 20px auto;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.project-tabs {
    flex-wrap: nowrap;
    gap: 0;
    margin: 0.5rem auto 2rem auto;
    max-width: 860px;
    padding: 5px;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.08);

    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-tabs::-webkit-scrollbar {
    display: none;
}

.project-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: var(--navbar-color);
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.project-tabs button.active {
    background: rgba(40, 116, 252, 0.35);
    border-color: rgba(40, 116, 252, 0.85);
    color: var(--button-font-color);
}

.project-tabs button:hover {
    transform: translateY(-1px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-box {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.project-box:hover {
    transform: scale(1.05);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.project-box:hover .project-image {
    opacity: 0.7;
    filter: brightness(0.8) saturate(1.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    /* 50% black background */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 15px;
}

.project-box:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    /* 80% black background */
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 4px 7.5px;
    border-radius: 8px;
}

.project-content h2 {
    font-family: "Geist Mono", sans-serif;
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    padding: 5px;
    color: var(--button-font-color);
}

.project-content p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 25px 0;
    padding: 0 5px;
}

/* Öffnungsanimation */
@keyframes openOverlay {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        width: 50%;
        height: 50%;
        border-radius: 25px;
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        width: 80%;
        height: 90%;
        border-radius: 20px;
    }
}

/* Schließ-Animation */
@keyframes closeOverlay {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        width: 80%;
        height: 90%;
        border-radius: 20px;
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        width: 50%;
        height: 50%;
        border-radius: 25px;
    }
}

/* Standard-Zustand des Overlays */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    /* Wichtig: Standardmäßig versteckt */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Aktiviertes Modal mit Animation */
.project-modal.active {
    opacity: 1;
    visibility: visible;
    display: flex;
    /* Aktiviert Flex-Layout nur wenn modal sichtbar */
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.project-modal.active .modal-content {
    animation: openOverlay 0.4s ease-out forwards;
}

/* Schließen mit umgekehrter Animation */
.project-modal.closing .modal-content {
    animation: closeOverlay 0.3s ease-in forwards;
}

.project-modal.closing {
    opacity: 0;
}

/* Inhalt des Modals */
.modal-content {
    background-color: var(--overlay-bg);
    padding: 60px;
    border-radius: 20px;
    width: 80%;
    max-width: 1200px;
    height: 90%;
    overflow-y: auto;
    /* Ermöglicht Scrollen bei langen Inhalten */
    color: var(--overlay-text);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hier kommen nun die Formatvorlagen zum Einsatz, welches verwendet werden, um Artikeln über meine Projekte zu schreiben */
/* Hauptüberschrift im Modal */
.modal-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Unterüberschriften im Modal */
.modal-content h3 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
}

/* Schriftgrösse für Überschrift 4 in Projekt-Boxen */
.modal-content h4 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 7.5px;
}

/* Schriftgrösse für Überschrift 5 in Projekt-Boxen */
.modal-content h5 {
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 2px;
}

/* Textabsätze im Modal */
.modal-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Projektbilder im Modal in verschiedenen Grössen */
/* Projektbilder werden in der Dokumentation gross angezeigt */
.project-image-large {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
}

/* Projektbilder werden in der Dokumentation mittelgross angezeigt */
.project-image-medium {
    width: 70%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
}

/* Projektbilder werden in der Dokumentation klein angezeigt */
.project-image-small {
    width: 50%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

/* Container für Projektdetails */
.project-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

/* Spalten für Projektdetails */
.project-details-column {
    flex-basis: 48%;
}

/* Sorgt dafür, dass der "x"-Button angezeigt wird um ein Projekt zu schliessen und diverse andere Eigenschaften */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s ease;
}

/* Linien des Schliessen-Buttons */
.close-modal::before,
.close-modal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 2px;
    background-color: var(--overlay-close);
    /* Schwarz für das Icon */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Erste Linie des Schliessen-Buttons */
.close-modal::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Zweite Linie des Schliessen-Buttons */
.close-modal::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Linien des Schliessen-Buttons */
.close-modal::before,
.close-modal::after {
    background-color: var(--overlay-close);
}

/* Hover-Effekt für den Schliessen-Button */
.close-modal:hover {
    transform: rotate(90deg);
}

/* Farbe der Linien beim Hover über den Schliessen-Button */
.close-modal:hover::before,
.close-modal:hover::after {
    background-color: var(--overlay-text);
    /* Ändert die Farbe zu Rot beim Hover */
}

/* Vektorgrafik = "Projekte" */
.projects-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: -5rem 90rem 0 0;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

/* Zurück-Button bei den Projekt-Posts */
#back-btn {
    margin: 1rem auto 0 auto;
    right: 3rem;
    width: 4rem;
    height: auto;
}

[data-theme="dark"] .projects-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Eigenschaft für Überschrift "Projekt"-Preview */
.headline-projects h2 {
    font-family: "AC-Compacta Unicode", "AcidGR-Compacta", Arial, sans-serif;
    font-weight: normal;
    max-width: 400px;
    /* Übernimmt die max-width vom SVG */
    margin: -6.2rem 70rem auto auto;
    /* Abstand oben, links 1rem, rechts auto */
    font-size: 6rem;
    /* Beispielgröße, passend zur max-width */
    line-height: 1.2;
    text-align: left;
    /* Text links ausrichten */
    color: var(--accent-color);
    /* Setzt die Akzentfarbe */
    position: relative;
    /* Damit Margin wirkt wie beim SVG */
}

[data-theme="dark"] .project-preview-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Ende der Projekt-Seite */
/* Skills-Preview auf der Homepage */
.skills-title h2 {
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 3.5em;
    letter-spacing: -0.125rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px auto 10px auto;
    /* Zentriert den Titel horizontal */
    display: inline-block;
    /* Verhindert, dass der Titel die volle Breite einnimmt */
}

/* Der Titel für den Text der Skills-Preview */
.skills-title {
    text-align: center;
    /* Zentriert den gesamten Titelbereich */
    margin-bottom: 1rem;
    /* Fügt einen Abstand unter dem Titel hinzu */
}

.skills-description-preview p {
    font-size: 1.55rem;
    color: var(--accent-color);
    margin: 0 auto 15px auto;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Eigenschaften des "Skills"-Containers */
.skills-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 15px auto 40px auto;
    gap: 5px;
}

/* Eigenschaften und Konfiguration der einzelnen "Skills"-Boxen */
.skill-box {
    color: var(--button-color-2);
    border-radius: 7.5px;
    /* Optional, für abgerundete Ecken */
    background-color: #ffffff;
    width: 275px;
    height: 285px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 0.25rem;
}

.skill-box .skill-icon {
    margin-top: 15px;
}

/* === Skills Preview – Carousel (Desktop-Basis) === */
.skills-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 1.5rem auto 2.5rem auto;
    padding: 0 1rem;
    overflow: hidden;
    display: block;
    box-sizing: border-box;
}

.skills-carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: skills-marquee-desktop 15s linear infinite;
    will-change: transform;
}

.skills-carousel-track:hover {
    animation-play-state: paused;
}

.skills-carousel-group {
    display: flex;
    gap: 1rem;
    flex: 0 0 auto;
}

.skills-carousel-track .skill-box {
    flex: 0 0 240px;
    width: 240px;
    min-height: 260px;
    box-sizing: border-box;
}

/* Carousel Buttons */
.skills-carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.skills-carousel-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

@keyframes skills-marquee-desktop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* Farbe für SVG-Icons zu Skills auf der Preview */
.svg-icon-skill {
    filter: hue-rotate(210deg) brightness(0.6) saturate(1.5);
    /* Anpassung kann erforderlich sein */
}

[data-theme="dark"] .svg-icon-skill {
    filter: invert(0);
    /* Initialzustand */
}

.svg-icon-skill-game {
    filter: hue-rotate(210deg) brightness(0.6) saturate(1.5);
    /* Anpassung kann erforderlich sein */
}

[data-theme="dark"] .svg-icon-skill-game {
    filter: invert(0);
    /* Initialzustand */
}


/* Eigesnchaften zu Überschrift 3 der "Skills"-Boxen, damit man die grösse vom Titel, Überschrift und Text unterscheidet */
.skill-box h3 {
    font-size: 1.35rem;
    font-weight: bold;
    font-family: "Geist Mono", sans-serif;
    color: var(--accent-color);
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Eigenschaften der unordered List-Elemente */
.skill-box ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

/* Eigenschaften von unordered List und die aufgezählten Elemente in der Liste selber */
.skill-box ul li {
    margin-bottom: 5px;
    color: var(--skill-text-preview);
}

.skill-box li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--skill-text-preview);
    font-weight: bold;
}

/* Eigesnchaften der Skills-Icons (z.B. Grösse und Farben) */
.skill-icon-preview {
    font-size: 3rem;
    color: var(--secondary-color);
}

/* Button für mehr Skills */
.see-more-container {
    margin-top: 25px;
    text-align: center;
}

.skill-preview-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: -20rem auto 70px -10rem;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

.headline-skills-preview h2 {
    max-width: 400px;
    /* Übernimmt die max-width vom SVG */
    margin: 4rem auto -5rem -24.5rem;
    /* Abstand oben, links 1rem, rechts auto */
    font-size: 5rem;
    /* Beispielgröße, passend zur max-width */
    line-height: 1.2;
    text-align: left;
    /* Text links ausrichten */
    color: var(--accent-color);
    /* Setzt die Akzentfarbe */
    position: relative;
    /* Damit Margin wirkt wie beim SVG */
}

[data-theme="dark"] .skill-preview-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Das Ende der Skills-Preview */
/* Skills-Seite */
section#skills {
    margin: 0 auto;
    height: auto;
}

.skills-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--title-and-text-color);
}

/* Text = "Meine Skills" */
.skills-header h1 {
    font-family: "Geist Mono";
    color: var(--accent-color);
    font-size: 3.5rem;
    letter-spacing: -0.125rem;
    margin-bottom: 0.2rem;
}

.skills-header p {
    color: var(--accent-color);
    font-size: 1.55rem;
    margin-bottom: 0.2rem;
}

/* Text = "Skills" */
.skills-title h1 {
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.125rem;
    text-align: center;
    color: var(--accent-color);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    flex: 1 1 300px;
    max-width: 300px;
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--skills-card-color);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    /* Icon links, Titel rechts */
    align-items: flex-start;
    /* Icons und Titel oben ausrichten */
    margin-bottom: 1rem;
    text-align: left;
    /* Text links ausrichten */
    width: 100%;
    /* Volle Breite nutzen */
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    fill: var(--skills-icon);
}

/* Farbe für SVG-Icons zu Skills auf der Preview */
.skill-icon {
    filter: hue-rotate(210deg) brightness(0.6) saturate(1.5);
    /* Anpassung kann erforderlich sein */
}

[data-theme="dark"] .skill-icon {
    filter: invert(0);
    /* Initialzustand */
}

.skill-title {
    font-size: 1.25em;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 0.75rem;
    /* Entferne den oberen Abstand */
    text-align: right;
    /* Titel rechts ausrichten */
    margin-left: auto;
    /* Titel nach rechts verschieben */
    font-family: "Geist Mono"
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: "Geist Mono";
}

.skill-name {
    font-weight: 500;
    color: var(--accent-color);
    /* Farbe des Skill-Namens */
}

.skill-level {
    color: var(--accent-color);
    /* Farbe des Levels */
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.49);
    /* Hintergrundfarbe der Leiste */
    border-radius: 4px;
    overflow: visible;
    position: relative;
    /* Positionierungskontext für .progress-dot */
}

.progress-fill {
    height: 100%;
    background: #1795d9;
    /* Farbe des Fortschrittsbalkens */
    transition: width 0.75s ease-out;
    position: relative;
    /* Positionierungskontext für .progress-dot */
}

.progress-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    /* Farbe des Punktes */
    border-radius: 50%;
    /* Runde Form */
    border: 2px solid var(--secondary-color);
    /* Randfarbe */
    position: absolute;
    top: 50%;
    /* Vertikal zentrieren */
    transform: translate(-50%, -50%);
    /* Horizontal und vertikal zentrieren */
    left: var(--initial-dot-position, 0%);
    /* Initialwert oder CSS-Variable */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.skill-description {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--skill-text-preview);
}

.skill-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: -15rem auto 0 -12.5rem;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

.headline-skills h2 {
    font-family: "AC-Compacta Unicode", "AcidGR-Compacta", Arial, sans-serif;
    font-weight: normal;
    max-width: 400px;
    /* Übernimmt die max-width vom SVG */
    margin: -2.5rem auto -3.5rem 25rem;
    /* Oben 3rem Abstand, rechts 0, unten 1rem, links 0 */
    font-size: 6rem;
    /* Beispielgröße, passend zur max-width */
    line-height: 1.2;
    text-align: left;
    /* Text links ausrichten */
    color: var(--accent-color);
    /* Setzt die Akzentfarbe */
    position: relative;
    /* Damit Margin wirkt wie beim SVG */
}

[data-theme="dark"] .skill-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Das Ende der Skills-Seite */
/* "Kontaktformular"-Bereich, welches auf der Preview und Kontakt-Seite verfügbar sein wird (Homepage-Bereich) */
.contact-container {
    margin: 100px 0 0 0;
    padding: 40px;
    text-align: center;
    height: 85vh;
}

/* Überschrift bei Formular der Homepage */
.contact-formular-header-homepage {
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 3.5rem;
    letter-spacing: -0.125rem;
    text-align: center;
    color: var(--accent-color);
    margin: 1rem 0rem 1rem auto;
}

/* Überschrift bei Kontaktseite */
.contact-formular-header {
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    font-size: 3.5rem;
    letter-spacing: -0.125rem;
    text-align: center;
    color: var(--accent-color);
    margin: 1rem 75rem 1rem auto;
}

/* Textbeschreibung unter der Überschrif des Kontaktformulars */
.contact-formular-description {
    font-family: "Titillium Web";
    font-size: 1.25rem;
    text-align: center;
    color: var(--accent-color);
    padding: 10px auto;
    margin: 5px auto;
}

/* Formular-Stil - Modern & Accessible */
.contact-formular {
    max-width: 750px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Form Alert Messages */
.form-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    font-family: 'Geist Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: slide-in 0.3s ease;
}

.form-alert.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

.form-alert.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

/* Form Groups - 2 Column Layout */
.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.form-group.full {
    grid-template-columns: 1fr;
}

/* Form Field Container */
.form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-field-full {
    grid-column: 1 / -1;
}

/* Form Labels */
.form-label {
    display: block;
    font-family: 'Geist Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color, #5cb85c);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-required {
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Form Inputs & Textareas */
.form-input {
    padding: 0.9rem 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--title-and-text-color, #333);
    font-family: 'Geist Mono', monospace;
    font-size: 1rem;
    font-weight: 400;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.form-input::placeholder {
    color: var(--placeholder-text, #4d93ff);
    opacity: 0.7;
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--accent-color, #5cb85c);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.15);
}

.form-input.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 300px;
    font-family: 'Titillium Web', sans-serif;
    line-height: 1.5;
}

/* Character Count */
.form-char-count {
    font-family: 'Geist Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary, #666);
    margin-top: 0.25rem;
    text-align: right;
}

/* Form Error Messages */
.form-error {
    font-family: 'Geist Mono', monospace;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.35rem;
    display: block;
    animation: fade-in 0.3s ease;
}

/* Form Footer */
.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* reCAPTCHA Notice */
.recaptcha-notice {
    font-family: 'Geist Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary, #666);
    text-align: center;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: var(--accent-color, #5cb85c);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Submit Button */
.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Geist Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--button-font-color, #fff);
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--button-color-1, #28a745), var(--button-color-2, #0056b3));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    min-width: 150px;
}

.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.form-submit-btn:focus {
    outline: 2px solid var(--accent-color, #5cb85c);
    outline-offset: 2px;
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Text & Loader */
.btn-text {
    display: inline;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Spinner Animation */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--button-font-color, #fff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    border-radius: 0.75rem;
    animation: slide-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
}

.success-content p {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1rem;
    color: #28a745;
    margin: 0;
}

/* Animations */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-formular {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-input {
        font-size: clamp(16px, 4vw, 1rem);
        padding: 0.85rem 0.9rem;
    }

    .form-textarea {
        min-height: 120px;
    }

    .form-submit-btn {
        width: 100%;
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-formular {
        padding: 1rem;
        margin: 1rem;
    }

    .form-input {
        padding: 0.75rem 0.8rem;
    }

    .form-group,
    .form-field {
        gap: 0.75rem;
    }
}

.scrollsnap-toggle {
    width: 100%;
    padding: 0.9rem 1.2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin: 0 auto 0.6rem auto;
}

.scrollsnap-toggle label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.scrollsnap-toggle input {
    margin-right: 0.45rem;
}

/* Button-Stil */
button {
    background-color: var(--accent-color);
    font-size: 1.5rem;
    font-family: "Geist Mono";
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 30px;
    margin: 15px auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Eigenschatfen für den "Submit" aka "Senden"-Knopf */
.submit-button {
    display: block;
    margin: 20px auto 20px 11rem;
    align-items: center;
}

/* Eigenschaften für die kleine Beschreibung unter dem "Senden"-Knopf */
.contact-formular-hint {
    font-size: 18px;
    font-family: "Titillium Web";
    color: var(--text-primary);
    text-align: center;
    margin: 10px auto 20px auto;
}

/* Container für den "Back to the Top"-Button */
.back-to-top-button-container {
    margin: 60px auto;
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: space-between;
    color: var(--text-primary);
}

.back-to-top-button-container p {
    margin: 0 20px 0 auto;
}

/* "Back to the Top"-Button, sobald man draufdrückt, wird der Benutzer zur Anfang der Seite zurückgeschickt */
.back-to-top-button {
    --btn-bg-1: var(--accent-color);
    --btn-bg-2: var(--secondary-color);
    --btn-bg-color: var(--button-font-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: linear-gradient(325deg,
            var(--btn-bg-2) 0%,
            var(--btn-bg-1) 55%,
            var(--btn-bg-2) 90%);
    background-size: 280% auto;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 20px rgba(71, 184, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    margin: 35px auto -10px auto;
}

/* Icon-Animation */
.back-to-top-button .svgIcon {
    width: 20px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
}

.back-to-top-button .svgIcon path {
    fill: var(--btn-bg-color);
}

/* Hover-Effekt */
.back-to-top-button:hover {
    width: 100px;
    border-radius: 50px;
    background-position: right top;
}

/* Kreisförmige Animation des Pfeils */
.back-to-top-button:hover .svgIcon {
    animation: arrowLoop 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes arrowLoop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    25% {
        transform: translateY(-150%);
        opacity: 0;
    }

    26% {
        transform: translateY(150%);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Text-Animation */
.back-to-top-button::before {
    position: absolute;
    content: "";
    color: var(--btn-bg-color);
    font-size: 0px;
    font-family: "Geist Mono", "Titillium Web", sans-serif;
    opacity: 0;
    transition: opacity 0.3s, font-size 0.3s;
}

.back-to-top-button:hover::before {
    font-size: 1rem;
    opacity: 1;
    transition: 0.3s;
}

.back-to-top-button:focus {
    outline: none;
    box-shadow:
        0 0 0 3px var(--btn-bg-color),
        0 0 0 6px var(--btn-bg-2);
}

.contact-preview-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: -100px auto 0 50rem;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

[data-theme="dark"] .contact-preview-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

.contact-svg {
    position: relative;
    width: 100%;
    height: auto;
    margin: -7.5rem 65rem 0 auto;
    /* Zentriert das SVG-Bild */
    max-width: 300px;
    /* Maximale Breite des SVG-Bildes */
    filter: invert(0);
    /* Initialzustand */
}

/* Eigenschaft für Überschrift "Kontakt"-Preview */
.headline-contact-preview h2 {
    font-family: "AC-Compacta Unicode", "AcidGR-Compacta", Arial, sans-serif;
    font-weight: 700;
    max-width: 500px;
    margin: 3.5rem auto -0.75rem auto;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    text-align: center;
    color: var(--accent-color);
    position: relative;
    z-index: 10;
}

/* Eigenschaft für Überschrift "Kontakt" auf Kontakt-Seite */
.headline-contact h2 {
    font-family: "AC-Compacta Unicode", "AcidGR-Compacta", Arial, sans-serif;
    font-weight: 700;
    max-width: 500px;
    margin: 3.5rem auto -0.75rem auto;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    text-align: center;
    color: var(--accent-color);
    position: relative;
    z-index: 10;
}

[data-theme="dark"] .contact-svg {
    filter: invert(1) brightness(13);
    /* Invertiert zu Weiß */
}

/* Ende vom Kontaktformular */

/* Eigenschaften für die Seite der Datenschutzerklärung */
.privacy-section {
    padding: 20px;
    margin: 0 auto;
    /* Oben und unten auf 0 setzen */
    max-width: 800px;
    height: auto;
    background-color: var(--privacy-bg);
}

.privacy-title {
    font-size: 3rem;
    /* Etwas kleiner, um weniger Platz zu beanspruchen */
    color: var(--accent-color);
    margin: 8rem auto 15px auto;
    /* Weniger Abstand oben */
    text-align: center;
    max-width: 800px;
    width: 100%;
    font-family: "Geist Mono", "Titillium Web", sans-serif;
}

.privacy-header p {
    font-size: 1.2rem;
    /* Etwas kleiner */
    color: var(--accent-color);
    margin: 5px auto;
    /* Zentrierungsabstand */
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 10px;
    color: var(--title-and-text-color);
}

.privacy-section {
    margin-bottom: 20px;
    /* Etwas mehr Abstand zwischen den Abschnitten */
}

.privacy-section h2 {
    font-size: 1.75em;
    /* Etwas kleiner */
    margin-bottom: 8px;
    /* Etwas weniger Abstand unter der Überschrift */
    color: var(--accent-color);
}

.privacy-section p,
.privacy-section ul {
    font-size: 1rem;
    /* Etwas kleiner */
    line-height: 1.5;
    /* Etwas weniger Zeilenhöhe */
    margin-bottom: 8px;
    /* Etwas weniger Abstand unter den Absätzen */
}

.privacy-section ul {
    padding-left: 20px;
}

.privacy-section li {
    margin-bottom: 3px;
    /* Weniger Abstand zwischen den Listenelementen */
}

/* Ende der Privacy-Seite */
/* Eigenschaften des Footers */
footer {
    border-top: 1px solid var(--title-and-text-color);
    background-color: var(--footer-bg);
    padding: 10px;
    margin-top: 20rem;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 15px;
    min-width: 200px;
    color: var(--title-and-text-color);
}

/* Eigenschaften, damit die Navigation beim Footer auf der linken Seite stehen */
.footer-section,
#footer-nav {
    text-align: left;
}

/* Eigenschaften für Kontakt und Social-Media Icons im Footer */
.footer-section,
#footer-contact,
#footer-social-media {
    text-align: center;
}

.footer-section h3 {
    color: var(--title-and-text-color);
    margin: 7.5px auto 7.5px auto;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 2.5px;
}

.footer-section a {
    color: var(--title-and-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Etwas mehr vertikaler Abstand zwischen den Items */
    align-items: center;
    margin-left: 2.5rem;
}

.social-item {
    display: flex;
    align-items: center;
    /* Vertikale Zentrierung */
    width: 100%;
    /* Volle Breite nutzen */
}

/* Konsistente Icon-Größen und Ausrichtung */
.social-icon {
    display: inline-flex;
    /* Wichtig für korrekte Ausrichtung */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.social-name {
    margin-left: 15px;
    /* Konsistenter horizontaler Abstand vom Icon */
    line-height: 40px;
    /* Gleiche Höhe wie die Icons für vertikale Zentrierung */
    display: inline-block;
    /* Wichtig für korrekte Ausrichtung */
}

footer .svg-icon {
    width: 40px;
    /* Größe des Icons */
    height: 40px;
    vertical-align: middle;
    transition: fill 0.3s ease;
    /* Weicher Übergang bei Farbänderungen */
}

.svg-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    transition: fill 0.3s ease;
    fill: var(--overlay-bg)
}

@media (prefers-color-scheme: light) {
    .social-icon {
        color: #000000;
        /* Farbe für Light Mode */
    }
}

@media (prefers-color-scheme: dark) {
    .social-icon {
        color: #ffffff;
        /* Farbe für Dark Mode */
    }
}

.footer-section a:hover .svg-icon {
    fill: var(--secondary-color);
    /* Farbe beim Hover-Effekt */
}

.right {
    flex-direction: row;
}

.left {
    flex-direction: row;
}

.footer-bottom {
    color: var(--title-and-text-color);
    text-align: center;
    margin-top: 5px;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--title-and-text-color);
}

.footer-bottom a {
    color: var(--title-and-text-color);
    font-weight: 700;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.mouse-wrapper {
    top: 250px;
}

/* ===== Responsive Design ===== */
/* Smartphones */
@media (min-width: 320px) and (max-width: 767px) {

    /* === Globale Anpassungen === */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    html,
    body {
        scroll-snap-type: none;
        overflow-y: auto;
    }

    section {
        padding: 20px 10px;
        margin-bottom: 50px;
        scroll-snap-type: none;
        /* Scroll-Snap deaktivieren für Smartphone */
    }

    .snap-section {
        scroll-snap-type: none;
        /* Scroll-Snap deaktivieren für Smartphone */
    }

    /* Right-side navigation rail ausblenden für Smartphone */
    .side-nav {
        display: none;
    }

    /* === Navbar === */
    nav {
        position: relative;
        width: 100%;
        z-index: 100;
        background-color: var(--bg-color);
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        /* Logo links, Button rechts */
        align-items: center;
    }

    /* Logo-Container */
    .logo-container {
        order: 1;
        /* Logo links */
        z-index: 101;
    }

    /* Hamburger Icon Styling */
    .hamburger-button {
        display: block;
        position: absolute;
        /* Passe den vertikalen Abstand nach Bedarf an */
        right: 15px;
        /* Setze den rechten Abstand */
        order: 2;
        /* Sollte weiterhin rechts bleiben */
        z-index: 101;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: 0;
        top: -10px;
        /* Entferne auto-Margin, da wir absolute Positionierung verwenden */
        color: var(--text-primary);
        /* Textfarbe des Hamburger-Buttons */
    }

    /* === Entfernt Hintergrund des Hamburger-Buttons === */
    .hamburger-button,
    .hamburger-button:active,
    .hamburger-button:focus,
    .hamburger-button.active {
        background-color: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* Optional: Entfernt Hintergrund des Nav-Icons */
    .nav__icon,
    .nav__icon::before,
    .nav__icon::after {
        background-color: var(--navbar-color) !important;
    }

    /* Verstecke den ursprünglichen Navbar-Container */
    .navbar {
        position: fixed;
        /* Fixierte Position */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        /* Beibhalten für vertikale Anordnung */
        align-items: flex-end;
        /* **ÄNDERUNG:** Elemente rechts ausrichten */
        justify-content: flex-start;
        /* Elemente am oberen Rand beginnen */
        transform: translateY(-100%);
        transition: transform 0.5s ease;
        z-index: 99;
        /* Unter der Navbar */
        padding-top: 70px;
        /* Platz für Logo */
        padding-right: 20px;
        /* **HINZUGEFÜGT:** Etwas Innenabstand rechts */
        padding-bottom: 80px;
        /* **HINZUGEFÜGT:** Platz für den Dark-Mode-Button unten */
        overflow-y: auto;
    }

    body.no-scroll {
        overflow: hidden;
        /* Deaktiviert Seiten-Scrollen */
    }

    /* Wenn aktiv */
    .navbar.active {
        transform: translateY(0);
    }

    /* Menü-Links */
    .navbar .switch {
        position: absolute;
        /* Ändere von fixed zu absolute */
        left: 20px;
        bottom: 20px;
        margin: 0 0 10rem 0;
        z-index: 101;
    }

    /* Entfenre Trennzeichen */
    .navbar a:not(:last-child)::after {
        content: none;
    }

    .navbar::before,
    .navbar::after {
        content: none;
        /* Entferne die Striche am Anfang sund Ende */
    }

    /* === Styling für den Theme-Switch === */
    .nav__icon {
        display: inline-block;
        width: 25px;
        height: 3px;
        background-color: var(--navbar-color);
        position: relative;
        transition: transform 0.4s ease;
    }

    .nav__icon::before,
    .nav__icon::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--navbar-color);
        transition: transform 0.4s ease;
    }

    .nav__icon::before {
        top: -8px;
    }

    .nav__icon::after {
        bottom: -8px;
    }

    /* Rotation bei aktivem Menü */
    .hamburger-button.active .nav__icon {
        transform: rotate(90deg);
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-block;
        margin-top: 10px;
    }

    /* Mobile Version */
    .mobile-only .slider {
        margin: 10px auto;
        height: 40px;
        width: 80px;
    }

    /* === Homepage === */
    /* Logo */
    .logo {
        font-size: 2em;
        letter-spacing: -0.2em;
        margin: 10px;
    }

    /* Container für den Namen/Logo */
    .name-container {
        display: flex;
        justify-content: center;
        /* Horizontal zentriert */
        align-items: center;
        /* Vertikal zentriert */
        text-align: center;
        width: 100%;
        height: auto;
        margin: 1rem auto 2rem auto;
        padding: 0 1rem;
        order: -2;
    }

    /* Logo selbst */
    .homepage-logo-svg {
        width: 100%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: -13rem -17.25rem 0 0;
    }

    /* Zeigende Maus-Container und Bild für Smartphone */
    .mouse-wrapper {
        display: block;
        width: 16rem;
        max-width: 16rem;
        height: 16rem;
        /* Reduzierte Höhe, um Maus und Pad zusammenzubringen */
        position: relative;
        /* Positionierungskontext für die Kindelemente */
        top: auto;
        right: auto;
        order: -1;
    }

    /* Das Mauspad – sitzt am unteren Rand des Wrappers */
    .mouse-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 20rem;
        /* Waagerechtes Mauspad */
        border-radius: 12px;
        background-color: var(--mouse-container-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        z-index: 0;
    }

    /* Die Maus – zentriert, ragt von oben ins Mauspad */
    .mouse-image {
        position: absolute;
        bottom: 45px;
        /* Erhöhte Überlappung für besseres Zusammenpassen */
        left: 50%;
        transform: translateX(-50%) translateY(50%);
        width: 75%;
        height: auto;
        z-index: 1;
        /* Über dem Mauspad */
        display: block;
    }

    /* === "Lernen Sie mich kennen"-Bereich (Homepage) === */
    /* Kein negativer Margin, keine fixe Breite mehr */
    #about-me-preview,
    .snap-section {
        transform: none;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        /* Überschreibt min-width: 50vh aus den Basis-Styles, die auf schmalen
           Hochformat-Handys (z.B. 375×812 px → 50vh = 406 px) die Sektion
           breiter als den Viewport machen und alles nach rechts verschieben */
        box-sizing: border-box;
    }

    .about-preview-container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        box-sizing: border-box;
    }

    #about-me-preview {
        margin-top: 2rem;
    }

    /* "Meine Skills" / Titel oben */
    .about-title h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        /* passt sich der Breite an */
        text-align: center;
        margin: 0 auto 0.75rem auto;
        word-wrap: break-word;
        line-height: 1.2;
    }

    /* Kurzer Beschreibungstext */
    .about-description-preview p {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        margin: 5px auto 1rem auto;
        text-align: center;
        max-width: 90%;
        line-height: 1.5;
    }

    /* Bild + Text untereinander */
    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    /* Profilbild mittig, nicht zu groß */
    .about-img {
        width: 55%;
        height: auto;
        max-width: 160px;
        aspect-ratio: 1 / 1;
        border-radius: 15px;
        margin: 0 auto;
        display: block;
        object-fit: cover;
    }

    /* Textblock */
    .about-text-block {
        width: 95%;
        margin: 0 auto;
        padding: 0 0.5rem;
        text-align: center;
    }

    /* H3-Titel "Über mich" im Textblock */
    .headline-about-me-preview h2 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        line-height: 1;
        text-align: center;
        transform: translateX(-40%) translateY(40%);
        margin: 5rem auto 1rem auto;
        max-width: 100%;
    }

    /* Fließtext */
    .about-text {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        line-height: 1.6;
        word-wrap: break-word;
        max-width: 100%;
        margin: 0 auto;
        height: auto;
        /* Desktop-height: 10rem aufheben */
        text-align: center;
    }

    /* Button-Container */
    .more-about-me-container {
        transform: translateX(35%);
        margin: 1.25rem auto;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* "Über mich"-Button */
    .explore-about-button {
        margin: 0 auto 1.25rem auto !important;
        display: inline-block;
    }

    /* Allgemeiner Button – kleiner für Smartphones */
    .explore-more-button {
        font-size: clamp(0.68rem, 2.8vw, 0.78rem);
        padding: 0.65em 1.05em;
        width: auto;
        min-width: 96px;
        min-height: 38px;
        display: inline-block;
        margin: 0 auto 1.25rem auto;
    }

    /* "Über mich"-SVG Dekoration */
    .about-preview-svg {
        position: relative;
        width: 30%;
        max-width: 80px;
        margin: -30px auto 0 auto;
        opacity: 1;
        display: block;
    }

    /* === Über Mich"-Seite (Landingpage) === */
    section#about-me {
        margin: 20rem auto 0 auto;
        /* Zentriert den Container */
        width: auto;
        height: auto;
    }

    .about-container {
        flex-direction: column;
        /* Bild und Text untereinander */
        align-items: center;
        /* Zentriert horizontal */
        text-align: center;
        /* Zentriert den Text */
        margin: -0.825rem auto 0 auto;
    }

    .about-profile-picture {
        width: 250px;
        /* Quadratische Form */
        height: 250px;
        /* Quadratische Form */
        margin: -500px auto 90px auto;
        /* Zentriert das Bild und fügt Abstand hinzu */
        object-fit: cover;
        /* Füllt den Bereich aus */
        object-position: center;
        /* Zentriert das Bild */
    }

    .about-info-box {
        padding-right: 0;
        /* Entfernt den Abstand */
    }

    .about-me-title {
        font-size: 2em;
        text-align: left;
        /* Zentriert den Titel */
        padding: 0;
        /* Entfernt den Abstand */
        margin: 25px auto 0 50px;
    }

    .about-me-description {
        font-size: 1em;
        text-align: left;
        /* Zentriert den Text */
        max-width: 75%;
        /* Passt auf den Bildschirm */
        margin: 0 auto 0 50px;
        /* Zentriert den Text */
    }

    /* === "Meine Hobbys"-Bereich für Smartphone === */
    section#hobbies {
        margin: 0 auto 0 auto;
        /* Angepasste Margins für Smartphone */
        max-width: 100%;
        /* Nimmt die volle Breite des Displays ein */
        padding: 15px;
        /* Etwas Padding für die Ränder */
        height: 500px;
    }

    .about-hobby-title {
        font-size: 1.8em;
        /* Kleinere Schriftgröße für Smartphone */
        text-align: left;
        margin: 0 auto 15px 50px;
    }

    .about-me-short-description {
        font-size: 0.9em;
        /* Kleinere Schriftgröße für Smartphone */
        text-align: left;
        margin: -10px auto 10px 50px;
    }

    .bar-chart {
        width: 80%;
        height: 150%;
        display: flex;
        /* Aktiviere Flexbox für die horizontale Anordnung */
        flex-direction: row;
        /* Ordne die Elemente horizontal an */
        align-items: flex-end;
        /* Richtet die Balken am unteren Ende aus */
        justify-content: space-around;
        /* Verteilt die Balken gleichmäßig */
        padding: 10px 0;
        /* Etwas vertikales Padding */
        margin: 20px auto 0 auto;
    }

    .bar-chart .axis {
        display: none;
        /* Achsenbeschriftungen für Smartphone ausblenden, da die Balken direkt beschriftet sind */
    }

    .bar-chart .skill {
        position: absolute;
        transform-origin: top right;
        /* Setzt den Ursprung für die Drehung */
        text-align: right !important;
        /* Erzwingt die Ausrichtung nach rechts */
        margin: 0 auto 0 auto;
        font-size: 0.7em;
        width: calc(100% / 6);
        padding: 5px 0;
        left: -0.25rem;
    }

    .bar-chart .bar {
        width: calc(100% / 6 - 10px);
        /* Breite der Balken mit etwas Abstand */
        margin: 0 5px;
        /* Horizontaler Abstand zwischen den Balken */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* Prozentwert am oberen Ende */
        align-items: center;
    }

    .bar-chart .bar .percent {
        font-size: 0.7em;
        /* Kleinere Prozentzahl */
        margin-bottom: 5px;
        /* Abstand zum Balken */
    }

    .bar-chart .bar .percent span {
        font-size: 0.8em;
        /* Größeres Prozentzeichen */
    }

    .fun-fact-container {
        flex-direction: column;
        /* Bild und Fakten untereinander */
        text-align: center;
        /* Zentriert den Text */
        margin: -5rem auto 17.5rem auto;
        height: auto;
        position: relative;
        margin-top: 22rem;
    }

    .image-for-fun-fact {
        width: 200px;
        /* Quadratische Form */
        height: 200px;
        /* Quadratische Form */
        margin: 0 auto 20px;
        /* Zentriert das Bild und fügt Abstand hinzu */
        margin-right: auto;
    }

    .image-for-fun-fact img {
        width: 200px;
        /* Füllt den Bereich aus */
        height: 200px;
        /* Füllt den Bereich aus */
        margin: 0 auto;
        border-radius: 15px;
        object-fit: cover;
        /* Skaliert das Bild */
    }

    .fun-facts {
        text-align: left;
        margin: 0 auto 80px auto;
        /* Mehr Abstand unten */
        width: 90%;
        max-width: 350px;
    }

    .fun-facts h2 {
        font-size: 1.8em;
        margin: 0 0 15px 0;
        /* Mehr Abstand unter der Überschrift */
        text-align: left;
        color: var(--accent-color);
    }

    .fun-facts ul {
        padding-left: 22px;
        /* Etwas mehr Platz für Bullet Points */
        margin: 0;
        width: 100%;
        list-style-type: none;
    }

    .fun-facts li {
        font-size: 1.05em;
        /* Leicht vergrößerte Schrift */
        margin: 0 0 15px 0;
        /* Deutlich mehr Abstand zwischen Punkten */
        line-height: 1.6;
        /* Mehr Zeilenabstand für bessere Lesbarkeit */
        text-align: left;
        list-style-position: outside;
        padding-left: 8px;
        /* Optional: Extra Platz nach den Bullet Points */
    }

    .fun-facts li::before {
        content: "•";
        position: absolute;
        left: -0.7rem;
        /* Reduziere den linken Abstand des Bullet Points */
        top: 0;
        /* Passe die vertikale Position für bessere Ausrichtung an */
        color: var(--fun-fact-bullet-points);
        font-size: 1.2rem;
        /* Verkleinere die Größe des Bullet Points */
        line-height: 1;
    }

    .thoughts-container {
        flex-direction: column;
        /* Karten untereinander */
        margin: 0 auto 0 auto;
    }

    .section-title {
        font-size: 1.5rem;
        /* Kleinere Schriftgröße für den Titel */
        text-align: center;
        /* Zentriert den Titel */
        margin: 3rem auto 20px auto;
        /* Weniger Abstand unterhalb des Titels */
    }

    .thought-card {
        width: 100%;
        /* Nimmt die volle Breite ein */
        max-width: 300px;
        /* Begrenzt die Breite */
        margin: 0 auto 0.5rem;
        /* Zentriert die Karten */
    }

    .thought-card h3 {
        font-size: 1.1em;
        /* Kleinere Schriftgröße für den Titel */
        text-align: left;
        /* Zentriert den Titel */
        margin: 0 auto 10px auto;
        /* Weniger Abstand unterhalb des Titels */
    }

    .thought-card p {
        text-align: left;
        font-size: 0.875rem;
    }

    .thought-icon {
        width: 50px;
        /* Kleinere Icons */
        height: 50px;
        /* Kleinere Icons */
        margin: 0 20px 20px auto;
        /* Zentriert die Icons */
    }

    .about-title2 {
        font-size: 1.5em;
        /* Kleinere Schriftgröße für den Titel */
        text-align: center;
        /* Zentriert den Titel */
        margin: 0 auto 20px auto;
        /* Weniger Abstand unterhalb des Titels */
    }

    .about-svg {
        width: 35%;
        /* Beispiel: 80% der Containerbreite auf dem Smartphone */
        max-width: none;
        /* Entferne die maximale Breite, damit die prozentuale Breite greift */
        margin: -1rem auto 0 3rem;
        /* Zentriere die SVG horizontal auf dem Smartphone */
        opacity: 1;
        /* Beispielhafte Deckkraft für Smartphone */
        /* Passe andere Stile nach Bedarf an (z.B. margin, position, transform) */
    }

    /* === Projekte (Homepage) === */
    #projects-preview {
        position: relative;
        z-index: 1;
        margin: -7.5rem auto 3rem auto;
        /* Vertikale Abstände beibehalten, horizontal zentrieren */
        height: auto;
        /* width: auto; <-- ENTFERNE DIESE ZEILE */
        max-width: 1200px;
        /* Füge eine maximale Breite hinzu (passe den Wert nach Bedarf an) */
        /* width: 90%; Wenn du eine relative maximale Breite bevorzugst */
    }

    .project-title h2 {
        font-size: 2em;
        text-align: center;
        margin: 10px auto;
    }

    .project-description-preview {
        font-size: 1.1em;
        text-align: center;
        margin: 5px auto 20px auto;
        max-width: 90%;
    }

    /* === Projektkarten-Container === */
    .project-card-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Zentriert die Projektkarten horizontal innerhalb des Containers */
        gap: 20px;
        width: 100%;
        margin-bottom: 0px;
        position: relative;
        z-index: 1;
    }

    .project-card {
        position: relative;
        width: 90%;
        /* Nimmt fast die gesamte Breite des Bildschirms ein */
        height: 250px;
        max-width: 275px;
        overflow: hidden;
        border-radius: 15px;
        transition: transform 0.2s ease-in-out;
        cursor: pointer;
    }

    /* Simuliert Hover-Effekt bei Touchscreen durch :active */
    .project-card:active {
        transform: scale(1.05);
    }

    .project-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
        transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
    }

    .project-card:active .project-image {
        opacity: 0.7;
        filter: brightness(0.8) saturate(1.2);
    }

    .project-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        color: white;
        text-align: center;
        padding: 5px;
    }

    .project-card:active .project-overlay {
        opacity: 1;
    }

    .project-content h3 {
        font-size: 1.1em;
        margin: 5px auto;
    }

    .project-content p {
        font-size: 0.875em;
        max-width: 100%;
    }

    .project-box-button {
        font-size: 0.8rem;
        padding: 0.5em 1em;
    }

    /* === Button "Mehr Projekte anzeigen" === */
    .see-more-container {
        margin-top: 10px;
        text-align: center;
    }

    #projects-preview .explore-more-button {
        /* Spezifischer für den Button innerhalb der Sektion */
        transform: translateX(35%);
        font-size: 0.9rem;
        padding: 0.6em 1em;
        width: 150px;
        display: inline-block;
        margin: 0.75rem auto 100px auto;
        /* Zentriert den Button unterhalb der Projekte */
    }

    .project-preview-svg {
        position: relative;
        width: 35%;
        /* Beispiel: 80% der Containerbreite auf dem Smartphone */
        max-width: none;
        /* Entferne die maximale Breite, damit die prozentuale Breite greift */
        margin: -9rem auto 200px auto;
        /* Zentriere die SVG horizontal auf dem Smartphone */
        opacity: 1;
        /* Beispielhafte Deckkraft für Smartphone */
        /* Passe andere Stile nach Bedarf an (z.B. margin, position, transform) */
    }

    /* === Projekt-Seite (Landingpage) === */
    section#projects {
        margin: 20px auto 0 auto;
        /* Angepasster oberer Margin */
        height: auto;
    }

    .projects-title {
        font-size: 2.5em;
        text-align: center;
        margin-bottom: 20px;
    }

    .project-description {
        font-size: 1.1em;
        text-align: center;
        margin: 0 auto 30px;
        max-width: 90%;
    }

    .projects-grid {
        display: flex;
        /* Verwende Flexbox für die vertikale Anordnung */
        flex-direction: column;
        /* Ordne die Projekte untereinander an */
        gap: 20px;
        /* Abstand zwischen den Projekten */
        margin: 0 auto 0 auto;
        padding: 10px 50px 10px 50px;
        max-width: 1200px;
        /* Begrenze die maximale Breite des Grids */
    }

    .project-box {
        position: relative;
        /* Für die Positionierung des Overlays */
        transition: transform 0.2s ease-in-out;
        /* Für den Vergrößerungseffekt */
        cursor: pointer;
        /* Zeigt an, dass das Element anklickbar ist */
        border-radius: 15px;
        overflow: hidden;
        /* Stellt sicher, dass der Overlay innerhalb der Box bleibt */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        /* Optional: für einen subtilen Schatten */
        display: flex;
        /* Verwende Flexbox, um Inhalt vertikal zu organisieren (für zukünftige Erweiterungen) */
        flex-direction: column;
        /* Stapelt Bild und Overlay (Standard) */
        width: 300px;
        /* Definiere eine feste Breite für das Quadrat */
        height: 300px;
        /* Definiere eine feste Höhe, gleich der Breite für ein Quadrat */
        margin: 20px auto;
        /* Füge etwas vertikalen Abstand hinzu und zentriert horizontal */
    }

    /* Hover-Effekt für Desktop */
    .project-box:hover {
        transform: scale(1.03);
        /* Leichte Vergrößerung beim Hover */
    }

    .project-box:hover .project-image {
        opacity: 0.7;
        /* Reduziert die Deckkraft des Bildes beim Hover */
        filter: brightness(0.8) saturate(1.2);
        /* Verändert Helligkeit und Sättigung beim Hover */
    }

    .project-image {
        width: 100%;
        height: 100%;
        /* Passe die Höhe an 100% an, um das Quadrat auszufüllen */
        object-fit: cover;
        /* Skaliert das Bild und schneidet es bei Bedarf zu, um den Bereich zu füllen */
        border-radius: 15px;
        transition: opacity 0.3s ease;
    }

    .project-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        /* Halbtransparenter schwarzer Hintergrund */
        opacity: 0;
        /* Standardmäßig unsichtbar */
        transition: opacity 0.3s ease-in-out;
        color: white;
        text-align: center;
        padding: 20px;
        /* Angepasstes Padding für den Overlay-Text */
        z-index: 1;
        /* Stellt sicher, dass der Overlay über dem Bild liegt */
    }

    .project-box:hover .project-overlay {
        opacity: 1;
        /* Zeigt den Overlay beim Hover */
    }

    /* Simuliert Hover-Effekt bei Touchscreen durch :active */
    .project-box:active {
        transform: scale(1.03);
        /* Leichte Vergrößerung beim Antippen */
    }

    .project-box:active .project-image {
        opacity: 0.7;
        /* Reduziert die Deckkraft des Bildes beim Antippen */
        filter: brightness(0.8) saturate(1.2);
        /* Verändert Helligkeit und Sättigung beim Antippen */
    }

    .project-box:active .project-overlay {
        opacity: 1;
        /* Zeigt den Overlay beim Antippen */
    }

    .project-tag {
        position: absolute;
        /* Absolut innerhalb der .project-box */
        top: 10px;
        left: 10px;
        margin-bottom: 0;
        /* Entferne unnötigen Margin */
        background-color: rgba(0, 0, 0, 0.8);
        /* Stellt den schwarzen Hintergrund sicher */
        color: white;
        font-size: 0.9em;
        padding: 5px 10px;
        border-radius: 5px;
        display: inline-block;
        /* Für die korrekte Darstellung */
        z-index: 2;
        /* Stellt sicher, dass der Tag über dem Overlay liegt */
    }

    .project-overlay h2 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .project-overlay p {
        font-size: 1em;
        line-height: 1.4;
    }

    .project-tabs {
        flex-wrap: nowrap;
        gap: 0;
        margin: 0.5rem auto 2rem auto;
        max-width: 860px;
        padding: 5px;

        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 999px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.08);

        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }


    /* Modal-Stile bleiben gleich, aber hier können Anpassungen für kleine Bildschirme vorgenommen werden */
    .modal-content {
        width: 90%;
        max-width: none;
        padding: 30px;
    }

    #projects footer {
        margin: 0 auto 0 auto;
        /* Zentriert den Footer */
        padding: 20px;
        /* Fügt etwas Padding hinzu */
        text-align: center;
        /* Zentriert den Text im Footer */
    }

    .projects-svg {
        position: relative;
        width: 35%;
        /* Beispiel: 80% der Containerbreite auf dem Smartphone */
        max-width: none;
        /* Entferne die maximale Breite, damit die prozentuale Breite greift */
        margin: 2rem auto 20px -1rem;
        /* Zentriere die SVG horizontal auf dem Smartphone */
        opacity: 1;
        /* Beispielhafte Deckkraft für Smartphone */
        /* Passe andere Stile nach Bedarf an (z.B. margin, position, transform) */
    }

    /* Zurück-Button bei den Projekt-Posts */
    #back-btn {
        margin: 0 auto 0 auto;
        right: 3rem;
        width: 5rem;
        height: auto;
    }

    /* === Skills-Bereich (Homepage / Mobile) === */
    #skills-preview {
        z-index: 2;
        margin-top: -12.5rem;
        margin-bottom: -7.5rem;
        overflow: hidden;
    }

    .skills-title {
        margin: 0 auto;
    }

    .skills-title h2 {
        font-size: 2em;
        text-align: center;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .skills-description-preview p {
        font-size: 1.1em;
        text-align: center;
        margin: 5px auto;
        max-width: 90%;
    }

    /* Container mit Fade-Effekt links/rechts wie bei Firmenwebsites */
    .skills-carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-top: 15px;
        margin-bottom: 30px;
        box-sizing: border-box;
        /* Sanfter Fade-Ausblendung an den Rändern */
        mask-image: linear-gradient(to right,
                transparent 0%,
                black 8%,
                black 92%,
                transparent 100%);
        -webkit-mask-image: linear-gradient(to right,
                transparent 0%,
                black 8%,
                black 92%,
                transparent 100%);
    }

    /* Track scrollt endlos von rechts nach links */
    .skills-carousel-track {
        display: flex;
        gap: 14px;
        width: max-content;
        animation: skills-marquee 12s linear infinite;
        will-change: transform;
    }

    /* Animation pausiert beim Hover (wie auf Firmenwebsites) */
    .skills-carousel-track:hover {
        animation-play-state: paused;
    }

    /* Nahtloser Loop: scrollt genau die erste Hälfte (6 Boxen + 6 Lücken) */
    @keyframes skills-marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-50% - 7px));
        }
    }

    /* Skill-Box */
    .skill-box {
        background-color: white;
        border-radius: 12px;
        padding: 12px;
        min-height: 220px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        flex: 0 0 155px;
        width: 155px;
    }

    .skill-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    .skill-box .skill-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 4px;
    }

    .skill-box .skill-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .skill-box h3 {
        font-size: 1rem;
        margin: 3px 0;
        color: #7dcf28;
    }

    .skill-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .skill-box ul li {
        font-size: 0.85em;
        margin: 2px 0;
    }

    /* Buttons vollständig entfernen */
    .skills-carousel-btn {
        display: none !important;
    }

    /* "In Prozent"-Button */
    #skills-preview .see-more-container {
        margin-top: 10px;
        text-align: center;
    }

    #skills-preview .explore-more-button {
        font-size: 0.9rem;
        padding: 0.6em 1em;
        width: auto;
        display: inline-block;
        margin: 1.25rem auto 5rem auto;
    }

    /* Sehr kleine Smartphones (< 480px): etwas kompaktere Boxen */
    @media (max-width: 480px) {
        .skill-box {
            flex: 0 0 140px;
            width: 140px;
            min-height: 210px;
        }

        .skills-carousel-track {
            animation-duration: 23s;
            /* schneller auf kleinen Screens */
        }
    }

    /* Größere Smartphones (481–767px): leicht breitere Boxen */
    @media (min-width: 481px) and (max-width: 767px) {
        .skill-box {
            flex: 0 0 155px;
            width: 155px;
        }

        .skills-carousel-track {
            animation-duration: 23s;
        }
    }

    /* === Skills-Seite (Landingpage) === */
    section#skills {
        margin: 0 auto 0 auto;
        /* Zentriert den Container */
        padding: 20px;
        /* Etwas Padding für die Ränder */
        height: auto;
        width: auto;
    }

    .skills-container {
        display: flex;
        flex-direction: column;
        /* Karten vertikal stapeln */
        align-items: center;
        /* Zentriert die Karten horizontal */
        gap: 2rem;
        /* Abstand zwischen den Karten */
        width: 100%;
        max-width: 100%;
        /* Entfernt die maximale Breite */
        margin: 0 auto
            /* -10rem auto */
        ;
        /* Zentriert den Container, negativer Margin entfernt */
    }

    .skills-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .skills-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .skills-header p {
        font-size: 1.2rem;
    }

    /* Einzelne Skill-Karten */
    .skill-card {
        width: 400px;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        /* Fügt einen subtilen Schatten hinzu */
    }

    .skill-header {
        flex-direction: column;
        /* Icon und Titel vertikal anordnen */
        text-align: center;
        /* Zentriert den Text */
        margin: 0 0 0 0;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
        margin: 0 0 -1rem 0;
        align-items: right;
    }

    .skill-title {
        font-size: 1rem;
        margin: -25px 0 2rem auto;
        /* Entfernt den oberen Abstand */
        text-align: right;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .skill-info {
        font-size: 0.9rem;
    }

    .progress-bar {
        height: 6px;
        /* Reduziert die Höhe */
    }

    .progress-dot {
        width: 12px;
        /* Reduziert die Größe */
        height: 12px;
    }

    .skill-description {
        font-size: 0.9rem;
    }

    .skill-svg {
        position: relative;
        width: 35%;
        /* Beispiel: 80% der Containerbreite auf dem Smartphone */
        max-width: none;
        /* Entferne die maximale Breite, damit die prozentuale Breite greift */
        margin: 2rem auto 20px 3rem;
        /* Zentriere die SVG horizontal auf dem Smartphone */
        opacity: 1;
        /* Beispielhafte Deckkraft für Smartphone */
        /* Passe andere Stile nach Bedarf an (z.B. margin, position, transform) */
    }

    /* === Kontaktformular === */
    section#contact {
        padding: 20px;
        /* Reduzierter Innenabstand */
        margin-bottom: -17rem;
        /* Abstand zum nächsten Bereich */
        margin-top: 40rem;
        height: auto;
    }

    #contact-homepage {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto 5rem auto;
    }

    .contact-formular-header-homepage {
        font-size: 2em;
        /* Kleinere Schriftgröße für die Überschrift */
        margin-bottom: 20px;
        /* Weniger Abstand unterhalb der Überschrift */
        text-align: center;
        /* Zentriert die Überschrift */
    }

    .contact-formular-description {
        font-size: 1em;
        /* Kleinere Schriftgröße für die Beschreibung */
        margin-bottom: 5px;
        /* Weniger Abstand zwischen Beschreibung und Formular */
        text-align: center;
        /* Zentriert den Text */
        max-width: 90%;
        /* Begrenzte Breite für bessere Lesbarkeit */
        margin-inline: auto;
    }

    .contact-formular {
        width: 100%;
        /* Nimmt die volle Breite ein */
        max-width: 380px;
        /* Begrenzte maximale Breite für kleinere Bildschirme */
        margin: 0 auto;
        /* Zentriert das Formular horizontal */
    }

    /* Formular-Zeile für "Name" und "Firma" sowie "Telefon" und "Email" */
    .form-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    input {
        width: 100%;
        /* Nimmt die volle Breite ein */
        padding: 10px;
        font-size: 0.9em;
        /* Kleinere Schriftgröße */
        border-radius: 6px;
        margin: -15px -10px auto 0;
    }

    .form-row input {
        width: 48%;
        /* Etwas weniger als die Hälfte, um Platz für Abstand zu lassen */
        padding: 10px;
        font-size: 0.9em;
        border-radius: 6px;
    }

    textarea {
        width: 100%;
        height: 150px;
        /* Angepasste Höhe für Textarea */
        font-size: 0.9em;
        padding: 10px;
        border-radius: 6px;
        margin: -10px auto 10px 0;
    }

    .captcha-submit {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* Zentriert vertikal */
        padding: 10px;
    }

    .captcha-submit {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* Zentriert vertikal */
        padding: 10px;
    }

    .g-recaptcha {
        transform: scale(0.7);
        /* Reduziert die Größe */
        transform-origin: 0 0;
        /* Behält die Position bei */
        margin-bottom: 5px;
        max-width: 300px;
        /* Nimmt die volle Breite ein */
        height: 100%;
        margin-left: 500px;
    }

    /* Submit-Button */
    .submit-button {
        font-size: 1em;
        padding: 10px 15px;
        width: 90%;
        height: 50%;
        margin: -0.75rem 750px 15px -5rem;
        border-radius: 20px;
        background-color: var(--accent-color);
        /* Behält die Hintergrundfarbe */
        color: var(--button-font-color);
        /* Behält die Textfarbe */
        border: none;
        /* Entfernt den Rahmen */
        cursor: pointer;
        /* Zeigt einen Mauszeiger an */
    }

    /* Hinweis-Text */
    .contact-formular-hint {
        font-size: 0.75em;
        /* Kleinere Schriftgröße */
        margin-top: 10px;
        /* Reduzierter Abstand */
        text-align: center;
    }

    /* Back-to-top Container */
    .back-to-top-container {
        display: flex;
        /* Flexbox aktivieren */
        justify-content: space-between;
        /* Verteilt den Platz zwischen den Elementen */
        align-items: center;
        /* Zentriert die Elemente vertikal */
    }

    /* "Back to the Top"-Button-Container */
    .back-to-top-button-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        transform: translateY(85%);
        margin: 0 auto 100px auto;
        /* Abstand um den Container */
    }

    .back-to-top-button-container p {
        font-size: 0.9em;
        text-align: center;
        margin: 0;
        flex: 1;
    }

    /* "Back to the Top"-Button */
    .back-to-top-button {
        width: 40px;
        height: 40px;
        font-size: 0.6em;
        margin: 0;
        flex-shrink: 0;
        margin: 1rem 0 -1rem 0;
    }

    .contact-preview-svg {
        /* Hier überschreibst du die Stile für Smartphones */
        width: 35%;
        /* Beispiel: 80% der Containerbreite auf dem Smartphone */
        max-width: none;
        /* Entferne die maximale Breite, damit die prozentuale Breite greift */
        margin: -3rem auto 75px -2rem;
        /* Zentriere die SVG horizontal auf dem Smartphone */
        opacity: 1;
        /* Beispielhafte Deckkraft für Smartphone */
        /* Passe andere Stile nach Bedarf an (z.B. margin, position, transform) */
    }

    .contact-svg {
        /* Hier überschreibst du die Stile für Smartphones */
        width: 35%;
        /* Beispiel: 80% der Containerbreite auf dem Smartphone */
        max-width: none;
        /* Entferne die maximale Breite, damit die prozentuale Breite greift */
        margin: 1rem auto 0 3rem;
        /* Zentriere die SVG horizontal auf dem Smartphone */
        opacity: 1;
        /* Beispielhafte Deckkraft für Smartphone */
        /* Passe andere Stile nach Bedarf an (z.B. margin, position, transform) */
    }

    /* === Kontakt (Landingpage) für Smartphoneds === */
    #contact-landingpage {
        padding: 20px;
        /* Reduzierter Innenabstand */
        margin: 2rem auto 1rem auto;
        /* Zentriert den Container */
        height: auto;
    }

    .scrollsnap-toggle {
        display: none;
        /* Versteckt den Toggle-Button auf Smartphones */
    }

    /* Eigenschaften für alle Überschriften in der Smartphone-Ansicht: */
    /* Überschrift "Über mich"-Preview */
    .headline-about-me-preview h2 {
        font-size: 2.2rem;
        /* Deutlich kleiner */
        max-width: 100%;
        /* Nutzt fast den gesamten Screen */
        margin: -5.75rem auto 0 auto;
        /* Zentral platzieren */
        text-align: center;
        /* Für Mobile besser mittig */
        line-height: 1;
        /* Kompakter, spart Platz */
        position: absolute;
    }

    .headline-about-me h2 {
        font-size: 3rem;
        max-width: 90%;
        margin: 3rem auto -1.5rem auto;
        text-align: center;
        line-height: 1.1;
        position: relative;
        z-index: 10;
    }

    .headline-projects-preview h2 {
        font-size: 2.2rem;
        max-width: 90%;
        margin: -1.5rem auto 0 -4.5rem;
        bottom: 7.5rem;
        text-align: center;
        line-height: 1.1;
    }

    .headline-projects h2 {
        font-size: 2.2rem;
        max-width: 90%;
        margin: -3rem auto 0 auto;
        text-align: center;
        line-height: 1.1;
    }

    .headline-skills-preview h2 {
        font-size: 2.2rem;
        max-width: 90%;
        margin: 1rem 12rem 0 auto;
        text-align: center;
        top: 4.5rem;
        line-height: 1.1;
    }

    .headline-skills h2 {
        font-size: 2.2rem;
        max-width: 90%;
        margin: 1rem auto 0 auto;
        text-align: center;
        line-height: 1.1;
    }

    .headline-contact-preview h2 {
        font-size: 1.8rem;
        max-width: 90%;
        margin: 1.25rem auto 0 auto;
        text-align: center;
        position: relative;
        bottom: auto;
        right: auto;
        line-height: 1.1;
    }

    .headline-contact h2 {
        font-size: 1.8rem;
        max-width: 90%;
        margin: 0.5rem auto 0 auto;
        text-align: center;
        position: relative;
        bottom: auto;
        line-height: 1.1;
    }

    /* === Privacy (Landingpage) === */
    /* === Überschrift === */
    .privacy-title {
        font-size: 2em;
        /* Passende Größe für Smartphones */
        margin: 30px auto 15px;
        /* Oben etwas Luft, zentriert */
        text-align: center;
        line-height: 1.2;
        /* Verbessert die Lesbarkeit bei langen Titeln */
    }

    .privacy-header p {
        font-size: 1em;
        /* Passt gut zu kleineren Bildschirmen */
        text-align: center;
        margin: 10px auto;
        /* Zentriert den Text */
        max-width: 90%;
        /* Verhindert, dass der Text zu breit wird */
    }

    /* === Inhalt === */
    .privacy-content {
        max-width: 90%;
        /* Lässt Platz an den Seitenrändern */
        margin: 0 auto;
        padding-top: 15px;
        /* Etwas Abstand zum oberen Rand */
    }

    .privacy-section {
        margin-bottom: 25px;
        /* Mehr Abstand zwischen den Abschnitten */
    }

    .privacy-section h2 {
        font-size: 1.4em;
        /* Hebt die Überschriften hervor */
        margin-bottom: 10px;
    }

    .privacy-section p,
    .privacy-section ul {
        font-size: 0.95em;
        /* Gut lesbare Textgröße */
        line-height: 1.6;
        /* Angenehmer Zeilenabstand */
        margin-bottom: 12px;
    }

    .privacy-section ul {
        padding-left: 25px;
        /* Einrückung für Listen */
    }

    .privacy-section li {
        margin-bottom: 5px;
        /* Etwas mehr Luft unter den Listenelementen */
    }

    /* === Footer === */
    footer {
        padding: 20px;
        /* Etwas mehr Padding für Touch-Geräte */
        text-align: center;
        /* Grundlegende Zentrierung für den gesamten Footer-Inhalt */
        margin-top: 50px;
    }

    .footer-content {
        flex-direction: column;
        /* Untereinander anordnen */
        align-items: center;
        /* Zentriert die Hauptelemente */
        margin: 0 auto;
    }

    .footer-section {
        text-align: center;
        /* Grundlegende Textzentrierung für die Abschnitte */
        margin-bottom: 25px;
        /* Etwas mehr Abstand zwischen den Abschnitten */
        width: 100%;
        /* Volle Breite für die Abschnitte */
    }

    /* Navigation links ausrichten */
    #footer-nav {
        text-align: left;
        width: 90%;
        /* Nimmt die volle Breite ein */
        margin-bottom: 10px;
    }

    #footer-nav ul {
        text-align: left;
        /* Text innerhalb der Liste links ausrichten */
    }

    /* Kontakt mittig ausrichten */
    #footer-contact {
        text-align: center;
        width: 100%;
        /* Nimmt die volle Breite ein */
        margin-bottom: 150px;
    }

    /* Social Media rechts ausrichten */
    #footer-social-media h3 {
        text-align: right;
        width: 100%;
        /* Nimmt die volle Breite ein */
        margin: -380px auto 0 -2.5rem;
        /* Abstand um den Container */
    }

    .footer-section h3 {
        margin: 0 auto 0 auto;
    }

    .social-icons {
        flex-direction: column;
        /* Icons untereinander */
        align-items: flex-end;
        margin: 0 2.5rem 0 0;
        gap: 0;
        /* Reduzierter Abstand zwischen den Social Media Items */
    }

    .social-item {
        justify-content: flex-end;
        /* Text links vom Icon */
    }

    .social-name {
        margin-left: 0;
        /* Entferne linken Margin */
        margin-right: 10px;
        /* Füge rechten Margin hinzu */
        line-height: 40px;
        display: inline-block;
    }

    footer .svg-icon {
        width: 24px;
        /* Größe des Icons */
        height: 24px;
        vertical-align: middle;
        transition: fill 0.3s ease;
        /* Weicher Übergang bei Farbänderungen */
        margin: 0 0 0 -0.25rem;
    }

    .svg-icon {
        width: 40px;
        height: 40px;
        vertical-align: middle;
        transition: fill 0.3s ease;
        margin: 0 0 0 0;
        fill: var(--overlay-bg)
    }
}

/* === Tablets === */
@media (min-width: 768px) and (max-width: 1023px) {

    /* === Globale Anpassungen === */
    * {
        box-sizing: border-box;
    }

    html,
    body {
        scroll-snap-type: none;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        font-size: 15px;
        line-height: 1.6;
    }

    section {
        scroll-snap-type: none;
        box-sizing: border-box;
    }

    .snap-section {
        scroll-snap-align: none;
        scroll-snap-type: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .side-nav {
        display: none;
    }

    /* === Navbar === */
    nav {
        position: relative;
        width: 100%;
        z-index: 100;
        background-color: var(--bg-color);
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 88px;
    }

    .logo-container {
        width: 90px;
        height: 90px;
        order: 1;
        z-index: 101;
    }

    .logo {
        font-size: 2.2em;
        letter-spacing: -0.18em;
        margin: 10px;
    }

    .hamburger-button {
        display: block;
        position: absolute;
        top: 18px;
        right: 18px;
        order: 2;
        z-index: 101;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: 0;
        color: var(--text-primary);
    }

    .hamburger-button,
    .hamburger-button:active,
    .hamburger-button:focus,
    .hamburger-button.active {
        background-color: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .nav__icon,
    .nav__icon::before,
    .nav__icon::after {
        background-color: var(--navbar-color) !important;
    }

    .nav__icon {
        display: inline-block;
        width: 28px;
        height: 3px;
        position: relative;
        transition: transform 0.4s ease;
    }

    .nav__icon::before,
    .nav__icon::after {
        content: '';
        position: absolute;
        width: 28px;
        height: 3px;
        transition: transform 0.4s ease;
    }

    .nav__icon::before {
        top: -8px;
    }

    .nav__icon::after {
        bottom: -8px;
    }

    .hamburger-button.active .nav__icon {
        transform: rotate(90deg);
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        transform: translateY(-100%);
        transition: transform 0.5s ease;
        z-index: 99;
        padding-top: 90px;
        padding-right: 32px;
        padding-bottom: 100px;
        overflow-y: auto;
    }

    .navbar.active {
        transform: translateY(0);
    }

    body.no-scroll {
        overflow: hidden;
    }

    .navbar .switch {
        position: absolute;
        left: 24px;
        bottom: 24px;
        margin: 0;
        z-index: 101;
    }

    .navbar a:not(:last-child)::after,
    .navbar::before,
    .navbar::after {
        content: none;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-block;
        margin-top: 10px;
    }

    .mobile-only .slider {
        margin: 10px auto;
        height: 42px;
        width: 84px;
    }

    /* === Homepage === */
    .name-container {
        position: absolute;
        top: 10.5rem;
        left: 3rem;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        width: 40%;
        max-width: 320px;
        height: auto;
        margin: 0;
        padding: 0;
        order: -2;
        transform: none;
        z-index: 2;
    }

    .homepage-logo-svg {
        width: 100%;
        max-width: 260px;
        height: auto;
        display: block;
        margin: 0;
    }

    .mouse-container {
        position: absolute;
        top: -5.5rem;
        left: auto;
        display: block;
        width: 17rem;
        max-width: 17rem;
        height: 17rem;
        margin: 0;
        order: -1;
        z-index: 1;
    }

    .mouse-wrapper {
        position: absolute;
        top: 6.5rem;
        right: 2rem;
        left: auto;
        display: block;
        width: 17rem;
        max-width: 17rem;
        height: 17rem;
        margin: 0;
        order: -1;
        z-index: 1;
    }

    .mouse-image {
        position: absolute;
        bottom: 48px;
        left: 50%;
        transform: translateX(-50%) translateY(-25%);
        width: 64%;
        height: auto;
        z-index: 1;
        display: block;
        top: auto;
    }

    /* === About Preview (Homepage) === */
    #about-me-preview,
    #about-me-preview .snap-section {
        transform: none;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .about-preview-container {
        padding: 0 2rem;
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
        box-sizing: border-box;
    }

    #about-me-preview {
        margin-top: 3rem;
    }

    .about-title h2 {
        font-size: clamp(2rem, 4vw, 2.5rem);
        text-align: center;
        margin: 0 auto 1rem auto;
        line-height: 1.2;
    }

    .about-description-preview p {
        font-size: clamp(1rem, 2.2vw, 1.15rem);
        margin: 0 auto 1.5rem auto;
        text-align: center;
        max-width: 720px;
        line-height: 1.6;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .about-img {
        width: 42%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 18px;
        margin: 0 auto;
        display: block;
        object-fit: cover;
    }

    .about-text-block {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        padding: 0 1rem;
        text-align: center;
    }

    .headline-about-me-preview {
        text-align: center;
        margin-top: 1rem;
    }

    .headline-about-me-preview h2 {
        display: block;
        font-size: clamp(2.4rem, 6vw, 3.4rem);
        line-height: 1;
        text-align: center;
        margin: -5rem auto 0.75rem auto;
        max-width: 100%;
        position: relative;
        transform: none;
    }

    .about-text {
        font-size: clamp(1rem, 2vw, 1.08rem);
        line-height: 1.75;
        word-wrap: break-word;
        max-width: 100%;
        margin: 0 auto;
        height: auto;
        text-align: center;
    }

    .more-about-me-container {
        margin: 1.5rem auto 0 auto;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
        transform: none;
    }

    .explore-about-button {
        margin: 0 auto 1.5rem auto !important;
        display: inline-block;
    }

    .explore-more-button {
        font-size: 0.9rem;
        padding: 0.75em 1.35em;
        width: auto;
        min-width: 120px;
        min-height: 42px;
        display: inline-block;
        margin: 0 auto 1.5rem auto;
    }

    .about-preview-svg {
        position: relative;
        width: 20%;
        max-width: 110px;
        margin: -10px auto 0 auto;
        opacity: 1;
        display: block;
    }

    /* === About Landingpage === */
    section#about-me {
        margin: 6rem auto 4rem auto;
        width: 100%;
        height: auto;
        padding: 0 24px;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        max-width: 680px;
    }

    .about-profile-picture {
        width: 280px;
        height: 280px;
        margin: 0 auto 2rem auto;
        object-fit: cover;
        object-position: center;
        border-radius: 16px;
        display: block;
    }

    .about-info-box {
        padding-right: 0;
        width: 100%;
    }

    .headline-about-me h2 {
        font-size: 3rem;
        max-width: 100%;
        margin: 0 auto 1.5rem auto;
        text-align: center;
        line-height: 1.05;
        position: relative;
        z-index: 1;
    }

    .about-me-title {
        display: block;
        font-size: 2rem;
        text-align: left;
        padding: 0;
        margin: 1.5rem auto 0.5rem 50px;
        border-radius: 0;
        background: none;
        border: none;
        width: fit-content;
    }

    .about-me-description {
        font-size: 1.05rem;
        text-align: left;
        max-width: 78%;
        margin: 0 auto 2rem 50px;
        line-height: 1.7;
    }

    /* === Hobbies === */
    section#hobbies {
        margin: 3rem auto 5rem auto;
        max-width: 100%;
        padding: 24px 24px 60px 24px;
        height: auto;
    }

    .about-hobby-title {
        display: block;
        font-size: 1.95rem;
        text-align: left;
        margin: 0 auto 12px 50px;
        padding: 0;
        border-radius: 0;
        background: none;
        border: none;
        width: fit-content;
    }

    .about-me-short-description {
        font-size: 1rem;
        text-align: left;
        margin: 0 auto 20px 50px;
        max-width: 78%;
    }

    .bar-chart {
        width: 88%;
        max-width: 680px;
        min-height: 200px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-around;
        padding: 10px 0 40px 0;
        margin: 24px auto 0 auto;
        position: relative;
    }

    .bar-chart .axis {
        display: none;
    }

    .bar-chart .skill {
        position: relative;
        text-align: center !important;
        margin: 6px auto 0 auto;
        font-size: 0.78em;
        width: 100%;
        padding: 4px 0;
        left: auto;
        transform: none;
    }

    .bar-chart .bar {
        width: calc(100% / 6 - 10px);
        margin: 0 5px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        min-height: 40px;
    }

    .bar-chart .bar .percent {
        font-size: 0.78em;
        margin-bottom: 5px;
    }

    .bar-chart .bar .percent span {
        font-size: 0.85em;
    }

    .fun-fact-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 5rem auto 8rem auto;
        height: auto;
        position: relative;
    }

    .image-for-fun-fact {
        width: 220px;
        height: 220px;
        margin: 0 auto 22px auto;
    }

    .image-for-fun-fact img {
        width: 220px;
        height: 220px;
        margin: 0 auto;
        border-radius: 16px;
        object-fit: cover;
    }

    .fun-facts {
        text-align: left;
        margin: 0 auto 60px auto;
        width: 90%;
        max-width: 440px;
    }

    .fun-facts h2 {
        font-size: 1.9rem;
        margin: 0 0 15px 0;
        text-align: left;
        color: var(--accent-color);
    }

    .fun-facts ul {
        padding-left: 22px;
        margin: 0;
        width: 100%;
        list-style-type: none;
    }

    .fun-facts li {
        font-size: 1rem;
        margin: 0 0 15px 0;
        line-height: 1.6;
        text-align: left;
        list-style-position: outside;
        position: relative;
        padding-left: 8px;
    }

    .fun-facts li::before {
        content: "•";
        position: absolute;
        left: -0.7rem;
        top: 0;
        color: var(--fun-fact-bullet-points);
        font-size: 1.2rem;
        line-height: 1;
    }

    /* === Thoughts === */
    #thoughts {
        margin-top: 3rem;
        margin-bottom: 5rem;
        padding: 0 24px;
    }

    .section-title {
        font-size: 1.7rem;
        text-align: center;
        margin: 3rem auto 20px auto;
    }

    .thoughts-container {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        max-width: 440px;
        gap: 1rem;
    }

    .thought-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto 0.5rem;
    }

    .thought-card h3 {
        font-size: 1.1em;
        text-align: left;
        margin: 0 auto 10px auto;
    }

    .thought-card p {
        text-align: left;
        font-size: 0.95rem;
    }

    .thought-icon {
        width: 52px;
        height: 52px;
        margin: 0 20px 20px auto;
    }

    .about-title2 {
        font-size: 1.7rem;
        text-align: center;
        margin: 0 auto 20px auto;
    }

    .about-svg {
        width: 28%;
        max-width: 110px;
        margin: -0.5rem auto 0 4rem;
        opacity: 1;
        display: block;
    }

    /* === Projects Preview === */
    section #projects-preview {
        margin: 0 auto;
        width: 100%;
        height: auto;
    }

    #projects-preview {
        position: relative;
        z-index: 1;
        margin: -2rem auto 3rem auto;
        height: auto;
        max-width: 1200px;
    }

    .project-title h2 {
        font-size: 2.4rem;
        text-align: center;
        margin: 10px auto;
    }

    .project-description-preview {
        font-size: 1.1em;
        text-align: center;
        margin: 5px auto 24px auto;
        max-width: 720px;
    }

    .project-card-container {
        /* Ändert das Grid auf 3 Spalten nebeneinander */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        /* Etwas kleinerer Abstand, damit es nicht gequetscht wirkt */
        width: 100%;
        max-width: 100%;
        /* Nutzt den Platz auf dem Tablet besser aus */
        margin: 0 auto;
    }

    .project-card {
        position: relative;
        width: 100%;
        max-width: none;
        height: 320px;
        overflow: hidden;
        border-radius: 18px;
        transition: transform 0.2s ease-in-out;
        cursor: pointer;
        margin: 0 auto;
    }

    .project-card .project-overlay {
        padding: 1rem;
    }

    .project-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px;
        transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
    }

    .project-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        color: white;
        text-align: center;
        padding: 12px;
    }

    .project-card:hover .project-overlay,
    .project-card:active .project-overlay {
        opacity: 1;
    }

    .project-card:hover .project-image,
    .project-card:active .project-image {
        opacity: 0.7;
        filter: brightness(0.8) saturate(1.2);
    }

    .project-content h3 {
        font-size: 1.2em;
        margin: 5px auto;
    }

    .project-content p {
        font-size: 0.95em;
        max-width: 100%;
    }

    .project-box-button {
        font-size: 0.85rem;
        padding: 0.55em 1.1em;
    }

    #projects-preview .see-more-container {
        margin-top: 18px;
        text-align: center;
    }

    #projects-preview .explore-more-button {
        transform: none;
        font-size: 0.95rem;
        padding: 0.7em 1.2em;
        width: auto;
        min-width: 170px;
        display: inline-block;
        margin: 1rem auto 4rem auto;
    }

    .project-preview-svg {
        position: relative;
        width: 20%;
        max-width: 120px;
        margin: -2rem auto 3rem auto;
        opacity: 1;
        display: block;
    }

    /* === Projects Landingpage === */
    section#projects {
        margin: 2rem auto 0 auto;
        height: auto;
    }

    .projects-title {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .project-description {
        font-size: 1.15em;
        text-align: center;
        margin: 0 auto 30px;
        max-width: 760px;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 24px;
        margin: 0 auto;
        padding: 10px 24px;
        max-width: 1100px;
    }

    .project-box {
        position: relative;
        transition: transform 0.2s ease-in-out;
        cursor: pointer;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 320px;
        margin: 0 auto;
    }

    .project-box:hover {
        transform: scale(1.03);
    }

    .project-box:hover .project-overlay,
    .project-box:active .project-overlay {
        opacity: 1;
    }

    .project-box:hover .project-image,
    .project-box:active .project-image {
        opacity: 0.7;
        filter: brightness(0.8) saturate(1.2);
    }

    .project-tag {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        font-size: 0.9em;
        padding: 5px 10px;
        border-radius: 5px;
        display: inline-block;
        z-index: 2;
    }

    .project-overlay h2 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .project-overlay p {
        font-size: 1em;
        line-height: 1.4;
    }

    .project-tabs {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
        margin: 0.75rem auto 2rem auto;
        max-width: 860px;
        width: 100%;
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 999px;
        padding: 5px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.08);
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .project-tabs::-webkit-scrollbar {
        display: none;
    }

    .modal-content {
        width: 88%;
        max-width: 760px;
        padding: 36px;
    }

    #projects footer {
        margin: 0 auto;
        padding: 24px;
        text-align: center;
    }

    .projects-svg {
        position: relative;
        width: 20%;
        max-width: 130px;
        margin: 2rem auto 20px auto;
        opacity: 1;
        display: block;
    }

    #back-btn {
        margin: 0 auto;
        right: auto;
        width: 5rem;
        height: auto;
    }

    /* === Skills Preview === */
    #skills-preview {
        position: relative;
        z-index: 1;
        margin-top: -2rem;
        margin-bottom: 2.5rem;
        overflow: hidden;
    }

    .skills-title {
        margin: 0 auto;
    }

    .skills-title h2 {
        font-size: 2.4rem;
        text-align: center;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .skills-description-preview p {
        font-size: 1.15em;
        text-align: center;
        margin: 5px auto;
        max-width: 720px;
    }

    .skills-carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-top: 18px;
        margin-bottom: 36px;
        box-sizing: border-box;
        mask-image: linear-gradient(to right,
                transparent 0%,
                black 8%,
                black 92%,
                transparent 100%);
        -webkit-mask-image: linear-gradient(to right,
                transparent 0%,
                black 8%,
                black 92%,
                transparent 100%);
    }

    .skills-carousel-track {
        display: flex;
        gap: 16px;
        width: max-content;
        animation: skills-marquee-tablet 26s linear infinite;
        will-change: transform;
    }

    .skills-carousel-track:hover {
        animation-play-state: paused;
    }

    @keyframes skills-marquee-tablet {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-50% - 8px));
        }
    }

    .skills-carousel-btn {
        display: none !important;
    }

    .skills-carousel-track .skill-box,
    #skills-preview .skill-box {
        background-color: white;
        border-radius: 12px;
        padding: 14px;
        min-height: 230px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        flex: 0 0 180px;
        width: 180px;
    }

    #skills-preview .skill-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    #skills-preview .skill-box .skill-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 6px;
    }

    #skills-preview .skill-box .skill-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    #skills-preview .skill-box h3 {
        font-size: 1.05rem;
        margin: 3px 0;
    }

    #skills-preview .skill-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #skills-preview .skill-box ul li {
        font-size: 0.9em;
        margin: 2px 0;
    }

    #skills-preview .see-more-container {
        margin-top: 12px;
        text-align: center;
    }

    #skills-preview .explore-more-button {
        font-size: 0.95rem;
        padding: 0.7em 1.15em;
        width: auto;
        display: inline-block;
        margin: 1.5rem auto 4rem auto;
    }

    .headline-skills-preview {
        position: relative;
        z-index: 1;
        text-align: center;
    }

    .headline-skills-preview h2 {
        font-size: 3rem;
        max-width: 100%;
        margin: 0 auto 1rem auto;
        text-align: center;
        line-height: 1.05;
        top: auto;
        position: relative;
    }

    #skills-preview .see-more-container {
        margin: 1.25rem auto 3rem auto;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    /* === Skills Landingpage === */
    section#skills {
        margin: 0 auto;
        padding: 24px;
        height: auto;
        width: auto;
    }

    .skills-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        align-items: stretch;
        gap: 1.5rem;
        width: 100%;
        max-width: 980px;
        margin: 0 auto;
        overflow: visible;
        scroll-snap-type: none;
    }

    .skills-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .skills-header h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .skills-header p {
        font-size: 1.2rem;
    }

    .skill-card {
        width: 100%;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .skill-header {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin: 0;
    }

    .skill-icon {
        width: 54px;
        height: 54px;
        margin: 0 auto 0.5rem auto;
        align-items: center;
    }

    .skill-title {
        font-size: 1.05rem;
        margin: 0 auto 1.25rem auto;
        text-align: center;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .skill-info {
        font-size: 0.95rem;
    }

    .progress-bar {
        height: 7px;
    }

    .progress-dot {
        width: 13px;
        height: 13px;
    }

    .skill-description {
        font-size: 0.95rem;
    }

    .skill-svg {
        position: relative;
        width: 20%;
        max-width: 120px;
        margin: 2rem auto 20px auto;
        opacity: 1;
        display: block;
    }

    .headline-skills h2 {
        font-size: 3rem;
        max-width: 100%;
        margin: 0 auto 1rem auto;
        text-align: center;
        line-height: 1.05;
    }

    /* === Contact Preview / Homepage === */
    section#contact {
        position: relative;
        z-index: 2;
        padding: 32px 24px;
        margin-top: 4rem;
        margin-bottom: -8rem;
        height: auto;
    }

    section#contact-homepage {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto 4rem auto;
        position: relative;
        z-index: 2;
    }

    .headline-contact-preview h2 {
        font-size: 3rem;
        max-width: 100%;
        margin: 0 auto 1rem auto;
        text-align: center;
        line-height: 1.05;
    }

    .contact-formular-header-homepage {
        font-size: 2.4rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .contact-formular-description {
        font-size: 1.05em;
        margin-bottom: 10px;
        text-align: center;
        max-width: 720px;
        margin-inline: auto;
    }

    .contact-formular {
        width: 100%;
        max-width: 700px;
        margin: 1.2rem auto;
        padding: 1.5rem;
    }

    .form-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    input {
        width: 100%;
        padding: 12px;
        font-size: 0.95em;
        border-radius: 8px;
        margin: 0;
    }

    .form-row input {
        width: 50%;
        padding: 12px;
        font-size: 0.95em;
        border-radius: 8px;
    }

    textarea {
        width: 100%;
        height: 170px;
        font-size: 0.95em;
        padding: 12px;
        border-radius: 8px;
        margin: 0 auto 12px auto;
    }

    .captcha-submit {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        gap: 14px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
        margin: 0 auto;
        max-width: 304px;
        height: auto;
    }

    .submit-button {
        font-size: 1rem;
        padding: 12px 18px;
        width: 220px;
        height: auto;
        margin: 0 auto 12px auto;
        border-radius: 20px;
        background-color: var(--accent-color);
        color: var(--button-font-color);
        border: none;
        cursor: pointer;
    }

    .form-submit-btn {
        height: auto;
        width: 40%;
        margin: -3rem auto 0 auto;
    }

    .contact-formular-hint {
        font-size: 0.85em;
        margin-top: 10px;
        text-align: center;
    }

    .back-to-top-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .back-to-top-button-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 14px;
        transform: none;
        margin: 0 auto 100px auto;
        text-align: center;
    }

    .back-to-top-button-container p {
        font-size: 1em;
        text-align: center;
        margin: 0;
        max-width: 420px;
    }

    .back-to-top-button {
        width: 45px;
        height: 45px;
        font-size: 0.7em;
        margin: 0 0 -32px -72px;
        left: 64px;
        flex-shrink: 0;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .contact-preview-svg {
        width: 20%;
        max-width: 110px;
        margin: 0 auto 50px auto;
        opacity: 1;
        display: block;
    }

    .contact-svg {
        width: 20%;
        max-width: 110px;
        margin: 1rem auto 0 auto;
        opacity: 1;
        display: block;
    }

    /* === Contact Landingpage === */
    #contact-landingpage {
        padding: 24px;
        margin: 2rem auto 1rem auto;
        height: auto;
    }

    .scrollsnap-toggle {
        display: none;
    }

    /* === Weitere Headlines === */
    .headline-projects h2 {
        font-size: 3rem;
        text-align: center;
        margin: 0 auto 1rem auto;
        line-height: 1.05;
    }

    .headline-projects-preview h2 {
        font-size: 3rem;
        text-align: center;
        margin: -110px auto 1rem -4rem;
        line-height: 1.05;
    }

    /* === Privacy === */
    .privacy-title {
        font-size: 2.3em;
        margin: 30px auto 15px;
        text-align: center;
        line-height: 1.2;
    }

    .privacy-header p {
        font-size: 1.05em;
        text-align: center;
        margin: 10px auto;
        max-width: 760px;
    }

    .privacy-content {
        max-width: 90%;
        margin: 0 auto;
        padding-top: 15px;
    }

    .privacy-section {
        margin-bottom: 25px;
    }

    .privacy-section h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .privacy-section p,
    .privacy-section ul {
        font-size: 1em;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .privacy-section ul {
        padding-left: 25px;
    }

    .privacy-section li {
        margin-bottom: 5px;
    }

    /* === Footer === */
    footer {
        padding: 24px;
        text-align: center;
        margin-top: 50px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: auto auto;
        gap: 24px 16px;
        align-items: start;
        margin: 0 auto;
        max-width: 760px;
        padding: 0 48px;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 0;
        width: 100%;
    }

    .footer-section h3 {
        margin: 0 auto 10px auto;
    }

    #footer-nav {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
        width: 100%;
        margin-bottom: 0;
        padding-left: 16px;
    }

    #footer-nav ul {
        text-align: left;
    }

    #footer-social-media {
        grid-column: 3;
        grid-row: 1;
        text-align: left;
        width: 100%;
        margin: 0;
        padding-right: 16px;
    }

    #footer-social-media h3 {
        text-align: left;
        margin: 0 0 10px 0;
    }

    .social-icons {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin: 0;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .social-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        justify-content: flex-start;
    }

    .social-name {
        margin: 0;
        line-height: 1.4;
        display: inline-block;
    }

    #footer-contact {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        padding-top: 8px;
        border-top: 1px solid rgba(128, 128, 128, 0.2);
    }

    footer .svg-icon {
        width: 24px;
        height: 24px;
        vertical-align: middle;
        transition: fill 0.3s ease;
        margin: 0;
    }

    .svg-icon {
        width: 40px;
        height: 40px;
        vertical-align: middle;
        transition: fill 0.3s ease;
        margin: 0;
        fill: var(--overlay-bg);
    }
}

/* Kleine Laptops */
@media (min-width: 1024px) and (max-width: 1439px) {
    html {
        font-size: 0.94rem;
    }

    .mouse-wrapper {
        width: 42%;
        max-width: 520px;
        height: 420px;
        top: 130px;
        right: 40px;
    }

    .mouse-image {
        top: -160px;
        width: 88%;
    }

    .name-container {
        top: 14%;
        left: 8%;
        width: 40%;
    }

    .homepage-logo-svg {
        max-width: 520px;
    }

    .project-card {
        width: 340px;
        height: 360px;
    }

    .project-card-container {
        gap: 1.5rem;
    }

    .skills-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        row-gap: 2rem;
        column-gap: 1.5rem;
        overflow: visible;
        scroll-snap-type: none;
    }

    .skill-box {
        width: calc(33.333% - 1rem);
        flex-shrink: 1;
        scroll-snap-align: center;
    }

    .contact-formular {
        max-width: 750px;
        padding: 1.5rem;
    }

    .form-submit-btn {
        width: 210px;
    }

    .back-to-top-button-container {
        justify-content: center;
        gap: 20px;
    }

    .back-to-top-button-container p {
        font-size: 1.1em;
    }

    .back-to-top-button {
        width: 45px;
        height: 45px;
    }

    .headline-projects-preview h2,
    .headline-skills-preview h2,
    .headline-contact-preview h2,
    .headline-contact h2,
    .headline-skills h2,
    .headline-projects h2,
    .headline-about-me h2 {
        text-align: center;
        margin: 0 auto;
    }

    .about-content {
        gap: 1.5rem;
    }

    nav {
        padding: 0 1rem;
    }

    .hamburger-button {
        top: 18px;
        right: 18px;
    }
}

/* 4K und größer (1440px+) für grössere Laptops und Bildschirme */
@media (min-width: 1440px) {
    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .contact-formular {
        max-width: 1000px;
        padding: 50px;
    }

    .skills-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        row-gap: 2.5rem;
        column-gap: 2rem;
        overflow: visible;
        scroll-snap-type: none;
    }

    .skill-box {
        width: calc(25% - 1.5rem);
        flex-shrink: 1;
        scroll-snap-align: center;
    }

    .back-to-top-button-container {
        justify-content: center;
        gap: 25px;
    }

    .back-to-top-button-container p {
        font-size: 1.2em;
    }

    .back-to-top-button {
        width: 50px;
        height: 50px;
    }

    .navbar a {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
    }

    .language-select {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }

    .switch {
        width: 100px;
        height: 46px;
    }

    .slider .circle {
        width: 40px;
        height: 40px;
    }
}