/* irrglaube.css - Seitenspezifische Stile fuer irrglaube.html
   Teil des Alchemysto-Projekts (AMY_7)
   Eingebunden nach css/style.css
*/

/* ==========================================================================
   IRRGLAUBE PAGE - FULL-WIDTH BEREICHE (SECTIONS) FOR TILES
   ========================================================================== */

/* Remove constraints on the myths explorer section container */
.page-irrglaube #mythen-bereich {
    padding: 0;
    margin: 0;
}

.page-irrglaube .myth-contents {
    max-width: 100% !important;
    width: 100% !important;
    gap: 0 !important;
}

/* Transform myth-tile into a full-width section/area */
.page-irrglaube .myth-tile {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(168, 140, 103, 0.15) !important;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    margin: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.4s ease, border-color 0.4s ease !important;
}

/* Border on top of first area for a beautiful frame */
.page-irrglaube .myth-tile:first-of-type {
    border-top: 1px solid rgba(168, 140, 103, 0.15) !important;
}

.page-irrglaube .myth-tile:hover {
    background: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(27, 99, 138, 0.3) !important;
}

.page-irrglaube .myth-tile.open {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(27, 99, 138, 0.4) !important;
}

/* Centered vertical header structure */
.page-irrglaube .myth-tile-header {
    width: 100% !important;
    display: block !important;
    padding: 3rem 0 !important;
    text-align: center !important;
    background: none !important;
    border: none !important;
}

/* Inside container to keep it aligned and centered */
.page-irrglaube .myth-header-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem !important;
    gap: 1.75rem !important;
    text-align: center !important;
}

.page-irrglaube .myth-title-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

/* Heading title adjustment - centered */
.page-irrglaube .myth-tile-title {
    display: block !important;
    font-size: clamp(1.4rem, 1.3vw + 1.1rem, 2rem) !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    font-family: var(--font-serif) !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Number badge adjustment - centered above title */
.page-irrglaube .tile-num {
    font-family: var(--font-sans) !important;
    font-size: clamp(1rem, 0.4vw + 0.85rem, 1.25rem) !important;
    font-weight: 700 !important;
    color: var(--gold-dark) !important;
    opacity: 0.85 !important;
    letter-spacing: 0.2em !important;
    margin: 0 auto !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Chevron positioning - centered below title */
.page-irrglaube .myth-tile-chevron {
    margin: 0 auto !important;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.2, 1), background-color 0.4s ease, color 0.4s ease !important;
}

/* Inner content alignment to site container */
.page-irrglaube .myth-tile-inner {
    padding: 1.5rem 0 4rem 0 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .page-irrglaube #mythen-bereich {
        margin: 0;
    }

    .page-irrglaube .myth-tile-header {
        padding: 2.25rem 0 !important;
    }

    .page-irrglaube .myth-title-left {
        gap: 0.85rem !important;
    }

    .page-irrglaube .myth-header-container {
        padding: 0 1.5rem !important;
        gap: 1.25rem !important;
    }

    .page-irrglaube .myth-tile-inner {
        padding: 1rem 0 3rem 0 !important;
    }

    /* Bereich 01 auf Mobile: bildschirmfuellend, keine Kachel-Optik */
    .page-irrglaube #myth-1 {
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }
}

/* Visually Hidden fuer Screenreader & SEO, unsichtbar fuer User */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   IRRGLAUBE BEREICHE 01, 03 & 05 SPECIFIC DARK THEME (DUNKELBLAU & GOLD)
   ========================================================================== */

/* Spezifisches Farbschema fuer die Bereiche 01, 03 und 05 - Edles Dunkelblau mit 90% weissen Schriften */
.page-irrglaube #myth-1,
.page-irrglaube #myth-3,
.page-irrglaube #myth-5 {
    position: relative;
    background: #030c1b !important;
    border-bottom: 1px solid rgba(168, 140, 103, 0.25) !important;
    z-index: 1;
    overflow: hidden;
    transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Pseudo-Elemente fuer absolut fluesse, hardwarebeschleunigte 120Hz-Hintergrund-Transitions */
.page-irrglaube #myth-1::before,
.page-irrglaube #myth-3::before,
.page-irrglaube #myth-5::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #030c1b 0%, #0a1c36 50%, #030c1b 100%);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-irrglaube #myth-1::after,
.page-irrglaube #myth-3::after,
.page-irrglaube #myth-5::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #06142c 0%, #10284c 50%, #06142c 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-irrglaube #myth-1:hover::after,
.page-irrglaube #myth-3:hover::after,
.page-irrglaube #myth-5:hover::after {
    opacity: 1;
}

/* Im geoeffneten Zustand bleibt das edle Dunkelblau stabil bestehen */
.page-irrglaube #myth-1.open::after,
.page-irrglaube #myth-3.open::after,
.page-irrglaube #myth-5.open::after {
    opacity: 0 !important;
}

.page-irrglaube #myth-1.open,
.page-irrglaube #myth-3.open,
.page-irrglaube #myth-5.open {
    border-color: rgba(201, 169, 124, 0.4) !important;
}

.page-irrglaube #myth-1 .myth-tile-title,
.page-irrglaube #myth-3 .myth-tile-title,
.page-irrglaube #myth-5 .myth-tile-title {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-irrglaube #myth-1 .myth-paragraph,
.page-irrglaube #myth-3 .myth-paragraph,
.page-irrglaube #myth-5 .myth-paragraph {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-irrglaube #myth-1 .table-title,
.page-irrglaube #myth-3 .table-title,
.page-irrglaube #myth-5 .table-title {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-irrglaube #myth-1 .table-sources,
.page-irrglaube #myth-3 .table-sources,
.page-irrglaube #myth-5 .table-sources {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-irrglaube #myth-1 .myth-tile-chevron,
.page-irrglaube #myth-3 .myth-tile-chevron,
.page-irrglaube #myth-5 .myth-tile-chevron {
    color: var(--gold-light) !important;
    background: rgba(201, 169, 124, 0.1) !important;
}

.page-irrglaube #myth-1.open .myth-tile-chevron,
.page-irrglaube #myth-3.open .myth-tile-chevron,
.page-irrglaube #myth-5.open .myth-tile-chevron {
    background: var(--gold-dark) !important;
    color: var(--white) !important;
}

/* Spezifisches Styling fuer die Quote-Callouts in den dunklen Bereichen */
.page-irrglaube #myth-1 .myth-quote-callout,
.page-irrglaube #myth-3 .myth-quote-callout,
.page-irrglaube #myth-5 .myth-quote-callout {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(168, 140, 103, 0.08) !important;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
