/* Anfang Community-Themen 20.11.2026
   Themen, Antworten, Bilder und Clips, Spoiler, Moderation und der Einstieg „Heute in Leonida“.
   Klassen mit Präfix ct-. Farben aus style.css: Creme, Nachtviolett, Hotpink, Koralle, Rosa. Kein Lime. Erst fürs Handy. */
.ct { min-width: 0; }
.ct :where(h1, h2, h3, p, ol, ul, figure, fieldset) { margin: 0; }
.ct .shell { max-width: 58rem; }
.ct-head { padding-block: clamp(2rem, 6vw, 4rem) 1.5rem; }
.ct .ct-head h1, .ct .ct-thread h1 { font-size: clamp(2rem, 9vw, 4rem); line-height: 1; max-width: none; overflow-wrap: anywhere; hyphens: auto; }
.ct-head > .shell > p:not(.eyebrow) { margin-top: 1rem; max-width: 52ch; }
.ct .eyebrow a { color: inherit; }
.ct h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin-top: 2.5rem; max-width: none; }
.ct-empty { padding: 1.5rem 0; color: var(--muted); }
.ct-flash { margin: 1rem 0; padding: .9rem 1rem; background: rgba(255, 111, 92, .14); border-inline-start: 4px solid var(--coral); }
.ct-meta { font-size: .88rem; line-height: 1.5; color: var(--muted); }
.ct-meta b { color: var(--paper); }
.ct-meta time { white-space: nowrap; }

