/*
Theme Name: sternchenthemen
Template: twentytwentyfive
Description: Child-Theme für sternchenthemen.de auf Basis von Twenty Twenty-Five, nach den Leitlinien 0.1 (Papier, Tinte, Kobalt, Zinnober, Gelb; Fraunces, Source Serif 4, Inter). Farben, Schriften und Abstände werden zentral in theme.json gesteuert und sind im Website-Editor unter „Stile“ änderbar.
Version: 1.0.2
Requires at least: 6.7
Text Domain: sternchenthemen
License: GNU General Public License v2 or later
*/

/* Grundlagen */
::selection{background:var(--wp--preset--color--yellow);color:var(--wp--preset--color--contrast)}
:where(a,button,input,summary):focus-visible{outline:2px solid var(--wp--preset--color--primary);outline-offset:3px}
.st-wordmark a::after{content:"*";color:var(--wp--preset--color--primary);margin-left:.04em}
.wp-block-site-tagline{font-family:var(--wp--preset--font-family--sans)}

/* Seitentitel kleiner als der skandierte Vers */
main h1.wp-block-heading{font-size:clamp(2.75rem,4.6vw,4rem)}

/* Kicker / Dachzeile: STAR / CLAUDIUS / 1779 */
.st-kicker{font-family:var(--wp--preset--font-family--sans);font-size:.8125rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--wp--preset--color--accent)}

/* Rubrikenköpfe mit Kapitelnummern (01, 02 …) */
main{counter-reset:st-section}
main h2.wp-block-heading[id]::before{counter-increment:st-section;content:counter(st-section,decimal-leading-zero);display:block;margin-bottom:.55em;font-family:var(--wp--preset--font-family--sans);font-size:.8125rem;font-weight:500;letter-spacing:.12em;color:var(--wp--preset--color--primary)}

/* Skandierter Vers: Silben als Absätze, Hebung/Senkung über CSS-Klassen */
.cs-verse{font-family:var(--wp--preset--font-family--display);font-size:var(--wp--preset--font-size--xx-large);column-gap:.28em!important;row-gap:.15em!important}
.cs-wd{gap:0!important}
.cs-sy{display:flex;flex-direction:column;align-items:center;margin:0!important;font-size:inherit;line-height:1;letter-spacing:-.02em}
/* Metrische Zeichen: — Länge/Hebung, ◡ Kürze/Senkung */
.cs-sy::before{display:block;height:1.3em;margin-bottom:.2em;font-size:.38em;line-height:1.3em;font-weight:400;font-family:Inter,"Segoe UI Symbol","Apple Symbols","DejaVu Sans",sans-serif;letter-spacing:0}
.cs-h{font-weight:400}
.cs-h::before{content:"—";color:var(--wp--preset--color--accent)}
.cs-s::before{content:"◡";color:var(--wp--preset--color--grey-1)}

/* Einträge der Sammlung */
.cs-entry{border-bottom:1px solid var(--wp--preset--color--grey-2);padding-block:var(--wp--preset--spacing--40)!important;margin-block:0!important}
.cs-list{border-top:1px solid var(--wp--preset--color--contrast)}
.cs-list>*{margin-block:0!important}
.cs-year{font-family:var(--wp--preset--font-family--sans);font-size:.8125rem;font-weight:500;letter-spacing:.06em;color:var(--wp--preset--color--grey-1);margin:0!important;padding-top:6px}
.cs-entry h3{margin:0!important}
.cs-entry h3 a{color:var(--wp--preset--color--contrast);text-decoration:none;transition:color .15s}
.cs-entry h3 a:hover{color:var(--wp--preset--color--primary)}
.cs-entry h3 a::after{content:" ↗";color:var(--wp--preset--color--primary);font-family:var(--wp--preset--font-family--sans);font-size:.75em}
.cs-entry p{margin-top:6px!important}
.cs-desc{font-size:1.125rem;line-height:1.6;color:var(--wp--preset--color--contrast);max-width:36em}
.cs-meta{font-family:var(--wp--preset--font-family--sans);font-size:.8125rem;letter-spacing:.02em;color:var(--wp--preset--color--grey-1);margin-top:10px!important}
.cs-meta strong{font-weight:600;color:var(--wp--preset--color--primary);margin-right:.8em;text-transform:uppercase;letter-spacing:.1em}
.cs-entry .wp-block-column:first-child{flex-basis:22%!important}
@media (max-width:781px){.cs-entry .wp-block-columns{gap:4px}}

