:root {
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #b7b7b7;
    --line: rgba(255,255,255,0.14);
    --panel: rgba(255,255,255,0.045);
    --accent-gold: #f1d27b;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 56px;
    --space-7: 88px;
    --space-8: 112px;
    --card-radius: 8px;
    --card-title-row: 96px;
    --body-leading: 24px;
    --font-display: 'Cormorant Garamond', serif;
    --font-ui: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 12%, rgba(255,255,255,0.12), transparent 24rem),
        #000000;
    color: var(--text-main);
    font-family: var(--font-ui);
    line-height: var(--body-leading);
}

@keyframes editorialImageReveal {
    from {
        opacity: 0;
        transform: scale(1.025);
        filter: saturate(0.72) contrast(0.96);
    }
    to {
        opacity: 0.92;
        transform: scale(1);
        filter: saturate(0.92) contrast(1.08);
    }
}

a {
    color: #ffffff;
}

.page-shell {
    width: min(1080px, calc(100% - 96px));
    margin: 0 auto;
    padding: 34px 0 80px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.brand {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 2px;
}

.nav-toggle {
    display: none;
}

.topbar nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar nav a {
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
    letter-spacing: 1.6px;
    text-decoration: none;
    text-transform: uppercase;
}

.topbar nav a[aria-current="page"] {
    color: #f1d27b;
}

.topbar nav a.nav-live {
    position: relative;
}
.topbar nav a.nav-live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #f1d27b;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(241,210,123,0.8);
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero {
    max-width: 760px;
    margin-bottom: var(--space-8);
}

.kicker {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    margin: 0 0 20px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 var(--space-3);
}

h3 {
    font-size: 1.45rem;
    margin: 0;
}

p {
    color: rgba(255,255,255,0.76);
    margin: 0 0 var(--space-3);
    line-height: var(--body-leading);
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.nasa-editorial-figure {
    position: relative;
    margin: calc(var(--space-8) * -0.55) 0 var(--space-8);
    min-height: clamp(360px, 58vw, 680px);
    border-radius: var(--card-radius);
    overflow: hidden;
    isolation: isolate;
    background: #050506;
    box-shadow: 0 32px 120px rgba(0,0,0,0.44);
}

.nasa-editorial-figure::before,
.nasa-editorial-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.nasa-editorial-figure::before {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.14), transparent 36%, rgba(0,0,0,0.82)),
        radial-gradient(circle at 24% 28%, transparent 0 22%, rgba(0,0,0,0.34) 62%, rgba(0,0,0,0.72));
}

.nasa-editorial-figure::after {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: inherit;
}

.nasa-editorial-figure img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    opacity: 0.92;
    filter: saturate(0.92) contrast(1.08);
    transform-origin: 50% 50%;
    animation: editorialImageReveal 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nasa-editorial-figure.is-observation img {
    object-position: 54% 42%;
}

.nasa-editorial-figure.is-photography {
    min-height: clamp(160px, 22vw, 260px) !important;
    height: clamp(160px, 22vw, 260px) !important;
    box-shadow: none !important;
    background: #000000 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin-bottom: clamp(100px, 12vw, 140px) !important;
}

