PM_Project/css/base.css

96 lines
2.3 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/* =========================================================
base.css – gemeinsame Basis für alle Features
Änderungen hier nur über eigenen Branch (betrifft alle!)
========================================================= */
/* ---------- Design-Tokens laut tri-hub Design-DNA ---------- */
:root {
/* Hintergrund: tiefes Dunkelblau / Schwarz */
--th-bg: #0d0d1a;
--th-bg-elevated: #1a1a2e;
/* Akzent: Teal / Emerald Green – CTAs, Icons, Highlights */
--th-accent: #10b981;
/* Text: Weiß / Hellgrau */
--th-text: #ffffff;
--th-text-soft: #f8fafc;
--th-text-muted: #94a3b8;
/* Typografie: Serif Display + Sans-Serif Body */
--th-font-display: "Playfair Display", Georgia, serif;
--th-font-body: "Inter", system-ui, sans-serif;
/* Lesbarkeit Zielgruppe 50+ (Definition of Done) */
--th-font-size-body: 1.125rem; /* 18px */
--th-line-height: 1.65;
/* Abstände / Radien für alle Sektionen */
--th-section-space: 5rem;
--th-radius: 1.4rem;
}
/* ---------- Grundlayout ---------- */
body {
background: var(--th-bg);
color: var(--th-text-soft);
font-family: var(--th-font-body);
font-size: var(--th-font-size-body);
line-height: var(--th-line-height);
}
h1, h2, h3 {
font-family: var(--th-font-display);
color: var(--th-text);
letter-spacing: -0.01em;
}
main > section {
padding-block: var(--th-section-space);
}
/* Anker nicht unter dem Header verstecken */
section[id] {
scroll-margin-top: 5rem;
}
/* ---------- Header ---------- */
.site-header {
position: sticky;
top: 0;
z-index: 40;
background: rgb(13 13 26 / 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.site-header .container {
display: flex;
align-items: center;
justify-content: space-between;
padding-block: 1rem;
}
.site-logo {
font-family: var(--th-font-display);
font-size: 1.5rem;
font-weight: 700;
color: var(--th-text);
}
/* ---------- Barrierefreiheit ---------- */
a:focus-visible,
button:focus-visible {
outline: 3px solid var(--th-accent);
outline-offset: 4px;
border-radius: 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
}
}