512 lines
22 KiB
CSS
512 lines
22 KiB
CSS
|
|
/* ==========================================================================
|
||
|
|
Unterwegs — Ghost-Theme
|
||
|
|
Inhalt: 1 Variablen · 2 Grundlagen · 3 Kopfzeile · 4 Beitragsübersicht
|
||
|
|
5 Seitenwechsel · 6 Beitrag · 7 Inhalt/Editor-Karten · 8 Fußzeile
|
||
|
|
9 Bildanzeige · 10 Kleine Bildschirme
|
||
|
|
========================================================================== */
|
||
|
|
|
||
|
|
/* 1 Variablen
|
||
|
|
========================================================================== */
|
||
|
|
:root {
|
||
|
|
/* Akzentfarbe aus Ghost (Einstellungen → Design → Marke), sonst Rot */
|
||
|
|
--accent: var(--ghost-accent-color, #ff1a1a);
|
||
|
|
--tag-primary: #3b3bdb;
|
||
|
|
--tag-secondary: #6b6bbd;
|
||
|
|
|
||
|
|
--bg: #ffffff;
|
||
|
|
--bg-soft: #f1f2f4;
|
||
|
|
--text: #23262b;
|
||
|
|
--text-soft: #5b6470;
|
||
|
|
--border: #e3e5e8;
|
||
|
|
--shadow: 0 10px 30px rgba(20, 24, 31, 0.12);
|
||
|
|
|
||
|
|
--font-body: var(--gh-font-body, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
|
||
|
|
--font-heading: var(--gh-font-heading, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
|
||
|
|
|
||
|
|
--container: 1320px;
|
||
|
|
--content: 740px;
|
||
|
|
--radius: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
html[data-theme="dark"] {
|
||
|
|
--bg: #15171a;
|
||
|
|
--bg-soft: #1f2226;
|
||
|
|
--text: #e9ebee;
|
||
|
|
--text-soft: #a3abb5;
|
||
|
|
--border: #2e3238;
|
||
|
|
--shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
||
|
|
--tag-primary: #5a5af0;
|
||
|
|
--tag-secondary: #6f6fc0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 2 Grundlagen
|
||
|
|
========================================================================== */
|
||
|
|
*, *::before, *::after { box-sizing: border-box; }
|
||
|
|
|
||
|
|
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
|
||
|
|
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
background: var(--bg);
|
||
|
|
color: var(--text);
|
||
|
|
font-family: var(--font-body);
|
||
|
|
font-size: 1.7rem;
|
||
|
|
line-height: 1.7;
|
||
|
|
-webkit-font-smoothing: antialiased;
|
||
|
|
}
|
||
|
|
|
||
|
|
img, video { max-width: 100%; height: auto; display: block; }
|
||
|
|
|
||
|
|
a { color: var(--accent); text-decoration: none; }
|
||
|
|
a:hover { text-decoration: underline; }
|
||
|
|
|
||
|
|
h1, h2, h3, h4, h5, h6 {
|
||
|
|
font-family: var(--font-heading);
|
||
|
|
line-height: 1.25;
|
||
|
|
margin: 0 0 0.5em;
|
||
|
|
color: var(--text);
|
||
|
|
}
|
||
|
|
|
||
|
|
.container {
|
||
|
|
width: 100%;
|
||
|
|
max-width: var(--container);
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 0 max(4vw, 20px);
|
||
|
|
}
|
||
|
|
.container--narrow { max-width: calc(var(--content) + 2 * max(4vw, 20px)); }
|
||
|
|
|
||
|
|
.site-main { padding-top: 48px; padding-bottom: 72px; min-height: 50vh; }
|
||
|
|
|
||
|
|
.btn {
|
||
|
|
display: inline-block;
|
||
|
|
padding: 10px 24px;
|
||
|
|
border: 2px solid var(--accent);
|
||
|
|
border-radius: 6px;
|
||
|
|
background: var(--accent);
|
||
|
|
color: #fff;
|
||
|
|
font-weight: 500;
|
||
|
|
line-height: 1.4;
|
||
|
|
box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
|
||
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||
|
|
}
|
||
|
|
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 45%, transparent); }
|
||
|
|
.btn--outline { background: transparent; color: var(--accent); box-shadow: none; }
|
||
|
|
.btn--outline:hover { background: var(--accent); color: #fff; }
|
||
|
|
|
||
|
|
/* 3 Kopfzeile
|
||
|
|
Hintergrundbild (<img class="site-header__bg">), Abtönung (::before) und Inhalt liegen
|
||
|
|
in derselben Rasterzelle übereinander. Das Bild wird nie beschnitten: es bestimmt die
|
||
|
|
Höhe der Kopfzeile; ist es dafür zu hoch, wird es verkleinert und bleibt trotzdem ganz sichtbar.
|
||
|
|
========================================================================== */
|
||
|
|
.site-header {
|
||
|
|
position: relative;
|
||
|
|
display: grid;
|
||
|
|
background-color: var(--bg-soft);
|
||
|
|
--header-text: var(--text);
|
||
|
|
/* Hintergrund der Aufklappmenüs: derselbe Ton wie die Kopfzeile hinter dem Hauptmenü */
|
||
|
|
--header-menu-bg: color-mix(in srgb, var(--bg-soft) 92%, transparent);
|
||
|
|
}
|
||
|
|
.site-header > *,
|
||
|
|
.site-header::before { grid-area: 1 / 1; min-width: 0; }
|
||
|
|
.site-header__bg {
|
||
|
|
width: 100%;
|
||
|
|
height: auto;
|
||
|
|
max-height: min(60vh, 560px);
|
||
|
|
object-fit: contain;
|
||
|
|
object-position: center top;
|
||
|
|
}
|
||
|
|
/* Abtönung über dem Hintergrundbild */
|
||
|
|
.site-header::before { content: ""; z-index: 1; }
|
||
|
|
.site-header--overlay-light::before { background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
|
||
|
|
.site-header--overlay-dark { --header-text: #ffffff; --header-menu-bg: rgba(0, 0, 0, 0.78); }
|
||
|
|
.site-header--overlay-dark::before { background: rgba(0, 0, 0, 0.55); }
|
||
|
|
.site-header--overlay-none::before { display: none; }
|
||
|
|
|
||
|
|
/* Inhalt der Kopfzeile: Titel oben links, Menü oben rechts, Symbole unten rechts.
|
||
|
|
Der Bereich ist so hoch wie die ganze Kopfzeile (also wie das Hintergrundbild). */
|
||
|
|
.site-header__inner {
|
||
|
|
position: relative;
|
||
|
|
z-index: 2;
|
||
|
|
align-self: stretch;
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: auto minmax(0, 1fr);
|
||
|
|
grid-template-rows: auto 1fr auto;
|
||
|
|
grid-template-areas:
|
||
|
|
"brand nav"
|
||
|
|
". ."
|
||
|
|
"actions actions";
|
||
|
|
gap: 6px 24px;
|
||
|
|
min-height: 92px;
|
||
|
|
padding: 10px 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-brand { grid-area: brand; align-self: start; display: flex; align-items: center; gap: 12px; color: var(--header-text); }
|
||
|
|
.site-brand:hover { text-decoration: none; }
|
||
|
|
.site-brand__logo { max-height: 64px; width: auto; }
|
||
|
|
/* Titel bleibt einzeilig — bei Platzmangel bricht stattdessen das Menü um */
|
||
|
|
.site-brand__title { font-family: var(--font-heading); font-size: clamp(2.4rem, 3vw, 4rem); font-weight: 700; line-height: 1.1; white-space: nowrap; opacity: 0.85; }
|
||
|
|
|
||
|
|
.site-nav { grid-area: nav; align-self: start; min-width: 0; }
|
||
|
|
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
|
||
|
|
.site-nav a {
|
||
|
|
display: block;
|
||
|
|
padding: 6px 14px;
|
||
|
|
border-radius: 4px;
|
||
|
|
color: var(--header-text);
|
||
|
|
font-size: 1.7rem;
|
||
|
|
line-height: 1.5;
|
||
|
|
}
|
||
|
|
.site-nav a:hover { text-decoration: none; background: color-mix(in srgb, var(--header-text) 14%, transparent); }
|
||
|
|
/* Aktueller Menüpunkt: Akzentfarbe, Hintergrund zu 50 % durchscheinend */
|
||
|
|
.site-nav .nav-current > a,
|
||
|
|
.site-nav .nav-current-parent > a { background: color-mix(in srgb, var(--accent) 50%, transparent); color: #fff; }
|
||
|
|
|
||
|
|
/* Aufklappmenüs (bis zu zwei Ebenen): das Skript in site-header.hbs hängt Einträge, deren
|
||
|
|
Name mit "-" bzw. "--" beginnt, als .nav-submenu unter den vorherigen Eintrag der Ebene darüber */
|
||
|
|
.site-nav li { position: relative; }
|
||
|
|
.nav-has-children { display: flex; align-items: center; }
|
||
|
|
.nav-has-children > a { padding-right: 4px; }
|
||
|
|
.nav-submenu-toggle {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
padding: 8px 8px 8px 2px;
|
||
|
|
border: 0;
|
||
|
|
background: none;
|
||
|
|
color: var(--header-text);
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
.nav-submenu-toggle svg { transition: transform 0.15s ease; }
|
||
|
|
.nav-has-children.is-open > .nav-submenu-toggle svg { transform: rotate(180deg); }
|
||
|
|
.site-nav .nav-submenu {
|
||
|
|
display: none;
|
||
|
|
position: absolute;
|
||
|
|
top: 100%;
|
||
|
|
right: 0;
|
||
|
|
z-index: 50;
|
||
|
|
flex-direction: column;
|
||
|
|
flex-wrap: nowrap;
|
||
|
|
align-items: stretch;
|
||
|
|
justify-content: flex-start;
|
||
|
|
gap: 2px;
|
||
|
|
min-width: 220px;
|
||
|
|
padding: 8px;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
/* kein eigener Hintergrund: die Einträge stehen direkt über Kopfzeile bzw. Seite */
|
||
|
|
background: none;
|
||
|
|
}
|
||
|
|
.nav-has-children.is-open > .nav-submenu { display: flex; }
|
||
|
|
.site-nav .nav-submenu a { flex: 1; white-space: nowrap; }
|
||
|
|
/* Eintrag unter der Maus: Dunkelgrau zu 30 % */
|
||
|
|
.site-nav .nav-submenu a:hover,
|
||
|
|
.site-nav .nav-submenu a:focus-visible { background: rgba(51, 51, 51, 0.3); }
|
||
|
|
.site-nav .nav-submenu .nav-current > a:hover,
|
||
|
|
.site-nav .nav-submenu .nav-current-parent > a:hover { background: color-mix(in srgb, var(--accent) 50%, transparent); }
|
||
|
|
/* Helle Schrift bleibt ohne Hintergrund nur mit Schatten lesbar, wenn das Menü über die Kopfzeile hinausragt */
|
||
|
|
.site-header--overlay-dark .nav-submenu a { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75); }
|
||
|
|
.site-nav .nav-submenu .nav-has-children { justify-content: space-between; }
|
||
|
|
|
||
|
|
@media (min-width: 1001px) {
|
||
|
|
/* Mit der Maus bzw. Tastatur klappen die Menüs von selbst auf */
|
||
|
|
.nav-has-children:hover > .nav-submenu,
|
||
|
|
.nav-has-children:focus-within > .nav-submenu { display: flex; }
|
||
|
|
|
||
|
|
/* Zweite Ebene klappt seitlich nach links auf (das Menü steht am rechten Rand) */
|
||
|
|
.site-nav .nav-submenu .nav-submenu { top: -8px; right: 100%; margin-right: 4px; }
|
||
|
|
.site-nav .nav-submenu .nav-submenu-toggle svg { transform: rotate(90deg); }
|
||
|
|
.site-nav .nav-submenu .nav-has-children.is-open > .nav-submenu-toggle svg { transform: rotate(90deg); }
|
||
|
|
}
|
||
|
|
|
||
|
|
.site-actions { grid-area: actions; justify-self: end; align-self: end; display: flex; align-items: center; gap: 6px; }
|
||
|
|
.icon-link {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
width: 36px;
|
||
|
|
height: 36px;
|
||
|
|
padding: 0;
|
||
|
|
border: 0;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: none;
|
||
|
|
color: var(--header-text);
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
.icon-link:hover { background: color-mix(in srgb, var(--header-text) 14%, transparent); }
|
||
|
|
.theme-toggle__sun { display: none; }
|
||
|
|
html[data-theme="dark"] .theme-toggle__sun { display: block; }
|
||
|
|
html[data-theme="dark"] .theme-toggle__moon { display: none; }
|
||
|
|
|
||
|
|
.nav-toggle { grid-area: toggle; display: none; align-self: start; padding: 6px; border: 0; background: none; color: var(--header-text); cursor: pointer; }
|
||
|
|
|
||
|
|
/* 4 Beitragsübersicht
|
||
|
|
Raster mit 6 Spalten: Standard = 3 Beiträge pro Zeile (je 2 Spalten).
|
||
|
|
Erste Seite (.post-feed--lead): 1. Beitrag ganze Breite, 2. und 3. je die Hälfte.
|
||
|
|
========================================================================== */
|
||
|
|
.post-feed {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||
|
|
gap: 56px 40px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.post-card { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; }
|
||
|
|
|
||
|
|
.post-card__image {
|
||
|
|
display: block;
|
||
|
|
overflow: hidden;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
box-shadow: var(--shadow);
|
||
|
|
margin-bottom: 22px;
|
||
|
|
aspect-ratio: 4 / 3;
|
||
|
|
background: var(--bg-soft);
|
||
|
|
}
|
||
|
|
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
|
||
|
|
.post-card__image:hover img { transform: scale(1.04); }
|
||
|
|
|
||
|
|
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
|
||
|
|
.post-card__title { font-size: 2.2rem; font-weight: 700; margin: 0 0 12px; }
|
||
|
|
.post-card__title a { color: var(--text); }
|
||
|
|
.post-card__title a:hover { color: var(--accent); text-decoration: none; }
|
||
|
|
.post-card__excerpt { margin: 0 0 20px; color: var(--text); }
|
||
|
|
.post-card .btn { margin-top: auto; }
|
||
|
|
|
||
|
|
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
|
||
|
|
.tag-badge {
|
||
|
|
padding: 2px 10px;
|
||
|
|
border-radius: 4px;
|
||
|
|
background: var(--tag-secondary);
|
||
|
|
color: #fff;
|
||
|
|
font-size: 1.5rem;
|
||
|
|
line-height: 1.5;
|
||
|
|
}
|
||
|
|
.tag-badge:first-child { background: var(--tag-primary); }
|
||
|
|
.tag-badge:hover { text-decoration: none; filter: brightness(1.12); }
|
||
|
|
|
||
|
|
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--text-soft); font-size: 1.45rem; }
|
||
|
|
.post-meta svg { flex-shrink: 0; color: var(--text); }
|
||
|
|
|
||
|
|
/* Erste Seite: großer erster Beitrag, Bild links und Text rechts */
|
||
|
|
.post-feed--lead .post-card:nth-child(1) {
|
||
|
|
grid-column: 1 / -1;
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
|
||
|
|
gap: 32px;
|
||
|
|
align-items: center;
|
||
|
|
}
|
||
|
|
.post-feed--lead .post-card:nth-child(1) .post-card__image { margin-bottom: 0; }
|
||
|
|
.post-feed--lead .post-card:nth-child(1) .post-card__title { font-size: clamp(2.4rem, 2.4vw, 3rem); }
|
||
|
|
.post-feed--lead .post-card:nth-child(1) .btn { margin-top: 0; }
|
||
|
|
.post-feed--lead .post-card--no-image:nth-child(1) { grid-template-columns: minmax(0, 1fr); }
|
||
|
|
|
||
|
|
/* Erste Seite: zweite Zeile mit zwei Beiträgen */
|
||
|
|
.post-feed--lead .post-card:nth-child(2),
|
||
|
|
.post-feed--lead .post-card:nth-child(3) { grid-column: span 3; }
|
||
|
|
.post-feed--lead .post-card:nth-child(2) .post-card__image,
|
||
|
|
.post-feed--lead .post-card:nth-child(3) .post-card__image { aspect-ratio: 16 / 9; }
|
||
|
|
|
||
|
|
/* Kopf von Tag- und Autorenseiten */
|
||
|
|
.archive-header { margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
|
||
|
|
.archive-header__label { display: block; color: var(--text-soft); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.08em; }
|
||
|
|
.archive-header__title { font-size: clamp(3rem, 4vw, 4.4rem); margin: 4px 0 8px; }
|
||
|
|
.archive-header__description { margin: 0; color: var(--text-soft); max-width: var(--content); }
|
||
|
|
.archive-header__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
|
||
|
|
|
||
|
|
/* 5 Seitenwechsel
|
||
|
|
========================================================================== */
|
||
|
|
.pagination {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr auto 1fr;
|
||
|
|
align-items: center;
|
||
|
|
gap: 16px;
|
||
|
|
margin-top: 72px;
|
||
|
|
padding-top: 32px;
|
||
|
|
border-top: 1px solid var(--border);
|
||
|
|
}
|
||
|
|
.pagination__info { color: var(--text-soft); font-size: 1.5rem; text-align: center; }
|
||
|
|
.pagination__newer { justify-self: start; }
|
||
|
|
.pagination__older { justify-self: end; }
|
||
|
|
|
||
|
|
/* 6 Beitrag
|
||
|
|
========================================================================== */
|
||
|
|
.article__header { margin-bottom: 32px; }
|
||
|
|
.article__title { font-size: clamp(3.2rem, 4.5vw, 5rem); font-weight: 700; margin: 0 0 16px; }
|
||
|
|
.article__excerpt { margin: 0; font-size: 2rem; color: var(--text-soft); }
|
||
|
|
.article__image { margin-top: 0; margin-bottom: 48px; }
|
||
|
|
.article__image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
|
||
|
|
.article__image figcaption,
|
||
|
|
.gh-content figcaption { margin-top: 10px; color: var(--text-soft); font-size: 1.4rem; text-align: center; }
|
||
|
|
.article__comments { margin-top: 64px; }
|
||
|
|
|
||
|
|
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--border); }
|
||
|
|
.post-nav__link { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
|
||
|
|
.post-nav__link:hover { text-decoration: none; color: var(--accent); }
|
||
|
|
.post-nav__link--older { text-align: right; grid-column: 2; }
|
||
|
|
.post-nav__label { color: var(--text-soft); font-size: 1.4rem; }
|
||
|
|
.post-nav__title { font-weight: 600; }
|
||
|
|
|
||
|
|
.error-page { padding: 80px 0; text-align: center; }
|
||
|
|
.error-page__code { margin: 0; font-size: 12rem; font-weight: 700; line-height: 1; color: var(--accent); }
|
||
|
|
.error-page__message { margin: 16px 0 32px; font-size: 2.6rem; }
|
||
|
|
|
||
|
|
/* 7 Inhalt und Editor-Karten
|
||
|
|
Alles im Inhalt ist auf Lesebreite begrenzt; breite/volle Karten brechen aus.
|
||
|
|
Die Karten selbst (Galerie, Video ...) gestaltet Ghost über "card_assets".
|
||
|
|
========================================================================== */
|
||
|
|
.gh-content { padding: 0 max(4vw, 20px); }
|
||
|
|
.gh-content > * { max-width: var(--content); margin: 0 auto 1.5em; }
|
||
|
|
.gh-content > .kg-width-wide { max-width: min(1140px, 100%); }
|
||
|
|
.gh-content > .kg-width-full { max-width: none; margin-left: calc(-1 * max(4vw, 20px)); margin-right: calc(-1 * max(4vw, 20px)); }
|
||
|
|
.gh-content > .kg-width-full img { width: 100%; }
|
||
|
|
|
||
|
|
.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 { margin-top: 1.6em; margin-bottom: 0.5em; }
|
||
|
|
.gh-content h2 { font-size: 3rem; }
|
||
|
|
.gh-content h3 { font-size: 2.4rem; }
|
||
|
|
.gh-content h4 { font-size: 2rem; }
|
||
|
|
.gh-content a { text-decoration: underline; }
|
||
|
|
.gh-content blockquote { padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); color: var(--text-soft); font-style: italic; }
|
||
|
|
.gh-content hr { border: 0; border-top: 1px solid var(--border); margin-top: 2.5em; margin-bottom: 2.5em; }
|
||
|
|
.gh-content pre { padding: 16px 20px; border-radius: var(--radius); background: #15171a; color: #e9ebee; overflow-x: auto; font-size: 1.5rem; }
|
||
|
|
.gh-content code { padding: 2px 5px; border-radius: 4px; background: var(--bg-soft); font-size: 0.9em; }
|
||
|
|
.gh-content pre code { padding: 0; background: none; }
|
||
|
|
.gh-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 1.6rem; }
|
||
|
|
.gh-content th, .gh-content td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
|
||
|
|
.gh-content th { background: var(--bg-soft); }
|
||
|
|
.gh-content iframe { max-width: 100%; }
|
||
|
|
|
||
|
|
.gh-content .kg-image { margin: 0 auto; border-radius: var(--radius); cursor: zoom-in; }
|
||
|
|
.gh-content .kg-gallery-image img { cursor: zoom-in; }
|
||
|
|
.gh-content .kg-card { margin-top: 2em; margin-bottom: 2em; }
|
||
|
|
/* Der Importer teilt große WordPress-Galerien in mehrere Ghost-Galerien (max. 9 Bilder):
|
||
|
|
direkt aufeinanderfolgende Galerien sollen wie eine einzige wirken */
|
||
|
|
.gh-content .kg-gallery-card + .kg-gallery-card { margin-top: -1.25em; }
|
||
|
|
.gh-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; }
|
||
|
|
.gh-content .kg-embed-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
|
||
|
|
|
||
|
|
/* Kommentare aus dem alten WordPress-Blog (vom Importer als HTML-Karte angehängt) */
|
||
|
|
.gh-content .wp-comments { margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--border); }
|
||
|
|
.wp-comments__title { font-size: 2.4rem; margin: 0 0 1em; }
|
||
|
|
.wp-comments__list { list-style: none; margin: 0; padding: 0; }
|
||
|
|
.wp-comment { margin: 0 0 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--bg-soft); }
|
||
|
|
.wp-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
|
||
|
|
.wp-comment__author { font-weight: 700; }
|
||
|
|
.wp-comment__date { color: var(--text-soft); font-size: 1.4rem; }
|
||
|
|
.wp-comment__text { font-size: 1.6rem; }
|
||
|
|
.wp-comment__text p { margin: 0 0 0.6em; }
|
||
|
|
.wp-comment__text p:last-child { margin-bottom: 0; }
|
||
|
|
/* Antworten eingerückt unter ihrem Kommentar */
|
||
|
|
.wp-comments__replies { margin-top: 14px; padding-left: 18px; border-left: 3px solid var(--accent); }
|
||
|
|
.wp-comments__replies .wp-comment { margin-bottom: 10px; padding: 8px 0 8px 4px; background: none; }
|
||
|
|
.wp-comments__replies .wp-comment:last-child { margin-bottom: 0; }
|
||
|
|
|
||
|
|
/* 8 Fußzeile (schwarz)
|
||
|
|
========================================================================== */
|
||
|
|
.site-footer { background: #000; color: #b9bec6; font-size: 1.5rem; }
|
||
|
|
.site-footer a { color: #fff; }
|
||
|
|
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
|
||
|
|
.site-footer__title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; }
|
||
|
|
.site-footer__description { margin: 8px 0 0; max-width: 480px; }
|
||
|
|
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
|
||
|
|
.site-footer__bottom {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 8px 24px;
|
||
|
|
padding-top: 20px;
|
||
|
|
padding-bottom: 28px;
|
||
|
|
border-top: 1px solid #2a2a2a;
|
||
|
|
font-size: 1.35rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 9 Bildanzeige (Klick auf ein Bild im Beitrag)
|
||
|
|
========================================================================== */
|
||
|
|
.lightbox {
|
||
|
|
position: fixed;
|
||
|
|
inset: 0;
|
||
|
|
z-index: 1000;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
padding: 24px;
|
||
|
|
background: rgba(0, 0, 0, 0.92);
|
||
|
|
cursor: zoom-out;
|
||
|
|
}
|
||
|
|
.lightbox[hidden] { display: none; }
|
||
|
|
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
|
||
|
|
.lightbox__close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #fff; font-size: 4rem; line-height: 1; cursor: pointer; }
|
||
|
|
|
||
|
|
/* 10 Kleine Bildschirme
|
||
|
|
========================================================================== */
|
||
|
|
@media (max-width: 1250px) {
|
||
|
|
/* Titel und Menü passen nicht mehr nebeneinander: Menü in eine eigene Zeile darunter */
|
||
|
|
.site-header__inner {
|
||
|
|
grid-template-rows: auto auto 1fr auto;
|
||
|
|
grid-template-areas:
|
||
|
|
"brand brand"
|
||
|
|
"nav nav"
|
||
|
|
". ."
|
||
|
|
"actions actions";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 1000px) {
|
||
|
|
/* zwei Beiträge pro Zeile */
|
||
|
|
.post-card,
|
||
|
|
.post-feed--lead .post-card:nth-child(2),
|
||
|
|
.post-feed--lead .post-card:nth-child(3) { grid-column: span 3; }
|
||
|
|
|
||
|
|
/* Hamburger-Menü: Titel links, Knopf rechts, das Menü klappt darunter auf */
|
||
|
|
.site-header__inner {
|
||
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
||
|
|
grid-template-areas:
|
||
|
|
"brand toggle"
|
||
|
|
"nav nav"
|
||
|
|
". ."
|
||
|
|
"actions actions";
|
||
|
|
}
|
||
|
|
.nav-toggle { display: inline-flex; }
|
||
|
|
.site-nav { display: none; }
|
||
|
|
.site-nav.is-open { display: block; }
|
||
|
|
.site-nav ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; }
|
||
|
|
.site-nav > ul {
|
||
|
|
padding: 8px;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
background: var(--header-menu-bg);
|
||
|
|
-webkit-backdrop-filter: blur(10px);
|
||
|
|
backdrop-filter: blur(10px);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Unterpunkte: eingerückt, per Pfeil auf- und zuklappbar (beide Ebenen) */
|
||
|
|
.nav-has-children { flex-wrap: wrap; }
|
||
|
|
.nav-has-children > a { flex: 1; }
|
||
|
|
.nav-submenu-toggle { padding: 10px 14px; }
|
||
|
|
.site-nav .nav-submenu {
|
||
|
|
position: static;
|
||
|
|
flex-basis: 100%;
|
||
|
|
min-width: 0;
|
||
|
|
margin: 2px 0 4px 14px;
|
||
|
|
padding: 0 0 0 8px;
|
||
|
|
border-left: 2px solid color-mix(in srgb, var(--header-text) 30%, transparent);
|
||
|
|
border-radius: 0;
|
||
|
|
background: none;
|
||
|
|
-webkit-backdrop-filter: none;
|
||
|
|
backdrop-filter: none;
|
||
|
|
box-shadow: none;
|
||
|
|
}
|
||
|
|
.site-nav .nav-submenu a { white-space: normal; }
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 700px) {
|
||
|
|
/* ein Beitrag pro Zeile, auch der erste untereinander */
|
||
|
|
.post-feed { gap: 48px 0; }
|
||
|
|
.post-card,
|
||
|
|
.post-feed--lead .post-card:nth-child(2),
|
||
|
|
.post-feed--lead .post-card:nth-child(3) { grid-column: 1 / -1; }
|
||
|
|
.post-feed--lead .post-card:nth-child(1) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
|
||
|
|
|
||
|
|
.site-brand__logo { max-height: 44px; }
|
||
|
|
.site-brand { min-width: 0; }
|
||
|
|
.site-brand__title { white-space: normal; font-size: 2.2rem; }
|
||
|
|
.pagination { grid-template-columns: 1fr 1fr; }
|
||
|
|
.pagination__info { grid-column: 1 / -1; grid-row: 1; }
|
||
|
|
.post-nav { grid-template-columns: 1fr; }
|
||
|
|
.post-nav__link--older { grid-column: 1; text-align: left; }
|
||
|
|
}
|