.nasa-editorial-figure.is-photography::before {
    background:
        /* Tight top & bottom fade to merge with background without obscuring moon */
        linear-gradient(180deg, #000000 0%, transparent 12%, transparent 88%, #000000 100%),
        /* Fade left & right to blend with background */
        linear-gradient(90deg, #000000 0%, transparent 10%, transparent 90%, #000000 100%),
        /* Radial vignette */
        radial-gradient(circle, transparent 50%, rgba(0,0,0,0.5) 80%, #000000 100%) !important;
    opacity: 1 !important;
    border-radius: 0 !important;
}

.nasa-editorial-figure.is-photography::after {
    display: none !important;
}

.nasa-editorial-figure.is-photography img {
    border-radius: 0 !important;
    object-position: 50% 28%; /* Shifted vertically to ensure the moon is highly visible */
}

.nasa-editorial-figure.is-photography figcaption {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    padding: 0 !important;
    text-align: left !important;
}

.nasa-editorial-figure.is-fullmoon img {
    object-position: 50% 50%;
}

.celestial-object-figure.is-fullmoon {
    grid-template-columns: minmax(260px, 0.86fr) minmax(340px, 0.92fr);
}

.celestial-object-figure.is-fullmoon img {
    width: min(30vw, 340px);
    justify-self: center;
}

.nasa-editorial-figure.is-fullmoon-year img {
    object-position: 50% 50%;
}

.nasa-editorial-figure.is-newmoon img {
    object-position: 50% 42%;
}

.nasa-editorial-figure.is-zodiacal img {
    object-position: 50% 36%;
}

.celestial-object-figure {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 0.68fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    min-height: 0;
    margin: calc(var(--space-8) * -0.42) 0 var(--space-8);
    padding: clamp(18px, 3vw, 34px) 0;
    overflow: visible;
    background:
        radial-gradient(circle at 76% 48%, rgba(241,210,123,0.18), transparent 26%),
        linear-gradient(90deg, rgba(255,255,255,0.035), transparent 54%);
    box-shadow: none;
    border-radius: 0;
}

.celestial-object-figure::before {
    background:
        radial-gradient(circle at 78% 50%, rgba(241,210,123,0.14), transparent 34%),
        linear-gradient(90deg, rgba(0,0,0,0.24), transparent 58%);
    opacity: 1;
}

.celestial-object-figure::after {
    display: none;
}

.celestial-object-figure img {
    justify-self: end;
    width: min(34vw, 380px);
    height: auto;
    min-height: 0;
    object-fit: contain;
    opacity: 0.96;
    filter:
        drop-shadow(0 34px 74px rgba(0,0,0,0.62))
        drop-shadow(0 0 34px rgba(241,210,123,0.16));
    z-index: 3;
}

.celestial-object-figure figcaption {
    position: relative;
    inset: auto;
    max-width: 520px;
    align-self: center;
    padding: clamp(22px, 3vw, 34px);
    border-top: 1px solid rgba(241,210,123,0.26);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(90deg, rgba(255,255,255,0.045), transparent);
    color: rgba(255,255,255,0.82);
}

.celestial-object-figure figcaption::before {
    content: none;
}

.nasa-editorial-figure figcaption {
    position: absolute;
    left: clamp(24px, 4vw, 48px);
    right: clamp(24px, 4vw, 48px);
    bottom: clamp(22px, 4vw, 44px);
    z-index: 3;
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,0.84);
    font-size: 0.88rem;
    line-height: 1.55;
}

.nasa-editorial-figure figcaption span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.58);
    font-size: 0.68rem;
    letter-spacing: 1.9px;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover {
    transform: translateY(-2px);
    border-color: rgba(226,201,118,0.6);
    background: linear-gradient(180deg, rgba(226,201,118,0.15), rgba(255,255,255,0.05));
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 20px rgba(226,201,118,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
    color: #fff;
    text-shadow: 0 0 10px rgba(226,201,118,0.4);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    align-items: stretch;
    margin: var(--space-6) 0 var(--space-8);
}

.card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--card-radius);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(0,0,0,0.2));
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    padding: 36px;
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: var(--space-4);
    min-height: 100%;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(226,201,118,0.4);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 24px rgba(226,201,118,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.card h2,
.card h3 {
    margin: 0;
    line-height: 1.12;
    align-self: start;
}

.card p {
    margin: 0;
    align-self: start;
    line-height: var(--body-leading);
}

.card p:last-child {
    margin-bottom: 0;
}

.section {
    border-top: none;
    padding-top: var(--space-7);
    margin-top: var(--space-8);
}

.gear-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    align-items: stretch;
    margin-top: var(--space-6);
}

