/* Unterseiten: Filter, Portfolio, Blog, Werdegang, Artikel.
   Wird nach components.css geladen. */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.filter { font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .75em 1.3em; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.filter:hover { transform: translateY(-3px) rotate(-1deg); }
.filter.is-active { background: var(--ink); color: #fff; }

.posts.posts--home { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.snap .project__img, .posts--home .post__img { aspect-ratio: auto; height: clamp(180px, 30vh, 340px); }
.posts--home .post__img { height: clamp(150px, 22vh, 300px); }
a.project { display: block; color: inherit; text-decoration: none; }
.project__cap { display: block; margin-top: 4px; font-weight: 700; }
.works, .posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.work, .post { display: block; color: inherit; text-decoration: none; transition: opacity .3s, transform .3s; }
.work[hidden], .post[hidden] { display: none; }
.work__img, .post__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #222; margin-bottom: 4px; }
.work__img img, .post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover .work__img img, .post:hover .post__img img { transform: scale(1.07); }
.work h3, .post h3 { margin: 6px 0 8px; }
.work p, .post p { margin-bottom: .6em; }
.post--soon { opacity: .65; }
.post--soon .post__img img { filter: grayscale(1); }
.works__note { margin-top: 36px; font-weight: 700; }
.works__note a { color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; max-width: 760px; border-left: 3px solid var(--accent); }
.steps li { padding: 0 0 36px 32px; position: relative; }
.steps li::before { content: ""; position: absolute; left: -11px; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.steps b { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.steps h3 { margin: 4px 0 6px; }

.page-hero--article { padding-bottom: 60px; }
.meta { font-size: .85rem; opacity: .8; }
.article { max-width: 760px; margin: 0 auto; padding: 60px var(--pad) 90px; font-size: 1.1rem; }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 .5em; letter-spacing: -.02em; }
.article__note { background: var(--grey); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 8px; font-size: .95rem; margin: 2em 0; }
.btn--ghost { margin-left: 8px; }
@media (max-width: 520px) { .btn--ghost { margin: 10px 0 0; } }

.legal-page h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.legal-page h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; letter-spacing: -.01em; }
.legal-page p, .legal-page li { line-height: 1.7; }
.legal-page { overflow-wrap: anywhere; hyphens: auto; }
.legal-page h1, .legal-page h2 { overflow-wrap: break-word; }
.legal-page table { display: block; overflow-x: auto; max-width: 100%; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li { margin-bottom: .5em; }
.legal-page a:not(.btn) { color: var(--accent); font-weight: 700; }
.legal-stand { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .7; }

/* Blog: Älterer / Neuerer Beitrag */
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e3e8ef; flex-wrap: wrap; }
.post-nav a { display: block; max-width: 48%; text-decoration: none; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.post-nav a span { display: block; margin-top: 4px; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.post-nav__next { margin-left: auto; text-align: right; }
@media (max-width: 600px) { .post-nav a { max-width: 100%; } .post-nav__next { text-align: left; margin-left: 0; } }

/* Blog: Bilder im Beitrag */
.article__fig { margin: 28px 0; }
.article__fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.article__fig figcaption { margin-top: 8px; font-size: .85rem; opacity: .7; }
