/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #fcfaf7;
    --foreground: #1a1a1a;
    --border: rgba(0, 0, 0, 0.08);
    --sand: #d9d2c5;
    --moss: #4a5d4e;
    --muted: #5a5a5a;
    
    --font-serif: "Instrument Serif", "Playfair Display", serif;
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.625;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.025em;
}

p {
    line-height: 1.625;
    max-width: 65ch;
}

.italic {
    font-style: italic;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(252, 250, 247, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-family: var(--font-serif);
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

.logo:hover .logo-icon {
    border-color: rgba(0, 0, 0, 0.3);
}

.logo-icon span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(1px);
}

.logo-text {
    font-style: italic;
}

.nav-desktop {
    display: none;
    list-style: none;
    gap: 2.5rem;
}

.nav-desktop a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    transition: color 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--foreground);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--foreground);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 40;
    padding: 1.5rem;
}

.mobile-menu.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    display: block;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .logo-text {
        display: inline;
    }
}

@media (max-width: 767px) {
    .logo-text {
        display: none;
    }
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background-color: var(--background);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 10rem);
    line-height: 1;
    font-family: var(--font-serif);
    color: rgba(26, 26, 26, 0.9);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--muted);
    font-weight: 300;
}

.hero-text {
    max-width: 42rem;
    margin: 4rem auto 0;
}

.hero-quote {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.5;
    color: rgba(26, 26, 26, 0.8);
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.divider-line {
    width: 1px;
    height: 6rem;
    background-color: rgba(26, 26, 26, 0.1);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .button-group {
        flex-direction: row;
    }
}

.btn-primary,
.btn-secondary {
    padding: 1rem 3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--foreground);
    color: var(--background);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.btn-secondary:hover {
    border-color: var(--foreground);
}

/* Intro Section */
.intro-section {
    padding: 12rem 1.5rem;
    background-color: var(--background);
}

.intro-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.5;
    color: rgba(26, 26, 26, 0.8);
    font-weight: 300;
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 3rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
}

@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.intro-item {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.intro-item.muted {
    color: var(--muted);
}

/* Philosophy Section */
.philosophy-section {
    padding: 12rem 1.5rem;
    background-color: rgba(217, 210, 197, 0.05);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.philosophy-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    align-items: center;
}

@media (min-width: 768px) {
    .philosophy-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.philosophy-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.philosophy-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(26, 26, 26, 0.7);
    font-weight: 300;
}

.philosophy-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--border);
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pillars Section */
.pillars-section {
    padding: 12rem 1.5rem;
    background-color: var(--background);
}

.pillars-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--moss);
    text-align: center;
    margin-bottom: 6rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .pillar {
        text-align: left;
    }
}

.pillar h4 {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 2rem;
}

.pillar p {
    font-size: 1.125rem;
    color: var(--muted);
    font-weight: 300;
}

/* Closing Section */
.closing-section {
    padding: 16rem 1.5rem;
    background-color: var(--background);
    text-align: center;
}

.closing-content {
    max-width: 48rem;
    margin: 0 auto;
}

.closing-labels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.closing-labels p {
    color: var(--muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.closing-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(26, 26, 26, 0.8);
}

/* Footer */
.footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    padding: 6rem 1.5rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-about h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: rgba(26, 26, 26, 0.8);
}

.footer-about p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 24rem;
    font-style: italic;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a,
.footer-contact a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--sand);
}

.footer-contact a {
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.5);
    text-underline-offset: 4px;
}

.footer-contact .location {
    font-size: 0.875rem;
    color: var(--muted);
    font-style: italic;
}

.footer-bottom {
    max-width: 1280px;
    margin: 6rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* Page Containers */
.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
    .page-container {
        padding: 12rem 1.5rem;
    }
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .page-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.page-sidebar {
    position: sticky;
    top: 12rem;
}

@media (min-width: 1024px) {
    .page-sidebar {
        grid-column: span 4;
    }
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .page-content {
        grid-column: span 8;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1.5s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-out 1s both;
}

/* Form Styles */
.form-container {
    background-color: rgba(217, 210, 197, 0.05);
    padding: 3rem;
    border: 1px solid var(--border);
}

.form-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 3rem;
    display: block;
}

.form-group {
    margin-bottom: 3rem;
}

.form-group label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    display: block;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    padding-bottom: 1rem;
    background: transparent;
    font-style: italic;
    font-family: var(--font-sans);
    color: var(--foreground);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: rgba(26, 26, 26, 0.4);
}