.gear-item {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--card-radius);
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(0,0,0,0.2));
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    padding: 36px;
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: var(--space-4);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.gear-item:hover {
    transform: translateY(-4px);
    border-color: rgba(226,201,118,0.4);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 24px rgba(226,201,118,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.gear-item h3 {
    margin: 0;
    line-height: 1.12;
    align-self: start;
}

.gear-item p {
    margin: 0;
    line-height: var(--body-leading);
    align-self: start;
}

.note {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
}

.faq-list {
    display: grid;
    gap: 0;
    max-width: 880px;
    border-bottom: 1px solid var(--line);
}

.faq-item {
    border-top: 1px solid var(--line);
    padding: 0;
}

.faq-item summary {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    line-height: 1.12;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--accent-gold);
    font-family: var(--font-ui);
    font-size: 1.2rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    max-width: 760px;
    padding: 0 0 var(--space-4);
}

.zodiac-page-shell .hero {
    max-width: 820px;
}

.zodiac-current-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(280px, 0.92fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin: 0 0 var(--space-8);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.06), transparent 46%),
        rgba(255,255,255,0.028);
    box-shadow: 0 28px 100px rgba(0,0,0,0.34);
}

.zodiac-current-hero {
    position: relative;
    min-height: clamp(440px, 58vw, 720px);
    padding: 0;
    overflow: hidden;
    align-items: stretch;
}

.zodiac-current-hero .zodiac-current-visual {
    position: absolute;
    inset: 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
}

.zodiac-current-hero .zodiac-current-visual::after {
    background:
        linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 34%, rgba(0,0,0,0.18) 72%, rgba(0,0,0,0.38) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.58) 100%);
}

.zodiac-current-hero .zodiac-current-copy {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    padding: clamp(28px, 5vw, 56px);
    align-self: end;
}

.zodiac-current-hero .zodiac-current-copy h2 {
    font-size: clamp(3.6rem, 8vw, 7rem);
    line-height: 0.96;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 8px 34px rgba(0,0,0,0.72);
}

.zodiac-current-hero .zodiac-current-copy p,
.zodiac-current-hero .zodiac-current-meta {
    max-width: 56ch;
    color: rgba(255,255,255,0.88);
}

.zodiac-current-hero .today-tags {
    max-width: 640px;
}

.zodiac-current-copy h2 {
    margin-bottom: 12px;
}

.zodiac-current-meta {
    color: rgba(241,210,123,0.82);
    font-size: 0.78rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.zodiac-current-visual {
    position: relative;
    min-height: clamp(320px, 44vw, 520px);
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #060607;
}

.zodiac-current-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 36%, rgba(0,0,0,0.62)),
        radial-gradient(circle at 50% 22%, rgba(255,255,255,0.1), transparent 42%);
    pointer-events: none;
}

.zodiac-current-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
}

.zodiac-card-grid {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.zodiac-detail-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
    gap: clamp(22px, 3.5vw, 44px);
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: var(--space-6);
}

.zodiac-detail-visual {
    position: relative;
    min-height: clamp(280px, 36vw, 420px);
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #060607;
    border: 1px solid rgba(255,255,255,0.08);
}

.zodiac-detail-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 28%, rgba(0,0,0,0.58)),
        radial-gradient(circle at 50% 18%, rgba(255,255,255,0.08), transparent 36%);
    pointer-events: none;
}

.zodiac-detail-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
}

.zodiac-detail-copy {
    display: grid;
    align-content: start;
    gap: 18px;
}

.zodiac-detail-copy h2 {
    margin: 0;
}

.zodiac-detail-copy > p {
    margin: 0;
    max-width: 64ch;
}

.zodiac-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zodiac-detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.zodiac-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.zodiac-detail-grid article {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--card-radius);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.zodiac-detail-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(226,201,118,0.3);
}

.zodiac-detail-grid h3 {
    font-size: 1.18rem;
}

.zodiac-detail-grid p {
    margin: 0;
}

