﻿/* Reset and Base Styles */
:root {
    --layout-max-width: 1280px;
    --header-offset-desktop: 6rem;
    --header-offset-mobile: 5.4rem;
    --anchor-gap-desktop: -4.4rem;
    --anchor-gap-mobile: -4.2rem;
    --primary-color: #91bcff;
    --primary-color-accent-dark: #283044;
    --primary-color-accent-light: #339989;
    --white: #ffffff;
    --black: #111;
    --light-grey: #eeeeee;
    --dark-grey: #6e726e;
    --hs-blau: #002d74;
    --hs-hellblau: #a5ffff;
    --hs-violet: #490e67;
    --hs-flieder: #cda1ff;
    --hs-gruen: #00524c;
    --hs-mint: #8fffc5;
    --hs-olivgruen: #68813c;
    --hs-gelb: #d8ff3f;
    --surface: #f7f8fb;
    --surface-border: #d7dbe3;
    --shadow-soft: 0 8px 24px rgba(17, 17, 17, 0.08);
    --radius-md: 0.375rem;
    --doc-bg: #FAFAFC;
    --doc-panel: #fafafc;
    --doc-border: #d2d8e2;
    --doc-text: #13243f;
    --doc-muted: #4f5f7a;
}

@font-face {
  font-family: Poppins-Regular;
  src: url(assets/Poppins-Regular.ttf) format("truetype");
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-offset-desktop) + var(--anchor-gap-desktop));
}

[id] {
    scroll-margin-top: calc(var(--header-offset-desktop) + var(--anchor-gap-desktop));
}