/* Bibliographie: hängender Einzug, Linien wie die Sammlung */
.cs-bibhead{font-family:var(--wp--preset--font-family--sans)!important;font-size:.8125rem!important;font-weight:600!important;letter-spacing:.12em!important;text-transform:uppercase;color:var(--wp--preset--color--accent);margin-top:var(--wp--preset--spacing--50)!important;margin-bottom:var(--wp--preset--spacing--20)!important}
.cs-bib{list-style:none;padding:0!important;margin:0!important;border-top:1px solid var(--wp--preset--color--contrast)}
.cs-bib li{font-family:var(--wp--preset--font-family--sans);font-size:1rem;line-height:1.55;padding:var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--30) 1.5em;text-indent:-1.5em;border-bottom:1px solid var(--wp--preset--color--grey-2);max-width:40em;margin:0!important}
.cs-bib a{font-family:var(--wp--preset--font-family--sans);font-size:.8125rem;font-weight:500;white-space:nowrap;margin-left:.4em}
.cs-bib a::after{content:" ↗"}
.cs-bib .cs-free,.cs-bib .cs-paid{display:inline-block;text-indent:0;font-family:var(--wp--preset--font-family--sans);font-size:.75rem;font-weight:500;line-height:1;padding:4px 7px;margin-left:.3em;white-space:nowrap;vertical-align:1px}
.cs-bib .cs-free{background:var(--wp--preset--color--primary);color:#fff}
.cs-bib .cs-paid{border:1px solid var(--wp--preset--color--grey-1);color:var(--wp--preset--color--grey-1)}

/* Rubriken-Navigation */
.cs-toc{font-family:var(--wp--preset--font-family--sans);border-top:1px solid var(--wp--preset--color--contrast);border-bottom:1px solid var(--wp--preset--color--grey-2)}
.cs-toc a{color:var(--wp--preset--color--contrast);text-decoration:none;display:inline-block;padding:10px 2px}
.cs-toc a:hover{background:var(--wp--preset--color--yellow)}

/* Einleitende Absätze in Inter, kleiner */
.has-small-font-size{font-family:var(--wp--preset--font-family--sans)}

@media (prefers-reduced-motion:no-preference){
  .cs-sy::before{animation:cs-drop .5s cubic-bezier(.2,.7,.2,1) both}
  .cs-wd:nth-child(2) .cs-sy::before{animation-delay:.1s}.cs-wd:nth-child(3) .cs-sy::before{animation-delay:.2s}.cs-wd:nth-child(4) .cs-sy:nth-child(1)::before{animation-delay:.3s}.cs-wd:nth-child(4) .cs-sy:nth-child(2)::before{animation-delay:.4s}.cs-wd:nth-child(4) .cs-sy:nth-child(3)::before{animation-delay:.5s}.cs-wd:nth-child(4) .cs-sy:nth-child(4)::before{animation-delay:.6s}
  @keyframes cs-drop{from{opacity:0;transform:translateY(-8px)}}
}

/* YouTube-Links: kleines Icon vor dem Linktext */
a[href*="youtube.com"]::before,a[href*="youtu.be"]::before{content:"";display:inline-block;width:1.05em;height:.74em;margin-right:.35em;vertical-align:-.04em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'%3E%3Crect width='28' height='20' rx='5' fill='%23FF0000'/%3E%3Cpath d='M11 5.5v9l8-4.5z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain}