footer {
    border-top: 1px solid var(--line);
    margin-top: 60px;
    padding-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

footer a {
    color: rgba(255,255,255,0.62);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 48px, 1060px);
        padding-top: 24px;
    }

    .topbar {
        align-items: center;
        margin-bottom: 48px;
        position: relative;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 110;
        position: relative;
    }
    
    .hamburger-bar {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-main, #ffffff);
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
        transform-origin: left center;
    }
    
    .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
        transform: rotate(45deg) translate(2px, -1px);
        background-color: var(--accent-gold, #f1d27b);
    }
    .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg) translate(2px, 1px);
        background-color: var(--accent-gold, #f1d27b);
    }

    .topbar nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 6, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 96px 40px 40px 40px;
        gap: 20px !important;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto !important;
    }

    .topbar nav.nav-open {
        transform: translateX(0);
    }

    .topbar nav a {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
        width: 100%;
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .topbar nav a:hover {
        color: var(--accent-gold, #f1d27b) !important;
    }

    body.nav-menu-open {
        overflow: hidden !important;
    }

    .grid,
    .gear-list,
    .zodiac-current-panel,
    .zodiac-detail-card,
    .zodiac-detail-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .gear-item {
        grid-template-rows: auto auto;
        padding: 28px;
    }

    .nasa-editorial-figure {
        margin-top: calc(var(--space-6) * -0.35);
        min-height: clamp(300px, 88vw, 520px);
    }

    .celestial-object-figure {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        padding: 30px 22px 26px;
    }

    .celestial-object-figure img {
        width: min(78vw, 330px);
        justify-self: center;
        order: -1;
    }

    .celestial-object-figure.is-fullmoon img {
        transform: none;
    }

    .celestial-object-figure figcaption {
        max-width: none;
    }

    .zodiac-current-panel {
        padding: 24px;
    }

    .zodiac-current-hero {
        min-height: clamp(420px, 108vw, 620px);
        padding: 0;
    }

    .zodiac-current-hero .zodiac-current-copy {
        width: 100%;
        padding: 24px;
    }

    .zodiac-current-visual,
    .zodiac-detail-visual {
        min-height: clamp(280px, 90vw, 420px);
    }

        }
}

/* ==========================================================================
   Astrofoto Belichtungs-Rechner & Live-Simulator
   ========================================================================== */

.astrofoto-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 24px);
    background: linear-gradient(145deg, rgba(20, 21, 38, 0.35), rgba(5, 6, 12, 0.55));
    border: 1px solid rgba(241, 210, 123, 0.15);
    border-radius: 20px;
    padding: clamp(16px, 2.5vw, 28px);
    margin-top: 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Simulator Preview Panel */
.calculator-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    border: 2.5px solid rgba(241, 210, 123, 0.8);
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    transition: aspect-ratio 0.35s ease, max-width 0.35s ease, max-height 0.35s ease;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6), 
        0 0 30px rgba(241, 210, 123, 0.15), 
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.calculator-preview.is-smartphone {
    aspect-ratio: 3 / 4;
    max-width: 240px;
    max-height: 320px;
}

.calculator-preview.is-dslr {
    aspect-ratio: 3 / 2;
    max-width: 320px;
    max-height: 213px;
}

.moon-preview-sky {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #0e0f19 0%, #030306 100%);
    border-radius: 8px;
    overflow: hidden;
}

.moon-preview-container {
    width: min(70%, 280px);
    height: min(70%, 280px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.1s ease-out;
    filter: 
        blur(var(--focus-blur, 0px)) 
        brightness(var(--moon-brightness, 1))
        drop-shadow(0 0 var(--moon-glow, 0px) rgba(255, 255, 255, 0.8));
}

.moon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

.moon-overexposure-glow {
    mix-blend-mode: screen;
    transition: opacity 0.15s ease-out;
}

/* Viewfinder Overlay */
.camera-viewfinder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10; /* Ensure overlay and borders are drawn above the moon and foreground */
}

