/* Definitionen */

:root {
    /* Neutrale Farben */
    --color-black: #000000;
    --color-dark:  #0a0a0a;
    --color-gray:  #5c5c5c;
    --color-lightgray: #c9c9c9;
    --color-white: #ffffff;
    --color-bright: #f5f5f5;
    --color-heading: #E8E8E8;
    --color-text: #e0e0e0;

    /* Serienfarben */
    --color-blue: #000D55;
    --color-blue-light: #0022CE;
    --color-blue-textshadow: #002AFF;
    
    --color-red:  #4a0707;
    --color-red-light:  #7C0C0C;
    --color-red-textshadow: #7C0C0C;
    
    --color-green:#043800;
    --color-green-light:#086800;
    --color-green-textshadow: #086800;

    --color-test1:  #ff00ff;
    --color-test2:#00ff00;
    
    /* Typo */
    --font-claim: Impact, Copperplate, Papyrus, fantasy;
    --font-subline: Impact, Copperplate, Papyrus, fantasy;
    --font-content: Tahoma, Verdana, Segoe, sans-serif;
}

/* Design */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
}


html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-content);
    background-color: var(--color-dark);
    color: var(--color-lightgray);
    line-height: 1.6;
}

a {
    color: var(--color-bright);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
}

a:hover {
    border-bottom-color: var(--accent-color2);
    text-shadow: 0 0 6px var(--accent-color2);
}


/* Struktur */

.hero {
    position: relative;
    /*min-height: 100vh;*/
    background-color: var(--color-dark);
    overflow: hidden;
    display: block;/*display: flex;*/
    align-items: flex-end;
}

/* PNG */

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-silhouette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: auto;*/
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.8s ease; /* Das macht den Übergang weich */
}



/* Text Hero */

.hero-text {
    position: relative;
    z-index: 2;
   /* padding: 4rem 6vw;*/
   padding-inline: 6vw;
    padding-top: clamp(8rem, 45vh, 30rem);
    padding-bottom: clamp(1rem, 1vh, 4rem);
    max-width: 60rem;
}

.hero-text h1 {
    margin: 0;
    font-family: var(--font-claim);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--color-bright);
    line-height: 1.1;
    text-shadow:0px 0px 30px var(--color-blue-light), 1px 1px 60px var(--color-blue);
   /*text-shadow : horizontal-shadow vertical-shadow blur color, horizontal-shadow vertical-shadow blur color;*/
}

.hero-text .subline {
    margin-top: 1rem;
    font-family: var(--font-subline);
    font-size: 1.4rem;
    color: var(--color-lightgray);
    max-width: 40rem;
    opacity: 0;
    transition: opacity 0.8s ease; /* Das macht den Übergang weich */
}


/* Divider */
.section-divider {
    border: none;
    height: 1px;
    background-color: var(--color-blue);
    opacity: 0.6;
}

/* Inhalte */

main {
    padding: 4rem 6vw;
}

section.text, section.intro, section.books-overview, section.bonus {
    max-width: 60rem;
    margin-bottom: 4rem;
}

h2 {
    color: var(--color-bright);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin: 0 0 1rem 0;
}
a{
	color: var(--color-blue-light);
}

/* Theme anwenden */

.theme-blue {
    --accent-color: var(--color-blue);
    --accent-color2: var(--color-blue-light);
    --accent-textshadow: var(--color-blue-textshadow);
}

.theme-red {
    --accent-color: var(--color-red);
    --accent-color2: var(--color-red-light);
    --accent-textshadow: var(--color-red-textshadow);
}

.theme-green {
    --accent-color: var(--color-green);
    --accent-color2: var(--color-green-light);
    --accent-textshadow: var(--color-green-textshadow);
}

.link-more {
    color: var(--accent-color2);
    text-decoration: none;
    font-weight: 600;
}

.link-more:hover {
    text-decoration: underline;
}

/* ************************************ figure - Charakter Detailseiten ******************************************** */

.figure-head h1 {
    margin: 0;
    font-family: var(--font-content);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-bright);
    line-height: 1.15;

    /* ganz dezente Akzent-Kälte */
    text-shadow:
        0 0 25px var(--accent-textshadow), 0 0 25px var(--accent-color2);
}


.figure-subtitle {
    font-family: var(--font-content);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color2);
    margin-top: 0.5rem;
}

.figure-profile {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2.5rem;
    align-items: start;
}
.figure-portrait {
    position: relative;
}

.figure-portrait img {
    border: 1px solid var(--accent-color2);
    box-shadow: 0 0 25px var(--accent-color2);
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .figure-profile {
        grid-template-columns: 1fr;
    }

    .figure-portrait img {
        max-width: 100%;
        margin: 0 auto;
    }

    .figure-head h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
}


