xithead 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +108 -72
  2. package/app/api/config/route.ts +22 -0
  3. package/app/api/export/route.ts +83 -0
  4. package/app/api/models/route.ts +12 -0
  5. package/app/api/stats/route.ts +46 -0
  6. package/app/dashboard/page.tsx +445 -0
  7. package/app/globals.css +35 -0
  8. package/app/installation/page.tsx +293 -0
  9. package/app/layout.tsx +35 -0
  10. package/app/master-design-system.css +2076 -0
  11. package/app/master-design-system.source.css +8 -0
  12. package/app/page.tsx +187 -0
  13. package/app/rechtliches/agb/page.tsx +165 -0
  14. package/app/rechtliches/datenschutz/page.tsx +128 -0
  15. package/app/rechtliches/impressum/page.tsx +122 -0
  16. package/app/rechtliches/widerruf/page.tsx +185 -0
  17. package/bin/xithead.js +264 -0
  18. package/components/layout/AppShell.tsx +25 -0
  19. package/components/layout/Footer.tsx +120 -0
  20. package/components/layout/Header.tsx +145 -0
  21. package/components/marketing/LegalHighlights.tsx +45 -0
  22. package/components/marketing/LegalPageShell.tsx +49 -0
  23. package/components/marketing/LegalPanel.tsx +41 -0
  24. package/components/marketing/index.ts +3 -0
  25. package/design-system/README.md +80 -0
  26. package/design-system/base.css +127 -0
  27. package/design-system/components.css +1943 -0
  28. package/design-system/fonts.css +17 -0
  29. package/design-system/tailwind-preset.js +95 -0
  30. package/design-system/tokens.css +48 -0
  31. package/design-system/utilities.css +53 -0
  32. package/lib/config/index.ts +12 -0
  33. package/lib/hooks/index.ts +4 -0
  34. package/lib/hooks/use-mounted.ts +13 -0
  35. package/lib/hooks/use-session.ts +34 -0
  36. package/lib/hooks/use-settings.ts +49 -0
  37. package/lib/utils/index.ts +1 -0
  38. package/lib/utils/settings.ts +162 -0
  39. package/lib/utils/utils.ts +6 -0
  40. package/middleware.ts +26 -0
  41. package/next-env.d.ts +7 -0
  42. package/next.config.ts +12 -0
  43. package/package.json +77 -36
  44. package/postcss.config.mjs +7 -0
  45. package/public/apple-touch-icon.png +0 -0
  46. package/public/logo-transparent.png +0 -0
  47. package/public/xithead.ps1 +937 -0
  48. package/scripts/README.md +77 -0
  49. package/scripts/audit_wheel_glibc_symbols.py +217 -0
  50. package/scripts/build-master-design-system.cjs +33 -0
  51. package/scripts/build_rust_extension.sh +58 -0
  52. package/scripts/changelog-gen.py +203 -0
  53. package/scripts/eval_output_shaper.py +235 -0
  54. package/scripts/export_kompress_v2_onnx.py +267 -0
  55. package/scripts/fixtures/anthropic_replay_body.json +133 -0
  56. package/scripts/fixtures/codex_response_create_frame.json +52 -0
  57. package/scripts/install-git-hooks.sh +104 -0
  58. package/scripts/install.ps1 +1809 -0
  59. package/scripts/install.sh +1673 -0
  60. package/scripts/pr-governance.py +297 -0
  61. package/scripts/record_fixtures.py +59 -0
  62. package/scripts/refresh_model_limits.sh +48 -0
  63. package/scripts/replay_codex_ws_load.py +445 -0
  64. package/scripts/repro_codex_replay.py +699 -0
  65. package/scripts/smoke_issue_327.py +233 -0
  66. package/scripts/sync-plugin-versions.py +116 -0
  67. package/scripts/tests/test_changelog_gen.py +302 -0
  68. package/scripts/tests/test_pr_governance.py +163 -0
  69. package/scripts/tests/test_pr_health_labels.py +94 -0
  70. package/scripts/tests/test_pr_health_workflow.py +14 -0
  71. package/scripts/tests/test_sync_plugin_versions.py +131 -0
  72. package/scripts/tests/test_version_sync.py +291 -0
  73. package/scripts/validate-workflows.sh +39 -0
  74. package/scripts/verify-versions.py +106 -0
  75. package/scripts/version-sync.py +207 -0
  76. package/tailwind.config.js +31 -0
  77. package/tailwind.master.config.cjs +47 -0
  78. package/tsconfig.json +84 -0
  79. package/types/api.ts +12 -0
  80. package/types/config.ts +9 -0
  81. package/types/index.ts +2 -0
  82. package/npm/bin/xithead.js +0 -366
  83. package/npm/index.d.ts +0 -57
  84. package/npm/index.js +0 -139
  85. package/npm/package.json +0 -54
  86. package/npm/postinstall.js +0 -43
