/* ========================================
   SCHATTENDEICH Website Styles
   Maritime-Mystical Theme
   ======================================== */

/* CSS Variables for theming */
:root {
    /* Colors - Deep ocean blues and mystical greens */
    --ocean-deep: #0a2540;
    --ocean-medium: #1a4d6f;
    --ocean-light: #2d6a8f;
    --sea-foam: #47b5a3;
    --mystical-green: #2dd4bf;
    --sand-light: #f5ebe0;
    --sand-dark: #d4a574;
    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --accent-fire: #ff6b35;
    --accent-gold: #ffd60a;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Crimson Text', 'Georgia', serif;
    --font-accent: 'Cinzel', serif;
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--ocean-deep);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   Animated Ocean Background
   ======================================== */

.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        180deg,
        var(--ocean-deep) 0%,
        var(--ocean-medium) 50%,
        var(--ocean-light) 100%
    );
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,0 600,60 T1200,60 L1200,120 L0,120 Z" fill="%23rgba(45,212,191,0.1)"/></svg>');
    background-size: 600px 120px;
    animation: wave-animation 15s linear infinite;
}

.wave1 {
    opacity: 0.3;
    animation-duration: 20s;
}

.wave2 {
    opacity: 0.2;
    animation-duration: 15s;
    animation-direction: reverse;
}

.wave3 {
    opacity: 0.1;
    animation-duration: 25s;
}

@keyframes wave-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-600px); }
}

/* ========================================
   Header
   ======================================== */

.site-header {
    background: linear-gradient(
        135deg,
        rgba(10, 37, 64, 0.95) 0%,
        rgba(26, 77, 111, 0.9) 100%
    );
    padding: var(--space-xl) 0;
    text-align: center;
    border-bottom: 3px solid var(--mystical-green);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-fire) 25%,
        var(--mystical-green) 50%,
        var(--accent-fire) 75%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.site-title {
    font-family: var(--font-accent);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-shadow: 
        0 0 20px rgba(45, 212, 191, 0.6),
        0 0 40px rgba(45, 212, 191, 0.4),
        3px 3px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: var(--space-sm);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { 
        text-shadow: 
            0 0 20px rgba(45, 212, 191, 0.6),
            0 0 40px rgba(45, 212, 191, 0.4),
            3px 3px 10px rgba(0, 0, 0, 0.8);
    }
    50% { 
        text-shadow: 
            0 0 30px rgba(45, 212, 191, 0.8),
            0 0 60px rgba(45, 212, 191, 0.6),
            3px 3px 10px rgba(0, 0, 0, 0.8);
    }
}

.subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-style: italic;
    color: var(--sea-foam);
    margin-bottom: var(--space-sm);
}

.tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--sand-light);
    opacity: 0.9;
}

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

.main-nav {
    background: rgba(10, 37, 64, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(45, 212, 191, 0.3);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.nav-list a {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mystical-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover {
    color: var(--mystical-green);
}

.nav-list a:hover::after {
    width: 100%;
}

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

.hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(
        135deg,
        rgba(26, 77, 111, 0.3) 0%,
        rgba(45, 106, 143, 0.2) 100%
    );
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-light);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--sand-light);
    margin-bottom: var(--space-md);
    line-height: 1.9;
}

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

section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--mystical-green) 50%,
        transparent 100%
    );
}

/* ========================================
   About Section
   ======================================== */

.about-section {
    background: linear-gradient(
        135deg,
        rgba(45, 106, 143, 0.2) 0%,
        rgba(26, 77, 111, 0.3) 100%
    );
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.about-card {
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: 15px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--mystical-green);
    box-shadow: 0 10px 30px rgba(45, 212, 191, 0.3);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--mystical-green);
    margin-bottom: var(--space-sm);
}

.about-card p {
    color: var(--sand-light);
    line-height: 1.8;
}

/* ========================================
   Books Section
   ======================================== */

.books-section {
    background: linear-gradient(
        135deg,
        rgba(26, 77, 111, 0.3) 0%,
        rgba(45, 106, 143, 0.2) 100%
    );
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.book-card {
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: 20px;
    border: 2px solid rgba(45, 212, 191, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--accent-fire) 0%,
        var(--mystical-green) 50%,
        var(--accent-fire) 100%
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--mystical-green);
    box-shadow: 0 15px 40px rgba(45, 212, 191, 0.4);
}

.book-card:hover::before {
    transform: scaleX(1);
}

.book-number {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xs);
}

