/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #000;
}

@font-face {
    font-family: 'Object Sans';
    src: url('PPObjectSans-Regular.woff2') format('woff2'),
         url('PPObjectSans-Regular.woff') format('woff'),
         url('PPObjectSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Object Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f3ecd8;
    background-image: url('Hintergrund.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #070D12;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

body.landing {
    background-color: #f5eed4;
    background-image: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.success-message,
.delete-btn {
    font-family: inherit;
}

/* ===================================
   FIXED NAVIGATION
   =================================== */
.fixed-nav {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.nav-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #070D12;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    font-family: inherit;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(340px, calc(100vw - 40px));
    white-space: nowrap;
}

.nav-btn.primary {
    background: #E73C28;
    color: white;
    min-width: auto;
}

.nav-label-img {
    display: none;
    height: 20px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
}

.nav-label-text {
    display: inline;
}

.nav-btn.has-img .nav-label-img {
    display: inline-block;
}

.nav-btn.has-img .nav-label-text {
    display: none;
}

.nav-btn.has-img {
    border: none;
    background: transparent;
}

.nav-btn.has-img:hover {
    box-shadow: none;
}

.nav-btn.has-img:hover .nav-label-img {
    filter: drop-shadow(0 4px 12px rgba(231, 60, 40, 0.45));
}

.page-title-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.nav-btn:hover .nav-label-img {
    filter: drop-shadow(0 4px 12px rgba(231, 60, 40, 0.45));
}

.nav-btn:hover .nav-label-text {
    text-shadow: 0 0 12px rgba(231, 60, 40, 0.45);
}

.nav-btn.secondary {
    color: #070D12;
    border: none;
}

.nav-btn.secondary:hover {
    background: transparent;
    color: #E73C28;
    border-color: transparent;
}

.nav-btn.img-only {
    border: none;
    background: transparent;
}

.nav-btn.img-only:hover {
    box-shadow: none;
    background: transparent;
    border-color: transparent;
}

.nav-btn.img-only:hover .nav-label-img {
    filter: drop-shadow(0 4px 12px rgba(231, 60, 40, 0.45));
}

.nav-btn.img-only:hover .nav-label-text {
    text-shadow: 0 0 12px rgba(231, 60, 40, 0.45);
}

.nav-btn.secondary.has-img:hover {
    background: transparent;
    border-color: transparent;
}

/* ===================================
   HEADER ANIMATION
   =================================== */
.hero-video {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100svh;
    object-fit: contain;
    z-index: 0;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    width: 100%;
    height: auto;
    display: block;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.scroll-video-section {
    height: 760vh;
}

.scroll-video-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    position: sticky;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) calc(100% - 30px), rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) calc(100% - 30px), rgba(0, 0, 0, 0) 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.scroll-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
}

body.landing .scroll-video {
    transform: translateY(-25px);
    height: calc(100% + 25px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.8;
    font-weight: 300;
}

/* ===================================
   STORY SECTIONS
   =================================== */
.story-section {
    min-height: 30vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 60px 20px;
    position: relative;
}

.story-section:nth-child(even) {
    background: transparent;
}

.story-content {
    max-width: 1200px;
    text-align: left;
}

.story-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: #E73C28;
}

.story-section p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    max-width: 1200px;
    margin: 0;
    line-height: 1.8;
    color: #070D12;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 120px 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(231, 60, 40, 0.15) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: #E73C28;
}

.cta-content p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .fixed-nav {
        gap: 10px;
    }
    
    .story-section {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .cta-section {
        padding: 80px 20px;
    }
}

/* ===================================
   DESKTOP LAYOUT (Grid für zukünftige Erweiterungen)
   =================================== */
@media (min-width: 1024px) {
    .story-content {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        gap: 40px;
        align-items: center;
    }
    
    .story-content h2 {
        grid-column: 2;
    }
    
    .story-content p {
        grid-column: 2;
    }
}

/* ===================================
   ANIMATIONS & TRANSITIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-section {
    animation: fadeInUp 0.8s ease-out;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .nav-btn,
    .story-section {
        animation: none;
        transition: none;
    }
}

.nav-btn:focus-visible {
    outline: 3px solid #E73C28;
    outline-offset: 2px;
}