.viewfinder-info-btn {
    position: absolute;
    top: 23px;
    right: 25px;
    background: rgba(2, 2, 4, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto; /* Enable clicks since viewfinder overlay disables them */
    z-index: 20; /* Draw above viewfinder corners and grid to guarantee clickability */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.viewfinder-info-btn:hover {
    background: rgba(241, 210, 123, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(241, 210, 123, 0.1);
    transform: translateY(-1px);
}

.viewfinder-info-btn:active {
    transform: translateY(0);
}


.viewfinder-corners {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1.2px dashed rgba(255, 255, 255, 0.45); /* Highly visible camera view grid border */
    border-radius: 4px;
    pointer-events: none; /* Let clicks pass through to the elements underneath */
}

/* Focus brackets in center */
.viewfinder-corners::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 1.8px solid rgba(241, 210, 123, 0.7); /* Slightly stronger gold focus target */
    border-radius: 2px;
    box-sizing: border-box;
}

/* Drittel-Regel Raster */
.viewfinder-grid {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    pointer-events: none; /* Let clicks pass through to the elements underneath */
}
.viewfinder-grid::before, .viewfinder-grid::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}
/* Horizontal lines */
.viewfinder-grid::before {
    top: 0; left: 33.33%; bottom: 0; width: 1px;
    box-shadow: calc((100% - 30px) * 0.333) 0 0 rgba(255, 255, 255, 0.1);
}
/* Vertical lines */
.viewfinder-grid::after {
    top: 33.33%; left: 0; right: 0; height: 1px;
    box-shadow: 0 calc((100% - 30px) * 0.333) 0 rgba(255, 255, 255, 0.1);
}

.viewfinder-status {
    position: absolute;
    top: 25px;
    left: 25px;
    font-family: monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}
.viewfinder-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ff4a4a;
    border-radius: 50%;
    animation: livePulse 1s infinite alternate;
}

/* Controls Panel */
.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Chips / Toggles */
.chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.device-chip, .phase-chip {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.device-chip:hover, .phase-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.device-chip.active, .phase-chip.active {
    background: rgba(241, 210, 123, 0.1);
    border-color: rgba(241, 210, 123, 0.6);
    color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(241, 210, 123, 0.15);
}

/* Sliders */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.slider-value {
    color: var(--accent-gold);
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 4px 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(241, 210, 123, 0.5);
    transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(241, 210, 123, 0.5);
    transition: transform 0.1s ease;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Outputs Area */
.calc-outputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.output-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.output-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-left-color: rgba(241, 210, 123, 0.85);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.output-item.highlight-glow {
    border-left: 3px solid rgba(241, 210, 123, 0.5);
}

.output-item.highlight-glow:hover {
    border-left-color: var(--accent-gold);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08), 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(241, 210, 123, 0.15);
}

.output-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.output-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    font-family: monospace;
}

.output-value.gold {
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(241, 210, 123, 0.25);
}

/* Feedback Alert box */
.calc-feedback-container {
    margin-top: 8px;
}