/* ************************************ Charakter Übersichtsseite ******************************************** */

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 600px));
    gap: 2rem;    
    justify-content: center;
}


.character-overview {
    padding: 0 2rem 3rem;
}


.page-title {
    font-family: var(--font-subline);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--color-bright);
    margin-bottom: 2.5rem;
    text-shadow: 0 0 20px var(--color-blue-light);
    /* ganz dezente Akzent-Kälte */
    text-shadow:
        0 0 25px var(--accent-textshadow), 0 0 25px var(--accent-color2);

}
.character-card {
    width: 600px;
    height: 300px;

    display: flex;
    background: var(--color-dark);
    border: 2px solid transparent;

    text-decoration: none;
    color: var(--color-bright);

    transition: box-shadow 0.3s ease, transform 0.2s ease;

}



.character-card.theme-blue {
    border-color: var(--color-blue-light);
}

.character-card.theme-green {
    border-color: var(--color-green-light);
}

.character-card.theme-red {
    border-color: var(--color-red-light);
}

/* Glow bei Hover */
.character-card:hover {
    transform: translateY(-4px);
}

.character-card.theme-blue:hover {
    box-shadow: 0 0 25px var(--color-blue-light);
}

.character-card.theme-green:hover {
    box-shadow: 0 0 25px var(--color-green-light);
}

.character-card.theme-red:hover {
    box-shadow: 0 0 25px var(--color-red-light);
}

/* Bilder */
.card-image {
    flex: 0 0 42%;
    max-width: 42%;
    height: 100%;
    overflow: hidden;
}


.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* text */
.card-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}


.card-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.card-content .subtitle, .card-content .rank  {
    margin: 0;
    color: var(--color-bright);
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.85;
    white-space: nowrap;
}
.card-content .rank {
    color: var(--color-bright);

}
.card-content .subtitle {
    font-family: var(--font-content);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-color2);
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .character-grid {
        grid-template-columns: 1fr;
    }

    .character-card {
        min-width: 100%;
        flex-direction: column;
    }

    .card-image {
        height: 260px;
        max-width: 100%;
    }
}


/* ************************************ Buecher Detailseite ******************************************** */

.book-detail {
    max-width: 70rem;
    margin: 4rem auto;
    padding: 0 2rem;
    color: var(--color-bright);
}

/* Kopfbereich: Cover + Headline*/

.book-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.book-cover img {
    display: block;
    max-height: 420px;
    width: auto;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 25px var(--accent-color2);
}


.book-headline h1 {
    font-family: var(--font-claim);
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
    color: var(--color-bright);
    text-shadow: 0 0 25px var(--accent-color2);
}

.book-headline h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    opacity: 0.85;
}

/* Metadaten (Seitenzahl, Jahr, ISBN) */

.book-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

.book-meta li {
    opacity: 0.9;
}

.meta-label {
    opacity: 0.6;
    margin-right: 0.25rem;
}

/* Kaufen-Button */

.btn-buy {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent-color2);
    color: var(--color-bright);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-buy:hover {
   /* background: var(--color-blue-light);
    color: var(--color-dark);*/
    box-shadow: 0 0 15px var(--accent-color2);
}

/* Klappentext */

.book-blurb {
    max-width: 48rem;
    margin-bottom: 4rem;
}

.book-blurb p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Einordnung / Universum / Charaktere */

.book-detail section h3 {
    font-family: var(--font-content);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.book-classification ul,
.book-universe ul,
.book-characters ul {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.book-classification li,
.book-universe li,
.book-characters li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.book-characters a {
    color: var(--color-bright);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
}

.book-characters a:hover {
    border-bottom-color: var(--accent-color2);
    text-shadow: 0 0 6px var(--accent-color2);
}

/* Responsive Verhalten */

@media (max-width: 800px) {
    .book-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-cover img {
        max-height: 360px;
        margin: 0 auto;
    }
}

/* ************************************ Bücher Übersichtsseite ******************************************** */

.book-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, 35rem);
    gap: 1.5rem;
}

.book-cards a{
	border-bottom: none;
}
.book-card {
    display: flex;
    align-items: stretch;

    max-width: 35rem;
    min-height: 220px;

    border: 1px solid rgba(255,255,255,0.15);
    background: var(--color-dark);

    position: relative;
    overflow: hidden;

    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.book-card:hover {
    box-shadow: 0 0 20px var(--color-blue-light);
}


.book-card.theme-blue {
    border-color: var(--color-blue-light);
}

.book-card.theme-green {
    border-color: var(--color-green-light);
}

.book-card.theme-red {
    border-color: var(--color-red-light);
}

/* Glow bei Hover */


.book-card.theme-blue:hover {
    box-shadow: 0 0 25px var(--color-blue-light);
}

.book-card.theme-green:hover {
    box-shadow: 0 0 25px var(--color-green-light);
}

.book-card.theme-red:hover {
    box-shadow: 0 0 25px var(--color-red-light);
}


.book-card-cover {
    flex: 0 0 160px; /* feste Breite */
    background: #000;   
    position: relative; 
    overflow: hidden;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.status-in-progress {
    opacity: 0.6;
}
.book-overview{
	padding: 0 2rem 3rem;
}
.book-overview h1 {
    font-family: var(--font-subline);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--color-bright);
    margin-bottom: 2.5rem;
    text-shadow: 0 0 20px var(--color-blue-light);
    /* ganz dezente Akzent-Kälte */
    text-shadow:
        0 0 25px var(--accent-textshadow), 0 0 25px var(--accent-color2);

}


.book-card-body {
    flex: 1;
    padding: 1.25rem 1.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.book-card-body h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--color-bright);
}

