:root {
    --red: #d82016;
    --red-dark: #9f120f;
    --black: #050505;
    --ink: #111111;
    --paper: #fff6df;
    --white: #ffffff;
    --yellow: #ffd51d;
    --orange: #ff5b22;
    --shadow: #000000;
    --focus: #ffffff;
    --max-width: 980px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding: 64px 0 72px;
    overflow-x: hidden;
    color: var(--white);
    font-family: "Big Shoulders Stencil", Impact, sans-serif;
    letter-spacing: 0;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.18) 0 18%, transparent 18% 52%, rgba(255,213,29,0.14) 52% 53%, transparent 53%),
        radial-gradient(circle at 15% 25%, rgba(255,213,29,0.16), transparent 24%),
        var(--red);
}

a {
    color: var(--yellow);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

header,
.bottom-nav {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--black);
    border-color: var(--yellow);
}

header {
    top: 0;
    height: 56px;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 5px 0 var(--orange);
}

.header-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 30%, rgba(216,32,22,0.9) 30% 47%, transparent 47%),
        linear-gradient(90deg, rgba(255,213,29,0.16), transparent 42%);
}

.burger-menu {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 1;
    width: 34px;
    height: 28px;
    padding: 0;
    color: var(--yellow);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: transform 160ms ease;
}

.burger-menu:hover {
    transform: rotate(-3deg) scale(1.08);
}

.burger-menu svg {
    display: block;
    width: 100%;
    height: 100%;
}

.burger-menu line {
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: square;
}

header h1 {
    position: relative;
    top: 10px;
    z-index: 1;
    width: max-content;
    margin: 0 auto;
    color: var(--white);
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    line-height: 1;
    text-shadow: 3px 3px 0 var(--red);
    cursor: pointer;
}

.logo-placeholder {
    position: absolute;
    top: 6px;
    right: 14px;
    z-index: 1;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.side-menu {
    position: fixed;
    top: 56px;
    left: -285px;
    z-index: 101;
    width: min(285px, 86vw);
    height: calc(100dvh - 128px);
    padding: 1rem;
    overflow-y: auto;
    color: var(--white);
    background: var(--black);
    border-right: 3px solid var(--yellow);
    box-shadow: 7px 0 0 var(--orange);
    transition: left 180ms ease;
}

.side-menu.active {
    left: 0;
}

.menu-item,
.menu-footer {
    border: 2px solid var(--yellow);
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--red);
}

