12-05-2026 Frontend dev
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Kevin Adametz 2026-05-12 18:32:33 +02:00
parent 405df0a122
commit 5b8bdf4182
779 changed files with 480564 additions and 6241 deletions

View file

@ -1,291 +1,248 @@
/**
* Theme für Presseecho (presseecho.test)
* Primary: #345636 (Grün)
* Secondary: #6b8f71 (Hellgrün)
* Font: Montserrat
* Theme für presseecho (presseecho.test)
* Editorialer Wirtschaftsteil analoge Architektur zu businessportal24,
* aber mit grüner Markenpalette (Primary: #345636).
*
* Tailwind v4: alle Farben + Schriften liegen als @theme-Tokens vor,
* sodass Klassen wie `bg-bg`, `text-ink-3`, `border-bg-rule` arbeiten
* (gleiche Token-Namen wie bei businessportal24 Komponenten-Reuse).
*
* Die alten HSL-Variablen aus shadcn-Style bleiben am Ende erhalten,
* damit Legacy-Komponenten (`hero-banner`, `article-card`, etc.) nicht brechen.
*/
@import "./shared-styles.css";
/* Theme-spezifische CSS-Variablen */
@theme {
/* Surfaces */
--color-bg: #f2f4ed;
--color-bg-elev: #fafbf7;
--color-bg-rule: #dde2d3;
--color-bg-rule-strong: #1b2417;
--color-bg-dark: #15201a;
--color-bg-card-warm: #ecefe3;
--color-bg-card-warm-border: #c7cfb6;
--color-topbar: #1b2a1f;
--color-topbar2: #25342a;
/* Ink */
--color-ink: #1b2417;
--color-ink-2: #324132;
--color-ink-3: #6a7766;
--color-ink-4: #98a294;
--color-ink-on-dark: #f0f4eb;
--color-ink-on-dark-2: #b1b9ab;
/* Brand (Presseecho-grün) */
--color-brand: #345636;
--color-brand-deep: #243c25;
--color-brand-soft: #dbe7d3;
--color-live: #e03a1a;
--color-gain: #2e8540;
--color-loss: #c8341e;
--color-ok: #2e8540;
/* Editorial-Akzente (auf dunklem Grund / in Card-Warm) */
--color-accent-warm: #e8a95f;
--color-ink-on-dark-muted: #859485;
--color-ink-on-dark-rule: #28332b;
--color-bg-card-warm-hover: #dde3cc;
--color-bg-card-warm-rule: #b7c0a2;
--color-card-warm-cat: #5f6a52;
--color-card-warm-title: #2e3826;
--color-feature-line: #a8c8a8;
--color-feature-dot: #c4dcc4;
/* Fonts */
--font-sans: "Inter Tight", "Söhne", Inter, system-ui, -apple-system,
BlinkMacSystemFont, "Segoe UI", sans-serif;
--font-serif: "Source Serif 4", "Source Serif Pro", Charter,
"Iowan Old Style", Georgia, serif;
--font-mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular,
Menlo, Consolas, monospace;
/* Layout */
--container-layout: 1280px;
}
/* HSL-Variablen für Legacy-Komponenten (shared-styles, alte presseecho-Karten) */
:root {
/* Font-Familie */
--font-primary: "Montserrat", ui-sans-serif, system-ui, sans-serif;
--font-secondary: "Montserrat", ui-sans-serif, system-ui, sans-serif;
/* HSL-Variablen basierend auf Primary Color #345636 */
--background: 0 0% 100%;
--foreground: 126 24% 20%;
--card: 0 0% 100%;
--card-foreground: 126 24% 20%;
--font-primary: var(--font-sans);
--font-secondary: var(--font-sans);
--background: 87 22% 94%;
--foreground: 90 28% 12%;
--card: 87 22% 94%;
--card-foreground: 90 28% 12%;
--popover: 0 0% 100%;
--popover-foreground: 126 24% 20%;
--popover-foreground: 90 28% 12%;
/* Primary: #345636 -> hsl(126, 24%, 27%) */
--primary: 126 24% 27%;
/* Primary: #345636 -> hsl(124, 24%, 27%) */
--primary: 124 24% 27%;
--primary-foreground: 0 0% 100%;
--primary-50: 126 24% 96%;
--primary-100: 126 24% 92%;
--primary-200: 126 24% 85%;
--primary-300: 126 24% 75%;
--primary-400: 126 24% 65%;
--primary-500: 126 24% 55%;
--primary-600: 126 24% 48%;
--primary-700: 126 24% 40%;
--primary-800: 126 24% 32%;
--primary-900: 126 24% 25%;
--primary-950: 126 24% 20%;
--primary-50: 124 24% 96%;
--primary-100: 124 24% 92%;
--primary-200: 124 24% 85%;
--primary-300: 124 24% 75%;
--primary-400: 124 24% 65%;
--primary-500: 124 24% 55%;
--primary-600: 124 24% 48%;
--primary-700: 124 24% 40%;
--primary-800: 124 24% 32%;
--primary-900: 124 24% 25%;
--primary-950: 124 24% 18%;
/* Secondary: #6b8f71 -> hsl(130, 15%, 49%) */
--secondary: 130 15% 49%;
--secondary-foreground: 126 24% 20%;
--secondary-foreground: 90 28% 12%;
--muted: 126 10% 95%;
--muted-foreground: 126 10% 45%;
--accent: 126 24% 27%;
--muted: 90 10% 90%;
--muted-foreground: 90 8% 38%;
--accent: 124 24% 27%;
--accent-foreground: 0 0% 100%;
--destructive: 0 84% 60%;
--destructive-foreground: 0 0% 100%;
--border: 90 16% 84%;
--input: 90 16% 84%;
--ring: 124 24% 27%;
--radius: 2px;
--border: 126 10% 90%;
--input: 126 10% 90%;
--ring: 126 24% 27%;
--radius: 0.5rem;
/* Gradient für Hero */
--gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
/* Shadow-Token */
--shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
--shadow-card-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
/* Warning Colors für Anzeige-Badge */
--warning: 45 93% 47%;
--warning-foreground: 26 83% 14%;
--shadow-card: 0 1px 2px 0 rgb(0 0 0 / 0.04);
--shadow-card-hover: 0 4px 12px -2px rgb(0 0 0 / 0.08);
}
/* Dark Mode Variablen (falls gewünscht) */
@custom-variant dark (&:where(.dark, .dark *));
@layer theme {
.dark {
--background: 126 20% 10%;
--foreground: 0 0% 95%;
--card: 126 20% 12%;
--card-foreground: 0 0% 95%;
--popover: 126 20% 12%;
--popover-foreground: 0 0% 95%;
--primary: 130 15% 49%;
--secondary: 126 24% 27%;
--muted: 126 20% 20%;
--muted-foreground: 126 10% 70%;
--accent: 130 15% 49%;
--accent-foreground: 0 0% 10%;
--border: 126 20% 20%;
--input: 126 20% 20%;
--ring: 130 15% 49%;
}
}
/* Theme-spezifische Overrides */
@layer base {
html,
body {
background-color: hsl(var(--background));
color: hsl(var(--foreground));
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
color: hsl(var(--primary));
body {
background-color: #e6e8de;
color: var(--color-ink);
font-family: var(--font-sans);
-webkit-font-smoothing: antialiased;
font-feature-settings: "ss01", "cv11";
}
a:hover {
color: hsl(var(--secondary));
h1,
h2,
h3,
h4 {
font-family: var(--font-serif);
color: inherit;
letter-spacing: -0.01em;
}
.font-mono {
font-family: var(--font-mono);
font-feature-settings: "tnum";
}
}
@layer components {
/* Button Styles */
.btn-primary {
@apply inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-white shadow-md transition-all duration-300 hover:shadow-lg;
background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
.eyebrow {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--color-brand);
}
.eyebrow.muted {
color: var(--color-ink-3);
}
.eyebrow.on-dark {
color: var(--color-accent-warm);
}
.btn-primary:hover {
.bp-cat {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--color-brand);
}
.bp-tag {
display: inline-flex;
align-items: center;
padding: 3px 8px;
font-size: 10.5px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
background: var(--color-brand);
color: #fff;
border-radius: 2px;
}
.rule-strong {
height: 1px;
background: var(--color-bg-rule-strong);
border: 0;
margin: 0;
}
.rule {
height: 1px;
background: var(--color-bg-rule);
border: 0;
margin: 0;
}
.bg-topbar-grad {
background-image: linear-gradient(
to right,
hsl(var(--primary) / 0.9),
hsl(var(--secondary) / 0.9)
135deg,
var(--color-topbar) 0%,
var(--color-topbar2) 100%
);
}
.btn-secondary {
@apply inline-flex items-center justify-center rounded-lg border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 transition-all duration-200 hover:bg-gray-50;
.bg-feature-grad {
background-image: linear-gradient(135deg, #2c4733, #15281c);
}
/* Card Styles */
.card {
@apply rounded-xl border transition-all duration-300;
background-color: hsl(var(--card));
border-color: hsl(var(--border));
box-shadow: var(--shadow-card);
}
.card:hover {
box-shadow: var(--shadow-card-hover);
}
.card-hover {
@apply hover:scale-[1.02];
}
.card-hover:hover {
border-color: hsl(var(--primary) / 0.2);
}
/* Shadow utilities */
.shadow-card {
box-shadow: var(--shadow-card);
}
.shadow-card-hover {
box-shadow: var(--shadow-card-hover);
}
/* Input Styles */
.input-primary {
@apply w-full rounded-lg border px-4 py-2 text-sm transition-all duration-200;
border-color: hsl(var(--input));
}
.input-primary:focus {
@apply outline-none;
--tw-ring-color: hsl(var(--primary));
box-shadow: 0 0 0 2px var(--tw-ring-color);
border-color: transparent;
}
/* Badge Styles */
.badge {
@apply inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-medium transition-all duration-200;
}
.badge-primary {
@apply border;
background-color: hsl(var(--primary) / 0.1);
color: hsl(var(--primary));
border-color: hsl(var(--primary) / 0.2);
}
.badge-secondary {
@apply border text-gray-700;
background-color: hsl(var(--secondary) / 0.1);
border-color: hsl(var(--secondary) / 0.2);
.bg-hero-grad {
background-image: linear-gradient(135deg, #2c4733, #1a2a1f);
}
}
/* Animations */
@layer utilities {
@keyframes fade-in {
from {
opacity: 0;
}
to {
@keyframes bp-pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.3;
}
}
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
.pulse-dot {
animation: bp-pulse 1.6s ease-in-out infinite;
}
@keyframes fade-in-down {
@keyframes bp-ticker-marquee {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slide-in-right {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes scale-in {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
transform: translateX(-50%);
}
}
.ticker-marquee-track {
display: flex;
width: max-content;
gap: 1.5rem;
animation: bp-ticker-marquee var(--bp-ticker-duration, 42s) linear infinite;
will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
.ticker-marquee-track {
animation: none;
}
}
.animate-fade-in {
animation: fade-in 0.6s ease-out forwards;
}
.animate-fade-in-up {
animation: fade-in-up 0.6s ease-out forwards;
}
.animate-fade-in-down {
animation: fade-in-down 0.6s ease-out forwards;
}
.animate-slide-in-right {
animation: slide-in-right 0.6s ease-out forwards;
}
.animate-scale-in {
animation: scale-in 0.4s ease-out forwards;
}
.animation-delay-100 {
animation-delay: 0.1s;
opacity: 0;
}
.animation-delay-200 {
animation-delay: 0.2s;
opacity: 0;
}
.animation-delay-300 {
animation-delay: 0.3s;
opacity: 0;
}
.animation-delay-400 {
animation-delay: 0.4s;
opacity: 0;
.tabular-nums {
font-variant-numeric: tabular-nums;
}
}
[x-cloak] {
display: none !important;
}