/* ==========================================================================
   CSS Custom Variables (Theme Palette & Core System)
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transition Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows & Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50%;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    
    /* Layout */
    --container-max-width: 1100px;
    --header-height: 80px;

    /* Theme-specific variables (Default Light Theme) */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(0, 0, 0, 0.06);
    --card-border-hover: rgba(215, 31, 29, 0.25);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-red: #d71f1d;
    --accent-red-rgb: 215, 31, 29;
    --accent-red-hover: #ad1412;
    
    --glow-opacity: 0.06;
    --navbar-blur: 20px;
    --navbar-bg: rgba(248, 250, 252, 0.8);

    /* Badge Tags Accent Colors */
    --tag-red: #b91c1c;
    --tag-orange: #c2410c;
    --tag-purple: #6d28d9;
    --tag-blue: #1d4ed8;
    --tag-green: #047857;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   Background Ambient Glowing Circles
   ========================================================================== */
.bg-glow-orange, .bg-glow-red {
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: var(--glow-opacity);
    transition: opacity var(--transition-normal);
}

.bg-glow-orange {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.4) 0%, rgba(0,0,0,0) 70%);
    animation: floatingGlow 15s infinite alternate ease-in-out;
}

.bg-glow-red {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(var(--accent-red-rgb), 0.4) 0%, rgba(0,0,0,0) 70%);
    animation: floatingGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.15); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--navbar-bg);
    backdrop-filter: blur(var(--navbar-blur));
    -webkit-backdrop-filter: blur(var(--navbar-blur));
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.navbar {
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-family: var(--font-heading);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.15;
}

.logo-name {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    color: var(--accent-red);
    text-transform: uppercase;
}


.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}



/* ==========================================================================
   Hero Section (Centered Face / Avatar & Branding)
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 40px);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

/* Profile / Face Photo Container - Central placement */
.profile-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-border {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1px solid var(--card-border);
    padding: 6px;
    z-index: 2;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.profile-container:hover .profile-img {
    transform: scale(1.08);
}

.profile-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: var(--accent-red);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 3;
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
}


/* Hero Typography */
.hero-text {
    max-width: 750px;
}

.tagline {
    font-family: var(--font-heading);
    color: var(--accent-red);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-red);
    margin-bottom: 24px;
}

.lead-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Call to action buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(var(--accent-red-rgb), 0.35);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-red-rgb), 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background-color: var(--card-border);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Section Layout General
   ========================================================================== */
section {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Stats / Overview Dashboard
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(var(--accent-red-rgb), 0.1);
}

.stat-icon-wrapper {
    background-color: rgba(var(--accent-red-rgb), 0.1);
    color: var(--accent-red);
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform var(--transition-fast);
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: 12px;
    line-height: 1.2;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   Timeline Section Layout
   ========================================================================== */
.timeline-section {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Central timeline line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--card-border) 0%, var(--accent-red) 15%, var(--accent-red) 85%, var(--card-border) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 24px 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Dots on the timeline line */
.timeline-dot {
    position: absolute;
    top: 36px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-red);
    z-index: 10;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--accent-red);
}

/* Timeline Cards */
.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-md), 0 0 15px rgba(var(--accent-red-rgb), 0.08);
}

.timeline-content.highlighted {
    border-color: var(--accent-red);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(var(--accent-red-rgb), 0.25);
    background-color: rgba(var(--accent-red-rgb), 0.04);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-red);
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--accent-red-rgb), 0.1);
    color: var(--accent-red);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Category tags inside timeline */
.timeline-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-red { background-color: rgba(239, 68, 68, 0.1); color: var(--tag-red); }
.text-orange { background-color: rgba(249, 115, 22, 0.1); color: var(--tag-orange); }
.text-purple { background-color: rgba(168, 85, 247, 0.1); color: var(--tag-purple); }
.text-blue { background-color: rgba(59, 130, 246, 0.1); color: var(--tag-blue); }
.text-green { background-color: rgba(16, 185, 129, 0.1); color: var(--tag-green); }

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--card-border);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.02);
}

.main-footer p {
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.8rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Animations & Scroll Interactions (Defaults)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.left {
    transform: translateX(-40px);
}

.scroll-reveal.right {
    transform: translateX(40px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   Responsive Breakpoints & Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar adjust */
    .nav-links {
        display: none; /* simple burger menu / mobile style could go here or keep it simple */
    }
    
    /* Hero adjust */
    .hero-section {
        padding-top: calc(var(--header-height) + 20px);
    }
    .profile-container {
        width: 210px;
        height: 210px;
    }
    
    /* Timeline adjust for single-column mobile view */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item.right {
        left: 0%;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        transform: none;
    }
    
    .scroll-reveal.left,
    .scroll-reveal.right {
        transform: translateY(20px) !important;
    }
}

/* ==========================================================================
   Modals (Impressum & Datenschutz)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--accent-red);
}

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 10px;
}

.modal-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
}

.modal-body p {
    margin-bottom: 14px;
}

.modal-body strong {
    color: var(--text-primary);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}
