/* Rainyhearts Font */
@font-face {
    font-family: 'rainyhearts';
    src: url('../fonts/rainyhearts.woff2') format('woff2'),
         url('../fonts/rainyhearts.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Grotesk Font */
@font-face {
    font-family: 'GroteskMedium';
    src: url('../fonts/GroteskMedium.woff2') format('woff2'),
         url('../fonts/GroteskMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Helvetica Neue Medium Font */
@font-face {
    font-family: 'HelveticaNeueMedium';
    src: url('../fonts/HelveticaNeueMedium.woff2') format('woff2'),
         url('../fonts/HelveticaNeueMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Helvetica Font */
@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/Helvetica.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-text-light: #999999;
    --color-border: #e6e6e6;
    --color-hover: #121212;
    --color-success: #2d7a3e;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --spacing: 20px;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Verhindere Layout-Shift beim Öffnen der Lightbox */
html {
    overflow-y: scroll; /* Fallback für ältere Browser */
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-gutter: stable; /* Modern: Reserviert Platz für Scrollbar */
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.brand {
    flex-shrink: 0;
}

.brand h1 {
    font-family: 'rainyhearts', monospace;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 0px;
    letter-spacing: 1px;
}

.brand p {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: -5px;
}

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

/* Navigation */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

nav a:hover,
nav a.active,
nav .current-menu-item > a,
nav .current_page_item > a {
    color: var(--color-hover);
}

nav a.active::after,
nav .current-menu-item > a::after,
nav .current_page_item > a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-hover);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    background: #fbfbfb;
    padding: 40px var(--spacing);
    margin-top: 80px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 14px;
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-hover);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
    transform: translateY(-2px);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .header-content {
        padding: 20px var(--spacing);
    }
    
    .brand h1 {
        font-size: 28px;
    }
    
    .brand p {
        font-size: 12px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    nav.active {
        max-height: 400px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Hero Section (Startseite)
   ========================================================================== */

.hero-section {
    margin: 0 auto;
    padding: 44px 0px 44px 0px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    font-family: 'HelveticaNeueMedium', sans-serif;
}

.hero-text h1 {
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 50px;
    line-height: 0.68;
    color: #9b9b9b;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0px;
    margin: 0;
}

/* Subtitle-Block innerhalb H1 - erbt alle H1-Styles */
.hero-text h1 .subtitle-block {
    display: block;
}

/* Legacy Support für alte Subtitle-Klassen */
.hero-text .subtitle,
.hero-text p.subtitle {
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 50px;
    line-height: 0.68;
    color: #9b9b9b;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0px;
    margin: 0;
}

.hero-text p {
    font-family: 'HelveticaNeueMedium', sans-serif;
    font-size: 50px;
    line-height: 0.68;
    color: #9b9b9b;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0px;
    margin: 0;
}

.hero-cta-button {
    display: inline-block;
    margin-top: 50px;
    padding: 12px 24px;
    background: transparent;
    color: #9b9b9b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #9b9b9b;
    border-radius: 4px;
    transition: var(--transition);
}

.hero-cta-button:hover {
    background: #9b9b9b;
    color: #ffffff;
    border-color: #9b9b9b;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 350px;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px var(--spacing) 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1,
    .hero-text h1 .subtitle-block,
    .hero-text .subtitle,
    .hero-text p {
        font-size: 32px;
    }
    
    .hero-cta-button {
        margin-top: 30px;
        font-size: 15px;
        padding: 10px 20px;
    }
    
    .hero-image img {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-text h1,
    .hero-text h1 .subtitle-block,
    .hero-text .subtitle,
    .hero-text p {
        font-size: 32px;
    }
    
    .hero-cta-button {
        margin-top: 25px;
        font-size: 14px;
        padding: 10px 18px;
    }
}
