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

html {
    height: 100%;
    overflow-y: auto;
}

body {
    background-color: #848b8e;
    font-family: Arial, sans-serif;
    min-height: 100%;
    position: relative;
    padding-bottom: 120px; /* Height of footer */
}

.navbar {
    background-color: #2f393c;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-title {
    color: #c7c7c7;
    font-size: 2.5rem;
    text-decoration: none;
    margin-left: 80px;
}

.navbar-logo {
    height: 120px;
    width: auto;
    margin-left: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: 80px;
}

.nav-links a {
    color: #c7c7c7;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #dd5d5d;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.main-content {
    min-height: calc(100vh - 240px);
    padding: 2rem;
    display: flex;
    align-content: center;
    align-items: flex-start;
    justify-content: center;
    row-gap: 1rem;
    column-gap: 3rem;
    max-width: 1400px;
    margin: auto auto;
    flex-wrap: wrap;
}

.profile-image {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #4a4a4a;
    flex-shrink: 0;
}

.projekt-image {
    float: left;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid #4a4a4a;
    flex-shrink: 0;
    margin: 0px 20px 20px 0px;
}

.projekt {
    margin-bottom: 20px; /* <hr> margin */
}

.content-icon {
    float: left;
    margin-right: 10px;
    margin-top: 28px;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.content-icon:hover {
    transform: scale(1.3);
}

.content-text {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 700px;
}

.content-text-2 {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 900px;
}

.text-container {
    width: 100%;
    background-color: #ececec;
    padding: 20px 32px 32px 32px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-text h1 {
    background: linear-gradient(45deg, #2f393c, #498192);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5.0rem;
    margin-top: 0.6rem;
    font-weight: 600;
    line-height: 0.9;
}

.content-text h2 {
    color: #565e62;
    font-size: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.0;
}

.content-text h3 {
    color: #63696a;
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
    line-height: 1.0;
}

.content-text h4 {
    color: #243338;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.seiten-text {
    background: linear-gradient(45deg, #2f393c, #498192);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4.0rem;
    font-weight: 600;
    line-height: 1.5;
}

.content-text-2 h1 {
    background: linear-gradient(45deg, #2f393c, #498192);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5.0rem;
    margin-top: 0.6rem;
    font-weight: 600;
    line-height: 0.9;
}

.content-text-2 h2 {
    color: #243338;
    font-size: 2.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.0;
}

.content-text-2 h3 {
    color: #63696a;
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
    line-height: 1.0;
}

.content-text-2 h4 {
    color: #243338;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.content-text p {
    color: #63696a;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-text-2 p {
    color: #63696a;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.content-text-2 li {
    color: #63696a;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-left: 15px;
    margin-bottom: 1.5rem;
}

.circle-background {
    color: #557984;
    padding: 15px 0px 0px 0px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 0px;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #63696a;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #c7c7c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2f393c;
}

.submit-btn {
    background: linear-gradient(45deg, #2f393c, #498192);
    color: #ffffff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #3f494c;
}

.top-button {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #585d5f;
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.top-button:hover {
    background-color: #62858f;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

footer {
    background-color: #2f393c;
    color: #c7c7c7;
    text-align: center;
    padding: 1rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-icons {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
}

.footer-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.footer-icon:hover {
    transform: scale(1.3);
}

.footer-text {
    font-size: 1rem;
    text-align: left;
    margin-left: -30px;
}

.copyright {
    font-size: 0.7rem;
    color: #7a7a7a;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-image1 {
    margin: 12px;
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease;
}

.badge-image2 {
    width: 130px;
    height: auto;
    transition: transform 0.3s ease;
}

.badge-image3 {
    width: 130px;
    height: auto;
    transition: transform 0.3s ease;
}

.badge-image4 {
    width: 130px;
    height: 125px;
    transition: transform 0.3s ease;
}

.badge-image5 {
    margin-top: 15px;
    width: 110px;
    height: 100px;
    transition: transform 0.3s ease;
}

.badge-image1:hover,
.badge-image2:hover,
.badge-image3:hover,
.badge-image4:hover,
.badge-image5:hover {
    transform: scale(1.1);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    padding: 0px;
    width: 100vh;
    height: 77vh;
    overflow: hidden;
    margin: 8vh auto;
}

.close-button {
    position: absolute;
    right: 10px;
    top: 0;
    color: #ae6565;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-button:hover {
    color: #dd5d5d;
}

/* Iframe styles */
.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: contain;
}
