@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/TitilliumWeb-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/TitilliumWeb-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/TitilliumWeb-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/TitilliumWeb-700.ttf') format('truetype');
}

:root {
    --bg-color: #ffffff;
    --text-main: #03386E;
    --text-muted: var(--text-main);
    --accent-blue: #03386E;
    --accent-orange: #EA5010;

    /* Typography Scale - 4 sizes as requested */
    --fs-h1: clamp(2rem, 6.4vw, 3.2rem);
    /* Large Headline */
    --fs-h2: clamp(1.1rem, 3.2vw, 1.75rem);
    /* Section / Inter-headline */
    --fs-h3: clamp(0.9rem, 2.4vw, 1.1rem);
    /* Small Header / Bold highlights */
    --fs-body: 0.95rem;
    /* Clean Reader text */

    /* Layout & Spacing */
    --content-max-width: 1100px;
    --section-spacing: 20vh;
    --content-indent: 140px;
    /* Global left indentation for text */
}

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

body {
    font-family: 'Titillium Web', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}



/* Futuristic Particle Waves */
.water-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    z-index: 10;
    /* Bring in front of the content cards */
    pointer-events: none;
    /* Let clicks pass through cleanly */
}

/* White fade overlay – sits behind the water but in front of content */
.water-fade {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    min-height: 150px;
    z-index: 5;
    /* Between content (1) and water (10) */
    pointer-events: none;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 85%, rgba(255, 255, 255, 0) 100%);
}

#wave-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Main Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    /* Stay behind the waves */
}

.section {
    min-height: 85vh;
    /* Each section fills most of the screen */
    padding: 10vh 2rem 15vh var(--content-indent);
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 18vh;
    /* Weiterer Abstand nach oben reduziert */
    align-items: flex-start;
}

.hero-logo-container {
    width: 100%;
    max-width: 480px;
    /* Scales elegantly on small screens (480px is 20% smaller) */
    margin-left: calc(var(--content-indent) * -1.1);
    /* Noch weiter nach links */
    margin-bottom: 0.5rem;
    /* Abstand zur Headline verringert (um ca. eine Zeile) */
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
}

.hero .section-headline {
    text-align: left;
    margin-left: calc(var(--content-indent) * 0.5);
    margin-bottom: 0.8rem;
}

.hero .hero-subline {
    text-align: left;
    margin-left: calc(var(--content-indent) * 0.5);
}

/* Overhanging Headline Logic - No sidebar, just negative margin */
.section-headline {
    font-size: var(--fs-h1);
    color: var(--accent-orange);
    text-align: left;
    margin: 0 0 3rem calc(var(--content-indent) * -0.6);
    /* Starts further left */
    line-height: 1.1;
    font-weight: 400;
}



.hero-subline {
    font-size: var(--fs-h2);
    color: var(--text-main);
    font-weight: 300;
    max-width: 600px;
    line-height: 1.4;
    padding-bottom: 0.2em;
}

