/* ==========================================
   MARCO - AUTOREN WEBSITE STYLESHEET
   Style: Cyber-Bard / Tastatur-Magier (IT meets Fantasy)
   ========================================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --bg-dark: #070a13;
    --bg-card: #0c1222;
    --bg-glass: rgba(12, 18, 34, 0.6);
    --border-glass: rgba(0, 242, 254, 0.15);
    --border-glass-hover: rgba(0, 242, 254, 0.4);
    
    --primary: #00f2fe;      /* Magic Teal */
    --primary-glow: rgba(0, 242, 254, 0.4);
    --secondary: #f5a623;    /* Tavern Gold */
    --secondary-glow: rgba(245, 166, 35, 0.4);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 0 15px var(--primary-glow);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Magic Gradients & Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 166, 35, 0.05) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

/* Cyber Matrix/Star Grid Overlay */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: #fff;
    text-transform: uppercase;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0.8rem auto 0;
    border-radius: 2px;
    box-shadow: var(--glow-shadow);
}

p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00b8ff);
    color: #070a13;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary), #e08b10);
    color: #070a13;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.6);
}

/* Layout Sections */
section {
    padding: 7rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 40%, var(--primary) 70%, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 242, 254, 0.1);
}

.hero h2.hero-sub {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: none;
}

.hero h2.hero-sub::after {
    display: none;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Glassmorphic Cards (General) */
.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.08);
}

/* Books Section */
.book-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.book-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .book-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

.book-cover-container {
    perspective: 1000px;
}

.book-cover {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(0, 242, 254, 0.15);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.book-cover:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(0, 242, 254, 0.35);
}

.book-info h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.book-info .genre {
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.book-info p.description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Reviews */
.reviews {
    margin-bottom: 2.5rem;
    display: grid;
    gap: 1.2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--secondary);
    padding: 1.2rem;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.review-card p {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.review-card span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--secondary);
    font-style: normal;
    display: block;
}

.book-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* About Me (Autorenseite) */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Character Sheet (RPG style) */
.character-sheet {
    background: rgba(12, 18, 34, 0.85);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.15);
    position: relative;
    overflow: hidden;
}

.character-sheet::before {
    content: 'CHARACTER SHEET';
    position: absolute;
    top: 5px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--secondary);
    opacity: 0.5;
    letter-spacing: 2px;
}

.char-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(245, 166, 35, 0.2);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.char-avatar {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 10px var(--primary-glow);
}

.char-meta h4 {
    font-size: 1.3rem;
    color: #fff;
}

.char-meta .class-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.char-meta .level {
    display: inline-block;
    background: var(--secondary);
    color: #070a13;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.char-stats {
    display: grid;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.stat-row {
    display: grid;
    gap: 0.4rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-bar {
    height: 100%;
    border-radius: 6px;
}

.stat-bar.hp {
    background: linear-gradient(90deg, #ff4d4d, #ff3333);
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

.stat-bar.mana {
    background: linear-gradient(90deg, #00f2fe, #0077ff);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.stat-bar.stamina {
    background: linear-gradient(90deg, #ffc837, #ff8008);
    box-shadow: 0 0 8px rgba(255, 200, 55, 0.5);
}

.char-skills {
    border-top: 1px solid rgba(245, 166, 35, 0.2);
    padding-top: 1.5rem;
}

.char-skills h5 {
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* Support Section */
.support-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.support-container p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.potion-shop {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.potion-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.8rem;
    width: 180px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.potion-card:hover, .potion-card.active {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.15);
    background: rgba(0, 242, 254, 0.02);
}

.potion-card.active {
    border-width: 2px;
}

.potion-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
    transition: var(--transition);
}

.potion-card:hover .potion-icon {
    transform: scale(1.15) rotate(5deg);
}

.potion-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
}

.potion-cost {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(12, 18, 34, 0.95), rgba(7, 10, 19, 0.95));
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 4rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at top right, rgba(0, 242, 254, 0.08), transparent 50%);
    pointer-events: none;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2::after {
    margin-bottom: 1.5rem;
}

.newsletter-content p {
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-form input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    flex: 1;
    min-width: 250px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Contact Section & Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    background: rgba(12, 18, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Footer & Legal Modals */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #04060b;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-3px);
    text-shadow: 0 0 8px var(--primary-glow);
}

.footer-legal {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

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

/* Modal Popup (Impressum & Datenschutz) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 11, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass-hover);
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-modal:hover {
    color: #fff;
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.modal h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.modal p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Custom Alert / Toast styling for interaction previews */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 5px 25px rgba(0, 242, 254, 0.2);
    color: #fff;
    font-weight: 500;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Book Reading Sample Modals */
.modal-book .modal-content {
    background: #f4ecd8;
    color: #2c1e13;
    border: 2px solid #c5a46e;
    max-width: 800px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.modal-book .close-modal {
    color: #8b6c43;
}

.modal-book .close-modal:hover {
    color: #2c1e13;
}

.modal-book h3 {
    font-family: var(--font-heading);
    color: #634825;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-book h3::after {
    background: linear-gradient(90deg, #c5a46e, #8b6c43);
    margin: 0.5rem auto 1.5rem;
}

.modal-book h4 {
    font-family: var(--font-heading);
    color: #634825;
    text-align: center;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 108, 67, 0.2);
    padding-bottom: 0.5rem;
}

.modal-book p {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: #2c1e13;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.modal-book p.intro-quote {
    font-style: italic;
    text-align: center;
    font-size: 1.2rem;
    color: #523f2d;
    margin-bottom: 2rem;
}

.modal-book .divider {
    text-align: center;
    color: #c5a46e;
    font-size: 1.5rem;
    margin: 2rem 0;
}

/* Language Switcher */
.lang-switch-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

/* Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 101;
}

.nav-toggle:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(7, 10, 19, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        z-index: 99;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    .lang-switch-container {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Hero Responsiveness */
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero h2.hero-sub {
        font-size: 1.15rem;
    }
    .hero p {
        font-size: 1rem;
    }
    
    /* Modal Responsiveness */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.lang-btn {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.lang-btn.active {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* Multilingual visibility toggles */
[lang="en"] .lang-de { display: none !important; }
[lang="de"] .lang-en { display: none !important; }