body {
    font-family: Poppins-Regular, "Segoe UI", Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.72;
    color: var(--doc-text);
    font-weight: 400;
    margin: 0;
    background: var(--doc-bg);
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

nav {
    position: sticky;
    top: 0;
    width: min(var(--layout-max-width), calc(100% - 2rem));
    margin: 0.5rem auto 0;
    background: var(--doc-panel);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 10px;
    box-sizing: border-box;
    z-index: 10;
    border-radius: var(--radius-md);
    border: 1px solid var(--doc-border);
    box-shadow: 0 6px 18px rgba(0, 45, 116, 0.06);
    border-bottom: 2px solid #002D74;
    transition: box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

nav a {
    font-family: Poppins-Regular, Arial, sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1b3f82;
    text-align: center;
    line-height: 1.2;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 6px 9px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background-color: transparent;
    transition: background-color 260ms cubic-bezier(0.22, 1, 0.36, 1), color 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links {
    margin-left: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links .nav {
    min-width: 86px;
    white-space: nowrap;
}

.nav-project-link {
    display: inline-flex;
    align-items: center;
    font-family: Poppins-Regular, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #002D74;
    background: #A5FFFF;
    border: 1px solid #91dfe5;
    border-radius: var(--radius-md);
    padding: 7px 11px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-project-area {
    position: absolute;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.nav-project-note {
    position: absolute;
    top: calc(100% + 0.22rem);
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    min-height: 20px;
    padding: 0.1rem 0.24rem 0.1rem 0.42rem;
    border: 1px solid rgba(181, 48, 67, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 244, 246, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #8d1f31;
    font-size: 0.53rem;
    line-height: 1.1;
    box-shadow: 0 10px 24px rgba(141, 31, 49, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-project-note span {
    white-space: nowrap;
}

.nav-project-note[hidden] {
    display: none;
}

.nav-project-note-close {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(181, 48, 67, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    color: #8d1f31;
    font-family: inherit;
    font-size: 0.54rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-project-note-close:hover,
.nav-project-note-close:focus-visible {
    background: rgba(255, 230, 235, 0.84);
    border-color: rgba(181, 48, 67, 0.4);
    transform: scale(1.04);
}

.nav-project-link:hover {
    background: #8ff2fb;
    border-color: #78dbe4;
    transform: translateY(-1px);
}

nav a:hover {
    background-color: #A5FFFF;
    color: #15386f;
    border-color: #91dfe5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 45, 116, 0.08);
}

nav a.active {
    background-color: #A5FFFF;
    border-color: #91dfe5;
}

nav a:focus-visible,
.nav-project-link:focus-visible {
    outline: 2px solid #002D74;
    outline-offset: 2px;
}

.nav-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.05;
}

.nav-title-main {
    font-family: Poppins-Regular, Arial, sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: #002D74;
}

.nav-title-sub {
    font-family: Poppins-Regular, Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--doc-muted);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mobile-menu {
    display: none;
}


/* Basic Layout:
    <div class="container">
        <nav class="nav-menu"></nav>
        <main class="main-content">
        <div class="content-row">
            <div class="content-col"></div>
            <div class="content-col"></div>
        </div>
        </main>
    </div>
*/

/* Container and Layout */
.container {
    display: block;
    min-height: 100vh;
    margin-top: 0;
    padding-bottom: 2rem;
}

.main-content {
    width: min(var(--layout-max-width), calc(100% - 2rem));
    margin: 1.25rem auto 0;
    padding-bottom: 1rem;
}

.content-row {
    display: flex;
    margin: 0.95rem 0;
    gap: 0.35rem;
    align-items: flex-start;
}

.content-row img {
    max-width: 100%;
}

.content-col {
    flex: 1;
    margin: 0.5rem;
    padding: clamp(1.4rem, 2vw, 2rem);
    background-color: var(--doc-panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--doc-border);
    box-shadow: 0 2px 10px rgba(16, 37, 68, 0.04);
}

.content-col h1,
.content-col h2,
.content-col h3 {
    margin-top: 0;
    font-family: Poppins-Regular, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0f264f;
    letter-spacing: -0.01em;
}

.content-col h1 {
    font-size: clamp(1.75rem, 2.55vw, 2.5rem);
    margin-bottom: 0.7rem;
}

.content-col h2 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin-bottom: 0.8rem;
}

.content-col p,
.content-col li {
    max-width: 80ch;
    color: #1a2d4a;
    text-align: left;
    hyphens: auto;
}

.content-col a {
    color: #1b3f82;
    text-decoration: none;
}

.content-col a:hover {
    color: #0e326d;
}

.content-col h4 {
    margin: 1.2rem 0 0.45rem;
    font-size: 1.02rem;
    line-height: 1.28;
    color: #163566;
}

.content-col ul {
    margin: 0.4rem 0 0.9rem;
    padding-left: 1.2rem;
    max-width: 72ch;
}

.content-col li + li {
    margin-top: 0.24rem;
}

.content-col img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--doc-border);
    box-shadow: 0 2px 8px rgba(16, 37, 68, 0.06);
    background: #fff;
}

.content-col video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--doc-border);
    box-shadow: 0 2px 8px rgba(16, 37, 68, 0.06);
    background: #fff;
}


.hamburger-menu {
    display: none;
}

.media-block {
    margin: 0.45rem 0 1rem;
}

.media-block img {
    width: 100%;
}

.media-block-small {
    max-width: 620px;
    margin: 0.45rem 0 0.9rem;
}

.section-with-image {
    display: block;
    margin: 0.6rem 0 0.9rem;
}

.section-text,
.section-image {
    min-width: 0;
}

.section-image figure {
    margin: 0;
}

.section-with-image::after {
    content: "";
    display: block;
    clear: both;
}

.section-with-image .section-image {
    float: left;
    width: min(40%, 520px);
    margin: 0 0 0.8rem 1rem;
}

.section-with-image .section-text p,
.section-with-image .section-text li {
    max-width: none;
}

.section-with-image.websockets-layout {
    display: block;
}

.section-with-image.websockets-layout .section-image {
    float: right;
    width: min(42%, 620px);
    margin: 0 0 0.7rem 1rem;
}

.section-with-image.websockets-layout .section-image img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.section-with-image.architecture-docker-split {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.section-with-image.architecture-docker-split .section-text {
    flex: 1 1 auto;
}

.section-with-image.architecture-docker-split .section-image {
    float: none;
    width: min(40%, 520px);
    margin: 0;
    flex: 0 0 min(40%, 520px);
}

.section-with-image.architecture-docker-split .section-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

.websockets-final-row {
    display: block;
    margin-top: 0.25rem;
}

.websockets-final-row p {
    margin: 0;
    max-width: none;
}

.websockets-final-row figure {
    margin: 0;
}

.websockets-final-row img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.text-wrap-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 40%);
    gap: 0.9rem;
    align-items: start;
    margin: 0.7rem 0;
}

.text-wrap-row + .text-wrap-row {
    margin-top: 0.8rem;
}

#tests.text-wrap-row {
    display: block;
}

.text-wrap-row > .content-col:last-child {
    float: none;
    width: auto;
    margin: 0;
}

.text-wrap-row > .content-col {
    margin: 0;
    padding: 1.2rem 1.25rem;
}

.text-wrap-row > .content-col:first-child {
    margin-right: 0;
}

.text-wrap-row > .content-col:first-child p,
.text-wrap-row > .content-col:first-child li {
    max-width: none;
}

#architektur .content-col > h3 {
    margin-top: 1rem;
}

#architektur .content-col p,
#architektur .content-col li {
    max-width: none;
}

#modellierung .content-col p,
#modellierung .content-col li {
    max-width: none;
}

