/* --- CSS Variables & Resets --- */
:root {
    --bg-sidebar: #C7C6C2;
    --text-sidebar: #222222;
    --text-sidebar-dim: #555555;

    --bg-main: #FFFFFF;
    --text-main: #1A1A1A;
    --text-blue-dark: #1E2838;

    --font-primary: 'EB Garamond', serif;

    --sidebar-width: 260px;

    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 6rem;
    --spacing-xl: 10rem;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-content {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    font-size: 1.15rem;
    color: #444;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* --- Layout --- */
/* --- Navigation --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 105;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #1E2838;
    transition: width 0.1s ease-out;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 80px;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-blue-dark);
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-main);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}


/* --- Main Content Specifics --- */

/* Hero Image Blocks */
.block-image-hero {
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #eee;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-img.overlay-darker {
    filter: brightness(0.6);
}

.hero-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
}

.hero-overlay-text h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-overlay-text p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Content Blocks */
.content-block {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.padding-y-lg {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.padding-bottom-lg {
    padding-bottom: var(--spacing-lg);
}

.margin-top-lg {
    margin-top: var(--spacing-lg);
}

.center-text {
    text-align: center;
}

.subtitle-text {
    font-size: 1.8rem;
    color: var(--text-blue-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Vision Grid */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
}

.vision-card {
    text-align: center;
}

.vision-card img {
    width: 100%;
    aspect-ratio: 1;
    /* Make images square to match screenshots perfectly */
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.vision-card h3 {
    font-size: 1.3rem;
    color: var(--text-blue-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.vision-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Image Row */
.three-images-row {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.img-square {
    flex: 1;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}

.img-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.img-square:hover img {
    transform: scale(1.03);
}

/* Dividers */
.divider-line {
    width: 100%;
    height: 1px;
    background-color: #E0E0E0;
}

.divider-line.mx-auto {
    width: 80%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.divider-line.thick {
    height: 2px;
}

/* Split Row (Text + Image/Graphic) */
.split-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.split-row>div {
    flex: 1;
}

.split-text h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.clean-list {
    list-style: none;
}

.clean-list li {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.clean-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-main);
    font-weight: bold;
}

/* Diagrams */
.diagram-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Team Section */
.section-team {
    background-color: #F8F9FA;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.team-member {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    background-color: #E2E2E2;
}

.team-member h3 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.team-role {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.team-social {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.social-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-blue-dark);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    color: #4A90E2;
}

/* Marken section */
.marken-logo-container {
    background: #FDFDFD;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.echtwerk-brand-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.echtwerk-brand-link:hover {
    transform: scale(1.05);
}

.echtwerk-brand-logo {
    max-width: 250px;
    width: 100%;
    object-fit: contain;
}

/* Footer Section */
.section-footer {
    width: 100%;
    text-align: center;
    background-color: white;
}

.footer-statement {
    padding: var(--spacing-xl) var(--spacing-md);
    border-bottom: 1px solid #E0E0E0;
}

.footer-statement h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 500;
}

.main-footer {
    padding: var(--spacing-sm);
    background-color: #B9B9B6;
    color: #333;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
    }

    .sidebar-logo {
        margin-bottom: 0;
    }

    .sidebar-nav ul {
        flex-direction: row;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        width: 100%;
    }

    .split-row {
        flex-direction: column;
    }

    .three-images-row {
        flex-direction: column;
    }
}

/* Footer Legal Links */
.footer-legal-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 2px;
}

.footer-legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-blue-dark);
    transition: width 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--text-blue-dark);
}

.footer-legal-links a:hover::after {
    width: 100%;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-content a {
    color: #4A90E2;
    text-decoration: underline;
}

.btn-primary {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #357ABD;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}