/* ========================================
   Sonja Kloevekorn – Stylesheet
   Homepage: dunkel / Unterseiten: hell (Referenz Dröscher)
   ======================================== */

/* --- Variables --- */
:root {
    --color-bg: #000;
    --color-accent: #ff2d7a;
    --color-text: #fff;
    --font-main: 'Arial', sans-serif;
    --nav-height: 60px;

    /* Subpage variables */
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Arial', 'Helvetica Neue', sans-serif;
    --sub-color-text: #1a1a1a;
    --sub-color-bg: #fff;
    --sub-color-muted: #666;
    --sub-color-border: #e0e0e0;
    --sub-max-width: 720px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 18px; /* 1rem = 18px */
}

body, html {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   HOMEPAGE (dunkel)
   ======================================== */

.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    text-transform: uppercase;
    font-weight: normal;
}

.hero-fifty {
    width: 50%;
    height: 100%;
}

.hero-first {
    overflow: hidden;
}

.hero-second {
    color: var(--color-accent);
    padding-left: 1.6rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: clamp(1rem, 4vh, 3rem);
}

.hero-second p {
    background-image: url(../gradient.jpg);
    background-size: 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-second a {
    -webkit-text-fill-color: transparent;
    transition: none;
}

.hero-second a:hover {
    -webkit-text-fill-color: var(--color-text);
    opacity: 1;
}

.hero-first img {
    max-height: 100%;
    min-height: 100vh;
    aspect-ratio: 2/3;
    float: right;
}

.hero-first img.fit-me {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: 50% 10%;
}


/* ========================================
   UNTERSEITEN (hell)
   ======================================== */

body.subpage {
    background: var(--sub-color-bg);
    color: var(--sub-color-text);
    font-family: var(--font-serif);
}

/* ========================================
   SITE HEADER
   ======================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.6rem;
}

.site-header .nav-home {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--sub-color-text);
    text-decoration: none;
    width: 50%;
}

.site-header .nav-home.dark {
    color: var(--color-text);
}

.site-header .nav-home:hover {
    color: var(--color-accent);
}

.site-header .nav-links {
    display: flex;
    gap: 1.6rem;
    width: 50%;
    padding-left: 1.6rem;
}

.site-header .nav-links a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--sub-color-text);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.site-header .nav-links.dark a {
    color: var(--color-text);
}

.site-header .nav-links a:hover {
    color: var(--color-accent);
}

.site-header .nav-links a.active {
    color: var(--color-accent);
}

.nav-social {
    flex-grow: 1;
    text-align: right;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.nav-instagram:hover {
    text-decoration: none;
    border-bottom-color: transparent !important;
}

.nav-instagram svg {
    width: 16px;
    height: 16px;
    fill: var(--sub-color-text);
    vertical-align: middle;
    transition: fill 0.2s;
}

.nav-instagram.dark svg {
    fill: var(--color-text);
}

.nav-instagram:hover svg {
    fill: var(--color-accent);
}

/* ========================================
   SUBPAGE CONTENT
   ======================================== */
body.subpage .page-content {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 100vh;
}

body.subpage .page-content .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.6rem;
}

body.subpage .page-content .container > * {
    max-width: calc(75% - 1.6rem);
}

/* Large page title */
body.subpage .page-title {
    font-family: var(--font-sans);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 1.6rem 0;
    color: var(--sub-color-text);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    padding: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 980px;
    margin: 0 auto;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--sub-color-muted);
}

.site-footer .footer-left {
    color: var(--sub-color-muted);
    width: 50%;
}

.site-footer .footer-right {
    display: flex;
    gap: 1.6rem;
    width: 50%;
    padding-left: 1.6rem;
}
.footer-buy {
    flex-grow: 1;
    text-align: right;
}

.site-footer .footer-right a {
    color: var(--sub-color-muted);
    text-decoration: none;
    font-size: 0.75rem;
}

.site-footer .footer-right a:hover {
    color: var(--sub-color-text);
}

/* ========================================
   MUSIKBOX PAGE
   ======================================== */

body.subpage .book-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sub-color-text);
    margin-bottom: 2rem;
}

body.subpage .book-text p {
    margin: 0 0 1.2rem 0;
}

body.subpage .book-text em {
    font-style: italic;
}

