/* Schriften lokal eingebunden (kein Abruf von Google-Servern) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-display-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/playfair-display-italic.woff2') format('woff2');
}


:root {
    --navy: #001B48; /* Basierend auf deinem Logo */
    --light-bg: #F2F2F2;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --transition: all 0.4s ease-in-out;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .logo-font {
    font-family: 'Playfair Display', serif; 
   /* font-family: 'Roboto', serif; */
    font-weight: 400;
}

h3 {
    color: #000000;
    font-size: 1.3em;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width:none
}

.nav-logo_alt {
    font-size: 1.5rem;
    font-weight: normal;
    color: #86888b;
    text-decoration: none;
    letter-spacing: 2px;
}

img.logoheader {
    width: 14vw;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 10px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

img.logoheader.logo-visible {
    opacity: 1;
}

/* On subpages without a hero logo observer, keep the header logo always visible */
body.subpage img.logoheader {
    position: relative;
    opacity: 1;
    top: 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin-top: 0;
    transition: margin-top 0.6s ease-in-out;
}

nav ul.nav-expanded {
    margin-top: 20px;
}

body.subpage nav ul {
    margin-top: 20px;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--navy);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    width: 100%;
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: unset;
    justify-content: left;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, #d17f4f, #f9f9f9);
    background-image: url(img/fitsch.jpg);
    background-image: image-set(
        url("img/fitsch.avif") type("image/avif"),
        url("img/fitsch.jpg") type("image/jpeg")
    );
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-position-x: 11vw;

}


.container-head {
    width: 100%;
    padding: 5% 60% 0 0;
    height: 100vh;
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 20%,rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
}

img.logosvg {
    background-color: #ffffff80;
    box-shadow: 0px 2px 5px 3px #33333370;
    width: 48%;
}


.hero-logo-box {
    margin-bottom: 2rem;
}

.redner {
    color: #d5d6d9;
    margin: 40px 0 0 0;
    letter-spacing: 5px;
    font-family: 'Playfair Display';
    text-align: center;
    padding: 0;
    margin-bottom: 0 !important;
    font-style: italic;
    font-size: 1.6em !important;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.hero p {
    font-size: 1.2rem;
    color: #151313;
    margin-bottom: 2rem;
}

/* Die Wellen-Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    line-height: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}


.claim { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; line-height: 1.6; color: var(--navy); letter-spacing: 0.5px; opacity: 0.9;padding: 0 4vw;}

strong {font-weight: 500;}

/* Sections */
.section {
    padding: 100px 0;
}

.philosophie {
    text-align: center;
    background: var(--white);
}

.philosophie h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.philosophie-text {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.highlight-quote {
    font-style: italic;
    color: var(--navy);
    margin-top: 30px;
    display: block;
    font-size: 1.4rem;
}

/* Angebote / Cards */
.angebote {
    background-color: var(--light-bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    padding: 50px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--navy);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-more {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    border-bottom: 1px solid var(--navy);
    padding-bottom: 2px;
}

.subtle-hint {
    text-align: center;
    margin-top: 60px;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Über Mich */
.about {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 500px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url(img/cf-portrait.jpg);
    background-image: image-set(
        url("img/cf-portrait.avif") type("image/avif"),
        url("img/cf-portrait.jpg") type("image/jpeg")
    );
    /*background-size: cover;*/
    background-size: 180%;
    background-position-x: 32%;
    background-position-y: 50%;
}

.about-image::after {
    content: '';
    color: #999;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

/* Unterseiten-Hero (Bild + Text nebeneinander) */
.page-hero {
    padding: 160px 0 100px;
}

.page-hero .inner {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.page-hero.reverse .inner {
    flex-direction: row-reverse;
}

.page-hero-image {
    flex: 1 1 480px;
    max-width: 560px;
}

.page-hero-image img {
    width: 100%;
    height: 680px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.15);
}

.page-hero-content {
    flex: 1 1 400px;
    min-width: 300px;
}

.page-hero-content .eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.page-hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.page-hero-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.page-body {
    background: var(--light-bg);
}

.page-body .container {
    max-width: 850px;
}

.page-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
}

.page-body h2 {
    color: var(--navy);
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
}

.page-body h2:first-of-type {
    margin-top: 0;
}

.page-body ul {
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
}

.page-body ul li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.4rem 0;
}

.page-body ul li::before {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: var(--navy);
}

.page-cta {
    text-align: center;
    padding: 90px 0;
}

.page-cta h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer / Contact */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.btn-contact {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    border: 2px solid var(--navy);
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: var(--transition);
    font-weight: 700;
}

.btn-footer {
    color: #fff;
    border: 2px solid #fff;
}

.btn-contact:hover {
    background: var(--white);
    color: var(--navy);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.contact-buttons .btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    white-space: nowrap;
}

.btn-icon {
    width: 1.96em;
    height: 1.96em;
    flex-shrink: 0;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

img.logofooter {
    width: 300px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    margin-top: 30px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1920px) {
    .hero h1 { font-size: 2.5rem; }
    .btn-contact {margin-top: 10px;}
    .claim { font-family: 'Montserrat', sans-serif; font-size:1.1rem!important; line-height: 1.4; }
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-logo-box { padding: 20px; width: 100%; }
    .about { flex-direction: column; }
    .about-image, .about-content { width: 100%; }
    .page-hero-image { max-width: 100%; }
    .page-hero-image img { height: 420px; }
}

@media (max-width: 768px) {
    .hero h1 {
            font-size: 1.6rem;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
    .nav-toggle { display: flex; }

    /* .hero setzt auf Mobile ein sehr hohes z-index; Nav (inkl. Dropdown) muss darüber bleiben */
    nav { z-index: 1000000000; }

    nav ul,
    nav ul.nav-expanded,
    body.subpage nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-top: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    }

    nav ul.nav-open,
    body.subpage nav ul.nav-open {
        display: flex;
    }

    nav ul li {
        margin-left: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 16px 24px;
        width: 100%;
        border-bottom: 1px solid #f2f2f2;
    }
    .hero {
        padding-left: 0;
        background-size: 100% auto;
        background-position-y: bottom;
        background-position-x: left;
        z-index: 999999999;
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }

    .container-head {
        width: 100%;
        padding: 80px 5% clamp(280px, 68vw, 620px);
        height: unset;
        background: unset;
    }

    .claim {
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem !important;
    line-height: 1.6;
    padding: 0;
    }

    img.logosvg {max-width: 260px;width: 200px;background-color: #ffffff;}
    .hero-logo-box {margin-bottom: 0rem;padding-top: 0;}
    .hero .btn-contact {margin-top: 0;background-color: #ffffffb0;}
    .philosophie h2 {font-size: 1.5rem; margin-bottom: 1.5rem;line-height: 1.4;}
    .philosophie-text {max-width: 100%;margin: 0 auto;font-size: .95rem;color: var(--text-muted);}
    .section {padding: 50px 0;}
    .about-image {flex: unset;}
    .about-content {flex: unset; min-width: 300px; padding: 0 10px;}
    #kontakt .btn-contact {margin-top: 0;background-color: #00000033;}
    .contact-buttons {margin-top: 30px;}
    img.logoheader {width: 39vw;}

    .page-hero { padding: 130px 0 50px; }
    .page-hero .inner { gap: 30px; }
    .page-hero-content h1 { font-size: 1.8rem; }
    .page-hero-image img { height: 320px; }
}