.feedback-badge {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.feedback-badge.success {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
}

.feedback-badge.error {
    background: rgba(241, 196, 15, 0.08);
    border: 1px solid rgba(241, 196, 15, 0.25);
    color: #f1c40f;
}

.feedback-badge .icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Dynamic Product cards */
.calc-products-section {
    margin-top: 48px;
}

.calc-products-section h3 {
    margin-bottom: 24px !important;
}

.calc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.calc-product-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(0,0,0,0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-product-card:hover {
    border-color: rgba(241, 210, 123, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.card-kicker {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(241, 210, 123, 0.65);
}

.calc-product-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 300;
    color: #fff;
    margin: 0 !important;
    min-height: 0 !important;
    line-height: 1.3 !important;
}

.card-desc, .card-benefit {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0 !important;
}

.card-desc strong, .card-benefit strong {
    color: rgba(255, 255, 255, 0.85);
}

.calc-product-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    background: rgba(241, 210, 123, 0.1);
    border: 1px solid rgba(241, 210, 123, 0.25);
    border-radius: 8px;
    color: #f1d27b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: center;
}

.calc-product-btn:hover {
    background: rgba(241, 210, 123, 0.18);
    border-color: rgba(241, 210, 123, 0.5);
    color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 820px) {
    .astrofoto-calculator {
        grid-template-columns: 1fr;
        padding: 16px;
        margin-top: 16px;
        margin-bottom: 24px;
        gap: 20px;
    }
    .calculator-preview.is-smartphone {
        max-width: 150px;
        max-height: 200px;
    }
    .calculator-preview.is-dslr {
        max-width: 220px;
        max-height: 147px;
    }
    .calc-outputs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
    }
    .output-item {
        padding: 8px 12px;
        gap: 4px;
        border-radius: 8px;
    }
    .output-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .output-value {
        font-size: 0.9rem;
    }
    .output-value.gold {
        font-size: 0.95rem;
    }
    .slider-container {
        margin-bottom: 8px;
    }
}

/* ==========================================================================
   Mond-Brennweiten-Simulator CSS Stile
   ========================================================================== */

.sim-wrapper-container {
    margin-top: 32px;
    margin-bottom: 56px;
}

.sim-grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(24px, 4vw, 48px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 40px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Viewport Panel */
.sim-viewport-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.sim-canvas-outer {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #020204;
    border: 2.5px solid rgba(241, 210, 123, 0.8); /* Brighter and thicker gold frame to serve as size reference */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85), 0 0 25px rgba(241, 210, 123, 0.12); /* Subtle gold outer glow */
}

.sim-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.sim-canvas:active {
    cursor: grabbing;
}

.sim-zoom-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: 50% 50%;
    transform: scale(1);
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), transform-origin 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.sim-sky-layer {
    position: absolute;
    inset: -100% -100% -100% -100%; /* Extra broad to support heavy zoom scale */
    background: radial-gradient(circle at 50% 50%, #0c0d18 0%, #030306 100%);
    z-index: 1;
    pointer-events: none;
}

.sim-moon-layer {
    position: absolute;
    translate: -50% -50%;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 252, 232, 0.15);
    aspect-ratio: 1 / 1; /* Force square shape for perfect circle */
    transition: left 0.38s cubic-bezier(0.25, 1, 0.5, 1), 
                top 0.38s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.38s cubic-bezier(0.25, 1, 0.5, 1),
                height 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.sim-moon-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(1.05) contrast(1.02);
}

.sim-foreground-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
}

.sim-foreground-layer svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Viewport Meta details */
.sim-viewport-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

#meta-specs {
    color: #fff;
}

#meta-moon-size {
    color: var(--accent-gold);
    font-family: monospace;
    font-size: 0.9rem;
}

/* Controls Panel */
.sim-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.sim-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sim-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    color: rgba(255, 255, 255, 0.85);
}

.sim-checkbox-label input {
    cursor: pointer;
    accent-color: var(--accent-gold);
    width: 16px;
    height: 16px;
}

.sim-info-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sim-info-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-gold);
    color: #fff;
}

/* Modal Info-Sheet */
.sim-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 8, 0.18); /* Make background shine through more */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(6px); /* Reduced blur to see background elements more clearly */
    -webkit-backdrop-filter: blur(6px);
}

.sim-modal.active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.sim-modal-content {
    background: linear-gradient(145deg, rgba(12, 13, 26, 0.35), rgba(5, 6, 12, 0.45)); /* Extremely transparent glassmorphism */
    border: 1px solid rgba(241, 210, 123, 0.2);
    border-radius: 24px;
    width: min(100%, 850px); /* Wide enough to host columns side by side */
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.85),
        0 0 50px rgba(241, 210, 123, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(30px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px) saturate(160%); /* Shines through much more */
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.sim-modal.active .sim-modal-content {
    transform: translateY(0) scale(1);
    animation: floatAnimation 6s ease-in-out infinite;
    animation-delay: 0.4s;
}

.sim-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(241, 210, 123, 0.15);
}

.sim-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 300;
    color: #fff;
    margin: 0 !important;
    text-shadow: 0 0 15px rgba(241, 210, 123, 0.3);
    letter-spacing: 0.5px;
}

.sim-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    line-height: 1;
}