.book-card-body .subtitle {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.book-card-body .meta {
    margin-top: auto;
    font-size: 0.8rem;
    opacity: 0.6;
}

.book-order {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}


/* Flatterband für in Progress */
.book-status-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;

    color: var(--color-bright);
    
    box-shadow:
        0 0 12px rgba(0,0,0,0.4),
        inset 0 -1px 0 rgba(255,255,255,0.2);

    z-index: 5;
}

.book-card.status-in-progress .book-status-banner {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.09),
            rgba(255,255,255,0.09) 8px,
            rgba(0,0,0,0.25) 8px,
            rgba(0,0,0,0.25) 16px
        ),
        var(--accent-color2);
}






.book-card-link {
    text-decoration: none;
    color: inherit;
}


@media (max-width: 700px) {
    .book-card {
        flex-direction: column;
        max-width: 100%;
    }

    .book-card-cover {
        width: 100%;
        height: 260px;
    }
    .book-card-cover img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center top; /* Zeigt den oberen Bereich */
    }
}




/* ************************************ Hintergrund & Welt Übersichtsseite ******************************************** */


.world-overview {

    margin-top: 2rem;
    padding: 0 2rem 3rem;
}
.card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1.5rem;
}
.world-card {
    display: block;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: var(--color-bright);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.world-card:hover {
    border-color: var(--color-blue-light);
    box-shadow: 0 0 20px rgba(80,120,255,0.25);
    transform: translateY(-2px);
}

.card-grid > * {
    min-width: 0;
}

.world-card-inner {
    padding: 1.25rem;
}

.world-card-type {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.world-card-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.world-card-teaser {
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0.85;
    margin: 0;
}




.item-type {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}


/* ************************************ Zusatzmaterial Übersichtsseite ******************************************** */


.Bonus-hub .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 2rem;
}
.bonus-hub{
	
    padding: 0 2rem 3rem;

}

.hub-card {
    display: block;
    padding: 1.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: var(--color-bright);

    transition: transform .2s ease, box-shadow .2s ease;
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--color-blue-light);
}


/* ************************************ Geschichten Übersichtsseite ******************************************** */

.stories-overview{
	padding: 0 2rem 3rem;
}
.stories-grid {
    grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
}

.story-card {
    display: block;
    text-decoration: none;
    color: var(--color-bright);

    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.story-card:hover {
    transform: translateY(-2px);
}

.story-card-inner {
    padding: 1.5rem;
}

.story-card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.story-card-teaser {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    opacity: 0.9;
}

.story-card-meta {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.4;
}

.story-card.theme-blue {
    border-color: var(--color-blue-light);
}

.story-card.theme-green {
    border-color: var(--color-green-light);
}

.story-card.theme-red {
    border-color: var(--color-red-light);
}

/* Glow bei Hover */
.story-card:hover {
    transform: translateY(-4px);
}

.story-card.theme-blue:hover {
    box-shadow: 0 0 25px var(--color-blue-light);
}

.story-card.theme-green:hover {
    box-shadow: 0 0 25px var(--color-green-light);
}

.story-card.theme-red:hover {
    box-shadow: 0 0 25px var(--color-red-light);
}


/* ************************************ Geschichten Detailseite ******************************************** */


.reader-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    
    
}

.reader-nav a {
    color: var(--color-bright);
    opacity: 0.5;
    font-size: 0.95rem;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        text-shadow 0.2s ease;
        
        
    text-decoration: none;    
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;

    border: 1px solid var(--color-lightgray);
    text-align: center;
}


.reader-nav a:hover {
    opacity: 1;
    border-color: var(--color-bright);
    box-shadow: 0 0 12px var(--color-bright);
}


.reader-nav a.empty {
font-size: 0.95rem;
align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;
    border: none;
    cursor: default;
}

.reader-nav a.empty:hover {
box-shadow: none;
}

/*  ****************************** Footer *************************************** */
.footer-nav {
text-align: right;
}
.footer-nav a{
    	color: var(--color-gray);
    	font-size: 6px;
}