/* Book details table (like Dröscher) */
body.subpage .book-details {
    margin: 2.5rem 0;
}

body.subpage .book-details h2 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sub-color-text);
}

body.subpage .book-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sub-color-border);
    font-size: 0.85rem;
    line-height: 1.5;
}

body.subpage .book-detail-row .label {
    color: var(--sub-color-text);
}

body.subpage .book-detail-row .value {
    color: var(--sub-color-text);
    text-align: right;
}

body.subpage .book-detail-row a {
    color: var(--sub-color-text);
    text-decoration: underline;
}

body.subpage .book-detail-row a:hover {
    opacity: 0.6;
}

/* Buy button */
body.subpage .buy-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.8rem;
    background: var(--sub-color-text);
    color: var(--sub-color-bg);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

body.subpage .buy-btn:hover {
    opacity: 0.7;
}

body.subpage .interview-link {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--sub-color-text);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

body.subpage .interview-link:hover {
    color: var(--color-accent);
}

/* Book cover wrapper */
body.subpage .book-cover-wrapper {
    background: #fff482;
    margin: 0 0 2rem 0;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

body.subpage .book-cover-wrapper img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.subpage .book-cover-wrapper .cover-back {
    display: none;
}

body.subpage .book-cover-wrapper:hover .cover-front {
    display: none;
}

body.subpage .book-cover-wrapper:hover .cover-back {
    display: block;
}

/* Downloads section */
body.subpage .downloads-section {
    margin-top: 2rem;
}

body.subpage .downloads-section h2 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

/* ========================================
   INTERVIEW PAGE
   ======================================== */

body.subpage .interview-subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--sub-color-text);
    margin: 0 0 1.5rem 0;
}

body.subpage .interview-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sub-color-muted);
    margin-bottom: 3rem;
}

body.subpage .interview-body {
    margin: 0;
}

body.subpage .interview-group {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--sub-color-border);
}

body.subpage .interview-group:last-child {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

body.subpage .interview-question {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--sub-color-text);
    margin: 0 0 1rem 0;
}

body.subpage .interview-answer {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sub-color-text);
}

body.subpage .interview-answer p {
    margin: 0 0 1rem 0;
}

body.subpage .interview-answer p:last-child {
    margin-bottom: 0;
}

body.subpage .interview-credit {
    font-size: 0.85rem;
    color: var(--sub-color-muted);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--sub-color-text);
}

/* ========================================
   AUTORIN PAGE
   ======================================== */

body.subpage .autorin-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sub-color-text);
    margin-bottom: 2.5rem;
}

body.subpage .autorin-photo {
    display: block;
    max-width: 100%;
    margin-bottom: 2rem;
}

/* ========================================
   TERMINE PAGE
   ======================================== */

body.subpage .termine-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sub-color-text);
    margin-bottom: 2.5rem;
}

body.subpage .termine-list {
    border-top: 2px solid var(--sub-color-text);
    margin-top: 2rem;
}

body.subpage .termin-entry {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sub-color-border);
    font-size: 0.85rem;
    line-height: 1.5;
}

body.subpage .termin-date {
    font-weight: 700;
    color: var(--sub-color-text);
    width: 100%;
}

body.subpage .termin-title {
    color: var(--sub-color-text);
}

body.subpage .termin-location {
    color: var(--sub-color-muted);
    text-align: right;
}

/* ========================================
   KONTAKT PAGE
   ======================================== */

body.subpage .kontakt-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--sub-color-text);
    margin-bottom: 2.5rem;
}

body.subpage .kontakt-list {
    border-top: 2px solid var(--sub-color-text);
}

body.subpage .kontakt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sub-color-border);
    font-size: 0.85rem;
    line-height: 1.5;
}

body.subpage .kontakt-label {
    font-weight: 700;
    color: var(--sub-color-text);
}

body.subpage .kontakt-value {
    color: var(--sub-color-text);
    text-align: right;
}

body.subpage .kontakt-value a {
    color: var(--sub-color-text);
    text-decoration: underline;
}

body.subpage .kontakt-value a:hover {
    opacity: 0.6;
}

/* ========================================
   LEGAL PAGES (Impressum, Datenschutz)
   ======================================== */

body.subpage .legal-content h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 2.5rem 0;
    color: var(--sub-color-text);
}

