/* josefin-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../_fonts/josefin-sans-v34-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* josefin-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../_fonts/josefin-sans-v34-latin-700.woff2') format('woff2');
}

body {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-size:1.4rem;
	color: #505050;
	line-height: 2rem;
}

a:link, a:visited, a:active {
	color: #505050;
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
	color: #4171ae;
}
a:active, a:focus {
	outline: 0 !important;
    box-shadow: none !important;
}

h1 {
    font-size:2.8rem;
    color:#4171ae;
}

/* Section Basics */
section {
    width: 100%;
    position: relative;
    padding: 80px 0;
}
.section-top {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    font-weight: 600;
}

.section-nav {
    padding: 60px 0 60px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Farben */
.light { background: #f2f2f2; }
.light-2 { background: #e0e0e0; }

footer {
    background: #0a1f44;
    color: #fff;
    padding: 50px 20px 100px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* Links */
.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Copyright */
.footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* NAV */
nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    font-weight: bold;
    position: relative;
}

nav a,
nav a:link,
nav a:visited,
nav a:hover,
nav a:focus,
nav a:active {
    text-decoration: none;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 250px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 560px;
    border-radius: 20px;
    position: relative;
}

/* PROJEKTE */
.project {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 120px;
}

.project > div {
    width: 50%;
    box-sizing: border-box;
    padding: 0 48px;
}

.project img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.project .text h3 {
    font-size: 1.8rem;
    margin: 0 0 12px;
}

.project .text p {
    margin: 0;
    line-height: 1.6;
}

.project:nth-child(even) {
    flex-direction: row-reverse;
}

/* KONTAKT */
.contact-form {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    font-size: 1.2rem;
    font-family: inherit;
    background: #fff;
    color: #222;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0a1f44;
    box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.08);
}

.contact-form button {
    display: block;
    margin: 20px auto 0;
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    font-family: 'Josefin Sans';
    line-height: 1.0rem;
    font-size: 1.2rem;
    background: #4171ae; 
    color: #fff;

    font-weight: 600;
    cursor: pointer;

    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.contact-form button:hover {
    background: #698dbb;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 124, 255, 0.3);
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 40px;
}

.contact-success {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 40px 30px;
    background: #ffffff;
    border: 1px solid #f9f9f9;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
}

.contact-success h3 {
    margin: 0 0 15px;
}

.contact-success p {
    margin-top: 20px;
}

.contact-error {
    max-width: 1000px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    background: #ffeaea;
    border: 1px solid #f1b5b5;
    border-radius: 10px;
    color: #a12626;
    box-sizing: border-box;
}

/* WAVES */
.wave {
    position: absolute;
    bottom: -1px;
    width: 100%;
}

.wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.menu-icon {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .project {
        margin-bottom: 90px;
    }

    .project > div {
        padding: 0 20px;
    }
    
    .hero-image img {
        width: 460px;
    }
}

@media (max-width: 992px) {
    .hero-image img {
        width: 380px;
    }
}

@media (max-width: 768px) {
    body {
        font-size:1.2rem;
	    line-height: 1.8rem;
    }
    h1 {
        font-size:2.2rem;
    }
    .hero-image img {
        width: 100%;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    .section-nav {
        padding: 20px 0 20px;
    }
    .section-top {
        padding: 0px 0px 80px 0px;
    }
    .project {
        flex-direction: column !important;
        align-items: stretch;
        margin-bottom: 70px;
        gap: 36px;
    }

    .project > div {
        width: 100%;
        padding: 0;
    }

    .project .image {
        margin-bottom: 24px;
    }

    .project img {
        width: 100%;
        max-width: 100%;
    }

    .project .text {
        text-align: left;
    }

    .project .text h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .project .text p {
        line-height: 1.7;
    }
    
    nav {
        justify-content: flex-end;
    }

    .main-nav {
        justify-content: flex-end;
        min-height: 32px;
    }

    .main-nav > a:not(.menu-icon) {
        display: none;
    }

    .main-nav .menu-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav .nav-icon {
        width: 48px;
        height: 48px;
        display: block;
    }
}

@media (max-width: 480px) {
    .project {
        margin-bottom: 56px;
    }

    .project .image {
        margin-bottom: 18px;
    }

}
