/* ===================================
   Reset & Base Styles
   =================================== */

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

:root {
    /* Colors */
    --primary-color: #1ad5a0;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e1e1e1;
    --nav-bg: rgba(255, 255, 255, 0.98);

    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headings: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 3rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Container */
    --container-width: 1200px;
    --content-width: 800px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #999;
}

strong {
    font-weight: 600;
}

/* ===================================
   Navigation
   =================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
}

.main-nav.scrolled {
    background-color: var(--nav-bg);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.logo a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

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

.nav-menu a {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: var(--spacing-sm);
}

.hero-content h1 {
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Container & Sections
   =================================== */

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Vita Quote */
.vita-quote {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.vita-quote p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.vita-quote cite {
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-light);
}

.vita-quote cite a {
    color: var(--text-light);
    text-decoration: underline;
}

.vita-quote cite a:hover {
    color: var(--primary-color);
}

/* ===================================
   Image Sections
   =================================== */

.image-section {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.image-section img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateY(-10%);
}

/* ===================================
   Impressum Section
   =================================== */

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

.impressum-content {
    max-width: 500px;
    margin: 0 auto;
}

.impressum-content p {
    margin-bottom: var(--spacing-sm);
}

.impressum-content a {
    font-weight: 500;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    :root {
        --spacing-sm: 1.5rem;
        --spacing-md: 2rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }

    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }

    /* Images */
    .image-section {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-xs);
    }

    .logo a {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero {
        min-height: 400px;
    }

    .image-section {
        max-height: 40vh;
    }
}

/* ===================================
   Utilities
   =================================== */

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

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Smooth Animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
