/* vt323-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "VT323";
    font-style: normal;
    font-weight: 400;
    src: url("./assets/fonts/vt323-v18-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* atkinson-hyperlegible-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 400;
    src: url("./assets/fonts/atkinson-hyperlegible-v12-latin-regular.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* atkinson-hyperlegible-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Atkinson Hyperlegible";
    font-style: italic;
    font-weight: 400;
    src: url("./assets/fonts/atkinson-hyperlegible-v12-latin-italic.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* atkinson-hyperlegible-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Atkinson Hyperlegible";
    font-style: normal;
    font-weight: 700;
    src: url("./assets/fonts/atkinson-hyperlegible-v12-latin-700.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-mono-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 400;
    src: url("./assets/fonts/space-mono-v17-latin-regular.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-mono-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Space Mono";
    font-style: italic;
    font-weight: 400;
    src: url("./assets/fonts/space-mono-v17-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* space-mono-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Space Mono";
    font-style: normal;
    font-weight: 700;
    src: url("./assets/fonts/space-mono-v17-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --bg: #081c22;
    --bg-soft: #0d262e;
    --surface: #0d2229;
    --surface-alt: #123138;
    --border: #123138;

    --ink: #e8f6f0;
    --ink-muted: #a9d4d0;
    --ink-faint: #5c8a80;

    --teal: #4dd9c7;
    --teal-dim: #1a5a4d;
    --orange: #ff8a3d;
    --orange-dim: #b35a24;
    --lime: #c8ff4d;
    --lime-dim: #7a9e2e;

    /* Fonts */
    --font-display: "VT323";
    --font-body: "Atkinson Hyperlegible";
    --font-mono: "Space Mono";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
}

a {
    color: var(--teal);
    text-decoration-color: var(--teal-dim);
    text-underline-offset: 3px;
}
a:hover {
    color: var(--orange);
    text-decoration-color: var(--orange);
}

.wrap {
  max-width: 672px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
    position: relative;
    box-sizing: border-box;
    background-image: url("./assets/img/banner.jpg");
    aspect-ratio: 1792 / 592;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 38%;

    width: 100%;
    min-height: 440px;
    padding: 20px;
    position: relative; /* ersetzt das .hero-media braucht hierfür */
    line-height: 0;
    overflow: hidden;
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(to bottom, transparent, var(--bg) 96%);
    pointer-events: none;
}

@media (max-width: 800px) {
    .navbar {
        position: static;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    .header {
        aspect-ratio: unset;
        min-height: 0;
        height: auto;
        padding: 0;
    }
}

/* ---------- Navbar ---------- */
.navbar {
    /* Glass effect*/
    background: linear-gradient(
        160deg,
        rgba(5, 18, 23, 0.85),
        rgba(5, 18, 23, 0.55)
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(5px);

    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    line-height: normal;

    max-width: 265px;
    margin: 20px;
    padding: 20px 10px;
    border-radius: 0 16px 16px 0;
    border: 1px solid rgb(from var(--teal) r g b / 0.35);

    display: flex;
    flex-direction: column;
}

.navbar > p {
    margin-top: 10px;
    padding-inline: 16px;
    font-family: var(--font-display);
    color: var(--ink-faint);
    font-size: 16px;
    letter-spacing: 0.2px;
}

.logo {
    color: var(--ink);
    font-family: VT323;
    font-size: 20px;
    letter-spacing: 0.2px;

    display: flex;
    justify-content: center;
    gap: 15px;
}

.logo > img {
    width: 40px;
}

.nav-box {
    font-family: Space Mono;
    font-size: 16px;
    margin-top: 20px;
    margin-inline: 10px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.nav-box > a {
    /* Glass effect */
    background: rgb(from var(--teal) r g b / 0.08);

    border-radius: 5px;
    border: 1px solid rgb(from var(--teal) r g b / 0.3);
    padding: 8px 10px;

    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.nav-box > a:hover {
    background-color: var(--teal);
    color: var(--bg);
}

/* ---------- Content ---------- */

.main-content {
    color: var(--ink);
    font-family: var(--font-body);

    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.content-texts {
    display: flex;
    flex-direction: column;
    gap: 44px;
    max-width: 672px;
}

.content-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Blogroll */
.roll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.roll-card {
    position: relative;
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    transition: border-color 0.15s;
}
.roll-card:hover {
    border-color: var(--teal);
}
.roll-card::before {
    content: "";
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    border-top: 1px solid var(--teal);
    border-right: 1px solid var(--teal);
    opacity: 0.7;
    z-index: 1;
}

.roll-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.roll-title {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    padding: 14px 16px 4px;
    color: var(--ink);
}

.roll-desc {
    font-size: 14px;
    color: var(--ink-muted);
    padding: 0 16px 16px;
    margin: 0;
}

/* Archive */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.archive-card {
    display: block;
    background: rgb(from var(--teal-dim) r g b / 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgb(from var(--teal) r g b / 0.35);
    border-radius: 8px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s, background 0.15s;
}
.archive-card:hover {
    border-color: var(--teal);
    background: rgb(from var(--teal-dim) r g b / 0.3);
}

.archive-card .akind {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--kind-color, var(--teal));
}
.archive-card[data-kind="artikel"] { --kind-color: var(--orange); }
.archive-card[data-kind="gedanke"] { --kind-color: var(--lime); }

.archive-card .adate {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    margin-left: 8px;
}

.archive-card .atitle {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    margin-top: 8px;
}

/* entries */

.entry {
    border-left: 3px solid var(--kind-color, var(--teal-dim));
    padding-left: 18px;
    border-radius: 0;
}

.entry-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.8px;
}

.kind {
    text-transform: uppercase;
    color: var(--kind-color, var(--teal));
}
.entry[data-kind="artikel"] {
    --kind-color: var(--orange);
}
.entry[data-kind="gedanke"] {
    --kind-color: var(--lime);
}
.entry[data-kind="musik"] {
    --kind-color: var(--teal);
}
.entry[data-kind="bild"] {
    --kind-color: var(--lime-dim);
}

.entry-date {
    color: var(--ink-faint);
}

.entry h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 27px;
    margin: 0 0 9px;
    letter-spacing: 0.2px;
}

.entry h2 a {
    color: var(--ink);
    text-decoration: none;
}

.entry h2 a:hover {
    color: var(--teal);
}

.entry p {
    margin: 0 0 10px;
    color: var(--ink);
}

.entry .thought {
    font-size: 16px;
    color: var(--ink);
}

.entry .continue {
    font-family: var(--font-mono);
    font-size: 14px;
}

.section-divider {
    display: flex;
    justify-content: center;
    padding: 8px 0 32px;
    opacity: 0.85;
}

.section-divider svg {
    width: 32px;
    height: 24px;
}

.collectibles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    padding-bottom: 20px;
    max-width: 672px;
    justify-content: center;
}

.collectible {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px 16px;
    /* missing corner */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
/* cyberpunk decoration (rectanngle) upper right */
.collectible::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--teal);
    border-right: 1px solid var(--teal);
    opacity: 0.7;
}
.collectible-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.8px;
}
.collectible[data-kind="musik"] .kind {
    text-transform: uppercase;
    color: var(--teal);
}
.collectible[data-kind="bild"] .kind {
    text-transform: uppercase;
    color: var(--lime-dim);
}
.collectible .entry-date {
    color: var(--ink-faint);
}
.collectible p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--ink-muted);
}
/* .collectible figure {
    margin: 0;
} */
.collectible figure img {
    width: 100%;
    border-radius: 4px;
    display: block;
}
.collectible figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 6px;
}