h2 {
    font-size: var(--fs-h2);
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

h3 {
    font-size: var(--fs-h3);
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    font-size: var(--fs-body);
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
}

ul li {
    font-size: var(--fs-body);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 0;
}

/* Expertise List Specific Styles */
.expertise ul li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.expertise-icon {
    flex: 0 0 48px;
    height: 48px;
    color: var(--accent-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
    /* Icon leicht abgesetzt, um passgenau zur Schriftlinie zu sitzen */
}

.expertise-icon svg {
    width: 100%;
    height: 100%;
}

.expertise-text {
    flex: 1;
}

.list-item-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.list-item-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 
   Emerge Animation (Rise out of water)
*/
.reveal-up {
    opacity: 0;
    transform: translateY(20vh) scale(0.95);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-hero-logo {
    transition-delay: 0.8s !important;
}

.delay-hero-headline {
    transition-delay: 1.2s !important;
}

.delay-hero-subline {
    transition-delay: 1.5s !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        padding: 2rem;
    }
}

/* Profile / About Section Layout */
.profile-card-frame {
    display: flex;
    border: 1px solid var(--accent-orange);
    border-radius: 20px;
    /* Radius leicht verkleinert (wie im Bild) */
    padding: 3rem 4rem;
    /* Höhe stark reduziert durch weniger Padding oben/unten */
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    /* Box fixiert das absolut positionierte Bild */
    align-items: center;
}

.profile-text-container {
    flex: 1;
    z-index: 1;
    padding-right: 320px;
    /* Verhindert, dass der Text unter das absolute Bild läuft */
}

.profile-image-container {
    position: absolute;
    bottom: 0;
    /* Steht genau auf der unteren Box-Kante */
    right: calc(-2rem - 8px);
    /* Ragt sichtbar über den rechten Rand hinaus */
    width: 360px;
    /* Feste Bildgröße, hoch genug für Überhang oben */
    z-index: 2;
    /* Bild steht über dem Rahmen */
    pointer-events: none;
    /* Blockiert keine Klicks im Text */
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
}

.profile-text-container {
    flex: 1;
}

.profile-text-container p {
    line-height: 1.5;
    font-size: var(--fs-h3);
    /* Exakt gleiche (und responsive) Größe wie .list-item-title */
}

/* Reference with Logo */
.reference-item {
    display: flex;
    gap: 3rem;
    align-items: start;
}

.reference-logo {
    flex: 0 0 160px;
    /* Feste Spaltenbreite */
    width: 160px;
    height: auto;
    max-height: 80px;
    /* Begrenzung der Höhe, damit wuchtige Logos nicht zu groß werden (Harmonisierung) */
    object-fit: contain;
    object-position: right top;
    /* Rechts oben ausrichten, wie gewünscht */
}

.reference-text {
    flex: 1;
}

.reference-text p {
    font-size: var(--fs-h3);
    /* Exakt gleiche Größe wie die Profil-Box Textzeilen */
    line-height: 1.5;
}

.aligned-text-block {
    margin-left: calc(160px + 3rem);
}

@media (max-width: 600px) {
    .aligned-text-block {
        margin-left: 0;
    }
}

.reference-text h3 {
    color: var(--accent-orange);
}


.award-storer {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: 1px solid var(--accent-orange);
    border-left: 4px solid var(--accent-orange);
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.award-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.award-text {
    font-weight: 600;
    color: var(--accent-orange);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.award-img {
    height: 40px;
    width: auto;
}

/* Contact & Footer Layout */
.footer-body-text {
    font-size: var(--fs-h3);
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-main);
    opacity: 1 !important;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.footer-image-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 30vh;
}

.footer-image {
    max-height: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    :root {
        --content-indent: 60px;
    }

    /* Reversed the 1024 profile card tighten logic */

    .section-headline,
    .hero .section-headline,
    .hero-logo-container {
        margin-left: 0;
        /* Reset overhang on tablet/mobile */
    }

    .section-headline {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .profile-card-frame {
        flex-direction: column;
        padding: 2rem;
    }
    .profile-text-container {
        padding-right: 0;
    }
    .profile-image-container {
        position: relative;
        bottom: auto;
        right: auto;
        align-self: flex-end;
        width: 320px;
        max-width: 100%;
        margin-top: 2rem;
        margin-bottom: -2rem; /* touch bottom edge defined by 2rem padding */
        margin-right: calc(-2rem - 8px); /* pulled over the 2rem padding and overhangs 8px */
        transform: none;
    }
}

@media (max-width: 600px) {
    :root {
        --content-indent: 0;
    }

    .section {
        padding: 2.5rem 1.5rem;
    }

    .section-headline {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .hero .section-headline {
        margin-bottom: 0.8rem;
    }

    /* Profile card overrides moved to 900px breakpoint */

    .reference-item {
        flex-direction: column;
        gap: 1.5rem;
    }

    .reference-logo {
        height: 60px;
        flex: 0 0 60px;
        object-position: left top;
    }
    
    .contact-grid {
        gap: 2rem;
        flex-direction: column;
    }
    
    .footer-image-container {
        margin-bottom: 12vh;
    }

    .expertise ul li {
        gap: 1rem;
    }
}

/* Dot Navigation */
.dot-navigation {
    position: fixed;
    top: 40%;
    right: 2rem;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--accent-orange);
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.nav-dot.active {
    background-color: var(--accent-orange);
}

.nav-dot:hover {
    transform: scale(1.2);
}

/* Label on hover */
.nav-dot span {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-dot:hover span {
    opacity: 1;
    visibility: visible;
    right: 28px;
}

@media (max-width: 1024px) {
    .dot-navigation {
        right: 1.5rem;
    }
}

@media (max-width: 1310px) {
    .dot-navigation {
        display: none; /* Hide dots when they get too close to the content */
    }
}