.sim-modal-close:hover {
    background: rgba(241, 210, 123, 0.2);
    border-color: rgba(241, 210, 123, 0.5);
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.sim-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.sim-modal-body h3 {
    font-family: var(--font-ui);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    border-left: 2.5px solid var(--accent-gold);
    padding-left: 8px;
}

.sim-modal-body code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(241, 210, 123, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin: 8px 0 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.sim-modal-body ul {
    margin: 12px 0;
    padding-left: 20px;
}

.sim-modal-body li {
    margin: 6px 0;
}

/* Responsive adjust */
@media (max-width: 820px) {
    .sim-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Button highlight */
.button.primary-btn {
    background: linear-gradient(180deg, rgba(241, 210, 123, 0.22), rgba(241, 210, 123, 0.06));
    border-color: rgba(241, 210, 123, 0.35);
    color: var(--accent-gold);
}
.button.primary-btn:hover {
    background: linear-gradient(180deg, rgba(241, 210, 123, 0.35), rgba(241, 210, 123, 0.12));
    border-color: rgba(241, 210, 123, 0.8);
    box-shadow: 0 12px 28px rgba(0,0,0,0.5), 0 0 20px rgba(241, 210, 123, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    color: #fff;
}

/* Simulator Page specific layout overrides for desktop */
@media (min-width: 821px) {
    .sim-page .topbar {
        margin-bottom: 20px;
    }
    .sim-page .hero.sim-hero {
        margin-bottom: 16px;
        max-width: 900px;
    }
    .sim-page .hero.sim-hero h1 {
        font-size: clamp(2rem, 3.5vw, 2.5rem);
        margin-top: 6px;
        margin-bottom: 8px;
    }
    .sim-page .hero.sim-hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.65);
    }
    .sim-page .sim-wrapper-container {
        margin-top: 16px;
        margin-bottom: 32px;
    }
    .sim-page .sim-grid-layout {
        padding: 20px 24px;
        gap: 32px;
    }
    /* Sticky preview panel on desktop so it stays visible while using controls */
    .sim-viewport-panel {
        position: sticky;
        top: 96px;
        height: fit-content;
    }
    
    /* Sticky preview for Astrofoto Belichtungs-Rechner on photography page */
    .calculator-preview {
        position: sticky;
        top: 96px;
        height: fit-content;
    }
}

/* Setup-Details Modal Grid */
.setup-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}
@media (min-width: 900px) {
    .setup-details-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
@media (max-width: 580px) {
    .setup-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.setup-detail-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.setup-detail-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-left-color: rgba(241, 210, 123, 0.85);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.3);
}
.setup-detail-card.highlight-glow {
    border-left: 3px solid rgba(241, 210, 123, 0.5);
}
.setup-detail-card.highlight-glow:hover {
    border-left-color: var(--accent-gold);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08), 
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(241, 210, 123, 0.15);
}
.setup-detail-card.full-width {
    grid-column: 1 / -1;
}
.setup-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.setup-detail-icon {
    display: inline-flex;
    align-items: center;
    color: var(--accent-gold);
    opacity: 0.85;
}
.setup-detail-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2px;
    filter: drop-shadow(0 0 4px rgba(241, 210, 123, 0.2));
}
.setup-detail-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}
.setup-detail-value {
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.setup-detail-value.gold {
    color: var(--accent-gold);
    font-family: monospace;
    font-size: 1.05rem;
    text-shadow: 0 0 8px rgba(241, 210, 123, 0.25);
}
.setup-detail-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* Looney-11 Rule Section Styling */
#looney-11-rule {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 50px;
}
.looney-intro {
    max-width: 800px;
    margin-bottom: 28px;
}
.looney-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
@media (max-width: 768px) {
    .looney-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.looney-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.looney-card h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}