body.subpage .legal-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sub-color-text);
    margin-bottom: 1rem;
}

body.subpage .legal-content .placeholder-notice {
    padding: 2rem 0;
    color: var(--sub-color-muted);
    font-size: 0.95rem;
    border: none;
}

body.subpage .legal-content .placeholder-notice p {
    color: var(--sub-color-muted);
}

/* ========================================
   GROUNDING PAGE
   ======================================== */

body.subpage .grounding-page h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sub-color-text);
    margin-bottom: 0.5rem;
}

body.subpage .grounding-page .grounding-subtitle {
    font-size: 0.8rem;
    color: var(--sub-color-muted);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.subpage .grounding-page h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--sub-color-text);
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sub-color-border);
}

body.subpage .grounding-page dl {
    margin: 0;
}

body.subpage .grounding-page dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sub-color-muted);
    margin-top: 1rem;
}

body.subpage .grounding-page dd {
    margin: 0.25rem 0 0;
    line-height: 1.6;
    color: var(--sub-color-text);
}

body.subpage .grounding-page ul {
    padding-left: 1.2rem;
    color: var(--sub-color-text);
    line-height: 1.6;
}

body.subpage .grounding-page .faq-item {
    margin-bottom: 1.5rem;
}

body.subpage .grounding-page .faq-item h3 {
    font-size: 0.9rem;
    color: var(--sub-color-text);
    margin-bottom: 0.5rem;
}

body.subpage .grounding-page .faq-item p {
    color: var(--sub-color-muted);
    line-height: 1.6;
    margin: 0;
}

body.subpage .grounding-page .timestamp {
    font-size: 0.7rem;
    color: var(--sub-color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sub-color-border);
}


/* ========================================
   DARK FOOTER (Homepage)
   ======================================== */
body:not(.subpage) .site-footer .footer-left {
    color: var(--color-text);
}

body:not(.subpage) .site-footer .footer-right a {
    color: var(--color-text);
}

body:not(.subpage) .site-footer .footer-right a:hover {
    color: var(--color-accent);
}

/* ========================================
   MOBILE MENU
   ======================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text);
}

body.subpage .menu-toggle {
    color: var(--sub-color-text);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 900px) {

    /* --- Homepage --- */
    .hero-section {
        flex-wrap: wrap;
        height: auto;
    }

    .hero-fifty {
        width: 100%;
        height: auto;
    }

    .hero-second {
        padding: 0.8rem;
        font-size: 2rem;
    }

    .hero-first img {
        min-height: auto;
        max-height: none;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: 50% 10%;
        float: none;
    }

    /* --- Header (alle Seiten) --- */
    .site-header {
        position: absolute;
        background: var(--sub-color-bg);
    }

    .site-header.dark {
        background: var(--color-bg);
    }

    .site-header nav {
        flex-wrap: wrap;
        padding: 0.8rem;
        max-width: none;
    }

    .site-header .nav-home {
        flex: 1;
        width: auto;
        z-index: 201;
    }

    .menu-toggle {
        display: block;
        z-index: 201;
    }

    /* --- Fullscreen Menu Overlay --- */
    .site-header .nav-links {
        display: none !important;
    }

    .site-header .nav-links.open {
        display: grid !important;
        place-items: center;
        place-content: center;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        gap: 1.6rem;
        padding: 0;
        background: var(--sub-color-bg);
        z-index: 200;
    }

    .site-header.dark .nav-links.open {
        background: var(--color-bg);
    }

    .site-header .nav-links.open a {
        font-size: 1.2rem;
    }

    .site-header .nav-links.open .nav-social {
        text-align: center;
    }

    /* --- Book Cover --- */
    body.subpage .book-cover-wrapper {
        padding: 0.8rem;
        aspect-ratio: auto;
    }

    /* --- Subpage Content --- */
    body.subpage .page-content {
        padding-top: 4rem;
    }

    body.subpage .page-content .container {
        padding: 0.8rem;
    }

    body.subpage .page-content .container > * {
        max-width: 100%;
    }

    body.subpage .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* --- Footer (alle Seiten) --- */
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .site-footer .footer-left,
    .site-footer .footer-right {
        width: 100%;
        padding-left: 0;
    }

    .site-footer .footer-right {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}
