/* --- 1. FONTS & RESET --- */
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('fonts/inter-v12-latin-regular.woff2') format('woff2'); 
}

@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('fonts/inter-v12-latin-600.woff2') format('woff2');
}

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

:root {
    --primary-color: #F15A22;
    --primary-dark: #E0340C;
    --site-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* SPRUNGMARKEN FIX */
section { scroll-margin-top: 150px; }

/* --- 2. HEADER --- */
#main-header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.6s ease-in-out;
}

.logo-container {
    width: 100%; max-width: var(--site-width);
    padding: 0 5%;
    display: flex; justify-content: center; align-items: center;
}

h1 { display: flex; align-items: center; }

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.85;
    text-decoration: none;
}

#logo { width: 350px; max-width: 80%; height: auto; transition: 0.5s; }

.header-title {
    color: #fff; font-weight: 400; font-size: 1.6rem;
    margin-left: 20px; display: none; white-space: nowrap; letter-spacing: -0.01em; /* Etwas mehr Abstand zwischen den Buchstaben wirkt edler */
    text-transform: none; /* Behält Groß-/Kleinschreibung bei */
}

/* MENÜ BALKEN */
.sub-nav {
    width: 100%; background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    position: absolute; bottom: 0;
    transform: translateY(100%);
    opacity: 0; visibility: hidden;
    transition: 0.4s ease;
}

.nav-wrapper {
    max-width: var(--site-width); margin: 0 auto;
    padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center; 

}

a {
    color: var(--primary-dark); /* Nutzt dein Orange */
    text-decoration: none;       /* Entfernt den Unterstrich */
    transition: color 0.3s;      /* Macht Farbwechsel geschmeidig */
}

a:hover {
    color: var(--primary-color);  /* Farbe beim Drüberfahren */
    text-decoration: underline;  /* Unterstrich erscheint nur beim Hover */
}

.sub-nav a {
    color: var(--primary-color); text-decoration: none;
    font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
}

.nav-divider { width: 1px; height: 15px; background: #eee; }

/* --- 3. SCROLLED STATE --- */
#main-header.scrolled { height: 80px; }
#main-header.scrolled .logo-container { justify-content: flex-start; }
#main-header.scrolled #logo { height: 45px; width: auto; }
#main-header.scrolled .header-title { display: block; }
#main-header.scrolled .sub-nav { opacity: 1; visibility: visible; }

/* --- 4. MAIN CONTENT --- */
main { 
    margin-top: 100vh; 
    padding-top: 60px;
    flex: 1 0 auto; /* Lässt den Content wachsen und schiebt Footer nach unten */
}

.content-row {
    max-width: var(--site-width); margin: 0 auto 100px auto;
    padding: 0 5%; display: flex; align-items: center; gap: 60px;
}
.content-row.reverse { flex-direction: row-reverse; }
.text-box { flex: 1.2; }
.image-box { flex: 0.8; }
.image-box img { width: 100%; height: auto; border-radius: 2px; }

h2 { color: var(--primary-color); font-size: 2.2rem; margin-bottom: 20px; line-height: 1.2; font-weight: 600; }
h3 { color: var(--primary-color); font-size: 1.4rem; margin-bottom: 15px; line-height: 1.2; font-weight: 600; }

/* --- ABSATZ-ABSTÄNDE (FIX) --- */
.text-box p {
    margin-bottom: 1.2rem;
}
.text-box p:last-child {
    margin-bottom: 0;
}

/* --- 5. KONTAKT & FOOTER --- */
.final-contact { max-width: var(--site-width); margin: 80px auto 120px auto; padding: 0 5%; display: flex; justify-content: center; }
.contact-wrapper { display: flex; align-items: center; gap: 25px; }
.contact-logo { width: 65px; height: auto; }
.contact-text { color: var(--primary-color); font-size: 1rem; line-height: 1.1; }
.contact-text a { color: var(--primary-color); text-decoration: none; }

/* FOOTER FIX */
footer {
    background: #000;
    color: #fff;
    padding: 60px 5%;
    text-align: center;
    font-size: 0.85rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

#scroll-top {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--primary-color); color: #fff;
    width: 45px; height: 45px; border-radius: 50%;
    text-align: center; line-height: 45px; text-decoration: none;
    z-index: 2000; display: none;
}

/* --- 6. MOBILE ANPASSUNGEN --- */
@media (max-width: 768px) {
    #main-header.scrolled { height: auto; }
    #main-header.scrolled #logo { height: 25px; } 
    .header-title { font-size: 1.2rem; margin-left: 12px; }

.sub-nav a br {
        display: none;
    }

    .sub-nav { position: static; transform: none; opacity: 1; visibility: visible; display: none; }
    #main-header.scrolled .sub-nav { display: block; padding: 15px 0; }

    .nav-wrapper { 
        flex-direction: column; 
        align-items: flex-start;
        padding-left: calc(5% + 30px); 
        gap: 7px; 
    }
    
    .nav-divider { display: none; }
    .content-row, .content-row.reverse { flex-direction: column; gap: 30px; }
    section { scroll-margin-top: 280px; } 
    #logo { width: 220px; }
    h2 { font-size: 1.8rem; }
    
    footer { padding: 40px 5%; }
}