/* DEMOS MAG – statisches Archiv, Gestaltung nach dem Original-Theme */

/* Schriften (SIL Open Font License), lokal eingebunden */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-400.woff") format("woff"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/eb-garamond-600.woff") format("woff"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/eb-garamond-700.woff") format("woff"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/public-sans-300.woff") format("woff"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/public-sans-400.woff") format("woff"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/public-sans-600.woff") format("woff"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/public-sans-700.woff") format("woff"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/public-sans-900.woff") format("woff"); }

:root {
  --bg: #f7f4f0;
  --white: #ffffff;
  --ink: #1e1e1e;
  --mint: #adf7cf;
  --heart: #f67558;
  --sans: "Public Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --cc: #adf7cf; /* Rubrikfarbe (Unterstreichung) */
}
/* Rubrikfarben wie im Original */
.cat-werte { --cc: #79d6fe; }
.cat-miteinander-wir { --cc: #ffd7b7; }
.cat-charaktere { --cc: #f77458; }
.cat-kultur { --cc: #c59ed6; }
.cat-kennst-du-schon { --cc: #6b78f2; }
.cat-reklame { --cc: #abdefe; }
.cat-kolumne, .cat-stiftung-forum-recht, .cat-junge-islam-konferenz-medienakademie, .cat-held_innen, .cat-reflecta { --cc: #adf7cf; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 18px/1.43 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 700; }
figure { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Container & 12-Spalten-Raster (Semantic-UI-Maße des Originals) ---- */
.container { width: auto; margin-left: 16px; margin-right: 16px; }
@media (min-width: 768px) { .container { width: 723px; margin-left: auto; margin-right: auto; } }
@media (min-width: 992px) { .container { width: 933px; } }
@media (min-width: 1200px) { .container { width: 1127px; } }
@media (min-width: 1500px) { .container { width: 1359px; } }

.grid { display: flex; flex-wrap: wrap; margin: 0 -16px; }
.grid.centered { justify-content: center; }
.col { padding: 16px; width: 100%; min-width: 0; }
.m1{width:8.3333%}.m2{width:16.6667%}.m3{width:25%}.m4{width:33.3333%}.m5{width:41.6667%}.m6{width:50%}
.m7{width:58.3333%}.m8{width:66.6667%}.m9{width:75%}.m10{width:83.3333%}.m11{width:91.6667%}.m12{width:100%}
@media (min-width: 768px) {
  .t1{width:8.3333%}.t2{width:16.6667%}.t3{width:25%}.t4{width:33.3333%}.t5{width:41.6667%}.t6{width:50%}
  .t7{width:58.3333%}.t8{width:66.6667%}.t9{width:75%}.t10{width:83.3333%}.t11{width:91.6667%}.t12{width:100%}
}
@media (min-width: 992px) {
  .c1{width:8.3333%}.c2{width:16.6667%}.c3{width:25%}.c4{width:33.3333%}.c5{width:41.6667%}.c6{width:50%}
  .c7{width:58.3333%}.c8{width:66.6667%}.c9{width:75%}.c10{width:83.3333%}.c11{width:91.6667%}.c12{width:100%}
}
@media (max-width: 767px) { .hs { display: none !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .hm { display: none !important; } }
@media (min-width: 1024px) { .hl { display: none !important; } }

/* ---- Abschnitte ---- */
.sec { position: relative; }
.bg-white { background: var(--white); }
.pt-s { padding-top: 22.5px; } .pt-m { padding-top: 67.5px; }
.pb-s { padding-bottom: 22.5px; } .pb-m { padding-bottom: 67.5px; }
.ta-c { text-align: center; } .ta-r { text-align: right; }

/* ---- Kopfbereich ---- */
.site-header { background: var(--white); }
.head-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 32px; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 38px; width: auto; }
.support { justify-self: start; display: inline-flex; align-items: center; gap: 12px; background: var(--mint); color: var(--ink);
  font: 700 18px/18px var(--sans); letter-spacing: .2px; padding: 9px 24px 9px 18px; }
.support:hover { filter: brightness(.96); }
.support .heart { flex: none; }
.mainnav { margin-top: 23px; }
.navrow { display: flex; justify-content: space-between; gap: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 16px; }
.navrow::-webkit-scrollbar { display: none; }
.navrow a { font: 700 18px/1.2 var(--sans); text-transform: uppercase; white-space: nowrap; padding: 7px 0; border-bottom: 2px solid transparent; }
.navrow a:hover, .navrow a[aria-current] { border-bottom-color: var(--ink); }

/* ---- Inhaltsbausteine ---- */
.ci + .ci { margin-top: 16px; }
.ci-gap { height: 8px; }
.al-c { text-align: center; } .al-c img { margin-left: auto; margin-right: auto; }
.al-r { text-align: right; } .al-r img { margin-left: auto; }
.ci-text p, .ci-text li { font-size: 18px; line-height: 1.6; letter-spacing: .4px; }
.ci-text p { margin: 0 0 18px; }
.ci-text > :last-child { margin-bottom: 0; }
.ci-text a { border-bottom: 3px solid var(--mint); }
.ci-text a:hover { background: var(--mint); }
.ci-text ul, .ci-text ol { padding-left: 1.3em; margin: 0 0 18px; }
.ci-text li { margin-bottom: 6px; }
.ci-text h2:not(.hd), .ci-text h3:not(.hd), .ci-text h4:not(.hd), .ci-text h5:not(.hd), .ci-text h6:not(.hd) {
  font: 700 21px/1.3 var(--sans); margin: 28px 0 10px; }
.ci-text figure { margin: 0 0 18px; }
.ci-text table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 0 0 18px; }
.ci-text td, .ci-text th { border: 1px solid #d9d3ca; padding: 6px 8px; text-align: left; vertical-align: top; }
.ci-text sup, .ci-text sub { line-height: 0; }
.ci-text, .art-head, .abox-text { overflow-wrap: break-word; }
blockquote { margin: 0 0 16px; font: 400 30px/1.4 var(--serif); }
blockquote p, .ci-text blockquote p { font: inherit; letter-spacing: 0; margin: 0 0 30px; }
.hd { font-family: var(--serif); line-height: 1.125; margin: 0 0 16px; letter-spacing: 0; }
.hd1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; }
.hd2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 400; }
.hd3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; }
.hd4 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.hd5 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; }
.hd6 { font-size: 20px; font-weight: 700; }
.ci-text .hd { margin-top: 8px; }
a.gloss { border-bottom: 0; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
a.gloss:hover { background: none; }
.btn, .ci-text a.btn { display: inline-block; background: var(--mint); color: var(--ink); font: 700 18px/18px var(--sans); letter-spacing: .2px;
  text-transform: uppercase; padding: 17px 40px; border: 0; }
.btn:hover { filter: brightness(.95); background: var(--mint); }
a.media-link, .ci-text a.media-link { display: inline-block; background: var(--ink); color: #fff; font: 700 16px/1 var(--sans); letter-spacing: .2px; padding: 14px 20px; border: 0; }
a.media-link:hover { background: #000; }
.note { background: var(--white); padding: 18px 22px; margin: 0; }

/* ---- Teaser-Karten ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.card-img { display: block; align-self: end; margin-bottom: 16px; }
.card-extra { margin-top: 24px; }
.card-img img { width: 100%; }
.card-meta, .art-meta { font-size: 18px; line-height: 1.43; }
.card-meta { margin-bottom: 6px; }
.m-cat { font-weight: 700; text-transform: uppercase; }
.m-cat + .m-cat::before { content: " "; }
.card-title { font: 700 22px/1.125 var(--serif); margin: 0; }
.card-sub { font: 400 22px/1.125 var(--serif); margin: 0; }
.card-title a, .card-sub a { text-decoration: underline; text-decoration-color: var(--cc); }
.card-title a:hover, .card-sub a:hover { text-decoration-color: var(--mint); }
.card-lead .card-title, .card-lead .card-sub { font-size: 22px; }
@media (max-width: 991px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cards, .cards-2 { grid-template-columns: 1fr; row-gap: 32px; } }

/* ---- Artikel ---- */
.art-top .grid + .grid .col { padding-top: 4px; }
.hero img { width: 100%; }
.art-meta { margin: 0 0 12px; }
.art-title { font: 700 clamp(32px, 4.2vw, 50px)/1.125 var(--serif); margin: 0; }
.art-sub { font: 400 clamp(32px, 4.2vw, 50px)/1.125 var(--serif); margin: 0; }
.art-title, .art-sub { text-decoration: underline; text-decoration-color: var(--cc); text-decoration-thickness: from-font; }
.post .sec:not(.art-top):first-of-type { padding-top: 20px; }
.abox { display: flex; gap: 24px; align-items: flex-start; }
.abox + .abox { margin-top: 40px; }
.abox-img img { width: 300px; height: 300px; object-fit: cover; }
.abox-social { display: flex; flex-direction: column; gap: 10px; }
.abox-text { flex: 1; min-width: 0; }
.abox-text p { font-size: 18px; line-height: 1.43; margin: 0 0 12px; }
.abox-name { font-weight: 700; }
.abox-text a { border-bottom: 3px solid var(--mint); }
.abox-name a { border-bottom: 0; }
.soc { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; flex: none; }
.soc svg { width: 16px; height: 16px; fill: currentColor; }
.rel-head { font-weight: 700; margin: 0 0 24px; }
.author-photo { width: 220px; height: 220px; object-fit: cover; margin: 8px auto 28px; }
.author-bio { text-align: left; }
.author-social { display: flex; justify-content: center; gap: 10px; margin: 20px 0 0; }
.catpage .hd1 { text-decoration: underline; text-decoration-color: var(--cc); }
.tile .ci img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tile-empty { display: flex; aspect-ratio: 1 / 1; align-items: center; justify-content: center; background: var(--bg);
  font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); color: #b9b2a8; }
.glist { list-style: none; padding: 0; columns: 2; column-gap: 40px; }
.gloss-def { margin-top: 24px; }

/* ---- Fußzeile ---- */
.site-footer { background: #000; color: #fff; padding: 48px 0 28px; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px 24px; }
.foot-sponsor img { width: 138px; }
.foot-social { display: flex; gap: 18px; }
.soc-foot { background: none; width: 28px; height: 28px; }
.soc-foot svg { width: 26px; height: 26px; }
.foot-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 400; }
.foot-links a:hover { text-decoration: underline; }

/* ---- Nach-oben-Button ---- */
.totop { position: fixed; right: 20px; bottom: 20px; width: 34px; height: 34px; background: var(--mint); display: flex; align-items: center; justify-content: center; z-index: 10; }
.totop svg { width: 22px; height: 22px; fill: var(--ink); }

/* ---- Responsiv ---- */
@media (max-width: 1199px) { .navrow a { font-size: 16px; } }
@media (max-width: 991px) {
  .head-row { padding-top: 22px; }
  .logo img { height: 30px; }
  .support { font-size: 15px; padding: 7px 16px 7px 12px; gap: 8px; }
  .mainnav { margin-top: 16px; }
  .navrow { justify-content: flex-start; gap: 26px; }
  .navrow a { font-size: 15px; }
  .abox-img img { width: 200px; height: 200px; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  .head-row { grid-template-columns: 1fr; justify-items: center; padding-top: 18px; }
  .support, .head-end { display: none; }
  .logo img { height: 24px; }
  .mainnav { margin-top: 12px; }
  .navrow { padding-bottom: 10px; }
  .navrow a { font-size: 14px; }
  .pt-m { padding-top: 40px; } .pb-m { padding-bottom: 40px; }
  .ci-text p, .ci-text li { font-size: 17px; }
  blockquote { font-size: 24px; }
  .abox { flex-wrap: wrap; gap: 16px; }
  .abox-img img { width: 140px; height: 140px; }
  .abox-social { flex-direction: row; }
  .abox-text { flex-basis: 100%; }
  .glist { columns: 1; }
  .foot { grid-template-columns: 1fr; justify-items: start; }
  .btn { padding: 14px 28px; font-size: 16px; }
}
@media print {
  .site-header .support, .mainnav, .totop, .site-footer { display: none; }
  body { background: #fff; }
}