.form-group textarea {
    resize: none;
}

.form-submit {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(26, 26, 26, 0.1);
    padding: 1rem 3rem;
    background-color: var(--foreground);
    color: var(--background);
    width: 100%;
    cursor: pointer;
    transition: opacity 0.3s;
}

.form-submit:hover {
    opacity: 0.9;
}

/* Card Styles */
.card {
    padding: 3rem;
    border: 1px solid var(--border);
    background-color: white;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: rgba(26, 26, 26, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(26, 26, 26, 0.9);
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.card:hover h3 {
    color: var(--sand);
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(26, 26, 26, 0.7);
    font-weight: 300;
}

.card-footer {
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
}

.card-footer p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-style: italic;
}

/* Cards Grid for Collaboration page */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 16rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Two column grid - responsive */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
    align-items: start;
}

@media (min-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form hint text - fix overlap */
.form-hint {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(90, 90, 90, 0.6);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* Success message */
.success-inner {
    padding: 4rem 0;
    text-align: center;
    border: 1px solid var(--border);
    padding: 4rem 2rem;
    background-color: rgba(217, 210, 197, 0.08);
}

.success-title {
    font-size: 1.75rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(26, 26, 26, 0.85);
    margin-bottom: 1.5rem;
    max-width: none;
}

.success-sub {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: none;
}

.success-reset {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.2);
    cursor: pointer;
    padding: 0 0 2px 0;
    transition: color 0.3s, border-color 0.3s;
}

.success-reset:hover {
    color: var(--foreground);
    border-color: var(--foreground);
}

/* Newsletter Section */
.newsletter-section {
    padding: 8rem 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--background);
}

.newsletter-container {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(26, 26, 26, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.newsletter-sub {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.newsletter-input-group {
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(26, 26, 26, 0.2);
    margin-bottom: 1.5rem;
}

.newsletter-input-group input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 1rem;
    color: var(--foreground);
    padding: 0.75rem 0;
    outline: none;
}

.newsletter-input-group input[type="email"]::placeholder {
    color: rgba(26, 26, 26, 0.3);
}

.newsletter-input-group button {
    background: var(--foreground);
    color: var(--background);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: opacity 0.3s;
    white-space: nowrap;
}

.newsletter-input-group button:hover {
    opacity: 0.85;
}

.newsletter-powered {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(90, 90, 90, 0.4);
}

.newsletter-powered a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.newsletter-success-msg {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(26, 26, 26, 0.7);
    max-width: none;
}

/* Footer newsletter */
.footer-newsletter {
    max-width: 1280px;
    margin: 0 auto 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-newsletter {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-newsletter-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    max-width: none;
    white-space: nowrap;
}

.footer-newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
    width: 100%;
    max-width: 28rem;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--foreground);
    padding: 0.5rem 0;
    outline: none;
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(26, 26, 26, 0.3);
}

.footer-newsletter-form button {
    background: none;
    border: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-family: var(--font-sans);
    transition: opacity 0.3s;
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    opacity: 0.6;
}

/* Checkbox in contactformulier */
.form-check {
    margin-bottom: 2rem;
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0;
}

.check-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1px solid rgba(26, 26, 26, 0.25);
    background: transparent;
    margin-top: 3px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}

.check-label input[type="checkbox"]:checked {
    background-color: var(--foreground);
    border-color: var(--foreground);
}

.check-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: 1.5px solid var(--background);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
/* =====================
   Scroll Animations
   ===================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-sidebar.animate-on-scroll {
    transform: translateX(-20px);
}

.page-sidebar.animate-on-scroll.is-visible {
    transform: translateX(0);
}

.philosophy-image.animate-on-scroll {
    transform: scale(0.97) translateY(16px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.philosophy-image.animate-on-scroll.is-visible {
    transform: scale(1) translateY(0);
}

.hero-title.animate-on-scroll {
    transition: opacity 1.1s ease, transform 1.1s ease;
}

.pillar.animate-on-scroll {
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.card.animate-on-scroll {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