.now-playing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
}
.now-playing:hover {
    border-color: var(--teal);
    color: var(--ink);
}
.now-playing .bars {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
}
.now-playing .bars span {
    width: 2px;
    background: var(--teal);
    display: block;
    animation: bounce 1.1s ease-in-out infinite;
}
.now-playing .bars span:nth-child(1) {
    height: 5px;
    animation-delay: 0s;
}
.now-playing .bars span:nth-child(2) {
    height: 11px;
    animation-delay: 0.2s;
}
.now-playing .bars span:nth-child(3) {
    height: 7px;
    animation-delay: 0.4s;
}
@keyframes bounce {
    0%,
    100% {
        transform: scaleY(0.6);
    }
    50% {
        transform: scaleY(1);
    }
}

.footer > hr {
    border-top: 3px solid #bbb;
    width: 50%;
}

.indieweb-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;

    background-color: var(--surface);
    margin-inline: 100px;
    padding: 20px 0;
    border: 1px solid var(--border);
    border-top: 2px solid var(--orange);
    border-radius: 10px;
}

.indieweb-card > a {
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none;
}

.indieweb-card a:hover {
    color: var(--teal);
}

.indieweb-card > p {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 14px;
}

/* ---------- Page for single post ---------- */

.post-body {
    padding: 16px 0 48px;
    color: var(--ink);
    font-family: var(--font-body);
}

.post-body p {
    margin: 0 0 18px;
    color: var(--ink);
}

.post-body h1 {
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--ink);
    margin: 0 0 24px;
}

.post-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    margin: 32px 0 12px;
    color: var(--ink);
}

.post-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
  list-style: disc;
}
.post-body li {
  margin-bottom: 6px;
}

.post-body blockquote {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 3px solid var(--teal);
  font-style: italic;
  color: var(--ink-muted);
}

.post-body blockquote p {
  margin: 0;
}

.post-body .entry-meta {
    margin: 28px 0 8px;
}
.post-body .kind {
    color: var(--orange); /* Artikel-Farbe, wie auf der Startseite */
}
.back-link {
    font-family: var(--font-mono);
    font-size: 14px;
}

/* ---------- Footer ---------- */

