:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --white: #fff;
  --ink: #262330;
  --muted: #615c69;
  --plum: #30263e;
  --lime: #dfedb0;
  --mist: #eeebf3;
  --line: #e4e1e5;
  --display: Baskerville, Georgia, serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #69508d; outline-offset: 4px; }
#beitraege, #suche { scroll-margin-top: 1.5rem; }

.privacy-page { max-width: 48rem; margin-block: clamp(2rem, 6vw, 4rem); line-height: 1.65; }
.privacy-page h1 { margin: 0 0 .65rem; font: 400 clamp(2rem, 6vw, 3.5rem)/1.1 var(--display); }
.privacy-page h2 { margin: 1.65rem 0 .4rem; font-size: 1.2rem; }
.privacy-page p + p, .privacy-page address + p { margin-top: .6rem; }
.privacy-page address { font-style: normal; }
.privacy-page a { color: #5d3f77; text-decoration: underline; text-underline-offset: .17em; overflow-wrap: anywhere; }
.privacy-page .privacy-date { margin-top: 1.65rem; color: var(--muted); }

.screen-reader, .icon-library {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 5; background: var(--lime); padding: .75rem 1rem; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1250px, 100% - 88px); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; width: fit-content; font-size: 1.22rem; font-weight: 750; letter-spacing: -.055em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--plum); color: var(--lime); }
.brand-mark .icon { width: 27px; height: 27px; stroke-width: 1.35; }
.brand-domain { color: #685775; }
.stream-identity { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.65rem); }
.edition-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--plum); font-size: .86rem; font-weight: 640; white-space: nowrap; }
.edition-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex: 1; min-width: 0; }
.account-shortcut, .subscribe-shortcut {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px;
  padding: .5rem .75rem; background: transparent; border: 1px solid var(--line); border-radius: 8px;
  white-space: nowrap; font-size: .87rem; font-weight: 620;
}
.account-shortcut:hover { background: var(--mist); }
.subscribe-shortcut { background: var(--plum); border-color: var(--plum); color: var(--white); }
.subscribe-shortcut:hover { background: #493954; }
.header-actions #open-submission { min-height: 44px; white-space: nowrap; flex: none; }
.submission-shortcut-icon { display: none; }

.browse {
  max-width: 1050px;
  margin: .85rem auto 0;
  min-height: 38vh;
  padding-bottom: 3.5rem;
}
.search { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; max-width: 294px; height: 44px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding-inline: .8rem; color: var(--muted); }
.search:focus-within { border-color: #7b6393; box-shadow: 0 0 0 2px #e9e2ef; }
.search input { min-width: 0; width: 100%; outline: 0; border: 0; background: transparent; font-size: .9rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.result-counts { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; }
.feed-total { padding-inline-start: .55rem; border-inline-start: 1px solid var(--line); white-space: nowrap; }
.feed-total:empty { display: none; }
.result-bar { display: flex; align-items: center; gap: .75rem; justify-content: space-between; min-height: 48px; color: var(--muted); font-size: .8rem; font-weight: 540; }
.result-options { display: flex; align-items: center; gap: .55rem; min-width: 0; margin-inline-start: auto; }
.result-select { position: relative; color: var(--ink); }
.result-select select { appearance: none; width: 100%; min-height: 36px; padding: .4rem 1.75rem .4rem .55rem; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; font-size: .8rem; }
.result-select .icon { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); pointer-events: none; }
.category-filter { width: 13.5rem; }
.category-filter select { border-color: var(--line); background: var(--white); text-overflow: ellipsis; }
.category-filter select:not(:disabled):hover { border-color: #b8adc0; }
.category-filter select:disabled { cursor: default; color: var(--muted); }
.push-invitation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .85rem; margin-bottom: .77rem; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: 9px; background: var(--mist); font-size: .86rem; }
.push-invitation .button-outline { min-height: 36px; padding: .35rem .65rem; }
.push-invitation .form-status { flex-basis: 100%; margin: 0; }
.push-invitation .form-status:empty { position: absolute; }
.post-list { display: grid; gap: .77rem; }
.post-list[aria-busy=true]:empty { min-height: 154px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; }
.post-card {
  display: grid;
  grid-template-columns: minmax(140px, 26%) minmax(0, 1fr);
  position: relative;
  min-height: 159px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}
.post-card:hover, .post-card:focus-within { border-color: #aa9aba; box-shadow: 0 4px 12px #3524480d; }
.card-media { position: relative; min-height: 100%; overflow: hidden; background: var(--mist); }
.card-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.card-copy { display: flex; flex-direction: column; justify-content: center; gap: .37rem; min-width: 0; padding: .87rem 2.95rem .94rem 1.13rem; }
.post-card.no-image { grid-template-columns: minmax(0, 1fr); min-height: 126px; }
.post-pin { display: inline-block; margin-inline-end: .45rem; padding: .1rem .46rem; border-radius: 5px; background: var(--lime); color: var(--plum); font-weight: 700; }
.post-category { display: inline-block; max-width: 100%; margin-inline-end: .55rem; padding: .1rem .46rem; border-radius: 5px; background: var(--mist); color: var(--plum); font-weight: 650; }
.card-copy h3 { font-size: clamp(1.04rem, 1.9vw, 1.31rem); font-weight: 690; line-height: 1.23; letter-spacing: -.023em; overflow-wrap: anywhere; }
.card-copy h3 a::after { content: ""; position: absolute; inset: 0; }
.card-copy h3 a:focus-visible { outline: none; }
.card-copy h3 a:focus-visible::after { outline: 2px solid #69508d; outline-offset: -3px; border-radius: 11px; }
.card-excerpt { font-size: .88rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--plum); background: var(--paper); pointer-events: none; transition: background .16s; }
.post-card:hover .card-arrow { background: var(--lime); }
.more { display: flex; justify-content: center; margin-top: 1.25rem; }
.empty-state { padding: 2rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.empty-state h3 { font-size: 1.08rem; }
.empty-state p { margin-block: .35rem .8rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer .shell { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem 1.25rem; flex-wrap: wrap; padding-block: 1.2rem; }
.footer-operator { display: grid; gap: .28rem; }
.footer-operator a { margin-inline-start: .65rem; text-decoration: underline; text-underline-offset: .14em; }
.back-to-top { white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }

.post-detail { padding: 1.5rem clamp(1.1rem, 4vw, 2.25rem) 2rem; }
.initial-article { max-width: 1050px; margin: .85rem auto 0; }
.initial-article .button-outline { margin-bottom: 1rem; }
.post-edit-actions { margin-bottom: .9rem; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.05rem; }
.detail-actions .share-status { font-size: .84rem; color: var(--muted); }
.attachments { list-style: none; padding-left: 0 !important; }
.attachments a { display: flex; align-items: center; gap: .48rem; padding: .3rem 0; text-decoration: underline; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .shell { width: min(1250px, 100% - 56px); }
}

@media (max-width: 960px) {
  .stream-masthead { flex-direction: column; align-items: stretch; padding-block: .65rem; gap: .35rem; }
  .stream-identity { width: 100%; justify-content: space-between; }
  .stream-masthead .search { max-width: none; }
}

@media (max-width: 815px) {
  .shell { width: calc(100% - 36px); }
  .masthead { min-height: 63px; gap: 1rem; }
}

@media (max-width: 760px) {
  .masthead { flex-direction: column; align-items: flex-start; padding-block: .75rem; gap: .65rem; }
  .header-actions { width: 100%; }
  .search { max-width: none; }
}

@media (max-width: 570px) {
  .header-actions { gap: .35rem; }
  .header-actions button { display: inline-grid; place-items: center; width: 44px; flex: none; padding: 0; }
  .header-actions button .icon { display: block; width: 20px; height: 20px; }
  .header-actions .shortcut-label { display: none; }
  .result-bar { flex-wrap: wrap; gap: .4rem; padding-block: .2rem .6rem; }
  .result-options { flex-basis: 100%; margin-inline-start: 0; }
  .category-filter { flex: 1; min-width: 0; }
  .result-select select { font-size: .75rem; }
  .post-card { grid-template-columns: 86px minmax(0, 1fr); min-height: 135px; border-radius: 9px; }
  .card-copy { padding: .68rem .74rem; }
  .card-copy h3 { font-size: 1.02rem; }
  .card-excerpt { font-size: .79rem; }
  .card-arrow { display: none; }
}

@media (max-width: 420px) {
  .brand { gap: .5rem; font-size: 1.04rem; }
}

@media (max-width: 365px) {
  .brand { gap: .42rem; font-size: .96rem; }
  .brand-mark { width: 32px; height: 32px; }
  .stream-identity { gap: .35rem; }
  .stream-identity .edition-link { gap: .25rem; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
