Files
mcg-website/assets/css/main.css
T
luxick bef5182545 Migrate WordPress site to Hugo
Replaces the WordPress 7.0.2 / HitMag site with a static Hugo build,
deployed by Gitea Actions over rsync/SSH.

Content: 26 files (9 pages + 17 posts) as Markdown page bundles, plus
127 of 165 media attachments. The remaining 38 are media-library
leftovers that appear nowhere on the live site; they are listed in
MIGRATION.md.

The WXR export contains neither media binaries nor widgets, so both were
recovered from the live host before it is retired:
  - tools/fetch_media.py downloads all uploads, capping them at 2000px
  - tools/build_data.py scrapes the "Unsere Mitglieder" and
    "In Erinnerung" widgets into data/*.yaml

TablePress' six Termine tables became data/termine.yaml, rendered with
the newest year expanded and earlier years collapsed. Old permalinks are
not preserved (clean slugs, no redirects, as agreed).

Custom layouts, no third-party theme. Plain CSS, since the pinned Hugo
0.164.0 is the non-extended build and cannot compile Sass.

Verified: clean build with zero warnings, 718 internal links checked and
none broken, no surviving wp-content URLs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 19:20:11 +02:00

379 lines
9.2 KiB
CSS

/* Motorradclub Giebelwald e.V.
Plain CSS on purpose: the project uses the non-extended Hugo binary, which
cannot compile Sass. */
:root {
--ink: #404040; /* carried over from the old HitMag custom CSS */
--ink-soft: #6b6b6b;
--ink-faint: #8c8c8c;
--accent: #9c1c1c;
--accent-dark: #741414;
--bg: #ffffff;
--bg-alt: #f5f4f2;
--border: #e2e0dc;
--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--measure: 68ch;
--radius: 6px;
--shadow: 0 1px 3px rgb(0 0 0 / 8%), 0 4px 12px rgb(0 0 0 / 6%);
--space-1: 0.5rem;
--space-2: 1rem;
--space-3: 1.5rem;
--space-4: 2.5rem;
--space-5: 4rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
font-family: var(--font);
font-size: 1.0625rem;
line-height: 1.65;
color: var(--ink);
background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin: 0 0 var(--space-2); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: var(--space-4) 0 var(--space-2); }
h3 { font-size: 1.2rem; margin: var(--space-3) 0 var(--space-1); }
.container {
width: min(100% - 2rem, 68rem);
margin-inline: auto;
}
.skip-link {
position: absolute;
left: -9999px;
background: var(--accent);
color: #fff;
padding: var(--space-1) var(--space-2);
z-index: 100;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--border); }
.site-branding {
display: flex;
align-items: center;
gap: var(--space-2);
padding-block: var(--space-2);
}
.site-logo img { display: block; width: 72px; height: auto; }
.site-titles { min-width: 0; }
.site-title {
margin: 0;
font-size: clamp(1.1rem, 0.9rem + 1.2vw, 1.6rem);
font-weight: 700;
letter-spacing: -0.01em;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-tagline {
margin: 0;
color: var(--ink-faint);
font-size: 0.95rem;
}
.site-banner {
display: block;
width: 100%;
max-height: 320px;
object-fit: cover;
}
/* ------------------------------------------------------------------ nav */
.site-nav {
background: var(--ink);
position: sticky;
top: 0;
z-index: 20;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
display: none;
padding: var(--space-2) 0;
color: #fff;
font-weight: 600;
cursor: pointer;
}
.nav-list {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
list-style: none;
margin: 0;
padding: 0;
}
.nav-list a {
display: block;
padding: 0.85rem 0;
color: #fff;
text-decoration: none;
font-weight: 600;
font-size: 0.95rem;
border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: #fff; border-bottom-color: rgb(255 255 255 / 45%); }
.nav-list a[aria-current="page"] { border-bottom-color: #fff; }
@media (max-width: 640px) {
.nav-toggle-label { display: block; }
.nav-list {
display: none;
flex-direction: column;
gap: 0;
padding-bottom: var(--space-2);
}
.nav-toggle:checked ~ .nav-list { display: flex; }
.nav-list a { padding: 0.6rem 0; border-bottom: 0; }
.nav-list a[aria-current="page"] { text-decoration: underline; }
.nav-toggle:focus-visible ~ .nav-toggle-label { outline: 3px solid #fff; }
}
/* ----------------------------------------------------------------- main */
.site-main { padding-block: var(--space-4) var(--space-5); }
.page-header { margin-bottom: var(--space-3); }
.page-meta {
margin: 0;
color: var(--ink-faint);
font-size: 0.9rem;
}
.tag {
display: inline-block;
margin-left: var(--space-1);
padding: 0.1rem 0.5rem;
background: var(--bg-alt);
border-radius: 999px;
font-size: 0.8rem;
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: var(--space-4); }
.content-figure { margin: var(--space-3) 0; }
.content-figure img { border-radius: var(--radius); display: block; }
.content-figure figcaption {
margin-top: var(--space-1);
color: var(--ink-faint);
font-size: 0.9rem;
}
/* Gallery and post grid escape the reading measure. */
.prose .gallery { max-width: none; }
/* -------------------------------------------------------------- gallery */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
gap: var(--space-1);
margin: var(--space-3) 0;
}
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-item img {
display: block;
width: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
transition: transform 180ms ease;
}
.gallery-item:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
.gallery-item img { transition: none; }
.gallery-item:hover img { transform: none; }
}
/* ---------------------------------------------------------- post grids */
.post-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
gap: var(--space-3);
margin-top: var(--space-2);
}
.post-card {
display: flex;
flex-direction: column;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card-image img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.post-card-body { padding: var(--space-2); }
.post-card-title { margin: 0 0 0.25rem; font-size: 1.1rem; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-meta { margin: 0 0 var(--space-1); color: var(--ink-faint); font-size: 0.85rem; }
.post-card-summary { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.more-link { margin-top: var(--space-2); font-weight: 600; }
.page-list { padding-left: 1.2em; }
.page-list li { margin-bottom: var(--space-1); }
.post-nav {
display: flex;
justify-content: space-between;
gap: var(--space-2);
margin-top: var(--space-4);
padding-top: var(--space-2);
border-top: 1px solid var(--border);
font-size: 0.95rem;
}
.post-nav .next { margin-left: auto; text-align: right; }
/* ---------------------------------------------------------------- home */
.home-intro { max-width: var(--measure); }
.member-grid, .memoriam-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
gap: var(--space-2);
list-style: none;
margin: var(--space-2) 0 0;
padding: 0;
}
.member, .memoriam { text-align: center; }
.member img, .memoriam img {
display: block;
width: 100%;
aspect-ratio: 1;
object-fit: cover;
border-radius: 50%;
}
.member-name, .memoriam-name {
display: block;
margin-top: var(--space-1);
font-weight: 600;
font-size: 0.9rem;
}
.memoriam-list { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
.memoriam-date { display: block; color: var(--ink-faint); font-size: 0.85rem; }
/* ------------------------------------------------------------- termine */
.termine {
width: 100%;
border-collapse: collapse;
margin: var(--space-2) 0;
}
.termine th, .termine td {
padding: 0.7rem var(--space-1);
text-align: left;
vertical-align: top;
border-bottom: 1px solid var(--border);
}
.termine th {
white-space: nowrap;
font-weight: 700;
width: 1%;
padding-right: var(--space-2);
}
.termine tr:nth-child(odd) { background: var(--bg-alt); }
.termine-past {
margin-top: var(--space-2);
border-top: 1px solid var(--border);
padding-top: var(--space-1);
}
.termine-past summary {
cursor: pointer;
font-weight: 600;
color: var(--ink-soft);
padding: var(--space-1) 0;
}
@media (max-width: 520px) {
.termine th { white-space: normal; }
}
/* --------------------------------------------------------------- files */
.pdf-link {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-2);
margin-bottom: var(--space-1);
border: 1px solid var(--border);
border-radius: var(--radius);
text-decoration: none;
color: var(--ink);
}
.pdf-link:hover { border-color: var(--accent); color: var(--accent); }
.pdf-icon {
flex: none;
padding: 0.2rem 0.45rem;
background: var(--accent);
color: #fff;
border-radius: 3px;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.05em;
}
.pdf-label { font-weight: 600; }
.pdf-size { margin-left: auto; color: var(--ink-faint); font-size: 0.85rem; }
/* -------------------------------------------------------------- footer */
.site-footer {
border-top: 1px solid var(--border);
background: var(--bg-alt);
padding-block: var(--space-3);
font-size: 0.9rem;
color: var(--ink-soft);
}
.footer-contact { margin: 0 0 var(--space-1); }
.footer-nav { display: flex; gap: var(--space-2); margin-bottom: var(--space-1); }
.footer-copyright { margin: 0; color: var(--ink-faint); }