.footer {
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.footer-links a {
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: underline dotted;
}

.footer-links a:hover {
    text-decoration: underline solid var(--orange);
}

.copyright {
    color: var(--ink-faint);
    font-family: Space Mono;
    font-size: 12px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.foot-icon {
    width: 20px;
    height: 20px;
}

/* Divider animation */

hr.mushroom-hop {
    border: 0;
    width: 100%;
    height: 0;
    border-top: 0.25rem dotted var(--teal);
    position: relative;
    overflow: visible;
    margin: 3rem 0;
}

hr.mushroom-hop:before {
    animation:
        hop-move 20s infinite linear,
        hop-bounce 0.4s infinite ease-in-out;
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Crect x='6' y='12' width='4' height='6' fill='%23e8c79a'/%3E%3Crect x='2' y='10' width='12' height='1' fill='%238a3d14'/%3E%3Crect x='3' y='7' width='10' height='3' fill='%23ff8a3d'/%3E%3Crect x='5' y='5' width='6' height='2' fill='%23ffb238'/%3E%3Crect x='7' y='14' width='1' height='1' fill='%23140f0a'/%3E%3Crect x='9' y='14' width='1' height='1' fill='%23140f0a'/%3E%3C/svg%3E");
    background-size: 26px;
    background-repeat: no-repeat;
    background-position: calc(100% + 30px) 0;
    content: " ";
    height: 30px;
}

hr.mushroom-hop:after {
    animation:
        hop-move 20s 0.9s infinite linear,
        hop-bounce 0.4s 0.2s infinite ease-in-out;
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 26px;
    background-repeat: no-repeat;
    background-position: calc(100% + 30px) 0;
    content: " ";
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Crect x='6' y='15' width='4' height='3' fill='%23e8c79a'/%3E%3Crect x='1' y='13' width='14' height='1' fill='%238a3d14'/%3E%3Crect x='2' y='10' width='12' height='3' fill='%234dd9c7'/%3E%3Crect x='5' y='8' width='6' height='2' fill='%237ef7d0'/%3E%3Crect x='7' y='16' width='1' height='1' fill='%23140f0a'/%3E%3Crect x='9' y='16' width='1' height='1' fill='%23140f0a'/%3E%3C/svg%3E");
}

@keyframes hop-move {
    0% {
        background-position: 0 0;
    }
}

@keyframes hop-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

/* Mushroom group bottom right */
.ambient-mushrooms {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: clamp(84px, 8vw, 200px);
    height: clamp(49px, 4.67vw, 117px);
    z-index: 50;
    pointer-events: none;
}

.ambient-mushrooms::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(
        circle,
        rgba(255, 138, 61, 0.28),
        transparent 70%
    );
    filter: blur(4px);
    animation: glow-breathe 4.5s ease-in-out infinite;
}

.ambient-mushrooms svg {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    animation: mushroom-flicker 3.6s ease-in-out infinite;
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}
.firefly--teal {
    background: #4dd9c7;
    box-shadow: 0 0 6px 2px rgba(77, 217, 199, 0.7);
    animation: fly-a 7s ease-in-out infinite;
}
.firefly--lime {
    background: #c8ff4d;
    box-shadow: 0 0 6px 2px rgba(200, 255, 77, 0.7);
    animation: fly-b 8.5s ease-in-out infinite;
    animation-delay: -2s;
}
.firefly--orange {
    background: #ffce8a;
    box-shadow: 0 0 6px 2px rgba(255, 206, 138, 0.7);
    animation: fly-c 6.5s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes glow-breathe {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}
@keyframes mushroom-flicker {
    0%,
    100% {
        opacity: 0.88;
    }
    45% {
        opacity: 1;
    }
    55% {
        opacity: 0.94;
    }
}
@keyframes fly-a {
    0% {
        left: -10%;
        top: 40%;
        opacity: 0.9;
    }
    25% {
        left: 15%;
        top: -25%;
        opacity: 0.5;
    }
    50% {
        left: 65%;
        top: 5%;
        opacity: 1;
    }
    75% {
        left: 30%;
        top: 65%;
        opacity: 0.6;
    }
    100% {
        left: -10%;
        top: 40%;
        opacity: 0.9;
    }
}
@keyframes fly-b {
    0% {
        left: 95%;
        top: 20%;
        opacity: 0.8;
    }
    30% {
        left: 60%;
        top: -30%;
        opacity: 0.4;
    }
    55% {
        left: 15%;
        top: 30%;
        opacity: 1;
    }
    80% {
        left: 70%;
        top: 85%;
        opacity: 0.5;
    }
    100% {
        left: 95%;
        top: 20%;
        opacity: 0.8;
    }
}
@keyframes fly-c {
    0% {
        left: 40%;
        top: 95%;
        opacity: 0.7;
    }
    35% {
        left: 88%;
        top: 60%;
        opacity: 1;
    }
    60% {
        left: 50%;
        top: -15%;
        opacity: 0.4;
    }
    85% {
        left: 0%;
        top: 55%;
        opacity: 0.9;
    }
    100% {
        left: 40%;
        top: 95%;
        opacity: 0.7;
    }
}

@media (max-width: 30rem) {
    .ambient-mushrooms {
        width: clamp(60px, 22vw, 90px);
        height: clamp(35px, 12.83vw, 53px);
        right: 0.75rem;
        bottom: 0.75rem;
    }
}