.einfuehrung-blender .content-col > p:first-of-type {
    max-width: none;
}

.einfuehrung-blender .content-col > p {
    max-width: none;
}

.einfuehrung-blender .section-with-image .section-image {
    width: min(48%, 700px);
    margin-left: 0.7rem;
}

.einfuehrung-blender .section-with-image .section-image img {
    min-height: 340px;
    object-fit: cover;
}

.modellierung-tools-row .content-col p,
.modellierung-tools-row .content-col li {
    max-width: none;
}

.modellierung-problem-row .content-col p,
.modellierung-problem-row .content-col li {
    max-width: none;
}

.modellierung-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.modellierung-gallery-grid figure {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.modellierung-gallery-grid figure + figure {
    border-left: 0;
    padding-left: 0;
}

.modellierung-gallery-grid h3 {
    margin: 0 0 0.55rem;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.modellierung-gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.modellierung-video-row .section-with-image .section-image {
    width: min(52%, 800px);
}

.modellierung-video-row .section-with-image .section-image video {
    min-height: 340px;
    object-fit: cover;
}

.modellierung-video-row .content-col > p {
    max-width: none;
}

.modellierung-single-row > .content-col {
    flex: 1 1 100%;
}

.modellierung-main-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    align-items: start;
}

.modellierung-main-split > section {
    min-width: 0;
}

.modellierung-main-split video {
    width: 100%;
    min-height: 320px;
    object-fit: cover;
}

.modellierung-main-bottom {
    margin-top: 1rem;
    max-width: none;
}

.blender-intro-single-row > .content-col {
    flex: 1 1 100%;
}

.blender-intro-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    align-items: start;
}

.blender-intro-split > section {
    min-width: 0;
}

.blender-intro-split img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.blender-intro-bottom {
    margin-top: 1rem;
    max-width: none;
}

.export-import-row {
    align-items: stretch;
    gap: 0.6rem;
}

.export-import-row > .content-col {
    display: flex;
    flex-direction: column;
}

.export-import-row > .content-col p {
    flex: 1 1 auto;
}

.export-import-single-row > .content-col {
    flex: 1 1 100%;
}

.export-import-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.export-import-split > section + section {
    border-left: 1px solid #d6dde9;
    padding-left: 1.25rem;
}

.export-import-split h3 {
    margin-top: 0;
}


#architektur .media-block,
#architektur .section-image figure {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.architecture-figure {
    margin: 0.25rem 0 1rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.architecture-image {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

#projekt {
    display: block;
    margin: 0.95rem 0;
}

#projekt .content-col p,
#projekt .content-col li {
    max-width: none;
}

.projekt-final-row {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, 1.42fr);
    gap: 1rem;
    align-items: start;
    margin-top: 0.25rem;
}

.projekt-final-text {
    margin: 0;
}

.projekt-media {
    margin: 0;
}

.projekt-media img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.projekt-media figcaption {
    margin-top: 0.45rem;
    font-size: 0.95rem;
    color: #163566;
    text-align: left;
}

#projekt .projekt-inline-media .section-image {
    float: none;
    width: 100%;
    margin: 0.55rem 0 0;
}

#projekt .projekt-inline-media .section-image img {
    width: 100%;
    max-height: none;
    object-fit: contain;
}

#projekt .projekt-image-figure {
    margin: 0.55rem 0 0;
}

.projekt-media figcaption,
#projekt .projekt-image-figure figcaption {
    margin-top: 0.45rem;
    font-size: 0.95rem;
    color: #163566;
    text-align: left;
}

.main-content > .content-col:first-of-type p,
.main-content > .content-col:first-of-type li {
    max-width: none;
    text-wrap: pretty;
}

.main-content > .content-col:first-of-type {
    padding: clamp(1.05rem, 1.45vw, 1.35rem);
}

