/*
Theme Name: Moth Theme
Author: M. Oth
Description: Ein minimalistisches Onepager-Theme für den Roman "Ein brutales Gedicht".
Version: 26.0 (Simplified No-Poster Logic)
*/

/* --- GRUNDEINSTELLUNGEN & LAYOUT --- */
:root { --font-primary: 'Playfair Display', serif; --color-light: #ffffff; --color-dark: #2b2b2b; --shadow-subtle: 1px 1px 4px rgba(0, 0, 0, 0.5); --shadow-box: 0 4px 15px rgba(0, 0, 0, 0.2); --transition-main: 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-primary); background-color: var(--color-dark); color: var(--color-light); line-height: 1.6; }
.site-container { display: flex; flex-direction: column; min-height: 100vh; }
.fullpage-hero { flex-grow: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; overflow: hidden; }
.site-header { position: absolute; top: 0; left: 0; width: 100%; padding: 2rem; z-index: 20; }
.logo a, .logo img { color: var(--color-light); text-decoration: none; font-size: 1.5rem; font-weight: bold; max-height: 40px; width: auto; text-shadow: var(--shadow-subtle); }

/* --- VIDEO & INHALT LOGIK --- */
.hero-video { position: fixed; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: -1; background-color: var(--color-dark); }
.hero-content { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: 1rem; z-index: 15; position: relative; text-align: center; }
.newsletter-wrapper { max-width: 90%; width: 100%; }
.form-intro-text { font-size: 1.2rem; margin-bottom: 1.5rem; text-shadow: var(--shadow-subtle); transition: opacity 0.4s ease-out, max-height 0.6s ease-out, margin-bottom 0.6s ease-out; max-height: 5em; overflow: hidden; }
.form-intro-text.hidden { opacity: 0; max-height: 0; margin-bottom: 0; pointer-events: none; }

/* --- GLAS-EFFEKT FÜR DAS STARTSEITEN-FORMULAR --- */
.form-container-glass {
    padding: 2rem 1.5rem; /* Innenabstand für den Text */
    
    /* Der Glas-Effekt */
    background: rgba(var(--color-dark-rgb), 0.25); /* Leichte Abdunklung */
    backdrop-filter: blur(10px); /* Der Unschärfe-Effekt! */
    -webkit-backdrop-filter: blur(10px); /* Für Safari-Browser */
    
    border-radius: 10px; /* Abgerundete Ecken sind typisch für diesen Stil */
    border: 1px solid rgba(var(--color-light-rgb), 0.18); /* Ein sehr subtiler Rand */
    
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Ein weicherer Schatten */
    
    /* Stellt sicher, dass das Formular in der Mitte bleibt */
    max-width: 500px;
    margin: 0 auto;
}

/* --- NEWSLETTER-FORMULAR (Deine Version) --- */
.newsletter-form .fluentform { width: 350px; max-width: 100%; margin: 0 auto; }
.newsletter-form .fluentform .ff-el-group { margin-bottom: 1rem; }
.newsletter-form .fluentform .ff-el-group.ff-el-email { position: relative; }

/* --- FIX FÜR FEHLERMELDUNG AUF MOBILGERÄTEN (V2) --- */

/* Wir geben dem gesamten Formular einen eigenen, unmissverständlichen Bezugsrahmen. */
.newsletter-form .fluentform form {
    position: relative;
    z-index: 1; /* Erzeugt einen neuen "Stacking Context" */
}

/* Die Fehlermeldung bekommt einen eigenen z-index, damit sie über allem liegt. */
.newsletter-form .fluentform .error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    color: var(--color-light);
    text-shadow: 1px 1px 2px #000;
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5; /* Wichtig: Ein höherer z-index als der des Formulars */
}

