@font-face {
    font-family: 'Microwaves';
    src: url('fonts/Microwaves.ttf') format('truetype');
}
@font-face {
    font-family: 'OatMeal';
    src: url('fonts/OatMeal.ttf') format('truetype');
}
@font-face {
    font-family: 'HIND';
    src: url('fonts/Hind-Bold.otf') format('truetype');
}
@font-face {
    font-family: 'Dieselpower';
    src: url('fonts/DieselpowerPersonalUse-axaY5.ttf') format('truetype');
}

.header {
    color: grey;
    background-color: white;
    border-bottom: 1px solid #333;
    font-size: 0.8em; 
    letter-spacing: 0.1em;
    justify-content: center;
    align-items: center;
    min-height: 3vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header a {
    text-decoration: none;
    color: grey;
    font-family: 'Microwaves', sans-serif;
    font-size: 2.2rem;
    transition: color 0.3s ease;
}

.header a:hover {
    color: black;
}

/*h1 a {
   text-decoration: none;
    position: absolute;
    top: 2%;
    left: 2%;
    color: black;
    font-family: 'Microwaves', sans-serif;
    font-size: 9vw;
    margin: 0;
    padding: 1%;
}*/

h1 {
    position: absolute;
    text-align: left;
    top: 2%;
    left: 2%;
    color: black;
    font-family: 'courier', sans-serif;
    font-size: 15vw;
    margin: 0;
    padding: 1%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: black;
    font-family: 'Hind', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    pointer-events: none;
    z-index: -1;
}
.video-background video {
    width: 20vh;
    height: 20vh;
    object-fit: cover;
    filter: invert(1) brightness(1);
}

.about-text {
    width: 100%;
    max-width: none;
    text-align: left;
    font-family: 'courier new', monospace;
    font-size: 1em;
    line-height: 1.3;
    margin: 0;
    color: red;
    padding: 0 5%;
    position: absolute;
    top: 8vh;
    left: 0;
    height: calc(100vh - 8vh - 10vh); /* Header + Footer space */
}

.about-text p {
    margin-bottom: 3vh;
}

.about-text p:first-child {
    text-align: justify;
}

/* Mobile-specific about text adjustments */
@media (max-width: 1024px) {
    .about-text {
        font-size: 0.9rem;
        padding: 0 4%;
    }
}

@media (max-width: 768px) {
    .about-text {
        font-size: 0.8rem;
        padding: 0 3%;
    }
}

@media (max-width: 600px) {
    .about-text {
        font-size: 0.7rem;
        padding: 0 2%;
    }
}

@media (max-width: 480px) {
    .about-text {
        font-size: 0.6rem;
        padding: 0 2vh;
    }
}

@media (max-width: 360px) {
    .about-text {
        font-size: 0.5rem;
        padding: 0 2vh;
    }
}

.cv-circle-link {
    position: fixed;
    bottom: 60px;
    left: 20px;
    text-decoration: none;
    display: inline-block;
    z-index: 1000;
}

.cv-circle-link:hover .cv-circle {
    background-color: darkred;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.cv-circle {
    width: 2.5vw;
    height: 2.5vw;
    min-width: 20px;
    min-height: 20px;
    max-width: 30px;
    max-height: 30px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive Anpassung für den CV Kreis */
@media (max-width: 1024px) {
    .cv-circle {
        width: 1.5vw;
        height: 1.5vw;
        min-width: 15px;
        min-height: 15px;
    }
    
    .cv-circle-link {
        bottom: 55px;
        left: 15px;
    }
}

@media (max-width: 600px) {
    .cv-circle {
        width: 1.2vw;
        height: 1.2vw;
        min-width: 12px;
        min-height: 12px;
    }
    
    .cv-circle-link {
        bottom: 50px;
        left: 10px;
    }
}

.number-font {
    font-family: 'hind', sans-serif;
    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    color: black;
    padding: 0;
    background: none;
    border-radius: 0;
}

#modelViewer {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#modelViewer:active {
    cursor: grabbing;
}

.footer {
    color: black;
    background-color: white;
    font-family: 'Arial', 'Helvetica', 'sans-serif';
    font-size: 0.6em;
    letter-spacing: 0.1em;
    justify-content: center;
    align-items: center;
    min-height: 5vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Mobile-specific header sizing */
@media (max-width: 768px) {
    .header a {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .header a {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header a {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
    .header a {
        font-size: 1.2rem;
    }
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* 1 Spalte auf Smartphones */
    }
}