.main-content > .content-col:first-of-type p {
    line-height: 1.58;
}

.content-col p + p {
    margin-top: 0.6rem;
}

.team-names {
    display: block;
    color: #182a45;
    font-weight: 600;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    text-align: left;
}

.prof-name {
    font-weight: 700;
}

.timeline {
  margin-top: 1.2em;
}

.timeline-step {
  position: relative;
  padding-left: 2.2em;
  margin: 0;
}

.timeline-step + .timeline-step {
  margin-top: 1.6em;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 0.6em;
  top: 0.55em;              
  width: 12px;
  height: 12px;
  background: #2a3f68;
  border-radius: 50%;
}

.timeline-step::after {
  content: "";
  position: absolute;
  left: calc(0.6em + 5px); 
  top: calc(0.55em + 12px);
  width: 2px;
  height: calc(100% - (0.55em + 12px) + 1.2em);
  background: #2a3f68;
  opacity: 0.35;
}

.timeline-step:last-child::after {
  display: none;
}

.timeline-step h3 {
  margin: 0 0 0.6em 0;
}

.timeline-step p {
  margin: 0;
  max-width: none;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
}

.image-caption {
  margin-top: 0;
  margin-bottom: 0.45rem;
  text-align: center;
}

#tests .content-col::after {
    content: "";
    display: block;
    clear: both;
}

#tests .content-col p,
#tests .content-col li {
    max-width: none;
}

#tests .tests-image {
    float: right;
    width: min(44%, 700px);
    margin: 0.1rem 0 0.55rem 1.2rem;
}

#tests .tests-image .image-caption {
    margin-bottom: 0.35rem;
}

#tests .tests-image img {
    max-height: 300px;
    object-fit: contain;
}

#tests .content-col p + p {
    clear: both;
}

/* Modellierung + Tests rebuilt layout */
#modellierung .content-row,
#tests .content-row {
    gap: 0.7rem;
    align-items: stretch;
}

.blender-ui-row > .content-col,
.modellierung-video-row > .content-col,
.tests-intro-row > .content-col,
.tests-compare-row > .content-col,
.export-import-row > .content-col {
    flex: 1 1 50%;
    margin: 0.35rem;
}

.blender-tools-row > .content-col,
.modellierung-problem-row > .content-col,
.modellierung-intro-row > .content-col {
    flex: 1 1 100%;
}

.blender-ui-row .content-col:last-child img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.modellierung-video-row video {
    min-height: 320px;
    object-fit: cover;
}

.tests-intro-row img,
.tests-compare-row img {
    max-height: 300px;
    object-fit: contain;
}

@media (min-width: 901px) {
    #tests .content-row {
        gap: 1px;
    }

    #tests .content-row > .content-col:first-child:nth-last-child(2),
    #tests .content-row > .content-col:first-child:nth-last-child(2) ~ .content-col {
        margin: 0;
        border-radius: 0;
    }

    #tests .content-row > .content-col:first-child:nth-last-child(2) {
        border-top-left-radius: var(--radius-md);
        border-bottom-left-radius: var(--radius-md);
    }

    #tests .content-row > .content-col:first-child:nth-last-child(2) + .content-col {
        border-left: 0;
        border-top-right-radius: var(--radius-md);
        border-bottom-right-radius: var(--radius-md);
    }
}

.tests-compare-row + .tests-compare-row {
    margin-top: 0.9rem;
}