.newsletter-form .fluentform .ff-el-group:last-child { margin-bottom: 1rem; }
.newsletter-form .fluentform input[type="email"], .newsletter-form .fluentform button[type="submit"] { width: 100%; height: 54px; border-radius: 50px; padding: 0.75rem 1.5rem; font-family: var(--font-primary); font-size: 1rem; box-shadow: var(--shadow-box); transition: background-color 0.3s; -webkit-appearance: none; margin: 0; }
.newsletter-form .fluentform input[type="email"] { background: rgba(var(--color-dark-rgb), 0.8); border: 2px solid var(--color-light); color: var(--color-light); }
.newsletter-form .fluentform input[type="email"]::placeholder { color: var(--color-light); opacity: 0.7; }
.newsletter-form .fluentform input[type="email"]:focus, .newsletter-form .fluentform input[type="email"]:hover { background-color: var(--color-dark); }
.newsletter-form .fluentform button[type="submit"] { background: rgba(var(--color-light-rgb), 0.8) !important; border: 2px solid var(--color-dark) !important; color: var(--color-dark) !important; font-weight: bold; cursor: pointer; text-shadow: none; }
.newsletter-form .fluentform button[type="submit"]:hover { background: var(--color-light) !important; }
.newsletter-form .fluentform .error { position: absolute; top: 100%; left: 0; right: 0; margin-top: 0.5rem; color: var(--color-light); text-shadow: 1px 1px 2px #000; padding: 0; text-align: center; font-size: 0.9rem; font-weight: bold; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.newsletter-form .fluentform .ff-el-is-error .error { opacity: 1; }

@media (min-width: 501px) {
.newsletter-form .fluentform { min-width: 60%; }
.newsletter-form .fluentform form { display: flex; gap: 15px; align-items: flex-start; }
.newsletter-form .fluentform .ff-el-group { margin-bottom: 0; }
.newsletter-form .fluentform .ff-el-input--content { flex: 2; }
.newsletter-form .fluentform .ff-btn-wrapper { flex: 1; }
}

/* --- SHOP-LINKS & FOOTER --- */
.shop-links-nav { position: absolute; bottom: 60px; left: 0; width: 100%; padding: 0 2rem; z-index: 10; }
.shop-links-container { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: center; width: 100%; flex-wrap: wrap; gap: 1.5rem 2rem; }
.shop-links-container a { color: var(--color-light); text-decoration: none; font-size: 1.1rem; transition: opacity 0.3s; text-align: center; text-shadow: var(--shadow-subtle); }
.shop-links-container a:hover { opacity: 0.8; }
.site-footer { flex-shrink: 0; background-color: var(--color-dark); box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3); color: var(--color-light); text-align: center; padding: 1.5rem 1rem; font-size: 0.9rem; z-index: 25; position: relative; }
.site-footer .footer-content-container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer p { margin: 0; }
.footer-legal-nav .footer-menu-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; }
.footer-legal-nav .footer-menu-list li:not(:first-child)::before { content: '|'; position: absolute; left: -0.5rem; opacity: 0.7; }
.footer-legal-nav a { color: var(--color-light); text-decoration: underline; }
p.copyright{
display: none;
}

/* --- RESPONSIVE STILE --- */
@media (max-width: 768px) {
.fullpage-hero { justify-content: flex-start; overflow-y: auto; overflow-x: hidden; }
.site-header, .shop-links-nav { position: relative; bottom: auto; left: auto; }
.site-header { padding: 1.5rem 1rem; }
.hero-content { margin-top: 1.5rem; padding-bottom: 6rem; flex-grow: 1; }
.shop-links-nav { padding: 1rem 1rem 3rem 1rem; flex-shrink: 0; }
}

/* --- STILE FÜR STATISCHE SEITEN (Impressum, etc.) --- */

/* Der Hauptcontainer muss nur noch sicherstellen, dass sein Inhalt
   über dem fixierten Video liegt. */
.main-content-static {
    position: relative;
    z-index: 1; /* Wichtig, damit der Inhalt scrollbar ist */
}

/* Der Header wird einfach normal positioniert */
.site-header-static {
    width: 100%;
    padding: 2rem;
}

/* Der Inhalts-Wrapper zentriert sich und bekommt den Look */
.content-wrapper-static {
    max-width: 800px;
    width: 100%;
    margin: 4rem auto 6rem auto;
    padding: 2.5rem;
    background-color: rgba(var(--color-dark-rgb), 0.85);
    border: 2px solid var(--color-light);
    border-radius: 5px;
    box-shadow: var(--shadow-box);
}

/* Die restlichen Text-Stile bleiben gleich */
.content-wrapper-static .entry-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-light);
}

.content-wrapper-static .entry-content a {
    color: var(--color-light);
    text-decoration: underline;
}

/* Responsive Stile bleiben auch einfach */
@media (max-width: 768px) {
    .site-header-static {
        padding: 1.5rem 1rem;
    }
    .content-wrapper-static {
        margin: 2rem 1rem 4rem 1rem;
        padding: 1.5rem;
    }
    .content-wrapper-static .entry-title {
        font-size: 2rem;
    }
}

/* --- FIX FÜR DARK READER & ÄHNLICHE ERWEITERUNGEN --- */
.hero-video {
    isolation: isolate; /* Verhindert, dass mix-blend-mode das Video unsichtbar macht */
}

/* --- VIDEO-STEUERELEMENTE VERSTECKEN --- */
.hero-video::-webkit-media-controls {
    display: none !important;
}
video::-webkit-media-controls {
    display: none !important;
}