* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text: rgba(0, 0, 0, 0.88);
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.65);
    --background: #ffffff;
    --background-secondary: rgba(0, 0, 0, 0.03);
    --background-tertiary: rgba(0, 0, 0, 0.06);
    --accent: rgb(38, 191, 89);
    --accent-light: rgba(38, 191, 89, 0.12);
    --separator: rgba(0, 0, 0, 0.08);

    --font-display: 3.2rem;
    --font-title: 1.6rem;
    --font-body: 1.1rem;
    --font-small: 0.9rem;

    --section-gap: 56px;
    --line-gap: 10px;

    --transition-snappy: 0.15s cubic-bezier(0.2, 0, 0, 1);
    --radius-lg: 16px;
    --radius-full: 9999px;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 460px;
    margin: 0 auto;
    padding: 80px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection {
    background: var(--accent-light);
}

/* === Alle Sektionen gleich === */
section {
    margin-bottom: var(--section-gap);
}

section p {
    font-size: var(--font-body);
    line-height: 1.55;
    margin-bottom: var(--line-gap);
    color: var(--text-secondary);
}

section p:last-child {
    margin-bottom: 0;
}

/* === Header === */
header {
    margin-bottom: var(--section-gap);
}

h1 {
    font-size: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* === Section Titles === */
section h2 {
    font-size: var(--font-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

/* === Hero === */
.hero {
    margin-bottom: calc(var(--section-gap) * 1.4);
}

.tagline {
    font-size: var(--font-title);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 8px;
}

.subtitle {
    font-size: var(--font-body);
    color: var(--text-secondary);
    font-weight: 400;
}

/* === Intro === */
.intro p:last-child {
    color: var(--text);
}

/* === Idea === */
.idea ul.levels {
    list-style: none;
    margin: 16px 0;
    padding-left: 0;
}

.idea ul.levels li {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}


.idea .private {
    font-style: italic;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* === Visible === */
.visible .status-inline {
    margin: var(--line-gap) 0;
}

.visible .status-inline .done,
.visible .status-inline .notdone {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.visible .status-inline .done {
    font-weight: 600;
    color: var(--accent);
}

.visible .status-inline .notdone {
    font-weight: 400;
    color: var(--text-tertiary);
}

.visible .nothing {
    font-size: var(--font-small);
    font-style: italic;
    color: var(--text-tertiary);
}

/* === Why === */
.why p {
    font-weight: 500;
}

.why .emphasis {
    color: var(--text);
}

/* === Rule === */
.rule .big {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.rule .sub {
    font-size: var(--font-body);
    color: var(--text-secondary);
}

/* === What === */
.what .highlight {
    font-weight: 500;
    color: var(--text);
}

/* === Ending === */
.ending .highlight {
    font-weight: 500;
    color: var(--text);
}

/* === Done Mark === */
.done-mark p {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-tertiary);
    text-align: center;
}

/* === Download === */
.download p {
    font-size: var(--font-small);
    padding: 16px 0;
    border-top: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
    text-align: center;
}

/* === FAQ === */
.faq-wrapper {
    margin-bottom: 0;
}

.faq-wrapper>summary {
    list-style: none;
    cursor: pointer;
    padding: 0;
    border: none;
}

.faq-wrapper>summary::-webkit-details-marker {
    display: none;
}

.faq-wrapper>summary h2 {
    display: inline-block;
    transition: color var(--transition-snappy);
}

.faq-wrapper>summary:hover h2 {
    color: var(--accent);
}

.faq-content {
    margin-top: 16px;
}

.faq-content details {
    margin-bottom: 12px;
}

.faq-content summary {
    font-size: var(--font-body);
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--separator);
    transition: color var(--transition-snappy);
}

.faq-content summary::-webkit-details-marker {
    display: none;
}

.faq-content summary:hover {
    color: var(--accent);
}

.faq-content details[open] summary {
    border-bottom-color: transparent;
}

.faq-content details p {
    padding: 0 0 16px 0;
    font-size: var(--font-body);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* === Closing === */
.closing .tagline-small {
    font-size: var(--font-body);
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
}

.closing .promise {
    font-size: var(--font-small);
    font-weight: 400;
    text-align: center;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* === Footer === */
footer {
    margin-top: auto;
    padding-top: var(--section-gap);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-row p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0;
}

.merch-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    position: relative;
    z-index: 1;
    transition: color var(--transition-snappy);
}

.merch-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
            transparent 40%,
            var(--text-tertiary) 50%,
            transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: snake-border 6s linear infinite;
}

.merch-link:hover {
    color: var(--text);
}

.merch-link:hover::before {
    background: conic-gradient(from var(--angle, 0deg),
            transparent 30%,
            var(--text-secondary) 50%,
            transparent 70%);
}

@keyframes snake-border {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* === Legal / Impressum === */
.legal {
    text-align: center;
}

.legal summary {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    cursor: pointer;
    list-style: none;
    opacity: 0.5;
}

.legal summary::-webkit-details-marker {
    display: none;
}

.legal summary:hover {
    opacity: 1;
}

.legal-content {
    margin-top: 16px;
    text-align: left;
    padding: 20px;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
}

.legal-content p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.legal-content p:last-child {
    margin-bottom: 0;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--separator);
    text-align: center;
}

.legal-content strong {
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.legal-content a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--text-tertiary);
}

.legal-content a:hover {
    color: var(--text);
}

/* === Language === */
.lang-btn,
.theme-btn {
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--background-secondary);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-snappy);
}

.lang-btn:hover,
.theme-btn:hover {
    background: var(--background-tertiary);
}

.lang-btn:active,
.theme-btn:active {
    transform: scale(0.96);
}

.lang-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.lang-modal.open {
    display: flex;
}

.lang-modal-content {
    background: var(--background);
    border-radius: var(--radius-lg);
    max-width: 360px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.lang-list {
    display: flex;
    flex-direction: column;
}

.lang-list button {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: none;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-snappy);
}

.lang-list button:hover {
    background: var(--background-secondary);
}

.lang-list button.active {
    color: var(--accent);
    font-weight: 600;
}

/* === RTL === */
[dir="rtl"] .lang-list button {
    text-align: right;
}

[dir="rtl"] .footer-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .legal-content {
    text-align: right;
}

/* === Mobile === */
@media (max-width: 480px) {
    :root {
        --section-gap: 44px;
        --line-gap: 8px;
    }

    html {
        font-size: 16px;
    }

    main {
        padding: 60px 20px;
    }

    h1 {
        font-size: 2.6rem;
    }

    .tagline {
        font-size: 1.4rem;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* === Scroll Intro === */
.scroll-intro {
    height: 400vh;
    margin-bottom: var(--section-gap);
    /* overflow-x: hidden; REMOVED - breaks sticky positioning */
}

.sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* overflow: hidden; Removed to prevent cutting off text */
}

.intro-text {
    /* Responsive font size */
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 300;
    letter-spacing: -0.05em;
    color: var(--text);
    margin: 0;
    line-height: 1;

    /* GRID LAYOUT FOR STABILITY */
    /* 1fr | "done" (auto) | 1fr */
    /* This ensures "done" is always perfectly centered */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    width: 100%;
}

.intro-text>span:first-child {
    grid-column: 2;
}

#dynamic-symbol {
    grid-column: 3;
    display: inline-block;
    /* Remove fixed width so it can be as wide as needed without affecting center */
    width: auto;
    text-align: left;
}

#dynamic-symbol.ending {
    text-align: left;
}

#dynamic-symbol.is-emoji {
    font-size: 0.85em;
    /* Slightly smaller than text */
    /* Adjust vertical alignment for emojis */
    transform: translateY(-0.05em);
}



.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.5;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* === Dark Mode === */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text: rgba(255, 255, 255, 0.92);
        --text-secondary: rgba(255, 255, 255, 0.6);
        --text-tertiary: rgba(255, 255, 255, 0.4);
        --background: #0a0a0a;
        --background-secondary: rgba(255, 255, 255, 0.06);
        --background-tertiary: rgba(255, 255, 255, 0.1);
        --separator: rgba(255, 255, 255, 0.1);
        --accent: rgb(50, 215, 100);
        --accent-light: rgba(50, 215, 100, 0.15);
    }
}

/* === Manual Dark Theme === */
:root[data-theme="dark"] {
    --text: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --background: #0a0a0a;
    --background-secondary: rgba(255, 255, 255, 0.06);
    --background-tertiary: rgba(255, 255, 255, 0.1);
    --separator: rgba(255, 255, 255, 0.1);
    --accent: rgb(50, 215, 100);
    --accent-light: rgba(50, 215, 100, 0.15);
}