.menu-item {
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.menu-item a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.menu-item:hover {
    color: var(--black);
    background: var(--yellow);
}

.menu-footer {
    margin-top: 1.25rem;
    padding: 1rem;
    color: var(--yellow);
    text-align: center;
}

.content {
    display: none;
    height: calc(100dvh - 136px);
    min-height: 340px;
    padding: clamp(1rem, 3vw, 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: center;
}

.content.active {
    display: block;
}

.content > h2 {
    margin: 0 auto 1rem;
    max-width: var(--max-width);
    font-size: clamp(2rem, 7vw, 4.4rem);
    line-height: 0.92;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 var(--black);
}

.highlight-box,
.breathing-container {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto 1.25rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    color: var(--white);
    background: var(--black);
    border: 3px solid var(--yellow);
    box-shadow: 9px 9px 0 var(--orange), 14px 14px 0 var(--shadow);
    text-align: left;
}

.highlight-box::before,
.breathing-container::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 46px;
    height: 8px;
    background: var(--yellow);
    box-shadow: -18px 14px 0 var(--red);
}

.hero-panel {
    text-align: center;
}

.overview-intro {
    max-width: 760px;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    line-height: 1.35;
}

.overview-intro h2 {
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.click-here {
    color: var(--yellow) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.overview-actions,
.library-grid {
    display: grid;
    gap: clamp(0.9rem, 2vw, 1.4rem);
}

.overview-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.category-card {
    position: relative;
    min-height: 178px;
    padding: 1.1rem;
    color: var(--white);
    background: var(--ink);
    border: 3px solid var(--yellow);
    box-shadow: 6px 6px 0 var(--red);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.category-card:hover {
    transform: translate(-2px, -4px) rotate(-0.7deg);
    box-shadow: 10px 10px 0 var(--orange);
    background: #161616;
}

.category-card h3,
.category-card span {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 0.5rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.category-card p {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 1.25;
}

.category-card small {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    color: var(--yellow);
    font-size: 1.1rem;
}

.action-card {
    min-height: 210px;
    padding-top: 1.5rem;
}

.core-card {
    min-height: 188px;
    padding: 1rem 1.15rem;
    color: var(--black);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.32)),
        var(--paper);
    border-color: var(--black);
    box-shadow: 6px 6px 0 var(--yellow), 11px 11px 0 var(--red);
}

.core-card small {
    color: var(--red);
}

.core-card span {
    color: var(--black);
    text-shadow: 2px 2px 0 rgba(216,32,22,0.2);
}

.core-card p {
    color: var(--black);
}

.core-card::after,
.action-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -18px;
    width: 90px;
    height: 90px;
    border: 12px solid rgba(255,213,29,0.22);
    transform: rotate(12deg);
}

.category-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 74px;
    height: 74px;
    margin: 0 0 1rem;
    object-fit: contain;
    filter: drop-shadow(4px 4px 0 var(--red));
}

.core-card .category-image {
    width: 58px;
    height: 58px;
    margin-bottom: 0.7rem;
    filter: drop-shadow(4px 4px 0 rgba(216,32,22,0.35));
}

.subtext {
    max-width: 680px;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    line-height: 1.3;
}

.highlight-box > * + * {
    margin-top: 1.15rem;
}

.highlight-box h1,
.highlight-box h2,
.highlight-box h3 {
    color: var(--yellow);
    text-align: left;
    line-height: 1;
    text-transform: uppercase;
}

.highlight-box h1 {
    font-size: clamp(2.1rem, 6vw, 3.6rem);
}

.highlight-box h2 {
    font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.highlight-box h3 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.highlight-box p,
.highlight-box li,
.highlight-box address {
    font-size: clamp(1.08rem, 2.4vw, 1.28rem);
    line-height: 1.38;
}

.highlight-box ul {
    padding-left: 1.2rem;
}

.highlight-box li + li {
    margin-top: 0.8rem;
}

.article-image {
    display: block;
    width: min(240px, 70vw);
    height: auto;
    margin: 0 auto 1.4rem;
    border: 3px solid var(--yellow);
    background: var(--red);
    box-shadow: 7px 7px 0 var(--orange);
}

.back-btn,
.start-btn {
    font-family: inherit;
    text-transform: uppercase;
    cursor: pointer;
}

.back-btn {
    display: block;
    margin: 0 auto 1rem;
    padding: 0.6rem 1rem;
    color: var(--yellow);
    background: var(--black);
    border: 2px solid var(--yellow);
    box-shadow: 4px 4px 0 var(--red);
    font-size: 1.1rem;
}

.start-btn {
    display: block;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    color: var(--black);
    background: var(--yellow);
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0 var(--red);
    font-size: clamp(1.25rem, 4vw, 1.8rem);
}

.start-btn:hover,
.back-btn:hover {
    transform: translate(-1px, -2px);
}

#zufallsspruch .highlight-box {
    max-width: 720px;
    text-align: center;
}

#spruch-display {
    min-height: 110px;
    padding: 1.25rem;
    color: var(--paper);
    font-size: clamp(1.45rem, 5vw, 2.2rem) !important;
    line-height: 1.05;
    text-transform: uppercase;
}

.breathing-container {
    text-align: center;
}

.phase-display {
    color: var(--yellow);
    font-size: clamp(2.2rem, 8vw, 4.8rem);
    line-height: 0.95;
    text-shadow: 4px 4px 0 var(--red);
}

.timer {
    margin: 0.6rem 0;
    color: var(--white);
    font-size: clamp(3.5rem, 14vw, 7rem);
    line-height: 0.9;
}

.cycle-counter {
    color: var(--paper);
    font-size: 1.35rem;
}

.instructions-box {
    margin-top: 1.5rem;
    text-align: left;
}

.breathing-steps {
    list-style: none;
}

.breathing-steps li {
    margin-top: 0.7rem;
    padding: 0.85rem 1rem;
    color: var(--white);
    background: #171717;
    border-left: 6px solid var(--yellow);
}

.breathing-steps li.active {
    color: var(--black);
    background: var(--yellow);
}

.bottom-nav {
    bottom: 0;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 10vw, 5rem);
    border-top: 3px solid var(--yellow);
    box-shadow: 0 -5px 0 var(--orange);
}

.nav-icon {
    width: 43px;
    height: 43px;
    object-fit: contain;
    padding: 5px;
    cursor: pointer;
    filter: drop-shadow(3px 3px 0 var(--red));
    transition: transform 150ms ease;
}

.nav-icon:hover {
    transform: translateY(-3px) rotate(-4deg);
}

@media (max-width: 760px) {
    body {
        padding-top: 60px;
    }

    .content {
        height: calc(100dvh - 132px);
        padding: 0.85rem;
    }

    .overview-actions,
    .library-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .action-card,
    .core-card {
        min-height: 156px;
    }

    .category-image {
        width: 60px;
        height: 60px;
    }

    .highlight-box,
    .breathing-container {
        box-shadow: 6px 6px 0 var(--orange), 10px 10px 0 var(--shadow);
    }

    .highlight-box::before,
    .breathing-container::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