.book-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--mystical-green);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.book-description {
    color: var(--sand-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    font-size: 0.85rem;
    color: var(--text-light);
    background: rgba(45, 212, 191, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(45, 212, 191, 0.4);
}

.books-note {
    text-align: center;
    color: var(--sand-light);
    font-style: italic;
    opacity: 0.8;
    margin-top: var(--space-md);
}

/* ========================================
   Characters Section
   ======================================== */

.characters-section {
    background: linear-gradient(
        135deg,
        rgba(45, 106, 143, 0.2) 0%,
        rgba(26, 77, 111, 0.3) 100%
    );
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.character-card {
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: 15px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.character-card:hover {
    transform: translateY(-8px);
    border-color: var(--mystical-green);
    box-shadow: 0 12px 35px rgba(45, 212, 191, 0.3);
}

.character-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.5));
}

.character-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--mystical-green);
    margin-bottom: var(--space-xs);
}

.character-role {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.character-description {
    color: var(--sand-light);
    line-height: 1.7;
}

/* ========================================
   World Section
   ======================================== */

.world-section {
    background: linear-gradient(
        135deg,
        rgba(26, 77, 111, 0.3) 0%,
        rgba(45, 106, 143, 0.2) 100%
    );
}

.world-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.world-item {
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: 15px;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.world-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--mystical-green);
    margin-bottom: var(--space-sm);
}

.world-item ul {
    list-style: none;
    color: var(--sand-light);
}

.world-item li {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
    position: relative;
}

.world-item li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--mystical-green);
}

.world-item strong {
    color: var(--accent-gold);
}

/* ========================================
   Author Section
   ======================================== */

.author-section {
    background: linear-gradient(
        135deg,
        rgba(45, 106, 143, 0.2) 0%,
        rgba(26, 77, 111, 0.3) 100%
    );
}

.author-content {
    max-width: 900px;
    margin: 0 auto;
}

.author-card {
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: 20px;
    border: 2px solid rgba(45, 212, 191, 0.4);
    position: relative;
    overflow: hidden;
}

.author-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(45, 212, 191, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.author-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.author-avatar {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.2);
    border-radius: 50%;
    border: 3px solid var(--mystical-green);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
    flex-shrink: 0;
}

.author-names {
    flex-grow: 1;
}

.author-name {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    color: var(--mystical-green);
    margin-bottom: var(--space-xs);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.author-realname {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-style: italic;
}

.author-bio {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-md);
}

.author-bio p {
    color: var(--sand-light);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.author-bio p:last-child {
    margin-bottom: 0;
}

.author-bio strong {
    color: var(--mystical-green);
    font-weight: 600;
}

.author-quote {
    background: rgba(45, 212, 191, 0.1);
    padding: var(--space-md);
    border-radius: 10px;
    border-left: 4px solid var(--mystical-green);
    position: relative;
    z-index: 1;
    margin-top: var(--space-lg);
}

.author-quote-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--sand-light);
    margin-bottom: var(--space-sm);
}

.author-quote cite {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-gold);
    font-style: normal;
}

/* Responsive für Author Section */
@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .author-realname {
        font-size: 1.1rem;
    }
}

/* ========================================
   Quotes Section
   ======================================== */

.quotes-section {
    background: linear-gradient(
        135deg,
        rgba(45, 106, 143, 0.2) 0%,
        rgba(26, 77, 111, 0.3) 100%
    );
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.quote-card {
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: 15px;
    border-left: 4px solid var(--mystical-green);
    position: relative;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(45, 212, 191, 0.2);
    font-family: var(--font-display);
    line-height: 1;
}

.quote-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--sand-light);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.quote-cite {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-style: normal;
}

/* ========================================
   Timeline Section
   ======================================== */

.timeline-section {
    background: linear-gradient(
        135deg,
        rgba(26, 77, 111, 0.3) 0%,
        rgba(45, 106, 143, 0.2) 100%
    );
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--mystical-green) 0%,
        var(--accent-fire) 100%
    );
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
}

.timeline-marker {
    position: absolute;
    left: -48px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--ocean-deep);
    border: 3px solid var(--mystical-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}

.timeline-content {
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: 10px;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--mystical-green);
    margin-bottom: var(--space-xs);
}

.timeline-content p {
    color: var(--sand-light);
}

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

.site-footer {
    background: rgba(10, 37, 64, 0.95);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 3px solid var(--mystical-green);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-display);
    color: var(--mystical-green);
    margin-bottom: var(--space-sm);
}

.footer-section p,
.footer-section li {
    color: var(--sand-light);
    margin-bottom: var(--space-xs);
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--sand-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-tags {
    list-style: none;
}

.footer-tags li {
    padding-left: var(--space-sm);
    position: relative;
}

.footer-tags li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--mystical-green);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--sand-light);
}

.footer-quote {
    margin-top: var(--space-sm);
    font-family: var(--font-display);
    font-style: italic;
    color: var(--mystical-green);
    font-size: 1.2rem;
}

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

@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .timeline {
        padding-left: var(--space-md);
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -38px;
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }
    
    .books-grid,
    .about-grid,
    .characters-grid,
    .world-content,
    .quotes-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Animations & Effects
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth scroll offset for sticky nav */
section[id] {
    scroll-margin-top: 100px;
}