.looney-card.main-formula {
    border-color: rgba(241, 210, 123, 0.25);
    background: linear-gradient(145deg, rgba(241, 210, 123, 0.03), rgba(255, 255, 255, 0.005));
}
.looney-card.main-formula h3 {
    color: var(--accent-gold);
    border-bottom-color: rgba(241, 210, 123, 0.15);
}
.formula-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1.2px solid rgba(241, 210, 123, 0.25);
    border-radius: 8px;
    padding: 14px 18px;
    font-family: var(--font-ui);
    font-size: 1.15rem;
    color: #fff;
    text-align: center;
    margin: 12px 0 20px 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(241, 210, 123, 0.05);
}
.formula-box strong {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(241, 210, 123, 0.3);
}
.looney-card ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.75);
}
.looney-card li {
    margin: 8px 0;
}
.looney-card li strong {
    color: #fff;
}
.looney-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.looney-table-wrapper {
    overflow-x: auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.002));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-top: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
}
.looney-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}
.looney-table th {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 16px 20px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}
.looney-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}
.looney-table tr:last-child td {
    border-bottom: none;
}
.looney-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
    color: #fff;
}
.looney-table td strong {
    color: #fff;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: monospace;
    font-size: 0.85rem;
    color: #fff;
}
.badge.gold {
    background: rgba(241, 210, 123, 0.12);
    border-color: rgba(241, 210, 123, 0.3);
    color: var(--accent-gold);
    text-shadow: 0 0 6px rgba(241, 210, 123, 0.3);
}

/* Dual Column Physics Modal Layout */
.info-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}
@media (min-width: 768px) {
    .info-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}
.info-column h3 {
    margin-top: 0 !important;
}
.info-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.sensor-list {
    margin-top: 8px;
    list-style-type: none;
    padding-left: 0 !important;
}
.sensor-list li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px !important;
    font-size: 0.9rem;
}

/* Expert controls section in simulator controls panel */
.expert-controls-section {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.expert-controls-section.active {
    display: block;
    animation: expertSectionFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes expertSectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.gold-text-glow {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(241, 210, 123, 0.35);
    font-weight: 600;
}

/* Mond-Fotografie Tool - Erweiterungen */
.sim-datetime-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.datetime-input-wrapper {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.datetime-input-wrapper label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sim-input,
.sim-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    padding: 8px 12px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sim-input:focus,
.sim-select:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.sim-select option {
    background: #0d0d1a;
    color: #ffffff;
}

/* Event Presets */
.preset-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-chip:hover {
    border-color: rgba(241, 210, 123, 0.4);
    color: #ffffff;
    background: rgba(241, 210, 123, 0.05);
}

.preset-chip.active {
    background: rgba(241, 210, 123, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 210, 123, 0.15);
}

.preset-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
    min-height: 20px;
}

/* Lunar Data Instrument Card */
.sim-lunar-data-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent-gold);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sim-lunar-data-card .panel-title {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.lunar-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .lunar-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.lunar-data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lunar-data-item .data-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lunar-data-item .data-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.lunar-data-item .data-value.gold-text {
    color: var(--accent-gold);
    text-shadow: 0 0 4px rgba(241, 210, 123, 0.2);
}

.refraction-note {
    font-size: 0.7rem;
    color: rgba(241, 210, 123, 0.7);
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
    line-height: 1.3;
}

/* Layout Columns for Simulator Controls */
.sim-controls-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sim-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.control-subgroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Compact Focal Chips Styling */
.focal-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.focal-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.focal-chip.active {
    background: rgba(241, 210, 123, 0.12);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 210, 123, 0.15);
}

/* Blood Moon Eclipse Visuals */
.sim-moon-layer.is-blood-moon {
    box-shadow: 0 0 30px rgba(235, 75, 45, 0.65) !important;
}

.sim-moon-layer.is-blood-moon circle {
    fill: rgba(235, 75, 45, 0.22);
}

/* Two-column layout grid for controls on Desktop */
@media (min-width: 900px) {
    .sim-controls-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }
}

/* Accordion Styling (collapsible sections) */
details.sim-accordion {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

details.sim-accordion:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(241, 210, 123, 0.15);
}

details.sim-accordion[open] {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.08);
}

details.sim-accordion summary {
    padding: 14px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default list marker */
}

details.sim-accordion summary::-webkit-details-marker {
    display: none; /* Hide default list marker for Webkit */
}

details.sim-accordion summary:hover {
    color: #ffffff;
}

details.sim-accordion[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

details.sim-accordion .accordion-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.accordion-caret {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

details.sim-accordion[open] .accordion-caret {
    transform: rotate(180deg);
    color: var(--accent-gold);
}