@@ -0,0 +1,145 @@
1
+ "use client"
2
+
3
+ import Link from "next/link"
4
+ import { usePathname } from "next/navigation"
5
+ import { useState, useEffect, useRef } from "react"
6
+ import { Menu, X } from "lucide-react"
7
+ import Image from "next/image"
8
+ import { config } from "@/lib/config"
9
+
10
+ const NAV = [
11
+ { href: "/", label: "Startseite" },
12
+ { href: "/installation", label: "Installation" },
13
+ ]
14
+
15
+ export function Header() {
16
+ const path = usePathname()
17
+ const [mobileOpen, setMobileOpen] = useState(false)
18
+ const [scrolled, setScrolled] = useState(false)
19
+ const headerRef = useRef<HTMLElement | null>(null)
20
+
21
+ useEffect(() => {
22
+ const onClickOutside = (e: MouseEvent) => {
23
+ if (headerRef.current && !headerRef.current.contains(e.target as Node)) {
24
+ setMobileOpen(false)
25
+ }
26
+ }
27
+ const onEscape = (e: KeyboardEvent) => {
28
+ if (e.key === "Escape") setMobileOpen(false)
29
+ }
30
+ document.addEventListener("mousedown", onClickOutside)
31
+ document.addEventListener("keydown", onEscape)
32
+ return () => {
33
+ document.removeEventListener("mousedown", onClickOutside)
34
+ document.removeEventListener("keydown", onEscape)
35
+ }
36
+ }, [])
37
+
38
+ useEffect(() => {
39
+ const onScroll = () => setScrolled(window.scrollY > 12)
40
+ onScroll()
41
+ window.addEventListener("scroll", onScroll, { passive: true })
42
+ return () => window.removeEventListener("scroll", onScroll)
43
+ }, [])
44
+
45
+ return (
46
+ <header
47
+ ref={headerRef}
48
+ className="relative z-[120]"
49
+ >
50
+ <div className="absolute inset-x-0 top-0 h-[1px] bg-gradient-to-r from-transparent via-brand-400/30 to-transparent pointer-events-none z-10" />
51
+
52
+ <div
53
+ className={`relative w-full border-b transition-all duration-300 backdrop-blur-xl bg-black/85 ${
54
+ scrolled ? "shadow-[0_12px_48px_rgba(12,8,20,0.4)]" : ""
55
+ }`}
56
+ style={{
57
+ backdropFilter: "blur(16px)",
58
+ WebkitBackdropFilter: "blur(16px)",
59
+ borderColor: "rgba(0, 127, 255, 0.2)",
60
+ }}
61
+ >
62
+ <div className="layout-content">
63
+ <div className="flex min-h-[88px] items-center justify-between gap-4 py-3 sm:min-h-[112px] xl:min-h-[136px]">
64
+ <Link href="/" onClick={() => setMobileOpen(false)} className="group flex shrink-0 items-center">
65
+ <Image
66
+ src="/logo-transparent.png"
67
+ alt="Xtream-ITSolutions"
68
+ width={180}
69
+ height={72}
70
+ priority
71
+ className="h-12 w-auto object-contain sm:h-14 xl:h-16"
72
+ />
73
+ </Link>
74
+
75
+ <nav aria-label="Hauptnavigation" className="hidden items-center gap-2 lg:flex">
76
+ {NAV.map(({ href, label }) => (
77
+ <Link
78
+ key={href}
79
+ href={href}
80
+ aria-current={path === href ? "page" : undefined}
81
+ className={`rounded-lg border border-transparent px-3 py-2 text-sm font-semibold text-white transition-all hover:border-brand-300/20 hover:bg-white/[0.06] hover:text-white a11y-focus-ring${path === href ? " border-brand-300/20 bg-brand-400/10 text-brand-100" : ""}`}
82
+ >
83
+ {label}
84
+ </Link>
85
+ ))}
86
+ </nav>
87
+
88
+ <div className="flex shrink-0 items-center gap-2">
89
+ <a
90
+ href={config.discordUrl}
91
+ target="_blank"
92
+ rel="noopener noreferrer"
93
+ className="hidden items-center gap-2 rounded-lg border border-brand-300/20 bg-black/65 px-3 py-2 text-sm font-semibold text-white transition-all hover:border-brand-300/35 hover:bg-brand/10 sm:inline-flex a11y-focus-ring"
94
+ >
95
+ <svg width="15" height="11" viewBox="0 0 16 12" fill="currentColor" aria-hidden="true">
96
+ <path d="M13.545 1.058A13.16 13.16 0 0 0 10.29 0c-.142.257-.308.603-.422.877a12.194 12.194 0 0 0-3.735 0A9.847 9.847 0 0 0 5.71 0 13.188 13.188 0 0 0 2.454 1.06 13.942 13.942 0 0 0 .07 10.51a13.274 13.274 0 0 0 4.048 2.051 9.934 9.934 0 0 0 .86-1.41 8.66 8.66 0 0 1-1.354-.654c.114-.083.225-.17.333-.258a9.452 9.452 0 0 0 8.088 0c.109.09.22.175.333.258-.433.258-.891.479-1.356.655.25.494.537.966.86 1.41a13.24 13.24 0 0 0 4.05-2.052 13.926 13.926 0 0 0-2.387-9.452ZM5.34 8.606c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.482.746 1.468 1.658.001.914-.646 1.657-1.468 1.657Zm5.32 0c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.48.746 1.468 1.658 0 .914-.646 1.657-1.468 1.657Z" />
97
+ </svg>
98
+ <span className="hidden xl:inline">Discord</span>
99
+ </a>
100
+ <button
101
+ type="button"
102
+ className="inline-flex h-11 w-11 items-center justify-center rounded-lg border border-brand-300/20 bg-black/65 text-white transition-all hover:border-brand-300/35 hover:bg-brand/10 a11y-focus-ring lg:hidden"
103
+ onClick={() => setMobileOpen((open) => !open)}
104
+ aria-label={mobileOpen ? "Menü schließen" : "Menü öffnen"}
105
+ aria-expanded={mobileOpen}
106
+ >
107
+ {mobileOpen ? <X className="h-5 w-5" /> : <Menu className="h-5 w-5" />}
108
+ </button>
109
+ </div>
110
+ </div>
111
+ </div>
112
+
113
+ {mobileOpen ? (
114
+ <div className="border-t border-brand-300/15 bg-black/90 backdrop-blur-xl lg:hidden">
115
+ <nav aria-label="Mobile Hauptnavigation" className="layout-content grid gap-2 py-3">
116
+ {NAV.map(({ href, label }) => (
117
+ <Link
118
+ key={href}
119
+ href={href}
120
+ onClick={() => setMobileOpen(false)}
121
+ aria-current={path === href ? "page" : undefined}
122
+ className={`rounded-lg px-4 py-3 text-sm font-semibold text-white transition-colors hover:bg-white/[0.06] hover:text-white a11y-focus-ring${path === href ? " bg-brand-400/10 text-brand-100" : ""}`}
123
+ >
124
+ {label}
125
+ </Link>
126
+ ))}
127
+ <a
128
+ href={config.discordUrl}
129
+ target="_blank"
130
+ rel="noopener noreferrer"
131
+ onClick={() => setMobileOpen(false)}
132
+ className="mt-2 inline-flex items-center gap-2 rounded-lg bg-brand-500 px-3 py-2 text-sm font-semibold text-white transition-colors hover:bg-brand-600 a11y-focus-ring"
133
+ >
134
+ <svg width="15" height="11" viewBox="0 0 16 12" fill="currentColor" aria-hidden="true">
135
+ <path d="M13.545 1.058A13.16 13.16 0 0 0 10.29 0c-.142.257-.308.603-.422.877a12.194 12.194 0 0 0-3.735 0A9.847 9.847 0 0 0 5.71 0 13.188 13.188 0 0 0 2.454 1.06 13.942 13.942 0 0 0 .07 10.51a13.274 13.274 0 0 0 4.048 2.051 9.934 9.934 0 0 0 .86-1.41 8.66 8.66 0 0 1-1.354-.654c.114-.083.225-.17.333-.258a9.452 9.452 0 0 0 8.088 0c.109.09.22.175.333.258-.433.258-.891.479-1.356.655.25.494.537.966.86 1.41a13.24 13.24 0 0 0 4.05-2.052 13.926 13.926 0 0 0-2.387-9.452ZM5.34 8.606c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.482.746 1.468 1.658.001.914-.646 1.657-1.468 1.657Zm5.32 0c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.48.746 1.468 1.658 0 .914-.646 1.657-1.468 1.657Z" />
136
+ </svg>
137
+ Discord
138
+ </a>
139
+ </nav>
140
+ </div>
141
+ ) : null}
142
+ </div>
143
+ </header>
144
+ )
145
+ }
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+
4
+ interface HighlightItem {
5
+ icon?: LucideIcon;
6
+ label: string;
7
+ value: string;
8
+ }
9
+
10
+ interface LegalHighlightsProps {
11
+ items?: Array<HighlightItem | string>;
12
+ tone?: string;
13
+ }
14
+
15
+ export default function LegalHighlights({ items = [], tone }: LegalHighlightsProps) {
16
+ if (!items || items.length === 0) {
17
+ return null;
18
+ }
19
+
20
+ return (
21
+ <div className="grid gap-4 my-6">
22
+ {items.map((item, idx) => {
23
+ const isObject = typeof item === 'object';
24
+ const Icon = isObject ? item.icon : undefined;
25
+
26
+ return (
27
+ <div key={idx} className="glass-card p-4 flex gap-3">
28
+ {Icon && <Icon className="w-5 h-5 flex-shrink-0" />}
29
+ {!Icon && <span className="text-lg flex-shrink-0">✓</span>}
30
+ <div className="flex-1">
31
+ {isObject ? (
32
+ <>
33
+ <p className="font-semibold text-sm">{item.label}</p>
34
+ <p className="text-sm text-muted-foreground">{item.value}</p>
35
+ </>
36
+ ) : (
37
+ <p className="text-sm">{item}</p>
38
+ )}
39
+ </div>
40
+ </div>
41
+ );
42
+ })}
43
+ </div>
44
+ );
45
+ }
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+
4
+ interface LegalPageShellProps {
5
+ children: React.ReactNode;
6
+ badge?: string;
7
+ title: string;
8
+ description?: string;
9
+ icon?: LucideIcon;
10
+ updatedAt?: string;
11
+ tone?: string;
12
+ }
13
+
14
+ export default function LegalPageShell({
15
+ children,
16
+ badge,
17
+ title,
18
+ description,
19
+ icon: Icon,
20
+ updatedAt,
21
+ }: LegalPageShellProps) {
22
+ return (
23
+ <div className="layout-content py-12">
24
+ <div className="max-w-3xl mx-auto">
25
+ {(badge || Icon || updatedAt) && (
26
+ <div className="mb-8">
27
+ {badge && (
28
+ <span className="inline-block px-3 py-1 text-sm font-semibold rounded-full bg-primary/10 text-primary mb-4">
29
+ {badge}
30
+ </span>
31
+ )}
32
+ <h1 className="text-4xl font-bold mb-4">{title}</h1>
33
+ {description && (
34
+ <p className="text-lg text-muted-foreground mb-4">
35
+ {description}
36
+ </p>
37
+ )}
38
+ {updatedAt && (
39
+ <p className="text-sm text-muted-foreground">
40
+ Zuletzt aktualisiert: {updatedAt}
41
+ </p>
42
+ )}
43
+ </div>
44
+ )}
45
+ {children}
46
+ </div>
47
+ </div>
48
+ );
49
+ }
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+
4
+ interface LegalPanelProps {
5
+ children: React.ReactNode;
6
+ title?: string;
7
+ icon?: LucideIcon;
8
+ tone?: string;
9
+ }
10
+
11
+ export default function LegalPanel({
12
+ children,
13
+ title,
14
+ icon: Icon,
15
+ tone,
16
+ }: LegalPanelProps) {
17
+ const toneClasses = {
18
+ amber: 'bg-amber/10 border-amber/20',
19
+ blue: 'bg-blue-500/10 border-blue-500/20',
20
+ green: 'bg-green-500/10 border-green-500/20',
21
+ red: 'bg-red-500/10 border-red-500/20',
22
+ };
23
+
24
+ const toneClass = tone && tone in toneClasses
25
+ ? toneClasses[tone as keyof typeof toneClasses]
26
+ : 'bg-primary/10 border-primary/20';
27
+
28
+ return (
29
+ <div className={`glass-card p-6 my-4 border ${toneClass}`}>
30
+ {(Icon || title) && (
31
+ <div className="flex items-center gap-3 mb-4">
32
+ {Icon && <Icon className="w-6 h-6" />}
33
+ {title && <h3 className="text-lg font-bold">{title}</h3>}
34
+ </div>
35
+ )}
36
+ <div className="prose prose-invert max-w-none text-sm">
37
+ {children}
38
+ </div>
39
+ </div>
40
+ );
41
+ }
@@ -0,0 +1,3 @@
1
+ export { default as LegalPageShell } from './LegalPageShell';
2
+ export { default as LegalPanel } from './LegalPanel';
3
+ export { default as LegalHighlights } from './LegalHighlights';
@@ -0,0 +1,80 @@
1
+ # Design-System — Xtream-ITSolutions
2
+
3
+ Verbindliche Quelle für Farben, Typografie und Oberflächen-Bausteine aller
4
+ Repositories der Unternehmensgruppe. Dieses Verzeichnis ist die **einzige**
5
+ Stelle, an der diese Werte gepflegt werden; `app/globals.css` im Master bindet
6
+ es nur noch per `@import` ein.
7
+
8
+ ## Dateien
9
+
10
+ | Datei | Inhalt |
11
+ |---|---|
12
+ | `tokens.css` | Farb-Tokens als CSS-Variablen (`:root` und `.dark`) |
13
+ | `base.css` | Body-Verlauf, Typografie-Defaults, Fokusring, Scrollbars |
14
+ | `components.css` | `glass-*`, `layout-*`, `dashboard-*`, `customer-*`, `admin-*` |
15
+ | `utilities.css` | Text-Overflow-Helfer (opt-in) |
16
+ | `fonts.css` | Manrope + Space Grotesk für Repos ohne `next/font` |
17
+ | `tailwind-preset.js` | Token-Brücken, `brand`-Skala, `slate`-Override, Animationen |
18
+
19
+ ## Markenfarbe
20
+
21
+ ` #007FFF` = `hsl(210 100% 50%)`
22
+
23
+ Alle Flächen liegen auf demselben Farbton 262, sind aber stark entsättigt
24
+ (18–30 %). Nur `--primary` und `--ring` tragen die volle Sättigung — sonst
25
+ färbt der Hintergrund die gesamte Oberfläche ein und konkurriert mit der Marke.
26
+
27
+ ## Einbindung
28
+
29
+ ### Next.js (wie im Master)
30
+
31
+ ```css
32
+ /* app/globals.css */
33
+ @import "../design-system/tokens.css";
34
+ @import "../design-system/base.css";
35
+ @import "../design-system/components.css";
36
+ @import "../design-system/utilities.css";
37
+
38
+ @tailwind base;
39
+ @tailwind components;
40
+ @tailwind utilities;
41
+ ```
42
+
43
+ `postcss-import` muss **vor** `tailwindcss` laufen, sonst finden die `@layer`-
44
+ Blöcke in den importierten Dateien keine zugehörige `@tailwind`-Direktive:
45
+
46
+ ```js
47
+ // postcss.config.mjs
48
+ const config = { plugins: { "postcss-import": {}, tailwindcss: {} } }
49
+ export default config
50
+ ```
51
+
52
+ Schriften kommen im Master über `next/font/google` und setzen dabei
53
+ `--font-display` und `--font-body`. Andere Repos binden stattdessen
54
+ `fonts.css` ein.
55
+
56
+ ### Tailwind-Konfiguration
57
+
58
+ ```js
59
+ module.exports = {
60
+ presets: [require("./design-system/tailwind-preset.js")],
61
+ content: ["./src/**/*.{js,ts,jsx,tsx}"],
62
+ }
63
+ ```
64
+
65
+ ## Die eine Falle
66
+
67
+ Tailwinds `slate` ist blaustichig (Farbton ~215–222). Die Oberfläche nutzt es
68
+ an über 5000 Stellen als Flächen- und Textfarbe. Das Preset stellt die Skala
69
+ deshalb auf auf neutrale Schwarz-/Weißwerte um — gleiche Klassennamen, keine farbigen Grundflächen.
70
+
71
+ **Ohne diesen Override wird jedes Repo wieder blau**, egal wie korrekt die
72
+ Akzentfarben gesetzt sind. Das war die Ursache dafür, dass der Master nach dem
73
+ ersten Rebrand weiterhin marineblau wirkte.
74
+
75
+ ## Änderungen
76
+
77
+ Werte werden ausschließlich hier geändert, nie in einem Zielrepo. Nach jeder
78
+ Änderung im Master `npm run build` laufen lassen und das erzeugte CSS gegen den
79
+ vorherigen Stand vergleichen, bevor die Dateien an die anderen Repositories
80
+ verteilt werden.
@@ -0,0 +1,127 @@
1
+ /* Grundlagen: Body-Verlauf, Typografie-Defaults, Fokus, Scrollbars. */
2
+ @layer base {
3
+
4
+ * {
5
+ @apply border-border;
6
+ }
7
+
8
+ html,
9
+ body {
10
+ width: 100%;
11
+ overflow-x: hidden;
12
+ }
13
+
14
+ html {
15
+ min-width: 320px;
16
+ scroll-padding-top: calc(env(safe-area-inset-top) + 5rem);
17
+ }
18
+
19
+ body {
20
+ @apply text-foreground antialiased;
21
+ background: #000000;
22
+ font-family:
23
+ var(--font-body),
24
+ "Segoe UI",
25
+ "Apple Color Emoji",
26
+ "Segoe UI Emoji",
27
+ "Noto Color Emoji",
28
+ sans-serif;
29
+ font-feature-settings: "rlig" 1, "calt" 1;
30
+ text-rendering: optimizeLegibility;
31
+ -webkit-font-smoothing: antialiased;
32
+ -moz-osx-font-smoothing: grayscale;
33
+ }
34
+
35
+ body::before {
36
+ content: "";
37
+ position: fixed;
38
+ inset: 0;
39
+ z-index: 0;
40
+ pointer-events: none;
41
+ background-image: none;
42
+ background-size: 72px 72px;
43
+ -webkit-mask-image: radial-gradient(circle at 50% 10%, black 20%, transparent 82%);
44
+ mask-image: radial-gradient(circle at 50% 10%, black 20%, transparent 82%);
45
+ opacity: 0.75;
46
+ }
47
+
48
+ h1,
49
+ h2,
50
+ h3,
51
+ h4,
52
+ h5,
53
+ h6 {
54
+ font-family: var(--font-display), var(--font-body), sans-serif;
55
+ letter-spacing: -0.025em;
56
+ font-weight: 900;
57
+ }
58
+
59
+ h1 {
60
+ @apply text-5xl sm:text-6xl lg:text-7xl leading-[1.1] tracking-[-0.03em];
61
+ }
62
+
63
+ h2 {
64
+ @apply text-4xl sm:text-5xl leading-[1.15];
65
+ }
66
+
67
+ h3 {
68
+ @apply text-xl sm:text-2xl leading-[1.2];
69
+ }
70
+
71
+ p {
72
+ @apply text-white leading-7;
73
+ font-size: 0.95rem;
74
+ }
75
+
76
+ button,
77
+ a,
78
+ input,
79
+ select,
80
+ textarea,
81
+ [role="button"] {
82
+ touch-action: manipulation;
83
+ }
84
+
85
+ /* Native Dropdowns müssen im Dark-Theme lesbar bleiben. Ohne diese Regel
86
+ übernimmt der Browser für option-Elemente häufig einen weißen Hintergrund. */
87
+ select {
88
+ color-scheme: dark;
89
+ }
90
+
91
+ select option,
92
+ select optgroup {
93
+ background-color: #000000;
94
+ color: #f8fafc;
95
+ }
96
+
97
+ *:focus-visible {
98
+ outline: 2px solid hsl(var(--primary));
99
+ outline-offset: 2px;
100
+ }
101
+
102
+ ::-webkit-scrollbar {
103
+ width: 10px;
104
+ height: 10px;
105
+ }
106
+
107
+ ::-webkit-scrollbar-track {
108
+ background: hsl(var(--background));
109
+ border-left: 1px solid hsl(var(--border));
110
+ }
111
+
112
+ ::-webkit-scrollbar-thumb {
113
+ background: linear-gradient(180deg, hsl(var(--primary) / 0.2), hsl(var(--primary) / 0.5));
114
+ border-radius: 5px;
115
+ border: 2px solid hsl(var(--background));
116
+ transition: all 0.3s ease;
117
+ }
118
+
119
+ ::-webkit-scrollbar-thumb:hover {
120
+ background: linear-gradient(180deg, hsl(var(--primary) / 0.4), hsl(var(--primary) / 0.8));
121
+ }
122
+
123
+ * {
124
+ scrollbar-width: thin;
125
+ scrollbar-color: hsl(var(--primary) / 0.5) hsl(var(--background));
126
+ }
127
+ }