Wp2ghost/GhostTheme/fernweh2/assets/css/screen.css
2026-10-14 19:12:29 +02:00

1208 lines
21 KiB
CSS

/* ==========================================================================
Fernweh 2 — ruhiges Reiseblog-Theme
Warmer Hintergrund, große Bilder, viel Abstand statt Linien.
========================================================================== */
/* Grundwerte
-------------------------------------------------------------------------- */
:root {
--bg: #faf7f2;
--surface: #f1ece3;
--text: #2b2a27;
--muted: #7a756c;
--line: #e5dfd4;
/* Akzentfarbe aus den Ghost-Einstellungen (Design → Marke) */
--accent: var(--ghost-accent-color, #b4532a);
/* Die Schriften lassen sich in Ghost unter Design → Typografie austauschen */
--font-heading: var(--gh-font-heading, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif);
--font-body: var(--gh-font-body, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif);
--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--radius: 8px;
--container: 1240px;
--gutter: 24px;
--section-gap: 88px;
}
[data-theme="dark"] {
--bg: #1b1a18;
--surface: #272522;
--text: #ece8e1;
--muted: #a39e94;
--line: #37342f;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font-ui);
font-size: 16px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
img {
display: block;
max-width: 100%;
height: auto;
}
a {
color: inherit;
text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-family: var(--font-heading);
font-weight: 500;
line-height: 1.2;
}
p {
margin: 0;
}
button {
font: inherit;
color: inherit;
cursor: pointer;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
.container {
width: 100%;
max-width: var(--container);
margin: 0 auto;
padding: 0 var(--gutter);
}
.container--narrow {
max-width: 768px;
}
/* Kleine Auszeichnungen: Themenname, Datumszeile, Knopf
-------------------------------------------------------------------------- */
.label {
display: inline-block;
color: var(--accent);
font-size: 13px;
font-weight: 600;
}
.label:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.label--boxed {
padding: 5px 14px;
border-radius: 999px;
background: var(--surface);
color: var(--text);
font-weight: 500;
}
.label--boxed:hover {
color: var(--accent);
text-decoration: none;
}
.meta {
color: var(--muted);
font-size: 13px;
}
.btn {
display: inline-block;
padding: 8px 18px;
border: 1px solid var(--text);
border-radius: 999px;
font-size: 14px;
font-weight: 500;
transition: background 0.15s, color 0.15s;
}
.btn:hover {
background: var(--text);
color: var(--bg);
}
.icon-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px;
border: 0;
background: none;
transition: color 0.15s;
}
.icon-link:hover {
color: var(--accent);
}
.social-links {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-left: -6px;
}
.social-links:empty {
display: none;
}
/* Kopfzeile
-------------------------------------------------------------------------- */
.site-header {
display: flex;
align-items: center;
gap: 32px;
padding-top: 22px;
padding-bottom: 22px;
}
.site-brand__logo {
max-height: 48px;
width: auto;
}
/* Ein dunkles Logo bleibt im dunklen Farbschema lesbar */
[data-theme="dark"] .site-brand__logo {
filter: invert(1) hue-rotate(180deg);
}
.site-brand__title {
font-family: var(--font-heading);
font-size: 28px;
font-weight: 500;
letter-spacing: -0.01em;
}
.site-nav {
margin-left: auto;
}
.site-nav ul {
margin: 0;
padding: 0;
list-style: none;
}
.site-nav > ul {
display: flex;
flex-wrap: wrap;
gap: 0 28px;
}
.site-nav li {
position: relative;
display: flex;
align-items: center;
}
.site-nav a {
padding: 8px 0;
font-size: 15px;
transition: color 0.15s;
}
.site-nav a:hover,
.site-nav .nav-current > a,
.site-nav .nav-current-parent > a {
color: var(--accent);
}
.nav-submenu-toggle {
display: inline-flex;
padding: 4px;
border: 0;
background: none;
color: var(--muted);
}
.nav-submenu {
position: absolute;
top: 100%;
left: -18px;
z-index: 50;
display: none;
min-width: 210px;
padding: 8px 0;
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--bg);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.nav-submenu li {
justify-content: space-between;
padding: 0 18px;
}
.nav-submenu a {
flex: 1;
}
.nav-submenu .nav-submenu {
top: -9px;
left: 100%;
}
.nav-submenu .nav-submenu-toggle svg {
transform: rotate(-90deg);
}
.nav-has-children.is-open > .nav-submenu {
display: block;
}
@media (hover: hover) and (min-width: 901px) {
.nav-has-children:hover > .nav-submenu {
display: block;
}
}
.site-actions {
display: flex;
align-items: center;
gap: 6px;
}
.site-actions .btn {
margin-left: 8px;
}
.nav-toggle {
display: none;
}
.theme-toggle__sun,
[data-theme="dark"] .theme-toggle__moon {
display: none;
}
[data-theme="dark"] .theme-toggle__sun {
display: block;
}
/* Seitenaufbau
-------------------------------------------------------------------------- */
.site-main {
padding-top: 16px;
padding-bottom: var(--section-gap);
}
.section {
margin-top: var(--section-gap);
}
.site-main > .section:first-child {
margin-top: 32px;
}
.section__header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 20px;
margin-bottom: 28px;
}
.section__title {
font-size: clamp(26px, 3vw, 34px);
font-weight: 500;
letter-spacing: -0.01em;
}
.section__more {
color: var(--muted);
font-size: 14px;
white-space: nowrap;
transition: color 0.15s;
}
.section__more:hover {
color: var(--accent);
}
/* Aufmacher: ein Beitrag als großes Bild, Titel unten auf dem Bild
-------------------------------------------------------------------------- */
.hero {
position: relative;
overflow: hidden;
border-radius: var(--radius);
background: var(--surface);
}
.hero__image {
width: 100%;
aspect-ratio: 16 / 8;
object-fit: cover;
transition: transform 0.6s ease;
}
.hero:hover .hero__image {
transform: scale(1.02);
}
.hero__text {
position: absolute;
right: 0;
bottom: 0;
left: 0;
padding: 120px 48px 44px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
color: #ffffff;
}
.hero__tag {
position: relative;
z-index: 2;
display: inline-block;
margin-bottom: 10px;
font-size: 14px;
font-weight: 600;
}
.hero__tag:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.hero__title {
max-width: 18em;
font-size: clamp(28px, 4.4vw, 54px);
font-weight: 500;
line-height: 1.1;
letter-spacing: -0.01em;
}
/* Der Titel-Link deckt das ganze Bild ab, damit die Fläche als Ganzes anklickbar ist */
.hero__title a::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
}
.hero__excerpt {
max-width: 36em;
margin-top: 14px;
font-size: 18px;
line-height: 1.5;
opacity: 0.92;
}
.hero__date {
display: block;
margin-top: 14px;
font-size: 14px;
opacity: 0.8;
}
/* Beitrag ohne Titelbild: Text auf ruhiger Fläche */
.hero--plain .hero__text {
position: relative;
padding: 64px 48px;
background: none;
color: var(--text);
}
.hero--plain .hero__tag {
color: var(--accent);
}
/* Beitragskarten und Raster
-------------------------------------------------------------------------- */
.post-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 56px 32px;
}
.post-grid--two {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 56px 40px;
}
.post-grid--lead {
margin-top: 56px;
}
.card__image {
display: block;
overflow: hidden;
margin-bottom: 18px;
border-radius: var(--radius);
background: var(--surface);
}
.card__image img {
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
transition: transform 0.5s ease;
}
.card:hover .card__image img {
transform: scale(1.03);
}
.card__tag {
margin-bottom: 6px;
}
.card__title {
font-size: 23px;
font-weight: 500;
line-height: 1.25;
}
.card__title a {
transition: color 0.15s;
}
.card__title a:hover {
color: var(--accent);
}
.card__excerpt {
display: none;
margin-top: 10px;
color: var(--muted);
}
.card__date {
display: block;
margin-top: 10px;
}
.post-grid--two .card__title {
font-size: clamp(24px, 2.6vw, 30px);
}
.post-grid--two .card__excerpt {
display: block;
}
.tag-section .card__tag {
display: none;
}
/* Reiseziele als Kacheln
-------------------------------------------------------------------------- */
.tiles {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
}
.tile {
position: relative;
display: flex;
align-items: flex-end;
overflow: hidden;
aspect-ratio: 4 / 5;
border-radius: var(--radius);
background: var(--surface);
}
.tile img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.tile:hover img {
transform: scale(1.04);
}
.tile__text {
position: relative;
width: 100%;
padding: 20px;
}
/* Liegt ein Bild in der Kachel, steht der Text hell auf einem Verlauf */
.tile img + .tile__text {
padding-top: 70px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
color: #ffffff;
}
.tile__name {
display: block;
font-family: var(--font-heading);
font-size: 24px;
line-height: 1.2;
transition: color 0.15s;
}
.tile:hover .tile__name {
color: var(--accent);
}
.tile img + .tile__text .tile__name {
color: inherit;
}
.tile__count {
display: block;
margin-top: 2px;
font-size: 13px;
opacity: 0.75;
}
/* „Über uns“
-------------------------------------------------------------------------- */
.about {
display: flex;
align-items: center;
gap: 48px;
max-width: 880px;
margin: var(--section-gap) auto 0;
padding: 48px;
border-radius: var(--radius);
background: var(--surface);
}
.about__portrait {
flex: 0 0 180px;
width: 180px;
height: 180px;
border-radius: 50%;
object-fit: cover;
}
.about__text p {
margin-top: 12px;
font-size: 17px;
}
.about__more {
display: inline-block;
margin-top: 14px;
color: var(--accent);
font-weight: 500;
}
.about__more:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.about .social-links {
margin-top: 16px;
}
/* Kopf der Themen- und Autorenübersicht
-------------------------------------------------------------------------- */
.archive-header {
max-width: 720px;
margin: 0 auto 48px;
padding: 40px 0 0;
text-align: center;
}
.archive-header__portrait {
width: 104px;
height: 104px;
margin: 0 auto 18px;
border-radius: 50%;
object-fit: cover;
}
.archive-header__title {
margin-top: 6px;
font-size: clamp(36px, 5.5vw, 60px);
letter-spacing: -0.01em;
}
.archive-header__text {
margin-top: 14px;
color: var(--muted);
font-size: 18px;
}
.archive-image {
width: 100%;
margin-bottom: 56px;
aspect-ratio: 16 / 7;
border-radius: var(--radius);
object-fit: cover;
}
/* Seitenwechsel
-------------------------------------------------------------------------- */
.pagination {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 16px;
margin-top: 64px;
font-size: 15px;
}
.pagination__link {
font-weight: 500;
transition: color 0.15s;
}
.pagination__link:hover {
color: var(--accent);
}
.pagination__link--older {
text-align: right;
}
/* Beitrag und Seite
-------------------------------------------------------------------------- */
.article__header {
padding-top: 40px;
padding-bottom: 40px;
text-align: center;
}
.article__title {
margin-top: 10px;
font-size: clamp(34px, 5.4vw, 60px);
line-height: 1.08;
letter-spacing: -0.015em;
overflow-wrap: break-word;
}
.article__excerpt {
margin-top: 20px;
color: var(--muted);
font-family: var(--font-body);
font-size: 21px;
line-height: 1.5;
}
.article__meta {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 4px 10px;
margin-top: 22px;
font-size: 14px;
}
.article__image {
margin: 0 auto 48px;
}
.article__image img {
width: 100%;
border-radius: var(--radius);
}
.article__image figcaption,
.gh-content figcaption {
margin-top: 10px;
color: var(--muted);
font-family: var(--font-ui);
font-size: 13px;
text-align: center;
}
/* Inhalt: drei Breiten — Text, breit und volle Breite (Karten des Ghost-Editors) */
.gh-content {
display: grid;
grid-template-columns:
[full-start] minmax(var(--gutter), 1fr)
[wide-start] minmax(0, 220px)
[main-start] min(720px, calc(100% - 2 * var(--gutter)))
[main-end] minmax(0, 220px)
[wide-end] minmax(var(--gutter), 1fr)
[full-end];
font-family: var(--font-body);
font-size: 19px;
line-height: 1.75;
}
.gh-content > * {
grid-column: main;
min-width: 0;
margin: 0 0 1.5em;
}
.gh-content > .kg-width-wide {
grid-column: wide;
}
.gh-content > .kg-width-full {
grid-column: full;
}
.gh-content > .kg-width-full img {
width: 100%;
}
.gh-content h2,
.gh-content h3,
.gh-content h4 {
margin-top: 1.2em;
margin-bottom: 0.6em;
}
.gh-content h2 {
font-size: 32px;
}
.gh-content h3 {
font-size: 25px;
}
.gh-content h4 {
font-size: 21px;
}
.gh-content a {
color: var(--accent);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}
.gh-content a:hover {
text-decoration-thickness: 2px;
}
.gh-content ul,
.gh-content ol {
padding-left: 1.3em;
}
.gh-content li + li {
margin-top: 0.35em;
}
.gh-content blockquote {
padding-left: 24px;
border-left: 2px solid var(--accent);
font-size: 22px;
font-style: italic;
line-height: 1.55;
}
.gh-content blockquote.kg-blockquote-alt {
padding: 0;
border: 0;
font-size: 27px;
text-align: center;
}
.gh-content hr {
width: 80px;
height: 0;
margin-top: 1em;
margin-bottom: 2.4em;
justify-self: center;
border: 0;
border-top: 1px solid var(--muted);
}
.gh-content figure img {
margin: 0 auto;
}
.gh-content > .kg-image-card:not(.kg-width-full) img,
.gh-content .kg-gallery-image img {
border-radius: var(--radius);
}
.gh-content pre {
padding: 20px;
overflow-x: auto;
border-radius: var(--radius);
background: var(--surface);
font-size: 15px;
line-height: 1.5;
}
.gh-content code {
padding: 2px 6px;
border-radius: 4px;
background: var(--surface);
font-family: Consolas, Menlo, Monaco, monospace;
font-size: 0.85em;
}
.gh-content pre code {
padding: 0;
background: none;
}
.gh-content table {
display: block;
width: 100%;
overflow-x: auto;
border-collapse: collapse;
font-family: var(--font-ui);
font-size: 15px;
}
.gh-content th,
.gh-content td {
padding: 10px 14px;
border-bottom: 1px solid var(--line);
text-align: left;
}
.gh-content th {
font-weight: 600;
}
.gh-content iframe,
.gh-content video {
max-width: 100%;
}
.gh-content .kg-embed-card iframe[src*="youtube"],
.gh-content .kg-embed-card iframe[src*="vimeo"] {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
border-radius: var(--radius);
}
.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
cursor: zoom-in;
}
.gh-content .kg-image-card a img,
.gh-content .kg-gallery-image a img {
cursor: pointer;
}
.article__tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 16px;
}
.post-nav {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
margin-top: 64px;
}
.post-nav__link {
display: block;
}
.post-nav__link--older {
grid-column: 2;
text-align: right;
}
.post-nav__title {
display: block;
margin-top: 6px;
font-family: var(--font-heading);
font-size: 21px;
line-height: 1.3;
transition: color 0.15s;
}
.post-nav__link:hover .post-nav__title {
color: var(--accent);
}
.article__comments {
margin-top: 64px;
}
/* Bildanzeige
-------------------------------------------------------------------------- */
.lightbox {
position: fixed;
inset: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
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: 10px;
right: 16px;
padding: 4px 10px;
border: 0;
background: none;
color: #ffffff;
font-size: 34px;
line-height: 1;
}
/* Fehlerseite
-------------------------------------------------------------------------- */
.error-page {
padding: 100px 0;
text-align: center;
}
.error-page__code {
color: var(--accent);
font-family: var(--font-heading);
font-size: clamp(80px, 18vw, 170px);
line-height: 1;
}
.error-page__message {
margin: 12px 0 32px;
font-size: 20px;
}
/* Fußzeile
-------------------------------------------------------------------------- */
.site-footer {
background: var(--surface);
}
.site-footer__inner {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px 36px;
padding-top: 48px;
padding-bottom: 48px;
}
.site-footer__title {
font-family: var(--font-heading);
font-size: 24px;
}
.site-footer__nav {
margin-right: auto;
}
.site-footer__nav ul {
display: flex;
flex-wrap: wrap;
gap: 6px 24px;
margin: 0;
padding: 0;
list-style: none;
font-size: 15px;
}
.site-footer__nav a:hover,
.site-footer__copy a:hover {
color: var(--accent);
}
.site-footer__copy {
flex-basis: 100%;
color: var(--muted);
font-size: 13px;
}
/* Kleinere Bildschirme
-------------------------------------------------------------------------- */
@media (max-width: 900px) {
:root {
--section-gap: 64px;
}
.site-header {
flex-wrap: wrap;
gap: 12px;
padding-top: 14px;
padding-bottom: 14px;
}
.site-actions {
margin-left: auto;
}
.nav-toggle {
display: inline-flex;
}
.site-nav {
display: none;
order: 10;
flex-basis: 100%;
margin: 0;
padding: 8px 0;
border-top: 1px solid var(--line);
}
.site-nav.is-open {
display: block;
}
.site-nav > ul {
display: block;
}
.site-nav li {
flex-wrap: wrap;
justify-content: space-between;
padding: 0;
}
.site-nav a {
flex: 1;
padding: 10px 0;
font-size: 17px;
}
.nav-submenu-toggle {
padding: 10px;
}
.nav-submenu,
.nav-submenu .nav-submenu {
position: static;
flex-basis: 100%;
min-width: 0;
padding: 0 0 0 18px;
border: 0;
box-shadow: none;
}
.nav-submenu .nav-submenu-toggle svg {
transform: none;
}
.hero__image {
aspect-ratio: 4 / 3;
}
.hero__text {
padding: 90px 28px 28px;
}
.post-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 44px 24px;
}
.tiles {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
}
@media (max-width: 640px) {
:root {
--gutter: 18px;
--section-gap: 52px;
}
.site-brand__title {
font-size: 24px;
}
.site-actions .btn {
padding: 6px 12px;
font-size: 13px;
}
.hero__image {
aspect-ratio: 4 / 5;
}
.hero__text {
padding: 80px 20px 22px;
}
.hero__excerpt {
display: none;
}
.hero--plain .hero__text {
padding: 36px 20px;
}
.post-grid,
.post-grid--two {
grid-template-columns: minmax(0, 1fr);
gap: 40px;
}
.post-grid--lead {
margin-top: 40px;
}
.tile {
aspect-ratio: 1;
}
.tile__name {
font-size: 20px;
}
.about {
flex-direction: column;
align-items: flex-start;
gap: 24px;
padding: 28px;
}
.about__portrait {
flex-basis: auto;
width: 120px;
height: 120px;
}
.gh-content {
font-size: 17px;
}
.post-nav {
grid-template-columns: 1fr;
}
.post-nav__link--older {
grid-column: auto;
}
}