/* Mobile Mode */
@media (max-width: 900px) {
    html {
        scroll-padding-top: calc(var(--header-offset-mobile) + var(--anchor-gap-mobile));
    }
    [id] {
        scroll-margin-top: calc(var(--header-offset-mobile) + var(--anchor-gap-mobile));
    }
    .main-content {
        width: calc(100% - 0.75rem);
        margin-top: 0.9rem;
        padding: 0;
    }
    body {
        font-size: 1rem;
        line-height: 1.64;
    }
    nav {
        width: calc(100% - 0.75rem);
        top: 0;
        display: grid;
        grid-template-columns: auto 1fr auto;
        justify-content: normal;
        align-items: center;
        flex-wrap: nowrap;
        padding: 4px 5px;
        gap: 0.5rem;
        overflow-x: visible;
        overflow-y: visible;
        margin-top: 0.25rem;
        position: sticky;
    }
    .mobile-menu {
        display: block;
        justify-self: start;
        position: relative;
    }
    .nav-logo {
        display: none;
    }
    .mobile-menu summary {
        list-style: none;
        cursor: pointer;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        border: 1px solid var(--doc-border);
        color: #1b3f82;
        font-size: 1rem;
        font-weight: 700;
        background: #fff;
        user-select: none;
    }
    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }
    .mobile-menu-panel {
        display: none;
    }
    .mobile-menu[open] .mobile-menu-panel {
        display: grid;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 170px;
        padding: 6px;
        gap: 4px;
        border: 1px solid var(--doc-border);
        border-radius: var(--radius-md);
        background: var(--doc-panel);
        box-shadow: 0 8px 18px rgba(0, 45, 116, 0.12);
        z-index: 20;
    }
    .mobile-menu-panel .nav {
        justify-content: flex-start;
        padding: 7px 8px;
    }
    .nav-brand {
        justify-self: center;
        gap: 0.3rem;
    }
    .nav-links {
        display: none;
    }
    .nav-project-area {
        position: static;
        justify-self: end;
        align-items: flex-end;
    }
    .nav-project-link {
        display: inline-flex;
        position: static;
        font-size: 0.78rem;
        padding: 7px 10px;
    }
    .nav-project-note {
        top: calc(100% + 0.18rem);
        right: 0;
        max-width: none;
        font-size: 0.5rem;
        min-height: 18px;
        padding: 0.08rem 0.22rem 0.08rem 0.34rem;
    }
    .nav-title {
        display: flex;
    }
    .nav-title-main {
        font-size: 0.9rem;
    }
    .nav-title-sub {
        font-size: 0.68rem;
    }
    .container {
        margin-top: 0;
    }
    .content-row {
        flex-direction: column;
        margin: 0.6rem 0;
        gap: 0;
    }
    #projekt {
        margin: 0.6rem 0;
    }
    #projekt .projekt-inline-media .section-image {
        float: none;
        width: 100%;
        margin: 0.2rem 0 0.7rem;
    }
    #projekt .projekt-inline-media .section-image img {
        max-height: none;
        object-fit: contain;
    }
    .projekt-final-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .projekt-media {
        margin: 0.25rem 0 0.7rem;
    }
    .content-col {
        margin: 0.4rem;
        padding: 1rem 0.95rem;
    }
    .section-with-image {
        display: block;
    }
    .section-with-image .section-image {
        float: none;
        width: 100%;
        margin: 0.2rem 0 0.7rem;
    }
    .section-with-image.websockets-layout {
        display: block;
    }
    .section-with-image.websockets-layout .section-image {
        float: none;
        width: 100%;
        margin: 0.2rem 0 0.7rem;
    }
    .section-with-image.architecture-docker-split {
        display: block;
    }
    .section-with-image.architecture-docker-split .section-image {
        width: 100%;
        margin: 0.2rem 0 0.7rem;
        flex: none;
    }
    .websockets-final-row {
        display: block;
    }

    .websockets-final-row figure {
        margin-top: 0.5rem;
    }
    .text-wrap-row > .content-col:last-child {
        float: none;
        width: auto;
        margin: 0.4rem;
    }
    #tests .tests-image {
        float: none;
        width: 100%;
        margin: 0.3rem 0 0.7rem;
    }
    .text-wrap-row {
        display: block;
    }
    #modellierung .content-row,
    #tests .content-row {
        gap: 0;
        margin: 0.5rem 0;
    }
    .blender-ui-row > .content-col,
    .modellierung-video-row > .content-col,
    .tests-intro-row > .content-col,
    .tests-compare-row > .content-col,
    .export-import-row > .content-col {
        flex: 1 1 100%;
        margin: 0.4rem;
    }
    .export-import-split {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .export-import-split > section + section {
        border-left: 0;
        border-top: 1px solid #d6dde9;
        padding-left: 0;
        padding-top: 0.85rem;
    }
    .blender-ui-row .content-col:last-child img,
    .modellierung-video-row video,
    .tests-intro-row img,
    .tests-compare-row img {
        max-height: none;
        min-height: 0;
        object-fit: contain;
    }
    .modellierung-main-split {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .modellierung-main-split video {
        min-height: 0;
    }
    .blender-intro-split {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .modellierung-gallery-grid {
        grid-template-columns: 1fr;
    }
    .modellierung-gallery-grid img {
        height: auto;
        max-height: none;
    }
    .hamburger-menu {
        display: none;
    }
    .content-col p,
    .content-col li {
        text-align: left;
        hyphens: none;
    }
    .timeline-step {
        padding-left: 1.65em;
    }
    .timeline-step::before {
        left: 0.42em;
    }
    .timeline-step::after {
        left: calc(0.42em + 5px);
    }
}

@media (max-width: 640px) {
    .content-col h1 {
        font-size: 2rem;
    }
    .content-col h2 {
        font-size: 1.85rem;
    }
    .content-col h3 {
        font-size: 1.45rem;
    }
    .nav-links .nav {
        font-size: 0.74rem;
        padding: 6px 3px;
    }
    .nav-links {
        gap: 0.1rem;
    }
}

@media (max-width: 420px) {
    :root {
        --header-offset-mobile: 3.95rem;
    }
    body {
        font-size: 1.06rem;
        line-height: 1.66;
    }
    nav {
        width: calc(100% - 0.5rem);
        top: 0;
        margin-top: 0.2rem;
    }
    .nav-links .nav {
        font-size: 0.7rem;
        padding: 6px 2px;
    }
    .container {
        margin-top: 0;
    }
}



.nav-logo {
    flex: 0 0 auto;
    padding: 2px;
    background: transparent;
    border: none;
}

.nav-logo:hover,
.nav-logo:focus-visible {
    background: transparent;
    border: none;
}

.nav-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background-color: #002D74;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon {
    width: 20px;
    height: 20px;
    display: block;
}

@media (max-width: 900px) {
    .nav-logo {
        padding: 1px;
    }
    .nav-logo-mark {
        width: 28px;
        height: 28px;
        border-radius: var(--radius-md);
    }
    .nav-logo-icon {
        width: 16px;
        height: 16px;
    }
}

.section-with-image.image-left {
    display: block;
}

.section-with-image.image-left .section-image {
    float: right;
    width: min(36%, 460px);
    margin: 0 0 0.7rem 1rem;
}

.section-with-image.image-left .section-image img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.section-with-image.image-left .section-text {
    min-width: 0;
}

@media (max-width: 900px) {
    .section-with-image.image-left .section-image {
        float: none;
        width: 100%;
        margin: 0.2rem 0 0.7rem;
    }

    .section-with-image.image-left .section-image img {
        max-height: none;
        object-fit: contain;
    }
}

.part {
    margin-top: 24px;
}

#Literaturverzeichnis ol,
#Literaturverzeichnis li,
#Literaturverzeichnis a {
    max-width: none;
}

