Files
website/hugo/static/css/style.css
T
tobias 5e9da58d23 Vorlage fuer eigene Ableger-Installationen: Website + CMS-Code
Bereinigt von Pilot-Spezifika (echte Inhalte, Erzbistum-Hamburg-Bezuege,
Domain-Werte) - install.env und hugo.toml [params] mit generischen
Platzhaltern. docs/ komplett entfernt: Konzept, Manifest, Installations-
anleitungen leben jetzt auf der Projekt-Website statt redundant im Repo,
README verweist dorthin. Decap-CMS-Version von einer floatenden ^3.0.0
auf ein festes 3.15.1 gepinnt.
2026-08-23 14:37:54 +02:00

518 lines
16 KiB
CSS

:root {
--color-bg: #fdfcfb;
--color-text: #1f2320;
--color-muted: #5b645d;
--color-accent: #3c8a98;
--color-accent-contrast: #fff;
--color-border: #dcd8d0;
--color-card-bg: #ffffff;
--radius: 8px;
--spacing: 1rem;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #16181a;
--color-text: #e9e9e6;
--color-muted: #a3aba5;
--color-accent: #6fc2d1;
--color-accent-contrast: #06272b;
--color-border: #33372f;
--color-card-bg: #1f2321;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--color-bg);
color: var(--color-text);
line-height: 1.55;
}
a { color: var(--color-accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.site-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--spacing);
padding: var(--spacing) 1.5rem;
border-bottom: 1px solid var(--color-border);
/* Explicit background instead of inheriting from body: on
admin/index.html, Decap's own, later-loading CSS-in-JS overrides
body's background color with its light-gray default - our text color
here (.site-title, our own class, untouched by Decap) still switches
correctly in dark mode though, which resulted in light text on a
light background. Found and verified live. */
background: var(--color-bg);
}
.site-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.25rem;
font-weight: 700;
text-decoration: none;
color: var(--color-text);
}
.site-logo { display: block; }
.visually-hidden {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* --- Header: "Suchen" and "Stöbern" ---------------------------------
Both open on hover (only on pointer devices that support hover -
deliberately not on touch, see media query below), on keyboard focus
(:focus-within, e.g. Tab to the search field), or on click/tap (the
"is-open" class, toggled by the inline script in baseof.html - the
only way on touch devices without hover). The search additionally
stays open once it contains a value, even without hover/focus - also
driven via "is-open", see script. */
.site-header__actions { display: flex; gap: 1.5rem; align-items: flex-start; }
.header-search, .header-browse { position: relative; }
.header-toggle {
display: inline-block;
cursor: pointer;
padding: 0.5rem 0.25rem;
border: 0;
background: transparent;
color: var(--color-text);
font: inherit;
font-weight: 500;
font-size: 0.9rem;
user-select: none;
}
.header-toggle:hover, .header-toggle[aria-expanded="true"] { color: var(--color-accent); }
/* header-toggle was designed for the Suchen/Stöbern <button> elements,
which naturally have no underline - the methoden-set link is a real
<a> (standalone page, no panel to expand/collapse) and therefore needs
the reset explicitly, otherwise the browser underlines it like any
other link. */
.header-toggle--link { text-decoration: none; }
.header-search__form,
.header-browse__nav {
display: none;
position: absolute;
/* Attach directly to the button (top: 100%, no gap) instead of leaving
a gap: a gap would not be a hoverable area - moving the mouse down
from the button to the menu would briefly leave every hoverable
surface, closing the menu before the mouse arrives there (reported
live). The visual spacing to the links instead comes from the
"padding" below, which counts as part of the box's own hoverable
area. */
top: 100%;
right: 0;
z-index: 10;
background: var(--color-card-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 0.5rem;
}
.header-search__form { width: max(18rem, 80vw); max-width: 22rem; }
.header-browse__nav { flex-direction: column; gap: 0.25rem; min-width: 12rem; }
@media (hover: hover) and (pointer: fine) {
.header-search:hover .header-search__form,
.header-search:focus-within .header-search__form,
.header-browse:hover .header-browse__nav,
.header-browse:focus-within .header-browse__nav {
display: flex;
}
}
.header-search.is-open .header-search__form,
.header-browse.is-open .header-browse__nav {
display: flex;
}
.header-search__form input[type="search"] {
width: 100%;
padding: 0.6rem 0.8rem;
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-bg);
color: var(--color-text);
font-size: 1rem;
}
.header-search__form input[type="search"]:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.header-browse__nav a {
padding: 0.5rem 0.75rem;
border-radius: calc(var(--radius) - 2px);
text-decoration: none;
font-weight: 500;
color: var(--color-text);
}
.header-browse__nav a:hover { background: var(--color-bg); color: var(--color-accent); }
/* At sufficient width, "Suchen" is no longer a collapsible bar but an
always-visible search bar directly in the header - the rules above
(hover/focus/is-open) are deliberately ignored here (!important beats
the lower specificity of the display:none default). "Stöbern" stays a
collapsible bar at every width. */
@media (min-width: 48rem) {
.header-search .header-toggle { display: none; }
.header-search__form {
display: flex !important;
position: static;
width: 16rem;
max-width: none;
background: none;
border: 0;
padding: 0;
}
}
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a:hover { text-decoration: underline; }
.site-main {
max-width: 72rem;
margin: 0 auto;
padding: 2rem 1.5rem 4rem;
}
/* --- Footer: three columns, stack on narrow screens ----------------- */
.site-footer {
padding: 2.5rem 1.5rem;
color: var(--color-muted);
font-size: 0.875rem;
border-top: 1px solid var(--color-border);
}
.site-footer__grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
max-width: 72rem;
margin: 0 auto;
}
@media (min-width: 40rem) {
.site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.site-footer__heading {
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
color: var(--color-muted);
margin: 0 0 0.6rem;
}
.site-footer__col p { margin: 0 0 0.75rem; }
.site-footer__links {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.site-footer__links a { color: var(--color-muted); }
.site-footer__links a:hover { color: var(--color-accent); }
.site-footer__placeholder {
color: var(--color-muted);
opacity: 0.6;
cursor: default;
border-bottom: 1px dashed var(--color-border);
}
.filter-list {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
padding: 0;
margin: 0.5rem 0 1.5rem;
}
.filter-list li a {
display: inline-block;
padding: 0.35rem 0.75rem;
border: 1px solid var(--color-border);
border-radius: 999px;
text-decoration: none;
font-size: 0.875rem;
}
.filter-list li a:hover { border-color: var(--color-accent); }
/* --- Filter -----------------------------------------------------------
The search itself has lived in the <header> (baseof.html,
.header-search) since the header rework, instead of here on the
homepage. */
.toolbar {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
margin: 2rem 0;
}
.toolbar #result-count { padding-top: 0.7rem; }
.filter-panel {
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-card-bg);
margin-bottom: 1rem;
flex: 0 0 auto;
}
/* Opens at full width (matching the width of the method cards below)
instead of only as wide as the "Filter" button - result-count wraps
onto its own line on its own thanks to flex-wrap on .toolbar. */
.filter-panel[open] { flex: 1 1 100%; }
.filter-panel summary {
cursor: pointer;
padding: 0.75rem 1rem;
font-weight: 600;
}
.filter-panel[open] summary { border-bottom: 1px solid var(--color-border); }
.filter-panel__body {
padding: 1.25rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
gap: 1.5rem;
}
.filter-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter-group legend, .filter-range__label { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; padding: 0; }
.filter-checkbox {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
padding: 0.2rem 0;
cursor: pointer;
}
.filter-count { color: var(--color-muted); font-size: 0.8rem; }
.filter-range__slider {
position: relative;
height: 2rem;
margin-top: 0.5rem;
}
.filter-range__track, .filter-range__fill {
position: absolute;
top: 50%;
height: 4px;
transform: translateY(-50%);
border-radius: 2px;
}
.filter-range__track { left: 0; right: 0; background: var(--color-border); }
.filter-range__fill { background: var(--color-accent); }
.filter-range__slider input[type="range"] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 2rem;
margin: 0;
background: transparent;
pointer-events: none;
-webkit-appearance: none;
appearance: none;
}
.filter-range__slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.filter-range__slider input[type="range"]::-moz-range-track { background: transparent; }
.filter-range__slider input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
pointer-events: auto;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--color-accent);
border: 2px solid var(--color-card-bg);
box-shadow: 0 0 0 1px var(--color-border);
cursor: pointer;
margin-top: 6px;
}
.filter-range__slider input[type="range"]::-moz-range-thumb {
pointer-events: auto;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--color-accent);
border: 2px solid var(--color-card-bg);
box-shadow: 0 0 0 1px var(--color-border);
cursor: pointer;
}
#filter-reset {
grid-column: 1 / -1;
justify-self: start;
padding: 0.5rem 1rem;
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: transparent;
color: var(--color-text);
cursor: pointer;
font-size: 0.875rem;
}
#filter-reset:hover { border-color: var(--color-accent); }
#result-count { color: var(--color-muted); font-size: 0.875rem; margin: 0; }
#no-results { color: var(--color-muted); padding: 2rem 0; }
.search-more-link { font-size: 0.875rem; padding-top: 0.7rem; }
/* --- Full-text search (/suche/, layouts/suche/list.html) ---------------
PagefindUI brings its own CSS (pagefind-ui.css) and reads its colors
via these custom properties - see
https://pagefind.app/docs/ui/#styling-the-ui - instead of writing
custom CSS against the result list generated by Pagefind. */
.search-page { max-width: 40rem; margin: 2rem auto 0; }
.search-page__hint { color: var(--color-muted); margin-bottom: 1.5rem; }
#pagefind-suche {
--pagefind-ui-primary: var(--color-accent);
--pagefind-ui-text: var(--color-text);
--pagefind-ui-background: var(--color-bg);
--pagefind-ui-border: var(--color-border);
--pagefind-ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.method-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
gap: 1.25rem;
margin-top: 1rem;
}
.method-card {
background: var(--color-card-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 1.25rem;
}
.method-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.method-card h3 a { text-decoration: none; }
.method-card h3 a:hover { text-decoration: underline; }
.method-card__desc { color: var(--color-muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.method-card__meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 0 0 0.75rem; font-size: 0.825rem; }
.method-card__meta div { display: flex; gap: 0.35rem; }
.method-card__meta dt { color: var(--color-muted); margin: 0; }
.method-card__meta dd { margin: 0; font-weight: 500; }
.method-card__group { margin-top: 0.6rem; }
.method-card__label {
color: var(--color-muted);
font-size: 0.75rem;
margin: 0;
}
.method-card__tags {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
padding: 0;
margin: 0.3rem 0 0;
}
.facet-chip {
font: inherit;
font-size: 0.75rem;
background: var(--color-border);
color: var(--color-text);
border: 0;
border-radius: 999px;
padding: 0.15rem 0.6rem;
cursor: pointer;
}
.facet-chip:hover { filter: brightness(0.92); }
.method-card__tags--kompetenz .facet-chip { background: var(--color-accent); color: var(--color-accent-contrast); }
.method-card__tags--kategorie .facet-chip { background: transparent; border: 1px solid var(--color-border); }
.method__header { margin-bottom: 1.5rem; }
.method__lead { color: var(--color-muted); font-size: 1.05rem; }
.method__updated { font-size: 0.8rem; color: var(--color-muted); }
.method__section { margin: 1.75rem 0; }
.method__section h2 { font-size: 1.1rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.25rem; }
.method__meta dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.75rem 1.5rem; }
.method__meta dt { color: var(--color-muted); font-size: 0.8rem; margin: 0; }
.method__meta dd { margin: 0; font-weight: 500; }
.method__body { margin: 2rem 0; }
.method__body h1 { font-size: 1.3rem; }
.method__body h2 { font-size: 1.1rem; }
.method__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; }
.method__tags li a {
display: inline-block;
font-size: 0.8rem;
background: var(--color-border);
border-radius: 999px;
padding: 0.2rem 0.7rem;
text-decoration: none;
color: var(--color-text);
}
.method__label { color: var(--color-muted); font-size: 0.8rem; margin: 1rem 0 0.25rem; }
.method__meta-inline { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin: 0.75rem 0; }
.method__meta-inline div { display: flex; gap: 0.35rem; font-size: 0.9rem; }
.method__meta-inline dt { color: var(--color-muted); margin: 0; }
.method__meta-inline dd { margin: 0; font-weight: 500; }
/* "About the method" - a visually distinct block on the variant page, so
it stays clear what comes from the method and what belongs to the
variant itself (see the project website (background/analysis notes) Teil 2.3). */
.method__section--methode {
background: var(--color-card-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 1.25rem 1.5rem;
}
.variant__back { font-size: 0.875rem; margin: 0 0 0.5rem; }
.variant__back a { color: var(--color-muted); text-decoration: none; }
.variant__back a:hover { text-decoration: underline; }
.variant-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
gap: 1.25rem;
margin-top: 1rem;
}
.variant-card {
background: var(--color-card-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 1.25rem;
}
.variant-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.variant-card h3 a { text-decoration: none; }
.variant-card h3 a:hover { text-decoration: underline; }
.variant-card__desc { color: var(--color-muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.variant-card__autoren { font-size: 0.85rem; margin: 0.5rem 0 0; }
.variant-card__meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 0 0 0.5rem; font-size: 0.825rem; }
.variant-card__meta div { display: flex; gap: 0.35rem; }
.variant-card__meta dt { color: var(--color-muted); margin: 0; }
.variant-card__meta dd { margin: 0; font-weight: 500; }