/* MEINE GESCHICHTE - SIGNATURE STORY PAGE */
/* Following existing subpage pattern (grundlagen/, erfahrungsaustausch/) */

/* MOBILE-FIRST BASE STYLES (0-599px) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 125px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header"
        "main"
        "footer";
}

/* Typography Hierarchy System with 800px Width Constraint */
h1, h2, h3, h4, p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003D83;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #003D83;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* Mathematical Spacing System (8px Grid) */
:root {
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}

/* Header - Mobile 3-Row Layout */
.header {
    grid-area: header;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #003D83 0%, #002a5c 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.8rem 0;
    gap: 0.8rem;
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #004394 0%, #002f5a 100%);
}

main {
    grid-area: main;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFD700;
}

.logo-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: white;
}

/* Header Container - Mobile 3-Row */
.header-container {
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    grid-template-areas:
        "logo"
        "nav"
        "login";
    gap: 0.8rem;
    padding: 0 1rem;
    width: 100%;
}

.logo {
    grid-area: logo;
    justify-self: center;
}

.nav-menu {
    grid-area: nav;
    justify-self: center;
    width: 100%;
}

.nav-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center;
}

.nav-menu a:hover {
    color: #FFD700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    grid-area: nav;
    justify-self: center;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle svg {
    display: block;
}

.mobile-login {
    display: none;
}

.header-actions {
    grid-area: login;
    justify-self: center;
    display: block;
}

.login-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.login-button:hover {
    background: white;
    color: #003D83;
}

/* Hero Section */
.hero {
    background: white;
    color: #333;
    padding: 60px 0 40px 0;
    display: grid;
    justify-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: min(800px, calc(100vw - 2rem));
    padding: 0 1rem;
    margin: 0 auto;
}

.hero-photo {
    margin-bottom: 2rem;
}

.profile-image {
    width: 180px;
    height: 240px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #003D83;
    box-shadow: 0 8px 25px rgba(0, 61, 131, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 61, 131, 0.3);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.5;
}

/* Section Layout */
.section {
    display: grid;
    justify-items: center;
    padding: 3rem 0;
    width: 100%;
}

.container {
    width: 100%;
    max-width: min(800px, calc(100vw - 2rem));
    display: grid;
    gap: 2rem;
    justify-items: center;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Story Sections */
.story-section {
    background: white;
}

.story-section-alt {
    background: #f8f9fa;
}

.story-block {
    width: 100%;
    max-width: 700px;
}

.story-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.story-text:last-child {
    margin-bottom: 0;
}

/* Highlighted story block (Wendepunkt) */
.story-highlight {
    background: linear-gradient(135deg, #003D83 0%, #002a5c 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 61, 131, 0.2);
}

.story-text-highlight {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
}

/* Vision text */
.story-text-vision {
    font-size: 1.25rem;
    font-weight: 600;
    color: #003D83;
    padding-top: 1rem;
    border-top: 3px solid #FFD700;
    margin-top: 1.5rem;
}

/* Story list */
.story-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    max-width: 700px;
}

.story-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.story-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: #FF6B35;
    border-radius: 50%;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #003D83 0%, #002a5c 100%);
    color: white;
    display: grid;
    justify-items: center;
    padding: 4rem 0;
    text-align: center;
    width: 100%;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-intro {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    background: linear-gradient(45deg, #FF6B35, #FFA500);
    color: white;
    padding: 18px 36px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', Arial, sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.cta-subtext {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Footer */
.footer {
    grid-area: footer;
    background: #001a3d;
    color: white;
    padding: 2rem;
    display: grid;
    justify-items: center;
    align-items: center;
    min-height: 80px;
    text-align: center;
}

.footer p {
    margin: 0;
    padding: 0;
    color: white;
}

.footer a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Scroll Effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
 * MOBILE/TABLET HAMBURGER MENU (< 900px)
 * ============================================ */
@media (max-width: 899px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #003D83 0%, #002a5c 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 999;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin: 0;
        list-style: none;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .mobile-login {
        display: block;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #FFD700;
    }

    .mobile-login a {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        margin: 0.5rem 1rem;
        font-weight: 500;
    }

    .mobile-login a:hover {
        background: rgba(255, 215, 0, 0.2);
        border-color: #FFD700;
        color: #FFD700;
    }

    .header-container {
        position: relative;
        grid-template-areas:
            "logo"
            "nav";
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .story-highlight {
        padding: 2rem 1.5rem;
    }

    .story-text-highlight {
        font-size: 1.15rem;
    }
}

/* ============================================
 * BREAKPOINT 1: SMALL TABLET (600px+)
 * ============================================ */
@media (min-width: 600px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-menu ul {
        gap: 1.5rem;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .profile-image {
        width: 200px;
        height: 260px;
    }

    .story-text {
        font-size: 1.2rem;
    }

    .story-text-highlight {
        font-size: 1.4rem;
    }
}

/* ============================================
 * BREAKPOINT 2: DESKTOP (900px+)
 * ============================================ */
@media (min-width: 900px) {
    html {
        scroll-padding-top: 100px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .header-container {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto;
        grid-template-areas:
            "desktop-logo desktop-nav desktop-login";
        gap: 1.5rem;
        padding: 0 1.5rem;
        align-items: center;
    }

    .logo {
        grid-area: desktop-logo;
        justify-self: start;
        font-size: 1.4rem;
        white-space: nowrap;
    }

    .nav-menu {
        grid-area: desktop-nav;
        justify-self: center;
    }

    .nav-menu ul {
        gap: 1rem;
    }

    .header-actions {
        grid-area: desktop-login;
        justify-self: end;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .profile-image {
        width: 220px;
        height: 290px;
    }

    .story-text {
        font-size: 1.25rem;
    }

    .story-highlight {
        padding: 3rem 3rem;
    }

    .story-text-highlight {
        font-size: 1.5rem;
    }

    .story-text-vision {
        font-size: 1.35rem;
    }
}