#Literaturverzeichnis ol {
    list-style: none;
    counter-reset: litref;
    padding-left: 0;
    margin-left: 0;
}

#Literaturverzeichnis li {
    counter-increment: litref;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-left: 2.4rem;
    padding-right: 0.2rem;
    line-height: 1.5;
    margin-bottom: 0.45rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#Literaturverzeichnis li::before {
    content: "[" counter(litref) "]";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
}

#Literaturverzeichnis a {
    color: #1f4e8c;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#Literaturverzeichnis a:hover {
    color: #163a6b;
    text-decoration: underline;
}

.compare-slider {
    --compare-pos: 50%;
    position: relative;
    width: 100%;
    margin-top: 14px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #c8d2e1;
    background: #e8ecf3;
}

.compare-slider-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    clip-path: inset(0 calc(100% - var(--compare-pos)) 0 0);
    overflow: hidden;
}

.compare-slider .compare-slider-base {
    display: block;
    width: 100%;
    height: auto;
}

.compare-slider .compare-slider-mask .compare-slider-top {
    display: block;
    width: 100%;
    height: auto;
}

.compare-slider-separator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--compare-pos);
    width: 1px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(122, 136, 158, 0.2);
    transform: translateX(-1px);
    pointer-events: none;
}

.compare-slider-handle {
    position: absolute;
    top: 50%;
    left: var(--compare-pos);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #8f99a8;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.compare-slider-handle::before,
.compare-slider-handle::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #1d2a3f;
}

.compare-slider-handle::before {
    content: "‹";
    left: 7px;
}

.compare-slider-handle::after {
    content: "›";
    right: 7px;
}

.compare-slider-label {
    position: absolute;
    bottom: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    background: rgba(66, 76, 92, 0.86);
    color: #ffffff;
}

.compare-slider-label-left {
    left: 10px;
}

.compare-slider-label-right {
    right: 10px;
}

.compare-slider-input {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}