/* Schilder */
.ct-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.ct-tag { display: inline-block; padding: .15rem .5rem; border: 1px solid currentColor; font: 500 .68rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.ct-tag-area { color: var(--pink); }
.ct-tag-ok { color: var(--night); background: var(--paper); border-color: var(--paper); }
.ct-tag-warn { color: var(--coral); }

/* Bereiche als Reiter, am Handy seitlich wischbar */
.ct-areas { display: flex; gap: .5rem; margin: 1.5rem calc(-1 * var(--pad)) 0; padding: .2rem var(--pad); overflow-x: auto; scrollbar-width: none; }
.ct-areas::-webkit-scrollbar { display: none; }
.ct-areas a { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1rem; border: 2px solid rgba(248, 239, 230, .3); border-radius: 10rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ct-areas a[aria-current="page"] { border-color: var(--coral); color: var(--coral); }

/* Themenliste */
.ct-list { padding-block: 1rem 3rem; }
.ct-rows, .ct-replies, .ct-mods, .ct-tiles { list-style: none; padding: 0; }
.ct-row { display: grid; gap: .5rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.ct .ct-row h2 { margin: 0; font: clamp(1.15rem, 4.8vw, 1.5rem)/1.15 var(--display); letter-spacing: -.02em; text-transform: none; overflow-wrap: anywhere; hyphens: auto; }
.ct-row h2 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.ct-row h2 a:hover, .ct-row h2 a:focus-visible { color: var(--pink); }
.ct-row > p:not(.ct-meta) { font-size: .98rem; line-height: 1.5; overflow-wrap: anywhere; }
.ct-pager { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.ct-pager a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Thema und Antworten */
.ct-thread { padding-block: clamp(1.5rem, 5vw, 3rem) 3rem; }
.ct-thread h1 { margin: .8rem 0 .6rem; }
.ct-post { display: grid; gap: .9rem; margin-top: 1.2rem; padding: 1.1rem; background: #261831; border-top: 3px solid var(--pink); font-size: 1.05rem; line-height: 1.65; overflow-wrap: anywhere; }
.ct-figure img, .ct-mod img { display: block; width: 100%; height: auto; max-height: 34rem; object-fit: contain; background: var(--night); }
.ct-figure figcaption { margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.ct-replies { display: grid; gap: .8rem; margin-top: 1rem; }
.ct-reply { display: grid; gap: .5rem; padding: 1rem; background: #211922; border-inline-start: 3px solid var(--pink); line-height: 1.6; overflow-wrap: anywhere; }
.ct-reply.is-pending { border-inline-start-style: dashed; border-inline-start-color: var(--coral); }
.ct-inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.2rem; }

/* Spoiler: zugeklappt, bis jemand tippt. Kein Text, kein Bild davor sichtbar. */
.ct-spoiler { border: 2px dashed rgba(255, 111, 92, .7); }
.ct-spoiler > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: .6rem 1rem; cursor: pointer; font-weight: 800; color: var(--coral); list-style: none; }
.ct-spoiler > summary::-webkit-details-marker { display: none; }
.ct-spoiler > summary::after { content: "antippen"; font: 500 .7rem/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ct-spoiler[open] > summary::after { content: "schließen"; }
.ct-spoiler > div { display: grid; gap: .9rem; padding: 0 1rem 1rem; }

/* Formulare */
.ct-form { display: grid; gap: .5rem; margin-top: 1rem; max-width: 40rem; }
.ct-form label, .ct-form legend { font-weight: 700; margin-top: .7rem; }
.ct-form label span, .ct-form legend span { font-weight: 400; font-size: .86rem; color: var(--muted); }
.ct-form input:not([type="checkbox"]):not([type="radio"]), .ct-form textarea { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 2px solid rgba(248, 239, 230, .3); border-radius: .4rem; background: var(--ink); color: var(--paper); font: inherit; font-size: 1rem; }
.ct-form input[type="file"] { padding: .55rem; }
.ct-form textarea { resize: vertical; }
.ct-form :is(input, textarea):focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.ct-form .button { justify-self: start; margin-top: 1rem; }
.ct-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; min-height: 2.75rem; padding-block: .3rem; font-weight: 400 !important; }
.ct-check input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; accent-color: var(--pink); }
.ct-check span { font-size: .95rem !important; line-height: 1.45; color: var(--paper) !important; }
.ct-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-media, .ct-pick { display: grid; gap: .5rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); }
.ct-pick label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: center; min-height: 3rem; margin: 0; font-weight: 400; }
.ct-pick input { width: 1.4rem; height: 1.4rem; accent-color: var(--pink); }
.ct-pick span { display: grid; font-size: .92rem !important; color: var(--muted); }
.ct-pick span b { font-size: 1.05rem; color: var(--paper); }
.ct-watch { margin-top: 2.5rem; padding: 1.2rem; background: #211922; border-top: 3px solid var(--coral); }
.ct-watch h2 { margin-top: 0; }
.ct-watch > p { margin-top: .6rem; max-width: 52ch; }
.ct-watch-off { margin-top: 2rem; }
.ct-notice { display: grid; gap: 1rem; justify-items: start; }

/* Bilder und Clips */
.ct-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.ct-tiles-one { grid-template-columns: minmax(0, 28rem); margin-top: 1rem; }
.ct-tile a { display: grid; gap: .35rem; text-decoration: none; min-width: 0; }
.ct-tile img, .ct-veil { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--violet); }
.ct-veil { display: grid; place-content: center; justify-items: center; gap: .2rem; border: 2px dashed rgba(255, 111, 92, .7); background: #261831; font: 1.2rem/1 var(--display); text-transform: uppercase; color: var(--coral); }
.ct-veil small { font: 500 .66rem/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); text-align: center; padding-inline: .4rem; }
.ct-veil-clip { border-style: solid; border-color: rgba(255, 119, 152, .6); color: var(--pink); }
.ct-tile b { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.ct-tile span:last-child { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.ct-moment { padding-block: 0 1rem; }
.ct-moment h2 { margin-top: 0; }

/* Moderation */
.ct-mods { display: grid; gap: 1rem; margin-top: 1rem; }
.ct-mod { display: grid; gap: .6rem; padding: 1rem; background: #211922; border-inline-start: 3px solid var(--coral); min-width: 0; }
.ct-mod-form { display: grid; gap: .5rem; }
.ct-mod-form input[type="text"], .ct-mod-form input:not([type]) { width: 100%; min-height: 3rem; padding: .6rem .8rem; border: 2px solid rgba(248, 239, 230, .3); border-radius: .4rem; background: var(--ink); color: var(--paper); font: inherit; }
.ct-mod-form label span { font-weight: 400; font-size: .86rem; color: var(--muted); }
.ct-mod-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Einstieg auf /community: Heute in Leonida */
.ct-today { padding-block: clamp(2rem, 6vw, 4rem) 2rem; }
.ct-today h1 { font-size: clamp(2.4rem, 12vw, 5.5rem); line-height: .95; max-width: none; }
.ct-today > .shell > p:not(.eyebrow) { margin-top: 1rem; max-width: 46ch; }
.ct-today-grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
.ct-card { display: grid; align-content: start; gap: .7rem; padding: 1.2rem; background: #261831; border-top: 3px solid var(--pink); min-width: 0; }
.ct-card:nth-child(2) { border-top-color: var(--coral); }
.ct-card:nth-child(3) { border-top-color: var(--hot); }
.ct-card > small { font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.ct-card h2 { font: clamp(1.3rem, 5.5vw, 1.7rem)/1.1 var(--display); letter-spacing: -.02em; margin: 0; max-width: none; overflow-wrap: anywhere; hyphens: auto; }
.ct-card p { margin: 0; font-size: .98rem; line-height: 1.5; }
.ct-card .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; justify-self: start; }
.ct-talks { list-style: none; margin: 0; padding: 0; display: grid; }
.ct-talks li { border-top: 1px solid var(--line); }
.ct-talks a { display: grid; gap: .15rem; min-height: 3.25rem; padding: .6rem 0; text-decoration: none; }
.ct-talks b { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.ct-talks span { font-size: .8rem; color: var(--muted); }
.ct-talks a:hover b, .ct-talks a:focus-visible b { color: var(--pink); }

@media (min-width: 700px) {
  .ct-areas { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
  .ct-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
  .ct-tiles-one { grid-template-columns: minmax(0, 28rem); }
  .ct-post { padding: 1.5rem; }
}
@media (min-width: 900px) {
  .ct-today-grid { grid-template-columns: 1fr 1.2fr 1fr; }
}
/* Ende Community-Themen */

/* Navigation bleibt auch vor der Skriptinitialisierung und ohne JavaScript im schmalen Bildschirm. */
@media (max-width:1040px) {
  body[data-page="community"] .site-header:has(.menu-toggle[hidden]) { flex-wrap:wrap; }
  body[data-page="community"] .site-header:has(.menu-toggle[hidden]) #main-nav { width:100%; flex-wrap:wrap; }
}


/* Anfang GTA-Bildwelt: Heute in Leonida */
.ct-today { padding-top:0; }
.ct-today-intro { position:relative; isolation:isolate; min-height:clamp(29rem,43vw,38rem); display:grid; align-items:end; overflow:hidden; background:#21112d; }
.ct-today-backdrop { position:absolute; inset:0; z-index:-2; }
.ct-today-backdrop img { width:100%; height:100%; object-fit:cover; object-position:62% 38%; }
.ct-today-intro::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,rgba(15,10,22,.78),rgba(15,10,22,.24) 64%,rgba(15,10,22,.08)),linear-gradient(0deg,rgba(15,10,22,.92),transparent 68%); }
.ct-today-copy { padding-block:8rem 2.5rem; text-shadow:0 2px 18px rgba(0,0,0,.65); }
.ct-today-copy .eyebrow { color:#ffc3d9; margin-bottom:.8rem; }
.ct-today .ct-today-copy h1 { max-width:10ch; }
.ct-today-copy > p:not(.eyebrow) { margin-top:1rem; max-width:42ch; font-size:clamp(1rem,1.3vw,1.2rem); line-height:1.6; }
.ct-today-join { margin-top:1.4rem; gap:1.7rem; text-shadow:none; }
.ct-today-credit { padding-block:.75rem 0; font-size:.72rem; line-height:1.5; color:var(--muted); }
.ct-today-credit a { color:inherit; text-underline-offset:3px; }
.ct-today .ct-today-grid { margin-top:1.35rem; }
.ct-today .ct-card { padding:0; gap:0; overflow:hidden; border:1px solid rgba(255,119,152,.26); border-top:3px solid var(--pink); background:linear-gradient(145deg,#2d1938,#1b1324); }
.ct-today .ct-card:nth-child(2) { border-top-color:var(--coral); }
.ct-today .ct-card:nth-child(3) { border-top-color:var(--hot); }
.ct-card-art { margin:0; aspect-ratio:16/9; overflow:hidden; position:relative; background:#2d1938; }
.ct-card-art::after { content:""; position:absolute; inset:50% 0 0; background:linear-gradient(transparent,rgba(27,19,36,.65)); pointer-events:none; }
.ct-card-art img { width:100%; height:100%; display:block; object-fit:cover; object-position:50% 42%; }
.ct-card:nth-child(2) .ct-card-art img { object-position:44% 40%; }
.ct-card:nth-child(3) .ct-card-art img { object-position:48% 37%; }
.ct-card-content { display:grid; align-content:start; gap:.7rem; padding:1.25rem; }
.ct-card-content > small { font:500 .72rem/1.4 var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--pink); }
#heute-mitmachen { scroll-margin-top:6rem; }
@media(max-width:699px) {
 .ct-today-intro { min-height:32rem; }
 .ct-today-backdrop img { object-position:63% 35%; }
 .ct-today-intro::after { background:linear-gradient(180deg,rgba(15,10,22,.03) 4%,rgba(15,10,22,.12) 26%,rgba(15,10,22,.76) 59%,#100d13 100%); }
 .ct-today-copy { padding-block:12rem 1.6rem; }
 .ct-today-copy .eyebrow { font-size:.68rem; letter-spacing:.07em; }
 .ct-today-copy > p:not(.eyebrow) { max-width:35ch; }
 .ct-today-join { margin-top:1rem; }
}
@media(min-width:900px) { .ct-card-art { aspect-ratio:auto; height:clamp(11rem,17vw,14rem); } }
/* Ende GTA-Bildwelt */
