diff --git a/app/globals.css b/app/globals.css index c64fcba..640559c 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,282 +1,232 @@ -/* Hallmark · checked: 2026-11-04 · genre: modern-minimal (inferred) · scope: Startseite - * floor: offen 48 (Farbliterale in Tailwind-Klassen) · fixed: 10a, 6a, 18, 19, 26a, 27, 29, 33, 34, 3, 54, 63, 64, 67, F2, F3 - * built: the project · redesign: polish · v2.0.0 */ +/* Hallmark · shape: Marquee Hero (draw ff210f) · genre: modern-minimal · theme: Cobalt (deal 1/3, seed local-service-homes-small-21ad·35e5309b·2026-11-04·r0) · brand: Logo, Orange #f97316, Blau #2563eb · redesign: full · scope: Startseite + System + * hero: Poster · nav: slab · footer: colophon block · imagery: photographs, library 1, duotone (Platzhalter) · signature: ASCII-Feld, Rauschen links, geordnete Leitungen in den Stack rechts + * axes: light/grotesk-sans/cool · posture: restrained · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */ +/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, Datensouveränität trägt viel Text; per Umschalter halbiert, Wörter bleiben die des Inhabers */ +/* Hallmark · theme override: Cobalt "kein warmer Akzent" weicht der Marke; Orange ist Markenfarbe (Vorgabe des Inhabers), nur Logo und Hauptaktion */ +/* Hallmark · answered F4: .btn-secondary ist eine helle Taste, keine zweite Füllung; gefüllt ist nur Orange (Hero und Formular, beide "anfragen") · answered F7: alle Tasten teilen bewusst ein Rezept (Cobalt-Keycaps) + * Hallmark · kept: /privatkunden und /geschaeftskunden stehen jetzt in components/Zielgruppen.tsx (Daten-Array); Technologien-onClick ruft weiter setActive(tech.name) und merkt sich den Auslöser für den Fokus + * Hallmark · dismissed 41: .hero und .band nehmen Text über Tokens, die im Dunkelmodus mitwechseln · 28a: das Foto liegt weit unter dem Hero, nicht LCP · 76: Credit steht im Footer (data-credits) + * Hallmark · dropped: Schreibmaschinen-Wörter im Hero (Professionell, DSGVO-konform, Zuverlässig, Skalierbar), Zähl-Animation der Kennzahlen, Hinweis "Klick ausserhalb oder x zum Schliessen", Trenner "oder direkt" · Eyebrow "Über uns" (DB-Feld bleibt) */ +@import "./tokens.css"; +@import "./site.css"; + @tailwind base; @tailwind components; @tailwind utilities; -:root { - --color-orange: #f97316; - --color-orange-light: #fb923c; - --color-blue: #2563eb; - --color-blue-light: #60a5fa; - --color-dark: #18212f; - --color-darker: #111925; - --color-page: #f0f4f8; - --color-ink: #1a202c; - --color-page-dark: #18212f; - --color-ink-dark: #f1f5f9; - --color-focus: #f97316; -} - -* { - box-sizing: border-box; -} - -html, -body { - overflow-x: clip; -} - -html { - scroll-behavior: smooth; -} - -/* Sichtbarer Tastaturfokus, sofort und ohne Übergang */ -:focus-visible { - outline: 2px solid var(--color-focus); - outline-offset: 3px; - transition: none; -} - -h1, -h2 { - text-wrap: balance; -} - -@media (prefers-reduced-motion: reduce) { +/* Basis, global: gilt für alle Seiten */ +@layer base { + html, + body { + overflow-x: clip; + } html { - scroll-behavior: auto; + scroll-behavior: smooth; + scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); + scrollbar-color: var(--color-rule-2) var(--color-paper); } - *, - *::before, - *::after { - animation-duration: 0.01ms !important; - animation-iteration-count: 1 !important; - transition-duration: 0.01ms !important; + body { + background-color: var(--color-paper); + color: var(--color-ink); + font-family: var(--font-body); + font-size: var(--text-md); + line-height: 1.55; + -webkit-font-smoothing: antialiased; + caret-color: var(--color-accent); + } + ::selection { + background: color-mix(in oklab, var(--color-accent) 24%, transparent); + color: var(--color-ink); + } + :focus-visible { + outline: 2px solid var(--color-focus); + outline-offset: 2px; + transition: none; + } + h1, + h2 { + text-wrap: balance; + } + p { + text-wrap: pretty; + } + [hidden] { + display: none !important; + } + + @media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + *:not(.keep-motion), + *:not(.keep-motion)::before, + *:not(.keep-motion)::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + } } } -body { - background-color: var(--color-page); - color: var(--color-ink); - font-family: var(--font-inter), 'Inter', system-ui, sans-serif; - -webkit-font-smoothing: antialiased; -} - -.dark body { - background-color: var(--color-page-dark); - color: var(--color-ink-dark); -} - +/* Gemeinsame Bausteine, auch von den Unterseiten genutzt */ @layer components { - /* Primary button – orange, darkens on hover */ + /* Hauptaktion: orange Taste */ .btn-primary { - @apply inline-flex items-center justify-center rounded-xl - bg-orange-500 text-white font-bold - transition-[background-color,border-color,color,box-shadow,transform] duration-200 - hover:bg-orange-600 hover:scale-[1.03] - hover:shadow-lg hover:shadow-orange-900/40 - active:scale-[0.98]; + display: inline-flex; + align-items: center; + justify-content: center; + gap: var(--space-xs); + min-height: 48px; + border: 1px solid var(--color-signal-edge); + border-radius: var(--radius-input); + background: var(--color-signal); + color: var(--color-signal-ink); + font-family: var(--font-display); + font-weight: 600; + box-shadow: var(--shadow-key-signal); + text-decoration: none; + transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); + } + .btn-primary:hover { + transform: translateY(-1px); + } + .btn-primary:active { + transform: translateY(3px); + box-shadow: var(--shadow-key-press); + } + .btn-primary:disabled, + .btn-primary[aria-disabled="true"] { + opacity: 0.55; + cursor: not-allowed; + transform: none; } - /* Secondary button – outlined, fills subtly on hover */ - .btn-secondary { - @apply inline-flex items-center justify-center rounded-xl - border border-slate-300 text-slate-700 font-semibold - transition-[background-color,border-color,color,box-shadow,transform] duration-200 - hover:bg-slate-100 hover:border-slate-400 hover:text-slate-900 - active:scale-[0.98] - dark:border-gray-600 dark:text-slate-300 - dark:hover:bg-white/5 dark:hover:border-gray-400 dark:hover:text-white; - } - - /* Small nav button */ + /* Zweitaktion: helle Taste */ + .btn-secondary, .btn-nav { - @apply px-4 py-2 rounded-lg bg-orange-500 text-white text-sm font-bold - transition-[background-color,border-color,color,box-shadow,transform] duration-200 - hover:bg-orange-600 hover:shadow-md hover:shadow-orange-900/30 - active:scale-[0.97]; + display: inline-flex; + align-items: center; + justify-content: center; + gap: var(--space-xs); + min-height: 48px; + border: 1px solid var(--color-rule-2); + border-radius: var(--radius-input); + background: var(--color-key-face); + color: var(--color-ink); + font-family: var(--font-display); + font-weight: 500; + box-shadow: var(--shadow-key); + text-decoration: none; + transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); + } + .btn-nav { + min-height: 40px; + padding: 0 var(--space-md); + font-size: var(--text-sm); + white-space: nowrap; + } + .btn-secondary:hover, + .btn-nav:hover { + transform: translateY(-1px); + } + .btn-secondary:active, + .btn-nav:active { + transform: translateY(3px); + box-shadow: var(--shadow-key-press); } } @layer utilities { + /* Früher Verlaufstext; jetzt einfarbig im Signalblau */ .text-gradient { - @apply bg-gradient-to-r from-blue-400 to-blue-600 bg-clip-text text-transparent; + color: var(--color-accent-text); } - .text-gradient-orange { - @apply bg-gradient-to-r from-orange-400 to-orange-500 bg-clip-text text-transparent; + color: var(--color-signal-text); } - /* Dot matrix – default background pattern */ + /* Punktraster auf der 8×16-Zelle des Feldes */ .bg-grid { - background-image: radial-gradient(rgba(249, 115, 22, 0.06) 1px, transparent 1px); - background-size: 28px 28px; - } - - /* Alt: subtle line grid */ - .bg-grid-lines { - background-image: linear-gradient(rgba(249, 115, 22, 0.05) 1px, transparent 1px), - linear-gradient(90deg, rgba(249, 115, 22, 0.05) 1px, transparent 1px); - background-size: 60px 60px; - } - - /* Alt: diagonal hatching */ - .bg-diagonal { - background-image: repeating-linear-gradient( - -45deg, - rgba(249, 115, 22, 0.04) 0px, - rgba(249, 115, 22, 0.04) 1px, - transparent 1px, - transparent 14px - ); + background-image: radial-gradient(var(--color-glyph-1) 1px, transparent 1px); + background-size: var(--cell-w) var(--cell-h); } .card-hover { - @apply transition-[transform,box-shadow] duration-300 hover:-translate-y-1 hover:shadow-lg hover:shadow-orange-500/10; + transition: transform var(--dur-short) var(--ease-out); + } + .card-hover:hover { + transform: translateY(-2px); } } -/* Dark-mode bg-grid override — must live outside @layer so it wins over the base rule */ -.dark .bg-grid { - background-image: radial-gradient(rgba(249, 115, 22, 0.15) 1px, transparent 1px); -} - -/* Tagline ticker animation */ -@keyframes ticker-scroll { - 0% { transform: translateX(0); } - 100% { transform: translateX(-50%); } -} - -.animate-ticker { - animation: ticker-scroll 25s linear infinite; -} -.animate-ticker:hover, -.animate-ticker:focus-within { - animation-play-state: paused; -} - -/* Legal pages content styling */ +/* Rechtstexte (Impressum, Datenschutz) */ .legal-content section { - margin-bottom: 2.5rem; + margin-bottom: var(--space-xl); } .legal-content h2 { - font-size: 1.25rem; - font-weight: 700; - color: #1a202c; - margin-bottom: 0.75rem; - margin-top: 2rem; - padding-bottom: 0.5rem; - border-bottom: 1px solid #cbd5e0; + font-family: var(--font-display); + font-size: var(--text-lg); + font-weight: 600; + color: var(--color-ink); + margin-bottom: var(--space-sm); + margin-top: var(--space-xl); + padding-bottom: var(--space-xs); + border-bottom: 1px solid var(--color-rule); } .legal-content h3 { - font-size: 0.95rem; + font-family: var(--font-display); + font-size: var(--text-md); font-weight: 600; - color: #ea6c00; - margin-top: 1.25rem; - margin-bottom: 0.4rem; + color: var(--color-signal-text); + margin-top: var(--space-lg); + margin-bottom: var(--space-xs); } .legal-content p { - color: #4a5568; - line-height: 1.8; - margin-bottom: 0.75rem; - font-size: 0.925rem; + color: var(--color-ink-2); + line-height: 1.75; + margin-bottom: var(--space-sm); } .legal-content ul { list-style: none; padding: 0; - margin: 0.75rem 0 1rem 0; + margin: var(--space-sm) 0 var(--space-md) 0; } .legal-content ul li { - color: #4a5568; - font-size: 0.925rem; + color: var(--color-ink-2); line-height: 1.75; - padding-left: 1.25rem; + padding-left: var(--space-lg); position: relative; - margin-bottom: 0.5rem; + margin-bottom: var(--space-xs); } .legal-content ul li::before { - content: ''; + content: ""; position: absolute; left: 0; - top: 0.65rem; + top: 0.7rem; width: 6px; height: 6px; - border-radius: 50%; - background: #f97316; + background: var(--color-accent); } .legal-content a { - color: #2563eb; + color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; } .legal-content a:hover { - color: #f97316; + text-decoration-color: var(--color-signal); } .legal-content strong { - color: #1a202c; + color: var(--color-ink); font-weight: 600; } .legal-content .note { - background: #e8eef4; - border: 1px solid rgba(249, 115, 22, 0.35); - padding: 0.75rem 1rem; - border-radius: 0.5rem; - margin: 0.75rem 0; + background: var(--color-paper-2); + color: var(--color-ink-2); + border: 1px solid var(--color-rule); + padding: var(--space-sm) var(--space-md); + border-radius: var(--radius-input); + margin: var(--space-sm) 0; } .legal-content .note p { margin-bottom: 0; - font-size: 0.875rem !important; -} - -/* Legal pages – dark mode overrides */ -.dark .legal-content h2 { - color: #f1f5f9; - border-bottom-color: #2d3748; -} -.dark .legal-content h3 { - color: #fb923c; -} -.dark .legal-content p, -.dark .legal-content ul li { - color: #94a3b8; -} -.dark .legal-content a { - color: #60a5fa; -} -.dark .legal-content a:hover { - color: #fb923c; -} -.dark .legal-content strong { - color: #e2e8f0; -} -.dark .legal-content .note { - background: #1e2a3d; - color: #94a3b8; -} - -/* Scrollbar */ -::-webkit-scrollbar { - width: 6px; -} -::-webkit-scrollbar-track { - background: #e8eef4; -} -::-webkit-scrollbar-thumb { - background: #94a3b8; - border-radius: 3px; -} -::-webkit-scrollbar-thumb:hover { - background: #f97316; -} - -.dark ::-webkit-scrollbar-track { - background: #18212f; -} -.dark ::-webkit-scrollbar-thumb { - background: #2d3748; -} -.dark ::-webkit-scrollbar-thumb:hover { - background: #f97316; } diff --git a/app/layout.tsx b/app/layout.tsx index bb059f2..e0a1948 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata } from "next"; -import { Inter, JetBrains_Mono } from "next/font/google"; +import { Familjen_Grotesk, IBM_Plex_Sans, JetBrains_Mono } from "next/font/google"; import "./globals.css"; import Providers from "@/components/Providers"; import { PageTracker } from "@/components/analytics/PageTracker"; @@ -7,10 +7,16 @@ import { DEFAULT_DESCRIPTION, DEFAULT_TITLE, SITE_NAME, SITE_URL } from "@/lib/s import { OG_COMMON } from "@/lib/seo"; // Schriften werden beim Build geladen und selbst ausgeliefert (kein Abruf bei Google). -const inter = Inter({ +const familjen = Familjen_Grotesk({ subsets: ["latin"], - weight: ["300", "400", "500", "600", "700", "800", "900"], - variable: "--font-inter", + weight: ["500", "600"], + variable: "--font-familjen", + display: "swap", +}); +const plex = IBM_Plex_Sans({ + subsets: ["latin"], + weight: ["400", "500", "600"], + variable: "--font-plex", display: "swap", }); const jetbrainsMono = JetBrains_Mono({ @@ -63,7 +69,7 @@ export default function RootLayout({ return ( diff --git a/app/page.tsx b/app/page.tsx index 3f21297..2559c9f 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,7 +6,7 @@ import { DEFAULT_DESCRIPTION, DEFAULT_TITLE } from "@/lib/site"; import Header from "@/components/Header"; import Hero from "@/components/Hero"; import TaglineBanner from "@/components/TaglineBanner"; -import StatsBar from "@/components/StatsBar"; +import Zielgruppen from "@/components/Zielgruppen"; import Technologies from "@/components/Technologies"; import DataSovereignty from "@/components/DataSovereignty"; import PaperlessSection from "@/components/PaperlessSection"; @@ -72,7 +72,7 @@ export default async function Home() { })); return ( -
+
0 ? badges.map((b) => b.text) : undefined} /> - - + + @@ -99,8 +99,8 @@ export default async function Home() { stats={stats.length > 0 ? stats : undefined} /> {galerieBilder.length > 0 && ( -
-
+
+
diff --git a/app/site.css b/app/site.css new file mode 100644 index 0000000..9b5f776 --- /dev/null +++ b/app/site.css @@ -0,0 +1,1311 @@ +/* Startseite und gemeinsame Chrome (Navigation, Footer, Mobilleiste). Theme Cobalt, alle Werte über tokens.css. */ + +/* ---------- Grundgerüst ---------- */ +.site { + background: var(--color-paper); + color: var(--color-ink); +} +.wrap { + width: 100%; + max-width: var(--container); + margin-inline: auto; + padding-inline: var(--gutter); +} +.grid12 { + display: grid; + grid-template-columns: repeat(12, minmax(0, 1fr)); + column-gap: var(--gap-columns); +} +.sec { + padding-block: var(--section-gap); +} +.sec--s { + padding-block: var(--section-gap-s); +} +.site h1, +.site h2, +.site h3, +.dlg h3 { + margin: 0; + font-family: var(--font-display); + font-weight: var(--display-weight); + letter-spacing: var(--tracking-display); + line-height: 1.04; + color: var(--color-ink); + overflow-wrap: break-word; + min-width: 0; + text-wrap: balance; + font-synthesis: none; +} +.site h2 { + font-size: var(--text-section); + max-width: 22ch; +} +.site h3 { + font-size: var(--text-title); + font-weight: 500; + line-height: 1.2; + max-width: 40ch; +} +.site p { + margin: 0; +} +.lead { + font-size: var(--text-lead); + line-height: 1.45; + color: var(--color-ink-2); + max-width: 52ch; +} +.head { + display: grid; + gap: var(--space-lg); + margin-bottom: var(--space-2xl); +} +.head--split { + grid-template-columns: repeat(12, minmax(0, 1fr)); + column-gap: var(--gap-columns); + align-items: end; +} +.head--split > h2 { + grid-column: 1 / span 6; +} +.head--split > .lead { + grid-column: 8 / span 5; +} +.icon { + width: 24px; + height: 24px; + flex-shrink: 0; +} +.icon--s { + width: 20px; + height: 20px; + flex-shrink: 0; +} +.cut { + border: var(--rule-hair) solid var(--color-rule); + border-radius: var(--radius-card); + background: var(--color-paper); +} +@supports (corner-shape: bevel) { + .cut { + border-radius: var(--cut-l) 4px var(--cut-l) 4px; + corner-shape: bevel round bevel round; + } +} +.btn-lg { + min-height: 52px; + padding: 0 var(--space-lg); + font-size: var(--text-md); + white-space: nowrap; +} +.text-link { + color: var(--color-ink); + text-decoration: underline; + text-decoration-color: var(--color-rule-2); + text-underline-offset: 0.2em; + transition: text-decoration-color var(--dur-short) var(--ease-out); +} +.text-link:hover { + text-decoration-color: var(--color-accent); +} +.visually-hidden { + position: absolute; + width: 1px; + height: 1px; + overflow: hidden; + clip-path: inset(50%); + white-space: nowrap; +} + +/* ---------- Bild-Slots: Duoton Graphit/Papier (Theme Cobalt) ---------- */ +[data-slot] { + position: relative; + overflow: hidden; + background: var(--color-paper-2); +} +[data-slot] > img { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + object-fit: cover; +} +[data-slot]:has(> img) { + isolation: isolate; + background: var(--color-paper); + outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); + outline-offset: -1px; +} +[data-slot] > img { + z-index: 0; + filter: grayscale(1) contrast(1.08); + mix-blend-mode: multiply; +} +[data-slot]:has(> img)::before { + content: ""; + position: absolute; + inset: 0; + z-index: 1; + background: var(--color-graphite); + mix-blend-mode: lighten; + pointer-events: none; +} +/* Dunkel: Papier und Graphit tauschen die Rollen, damit das Foto nicht absäuft */ +.dark [data-slot]:has(> img) { + background: var(--color-graphite-ink); +} +.dark [data-slot]:has(> img)::before { + background: var(--color-paper-2); +} + +/* ---------- Navigation: Slab ---------- */ +.nav { + position: fixed; + inset: 0 0 auto 0; + z-index: var(--z-sticky-nav); + height: var(--nav-h); + background: var(--color-paper); + border-bottom: 2px solid var(--color-ink); +} +.nav__inner { + height: 100%; + display: flex; + align-items: center; + justify-content: space-between; + gap: var(--space-lg); +} +.wordmark { + display: flex; + align-items: center; + gap: var(--space-sm); + color: var(--color-ink); + text-decoration: none; + min-width: 0; +} +.wordmark__text { + display: flex; + flex-direction: column; + line-height: 1.15; +} +.wordmark__name { + font-family: var(--font-display); + font-weight: 600; + font-size: var(--text-lg); + text-transform: uppercase; + letter-spacing: 0.01em; +} +.wordmark__blue { + color: var(--color-accent-text); +} +.wordmark__tag { + font-size: var(--text-xs); + color: var(--color-muted); + white-space: nowrap; +} +.nav__links { + display: none; + align-items: center; + gap: var(--space-md); +} +.nav__link { + font-size: var(--text-sm); + font-weight: 500; + color: var(--color-ink-2); + text-decoration: none; + padding-block: var(--space-xs); + white-space: nowrap; + text-decoration-thickness: 1px; + text-underline-offset: 0.35em; + transition: color var(--dur-short) var(--ease-out); +} +.nav__link:hover { + color: var(--color-ink); + text-decoration: underline; + text-decoration-color: var(--color-accent); +} +.nav__end { + display: flex; + align-items: center; + gap: var(--space-sm); +} +.nav__phone { + display: inline-flex; + align-items: center; + gap: var(--space-xs); + font-size: var(--text-sm); + font-weight: 500; + color: var(--color-ink); + text-decoration: none; + white-space: nowrap; +} +.nav__phone:hover { + color: var(--color-accent-text); +} +.nav__phone span { + display: none; +} +@media (min-width: 96rem) { + .nav__phone span { + display: inline; + } +} +.nav__desk { + display: none; +} +.nav__burger { + display: inline-flex; + align-items: center; + justify-content: center; + width: 44px; + height: 44px; + border: 1px solid var(--color-rule-2); + border-radius: var(--radius-input); + background: var(--color-key-face); + color: var(--color-ink); + box-shadow: var(--shadow-key); + cursor: pointer; + transition: transform var(--dur-micro) var(--ease-out); +} +.nav__burger:active { + transform: translateY(2px); + box-shadow: var(--shadow-key-press); +} +.nav__drawer { + position: absolute; + inset: calc(100% + 2px) 0 auto 0; + background: var(--color-paper); + border-bottom: 2px solid var(--color-ink); + max-height: calc(100svh - var(--nav-h)); + overflow-y: auto; +} +.nav__drawer nav { + display: flex; + flex-direction: column; + padding-block: var(--space-md) var(--space-lg); +} +.nav__drawer .nav__link { + font-size: var(--text-md); + padding-block: var(--space-sm); + border-bottom: 1px solid var(--color-rule); +} +.nav__drawer-end { + display: flex; + align-items: center; + justify-content: space-between; + gap: var(--space-md); + margin-top: var(--space-lg); +} +@media (min-width: 80rem) { + .nav__links, + .nav__desk { + display: flex; + } + .nav__burger, + .nav__drawer { + display: none; + } +} + +/* Theme-Schalter */ +.mode-key { + display: inline-flex; + align-items: center; + justify-content: center; + width: 40px; + height: 40px; + border: 1px solid var(--color-rule-2); + border-radius: var(--radius-input); + background: var(--color-key-face); + color: var(--color-ink-2); + box-shadow: var(--shadow-key); + cursor: pointer; + transition: transform var(--dur-micro) var(--ease-out), color var(--dur-short) var(--ease-out); +} +.mode-key:hover { + color: var(--color-ink); + transform: translateY(-1px); +} +.mode-key:active { + transform: translateY(2px); + box-shadow: var(--shadow-key-press); +} + +/* ---------- Hero: Poster über dem ASCII-Feld ---------- */ +.hero { + position: relative; + isolation: isolate; + min-height: 100svh; + display: grid; + align-items: end; + padding-top: calc(var(--nav-h) + var(--space-2xl)); + background: var(--color-paper); + overflow: clip; +} +.hero__field { + position: absolute; + inset: 0; + z-index: 0; + background-image: radial-gradient(var(--color-glyph-2) 1px, transparent 1px); + background-size: var(--cell-w) var(--cell-h); + -webkit-mask-image: linear-gradient(90deg, transparent 30%, var(--color-ink) 75%); + mask-image: linear-gradient(90deg, transparent 30%, var(--color-ink) 75%); +} +.hero__field.is-live { + background-image: none; + -webkit-mask-image: none; + mask-image: none; +} +.hero__field canvas { + position: absolute; + inset: 0; + width: 100%; + height: 100%; +} +.hero__photo { + position: absolute; + inset: 0; + z-index: 0; + opacity: 0.35; +} +/* Gitter-Elemente stapeln mit z-index auch ohne position; so bleibt .hero der Bezug für die Stack-Labels. */ +.hero__content { + z-index: 2; + padding-bottom: var(--space-3xl); +} +.hero__text { + grid-column: 1 / span 7; +} +.hero h1 { + font-size: var(--text-poster); + line-height: 0.96; + letter-spacing: -0.035em; + max-width: 11ch; +} +.hero__sub { + margin-top: var(--space-xl); + max-width: 46ch; + font-size: var(--text-lead); + line-height: 1.45; + color: var(--color-ink-2); +} +.hero__actions { + display: flex; + flex-wrap: wrap; + gap: var(--space-sm); + margin-top: var(--space-xl); +} +.hero__stack { + list-style: none; + margin: 0; + padding: 0; +} +.hero__stack li { + font-family: var(--font-display); + font-weight: 500; + font-size: var(--text-sm); + color: var(--color-ink); + background: var(--color-paper); + border: 1px solid var(--color-rule-2); + border-radius: var(--cut) 2px; + padding: var(--space-3xs) var(--space-xs); + white-space: nowrap; +} +.hero__pause { + position: absolute; + right: var(--gutter); + bottom: var(--space-lg); + z-index: 3; + display: inline-flex; + align-items: center; + gap: var(--space-xs); + min-height: 36px; + padding: 0 var(--space-sm); + border: 1px solid var(--color-rule-2); + border-radius: var(--radius-input); + background: var(--color-key-face); + color: var(--color-ink-2); + font-size: var(--text-sm); + box-shadow: var(--shadow-key); + cursor: pointer; + transition: transform var(--dur-micro) var(--ease-out); +} +.hero__pause:active { + transform: translateY(2px); + box-shadow: var(--shadow-key-press); +} +@media (min-width: 60.01rem) { + .hero__stack li { + position: absolute; + right: var(--gutter); + top: var(--y); + transform: translateY(-50%); + z-index: 2; + } +} +@media (max-width: 60rem) { + .hero { + min-height: auto; + } + .hero__text { + grid-column: 1 / -1; + } + .hero__field { + opacity: 0.45; + } + .hero__stack { + display: flex; + flex-wrap: wrap; + gap: var(--space-xs); + margin-top: var(--space-xl); + } + .hero__pause { + display: none; + } +} + +/* ---------- Trenner: Slogan auf Graphit ---------- */ +.tagband { + background: var(--color-graphite); + color: var(--color-graphite-ink); + padding-block: var(--space-2xl); + border-top: 2px solid var(--color-ink); +} +.tagband__inner { + display: flex; + flex-wrap: wrap; + align-items: baseline; + justify-content: space-between; + gap: var(--space-md) var(--space-2xl); +} +.tagband__line { + margin: 0; + font-family: var(--font-display); + font-weight: 600; + font-size: var(--text-display-s); + letter-spacing: var(--tracking-display); + line-height: 1.02; + color: var(--color-graphite-ink); +} +.tagband__line span { + color: var(--color-signal); +} +.tagband__glyphs { + font-family: var(--font-outlier); + font-size: var(--text-xs); + color: var(--color-graphite-muted); + white-space: nowrap; + overflow: hidden; + max-width: 100%; +} + +/* ---------- Zielgruppen ---------- */ +.aud__grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: var(--gap-columns); +} +.aud__panel { + display: flex; + flex-direction: column; + gap: var(--space-md); + padding: var(--space-xl); + color: var(--color-ink); + text-decoration: none; + transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); +} +.aud__panel:hover { + border-color: var(--color-accent); +} +.aud__panel:active { + transform: translateY(1px); +} +.aud__top { + display: flex; + align-items: center; + justify-content: space-between; + gap: var(--space-md); +} +.aud__top .icon { + color: var(--color-accent-text); + transition: transform var(--dur-short) var(--ease-out); +} +.aud__panel:hover .aud__top .icon { + transform: translateX(4px); +} +.aud__desc { + color: var(--color-ink-2); +} +.aud__list { + list-style: none; + margin: var(--space-sm) 0 0; + padding: 0; + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + column-gap: var(--space-lg); +} +.aud__list li { + padding-block: var(--space-sm); + border-top: 1px solid var(--color-rule); + font-size: var(--text-md); +} + +/* ---------- Zeilen, Häkchen, Tags ---------- */ +.rows { + list-style: none; + margin: 0; + padding: 0; + border-bottom: 1px solid var(--color-rule); +} +.rows > li { + display: grid; + gap: var(--space-xs); + padding-block: var(--space-lg); + border-top: 1px solid var(--color-rule); +} +.rows p { + color: var(--color-ink-2); +} +.rows--wide > li { + grid-template-columns: repeat(12, minmax(0, 1fr)); + column-gap: var(--gap-columns); + padding-block: var(--space-xl); +} +.rows--wide > li > h3 { + grid-column: 1 / span 4; +} +.rows--wide > li > p { + grid-column: 5 / span 8; + max-width: 68ch; +} +.checks { + list-style: none; + margin: 0; + padding: 0; +} +.checks li { + display: flex; + align-items: flex-start; + gap: var(--space-sm); + padding-block: var(--space-sm); + border-top: 1px solid var(--color-rule); +} +.checks li:last-child { + border-bottom: 1px solid var(--color-rule); +} +.checks .icon--s { + color: var(--color-accent-text); + margin-top: var(--space-3xs); +} +.tags { + list-style: none; + margin: var(--space-md) 0 0; + padding: 0; + display: flex; + flex-wrap: wrap; + gap: var(--space-xs); +} +.tags li { + font-size: var(--text-sm); + color: var(--color-ink-2); + border: 1px solid var(--color-rule-2); + border-radius: var(--cut) 2px; + padding: var(--space-3xs) var(--space-xs); +} + +/* ---------- Paperless ---------- */ +.pl__head { + grid-column: 1 / span 5; + align-self: start; + position: sticky; + top: calc(var(--nav-h) + var(--space-xl)); + display: grid; + gap: var(--space-lg); +} +.pl__what { + margin-top: var(--space-md); + padding-top: var(--space-lg); + border-top: 1px solid var(--color-rule); + display: grid; + gap: var(--space-xs); +} +.pl__what p { + color: var(--color-ink-2); +} +.pl__body { + grid-column: 7 / span 6; + display: grid; + gap: var(--space-2xl); +} +.pl__sub { + margin-bottom: var(--space-md) !important; +} + +/* ---------- Datensouveränität ---------- */ +.ds__alert { + display: flex; + gap: var(--space-md); + align-items: flex-start; + padding: var(--space-xl); + background: var(--color-paper-2); + border-radius: var(--radius-card); + margin-bottom: var(--space-2xl); +} +.ds__alert .icon { + color: var(--color-error); + margin-top: var(--space-2xs); +} +.ds__alert p { + font-size: var(--text-lg); + line-height: 1.55; + color: var(--color-ink-2); + max-width: 72ch; +} +.ds__alert strong { + color: var(--color-ink); + font-weight: 600; +} +.seg { + display: inline-flex; + gap: var(--space-2xs); + padding: var(--space-2xs); + background: var(--color-paper-3); + border-radius: var(--radius-input); + margin-bottom: var(--space-xl); +} +.seg__key { + display: inline-flex; + align-items: center; + gap: var(--space-xs); + min-height: 44px; + padding: 0 var(--space-lg); + border: 1px solid transparent; + border-radius: var(--radius-input); + background: transparent; + color: var(--color-ink-2); + font-family: var(--font-display); + font-weight: 500; + font-size: var(--text-md); + cursor: pointer; + transition: color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); +} +.seg__key:hover { + color: var(--color-ink); +} +.seg__key:active { + transform: translateY(1px); +} +.seg__key[aria-selected="true"], +.seg__key.is-on { + background: var(--color-key-face); + border-color: var(--color-rule-2); + color: var(--color-ink); + box-shadow: var(--shadow-key); +} +.seg__count { + font-size: var(--text-sm); + color: var(--color-muted); + font-variant-numeric: tabular-nums; +} +.ds__panel-title { + margin-bottom: var(--space-lg) !important; +} +.ds__panel:not([hidden]) + .ds__panel:not([hidden]) { + margin-top: var(--space-2xl); +} +.ds__sol { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: var(--gap-columns); +} +.ds__sol > li { + display: grid; + gap: var(--space-sm); + align-content: start; + padding: var(--space-xl); +} +.ds__sol .ds__sol-top { + display: flex; + align-items: center; + gap: var(--space-sm); +} +.ds__sol .icon { + color: var(--color-accent-text); +} +.ds__sol p { + color: var(--color-ink-2); +} + +/* ---------- Technologien: Index ---------- */ +.band { + background: var(--color-paper-2); +} +.tech__index { + list-style: none; + margin: 0; + padding: 0; + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + column-gap: var(--gap-columns); +} +.tech__row { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: baseline; + gap: var(--space-2xs) var(--space-md); + width: 100%; + padding: var(--space-md) 0; + border: 0; + border-top: 1px solid var(--color-rule-2); + background: transparent; + color: var(--color-ink); + text-align: left; + cursor: pointer; + font: inherit; +} +.tech__name { + font-family: var(--font-display); + font-weight: 500; + font-size: var(--text-title); + letter-spacing: -0.015em; +} +.tech__cat { + grid-column: 1; + font-size: var(--text-sm); + color: var(--color-muted); +} +.tech__more { + grid-row: 1 / span 2; + grid-column: 2; + align-self: center; + font-size: var(--text-sm); + font-weight: 500; + color: var(--color-accent-text); + text-decoration: underline; + text-decoration-color: transparent; + text-underline-offset: 0.25em; + transition: text-decoration-color var(--dur-short) var(--ease-out); +} +.tech__row:hover .tech__more { + text-decoration-color: currentColor; +} +.tech__row:hover .tech__name { + color: var(--color-accent-text); +} + +/* Dialog */ +.dlg { + position: fixed; + inset: 0; + z-index: var(--z-modal); + display: grid; + place-items: center; + padding: var(--gutter); + background: color-mix(in oklab, var(--color-graphite) 72%, transparent); +} +.dlg__panel { + position: relative; + width: 100%; + max-width: 38rem; + max-height: calc(100svh - 2 * var(--gutter)); + overflow-y: auto; + padding: var(--space-2xl) var(--space-xl) var(--space-xl); + color: var(--color-ink); +} +.dlg__cat { + font-size: var(--text-sm); + font-weight: 500; + color: var(--color-accent-text); + margin-top: var(--space-xs); +} +.dlg h3 { + font-size: var(--text-2xl); + font-weight: 600; +} +.dlg__text { + margin-top: var(--space-lg); + color: var(--color-ink-2); + line-height: 1.65; +} +.dlg__close { + position: absolute; + top: var(--space-md); + right: var(--space-md); + width: 40px; + height: 40px; + display: inline-flex; + align-items: center; + justify-content: center; + border: 1px solid var(--color-rule-2); + border-radius: var(--radius-input); + background: var(--color-key-face); + color: var(--color-ink); + box-shadow: var(--shadow-key); + cursor: pointer; + transition: transform var(--dur-micro) var(--ease-out); +} +.dlg__close:active { + transform: translateY(2px); + box-shadow: var(--shadow-key-press); +} + +/* ---------- Über uns ---------- */ +.about__text { + grid-column: 1 / span 6; + display: grid; + gap: var(--space-lg); + align-content: start; +} +.about__text > p { + color: var(--color-ink-2); + font-size: var(--text-lg); + line-height: 1.6; + max-width: 60ch; +} +.about__motto { + padding-top: var(--space-md); + border-top: 1px solid var(--color-rule); +} +.about__motto b { + display: block; + font-family: var(--font-display); + font-weight: 600; + font-size: var(--text-lg); + color: var(--color-signal-text); +} +.about__motto span { + color: var(--color-muted); +} +.about__photo { + grid-column: 8 / span 5; + align-self: start; + aspect-ratio: 4 / 5; + min-height: 440px; + margin: 0; + border-radius: var(--radius-card); +} +.about__dbfigs { + display: flex; + flex-wrap: wrap; + gap: var(--space-xl); +} +.about__dbfigs b { + display: block; + font-family: var(--font-display); + font-weight: 600; + font-size: var(--text-3xl); + font-variant-numeric: tabular-nums; + line-height: 1; +} +.about__dbfigs span { + font-size: var(--text-sm); + color: var(--color-muted); +} +.steps { + list-style: none; + counter-reset: step; + margin: var(--space-3xl) 0 0; + padding: 0; + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: var(--gap-columns); +} +.steps > li { + counter-increment: step; + display: grid; + gap: var(--space-sm); + align-content: start; + padding-top: var(--space-lg); + border-top: 2px solid var(--color-ink); +} +.steps > li::before { + content: counter(step); + font-family: var(--font-display); + font-weight: 600; + font-size: var(--text-3xl); + line-height: 1; + color: var(--color-accent-text); + font-variant-numeric: tabular-nums; +} +.steps p { + color: var(--color-ink-2); +} + +/* Kennzahlen */ +.figs { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + margin-top: var(--space-3xl); + padding-top: var(--space-xl); + border-top: 1px solid var(--color-rule); +} +.figs > div { + padding-inline: var(--space-lg); + border-left: 1px solid var(--color-rule); +} +.figs > div:first-child { + padding-left: 0; + border-left: 0; +} +.figs b { + display: block; + font-family: var(--font-display); + font-weight: 600; + font-size: var(--text-display-s); + letter-spacing: var(--tracking-display); + line-height: 1; + font-variant-numeric: tabular-nums; +} +.figs span { + display: block; + margin-top: var(--space-xs); + font-size: var(--text-sm); + color: var(--color-muted); +} + +/* ---------- Galerie ---------- */ +.galerie-sec { + padding-bottom: var(--section-gap); +} + +/* ---------- Kontakt ---------- */ +.ct__info { + grid-column: 1 / span 5; + display: grid; + gap: var(--space-lg); + align-content: start; +} +.ct__form { + grid-column: 7 / span 6; +} +.facts { + margin: var(--space-lg) 0 0; + border-bottom: 1px solid var(--color-rule); +} +.facts > div { + display: grid; + grid-template-columns: 7rem minmax(0, 1fr); + gap: var(--space-md); + align-items: baseline; + padding-block: var(--space-md); + border-top: 1px solid var(--color-rule); +} +.facts dt { + font-size: var(--text-sm); + color: var(--color-muted); +} +.facts dd { + margin: 0; + font-family: var(--font-display); + font-weight: 500; + font-size: var(--text-lg); +} +.facts a { + color: var(--color-ink); + text-decoration: underline; + text-decoration-color: var(--color-rule-2); + text-underline-offset: 0.2em; + transition: text-decoration-color var(--dur-short) var(--ease-out); +} +.facts a:hover { + text-decoration-color: var(--color-accent); +} +.hours { + list-style: none; + margin: 0; + padding: 0; + font-family: var(--font-body); + font-weight: 400; + font-size: var(--text-md); +} +.hours li { + display: flex; + justify-content: space-between; + gap: var(--space-md); + font-variant-numeric: tabular-nums; +} +.well { + background: var(--color-paper-2); + border-radius: var(--radius-card); + padding: var(--space-xl); +} +.form { + display: grid; + gap: var(--space-lg); +} +.form__row { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: var(--space-lg); +} +.form__label { + display: block; + margin-bottom: var(--space-xs); + font-size: var(--text-sm); + font-weight: 500; + color: var(--color-ink-2); +} +.form fieldset { + border: 0; + margin: 0; + padding: 0; +} +.form__input { + display: block; + width: 100%; + min-height: 48px; + padding: 0 var(--space-md); + border: 1px solid var(--color-muted); + border-radius: var(--radius-input); + background: var(--color-paper); + color: var(--color-ink); + font: inherit; + font-size: var(--text-md); + outline: 2px solid transparent; + outline-offset: -2px; +} +.form__input::placeholder { + color: var(--color-muted); +} +.form__input:focus-visible { + outline-color: var(--color-focus); +} +textarea.form__input { + padding-block: var(--space-sm); + resize: vertical; + min-height: 9rem; +} +select.form__input { + appearance: none; + background-image: linear-gradient(45deg, transparent 50%, var(--color-ink-2) 50%), linear-gradient(135deg, var(--color-ink-2) 50%, transparent 50%); + background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; + background-size: 6px 6px, 6px 6px; + background-repeat: no-repeat; + padding-right: var(--space-2xl); +} +.seg--form { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + margin-bottom: 0; + width: 100%; +} +.seg--form .seg__key { + justify-content: center; +} +.seg--form .seg__key:has(input:focus-visible) { + outline: 2px solid var(--color-focus); + outline-offset: 2px; +} +.form__error { + display: flex; + gap: var(--space-sm); + align-items: flex-start; + padding: var(--space-md); + border: 1px solid var(--color-error); + border-radius: var(--radius-input); + background: var(--color-paper); + color: var(--color-ink); + font-size: var(--text-sm); +} +.form__error .icon--s { + color: var(--color-error); +} +.form__error small { + display: block; + margin-top: var(--space-2xs); + color: var(--color-muted); +} +.form__done { + display: grid; + gap: var(--space-md); + justify-items: start; + padding-block: var(--space-lg); +} +.form__done .icon { + color: var(--color-success); +} +.form__done p { + color: var(--color-ink-2); +} +.form .btn-primary { + width: 100%; +} +.spin { + animation: spin 0.9s linear infinite; +} +@keyframes spin { + to { + transform: rotate(360deg); + } +} + +/* ---------- Footer: Colophon ---------- */ +.ft { + background: var(--color-paper); + color: var(--color-ink); + border-top: 2px solid var(--color-ink); + padding-block: var(--space-3xl) var(--space-xl); +} +.ft__top { + row-gap: var(--space-2xl); +} +.ft__brand { + grid-column: 1 / span 5; + display: grid; + gap: var(--space-lg); + align-content: start; + justify-items: start; +} +.ft__colophon { + color: var(--color-ink-2); + max-width: 46ch; +} +.ft__nav { + grid-column: 7 / span 6; + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: var(--gap-columns); +} +.site .ft__group-title, +.ft__group-title { + margin: 0 0 var(--space-sm); + font-family: var(--font-display); + font-weight: 600; + font-size: var(--text-sm); + color: var(--color-ink); +} +.ft__links { + list-style: none; + margin: 0; + padding: 0; + display: grid; + gap: var(--space-xs); +} +.ft__links a, +.ft__legal a { + font-size: var(--text-sm); + color: var(--color-ink-2); + text-decoration: none; + transition: color var(--dur-short) var(--ease-out); +} +.ft__links a:hover, +.ft__legal a:hover { + color: var(--color-ink); + text-decoration: underline; + text-decoration-color: var(--color-accent); + text-underline-offset: 0.25em; +} +.ft__bottom { + margin-top: var(--space-3xl); + padding-top: var(--space-lg); + border-top: 1px solid var(--color-rule); + display: flex; + flex-wrap: wrap; + align-items: baseline; + justify-content: space-between; + gap: var(--space-sm) var(--space-xl); + font-size: var(--text-sm); + color: var(--color-muted); +} +.ft__legal { + display: flex; + flex-wrap: wrap; + gap: var(--space-sm) var(--space-lg); +} +.ft__credits { + flex-basis: 100%; + font-size: var(--text-xs); + color: var(--color-muted); +} +.ft__credits a { + color: inherit; +} + +/* ---------- Mobile Kontaktleiste ---------- */ +.mbar { + position: fixed; + inset: auto 0 0 0; + z-index: var(--z-sticky); + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: var(--space-xs); + padding: var(--space-xs) var(--space-xs) calc(var(--space-xs) + env(safe-area-inset-bottom)); + background: var(--color-paper); + border-top: 2px solid var(--color-ink); +} +@media (min-width: 64rem) { + .mbar { + display: none; + } +} + +/* ---------- Schmal ---------- */ +@media (max-width: 60rem) { + .head--split > h2, + .head--split > .lead, + .pl__head, + .pl__body, + .about__text, + .about__photo, + .ct__info, + .ct__form, + .ft__brand, + .ft__nav { + grid-column: 1 / -1; + } + .head--split { + row-gap: var(--space-md); + } + .pl__head { + position: static; + } + .pl__body, + .about__photo, + .ct__form { + margin-top: var(--space-2xl); + } + .about__photo { + min-height: 0; + aspect-ratio: 4 / 3; + } + .aud__grid, + .ds__sol, + .tech__index, + .steps { + grid-template-columns: minmax(0, 1fr); + } + .rows--wide > li > h3, + .rows--wide > li > p { + grid-column: 1 / -1; + } + .rows--wide > li { + row-gap: var(--space-xs); + } + .figs { + grid-template-columns: repeat(2, minmax(0, 1fr)); + row-gap: var(--space-xl); + } + .figs > div:nth-child(3) { + padding-left: 0; + border-left: 0; + } +} +@media (max-width: 40rem) { + .aud__list, + .form__row { + grid-template-columns: minmax(0, 1fr); + } + .aud__panel, + .well, + .ds__alert, + .ds__sol > li { + padding: var(--space-lg); + } + .ft__nav { + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); + } + .facts > div { + grid-template-columns: minmax(0, 1fr); + gap: var(--space-2xs); + } +} diff --git a/app/tokens.css b/app/tokens.css new file mode 100644 index 0000000..9798686 --- /dev/null +++ b/app/tokens.css @@ -0,0 +1,74 @@ +/* Hallmark-Tokens (Theme Cobalt, Markenfarben MBO-Tech-IT). Einzige Quelle für Farben, Schriften, Abstände. */ +:root { + color-scheme: light; + --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px; + --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem; + --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem); + --text-poster: clamp(3.25rem, 7.5vw, 7.5rem); + --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem); + --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); + --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms; + --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px; + --nav-h: 72px; + --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600; + + /* Papier, Tinte, Linien */ + --color-paper: oklch(98.6% 0.005 250); --color-paper-2: oklch(96.2% 0.008 252); --color-paper-3: oklch(93% 0.011 252); + --color-ink: oklch(21% 0.028 262); --color-ink-2: oklch(36% 0.022 260); --color-muted: oklch(48% 0.018 258); + --color-rule: oklch(90% 0.009 252); --color-rule-2: oklch(83% 0.012 252); + --color-graphite: oklch(21% 0.024 262); --color-graphite-2: oklch(26.5% 0.026 262); --color-graphite-ink: oklch(93% 0.010 250); --color-graphite-muted: oklch(72% 0.022 256); + + /* Signal: Markenblau #2563eb */ + --color-accent: oklch(54.6% 0.215 263); --color-accent-2: oklch(76% 0.13 258); --color-accent-wash: oklch(95% 0.03 260); --color-accent-ink: oklch(98.6% 0.005 250); + --color-accent-deep: oklch(45% 0.21 265); --color-accent-edge: oklch(40% 0.17 264); + --color-accent-text: oklch(50% 0.2 264); + --color-focus: oklch(54.6% 0.215 263); + + /* Marke: Orange #f97316, die eine Hauptaktion und das Logo */ + --color-signal: oklch(70.5% 0.191 47.6); --color-signal-edge: oklch(54% 0.17 42); --color-signal-ink: oklch(21% 0.028 262); + --color-signal-text: oklch(55% 0.19 40); + + --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150); + + /* ASCII-Feld */ + --color-glyph-1: oklch(89% 0.025 254); --color-glyph-2: oklch(81% 0.045 255); --color-glyph-3: oklch(70% 0.085 256); --color-glyph-4: oklch(60% 0.13 258); + + /* Tasten */ + --color-key-face: oklch(99.4% 0.003 250); --color-key-edge: oklch(80% 0.016 254); + + --font-display: var(--font-familjen), "Familjen Grotesk", system-ui, sans-serif; + --font-body: var(--font-plex), "IBM Plex Sans", system-ui, sans-serif; + --font-outlier: var(--font-mono), "JetBrains Mono", ui-monospace, monospace; + + --radius-card: 8px; --radius-input: 6px; --radius-pill: 999px; + --cell-w: 8px; --cell-h: 16px; --cut: 8px; --cut-l: 16px; + --rule-hair: 1px; --shadow-card: 0 1px 2px oklch(21% 0.028 262 / 0.06); + --shadow-key: 0 3px 0 0 var(--color-key-edge), 0 6px 8px -4px oklch(21% 0.028 262 / 0.28), inset 0 1px 0 oklch(100% 0 0 / 0.9); + --shadow-key-signal: 0 3px 0 0 var(--color-signal-edge), 0 6px 8px -4px oklch(40% 0.12 45 / 0.4), inset 0 1px 0 oklch(100% 0 0 / 0.35); + --shadow-key-press: inset 0 1px 2px oklch(21% 0.028 262 / 0.14); + --tracking-display: -0.028em; --display-weight: 600; +} + +/* Dunkel: neu abgeleitet, nicht invertiert. Gleiche Farbtöne, Tiefe über Helligkeit statt Schatten. */ +.dark { + color-scheme: dark; + --color-paper: oklch(17% 0.02 262); --color-paper-2: oklch(20.5% 0.022 262); --color-paper-3: oklch(24% 0.024 262); + --color-ink: oklch(94% 0.01 250); --color-ink-2: oklch(83% 0.015 252); --color-muted: oklch(71% 0.02 256); + --color-rule: oklch(29% 0.022 262); --color-rule-2: oklch(37% 0.025 260); + --color-graphite: oklch(13% 0.018 262); --color-graphite-2: oklch(19% 0.02 262); --color-graphite-ink: oklch(93% 0.01 250); --color-graphite-muted: oklch(72% 0.022 256); + --color-accent: oklch(66% 0.17 262); --color-accent-2: oklch(80% 0.1 256); --color-accent-wash: oklch(25% 0.05 262); --color-accent-ink: oklch(15% 0.02 262); + --color-accent-deep: oklch(74% 0.15 258); --color-accent-edge: oklch(48% 0.15 262); + --color-accent-text: oklch(76% 0.13 258); + --color-focus: oklch(70% 0.16 262); + --color-signal-text: oklch(76% 0.16 52); + --color-error: oklch(70% 0.16 27); --color-success: oklch(72% 0.13 150); + --color-glyph-1: oklch(27% 0.03 262); --color-glyph-2: oklch(35% 0.05 260); --color-glyph-3: oklch(47% 0.09 258); --color-glyph-4: oklch(60% 0.13 258); + --color-key-face: oklch(24% 0.022 262); --color-key-edge: oklch(11% 0.02 262); + --shadow-card: 0 0 0 1px var(--color-rule); + --shadow-key: 0 3px 0 0 var(--color-key-edge), inset 0 1px 0 oklch(100% 0 0 / 0.06); + --shadow-key-signal: 0 3px 0 0 var(--color-signal-edge), inset 0 1px 0 oklch(100% 0 0 / 0.3); + --shadow-key-press: inset 0 1px 2px oklch(0% 0 0 / 0.4); +} + +@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; --nav-h: 64px; } } +@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } } diff --git a/components/About.tsx b/components/About.tsx index 869e90e..dc8b911 100644 --- a/components/About.tsx +++ b/components/About.tsx @@ -1,24 +1,28 @@ +import { Check } from "lucide-react"; +import StatsBar from "./StatsBar"; + const highlights = [ { - icon: "01", title: "Analyse & Planung", - description: - "Wir analysieren Ihre bestehende Infrastruktur und planen die optimale Lösung für Ihre Anforderungen.", + description: "Wir analysieren Ihre bestehende Infrastruktur und planen die optimale Lösung für Ihre Anforderungen.", }, { - icon: "02", title: "Implementierung", - description: - "Professionelle Umsetzung mit bewährten technischen Methoden und modernsten Tools.", + description: "Professionelle Umsetzung mit bewährten technischen Methoden und modernsten Tools.", }, { - icon: "03", title: "Betrieb & Support", - description: - "Zuverlässiger Betrieb, Monitoring und Support – damit Ihre Systeme immer laufen.", + description: "Zuverlässiger Betrieb, Monitoring und Support, damit Ihre Systeme immer laufen.", }, ]; +const points = [ + "30+ Jahre IT-Erfahrung, von Hardware bis Cloud", + "20+ Jahre IT-Security & Netzwerk-Expertise", + "Spezialisiert auf Docker & Proxmox", + "Transparente Kommunikation & faire Preise", +]; + interface AboutProps { eyebrowText?: string; absatz1?: string; @@ -27,89 +31,71 @@ interface AboutProps { } export default function About({ - eyebrowText = "Über uns", - absatz1 = "MBO-Tech-IT steht für über 30 Jahre IT-Erfahrung — angefangen bei der einfachen Hardware-Wartung, über den Aufbau großer Client-Server-Netzwerke, bis hin zu mehr als 20 Jahren Spezialisierung in der IT-Security.", - absatz2 = "Heute liegt der Fokus auf modernen Container-Technologien, Cloud-nativer Infrastruktur und Virtualisierung. Dieses breite Fundament ermöglicht es, Lösungen zu entwickeln, die nicht nur funktionieren — sondern auch sicher und langfristig tragfähig sind.", + absatz1 = "MBO-Tech-IT steht für über 30 Jahre IT-Erfahrung, angefangen bei der einfachen Hardware-Wartung, über den Aufbau großer Client-Server-Netzwerke, bis hin zu mehr als 20 Jahren Spezialisierung in der IT-Security.", + absatz2 = "Heute liegt der Fokus auf modernen Container-Technologien, Cloud-nativer Infrastruktur und Virtualisierung. Dieses breite Fundament ermöglicht es, Lösungen zu entwickeln, die nicht nur funktionieren, sondern auch sicher und langfristig tragfähig sind.", stats, }: AboutProps = {}) { return ( -
-
+
+
+
+

IT-Expertise, die Sie weiterbringt

+

{absatz1}

+

{absatz2}

-
-
- {/* Left: Text */} -
-

- IT-Expertise,{" "} - die Sie weiterbringt -

-

- {absatz1} -

-

- {absatz2} -

+

+ Digital Denken. Lokal Handeln. + Globales Know-how, persönlicher Service. +

- {/* Tagline callout */} -
-

- Digital Denken. Lokal Handeln. -

-

- Globales Know-how — persönlicher Service. -

-
+
    + {points.map((point) => ( +
  • +
  • + ))} +
- {/* Key points */} -
- {[ - "30+ Jahre IT-Erfahrung – von Hardware bis Cloud", - "20+ Jahre IT-Security & Netzwerk-Expertise", - "Spezialisiert auf Docker & Proxmox", - "Transparente Kommunikation & faire Preise", - ].map((point) => ( -
-
- -
- {point} + {stats && stats.length > 0 && ( +
+ {stats.map((s) => ( +
+ {s.wert} + {s.label}
))}
- - {stats && stats.length > 0 && ( -
- {stats.map((s) => ( -
-
{s.wert}
-
{s.label}
-
- ))} -
- )} -
- - {/* Right: Process steps */} -
- {highlights.map((item) => ( -
-
- {item.icon} -
-
-

{item.title}

-

{item.description}

-
-
- ))} -
+ )}
+ +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + Netzwerkkabel, die in die Ports eines Switches gesteckt sind +
+ +
    + {highlights.map((item) => ( +
  1. +

    {item.title}

    +

    {item.description}

    +
  2. + ))} +
+ +
); diff --git a/components/AsciiField.tsx b/components/AsciiField.tsx new file mode 100644 index 0000000..5fbd831 --- /dev/null +++ b/components/AsciiField.tsx @@ -0,0 +1,257 @@ +"use client"; + +import { useEffect, useRef, useState } from "react"; +import { Pause, Play } from "lucide-react"; + +/* + * Das ASCII-Feld des Hero (Theme Cobalt): ein Zeichenraster auf 8 × 16 px. + * Links bleibt es ruhig (dort steht der Text), in der Mitte rauscht ein ungeordnetes + * Netz, rechts laufen daraus geordnete Leitungen in die Stack-Labels (.hero__stack li). + * Läuft mit 30 fps, pausiert außerhalb des Sichtfelds, per Taste und bei reduzierter Bewegung. + */ + +const CW = 8; +const CH = 16; +const RAMP = " .:-=+*#%@"; + +function hash(x: number, y: number) { + let h = (Math.imul(x, 374761393) + Math.imul(y, 668265263)) | 0; + h = Math.imul(h ^ (h >>> 13), 1274126177); + return ((h ^ (h >>> 16)) >>> 0) / 4294967295; +} +function fade(t: number) { + return t * t * (3 - 2 * t); +} +function noise(x: number, y: number) { + const xi = Math.floor(x); + const yi = Math.floor(y); + const u = fade(x - xi); + const v = fade(y - yi); + const a = hash(xi, yi); + const b = hash(xi + 1, yi); + const c = hash(xi, yi + 1); + const d = hash(xi + 1, yi + 1); + return a + (b - a) * u + (c - a) * v + (a - b - c + d) * u * v; +} +function smoothstep(e0: number, e1: number, x: number) { + const t = Math.min(1, Math.max(0, (x - e0) / (e1 - e0))); + return t * t * (3 - 2 * t); +} + +type Line = { x: number; y: number; i: number }; + +export default function AsciiField() { + const wrapRef = useRef(null); + const canvasRef = useRef(null); + const heldRef = useRef(false); + const syncRef = useRef<() => void>(() => {}); + const [live, setLive] = useState(false); + const [held, setHeld] = useState(false); + const [canPause, setCanPause] = useState(false); + + useEffect(() => { + const wrap = wrapRef.current; + const canvas = canvasRef.current; + const hero = wrap?.parentElement; + if (!wrap || !canvas || !hero) return; + const ctx = canvas.getContext("2d"); + if (!ctx) return; + + const reduced = window.matchMedia("(prefers-reduced-motion: reduce)"); + const wide = window.matchMedia("(min-width: 60.01rem)"); + const fine = window.matchMedia("(pointer: fine)"); + + let W = 0; + let H = 0; + let lines: Line[] = []; + let colors: string[] = []; + let family = "monospace"; + let pointer: { x: number; y: number } | null = null; + let visible = true; + let raf = 0; + let last = 0; + let t0 = performance.now(); + let tPaused = 0; + + const readColors = () => { + const cs = getComputedStyle(document.documentElement); + colors = ["--color-glyph-1", "--color-glyph-2", "--color-glyph-3", "--color-glyph-4", "--color-accent-deep"].map((n) => + cs.getPropertyValue(n).trim() + ); + family = getComputedStyle(canvas).fontFamily || "monospace"; + }; + + const measure = () => { + const r = hero.getBoundingClientRect(); + W = r.width; + H = r.height; + const dpr = Math.min(window.devicePixelRatio || 1, 2); + canvas.width = Math.round(W * dpr); + canvas.height = Math.round(H * dpr); + ctx.setTransform(dpr, 0, 0, dpr, 0, 0); + lines = []; + if (wide.matches) { + hero.querySelectorAll(".hero__stack li").forEach((li, i) => { + const b = li.getBoundingClientRect(); + lines.push({ x: b.left - r.left - CW * 2, y: b.top - r.top + b.height / 2, i }); + }); + } + }; + + const draw = (t: number) => { + ctx.clearRect(0, 0, W, H); + ctx.font = `12px ${family}`; + ctx.textAlign = "center"; + ctx.textBaseline = "middle"; + + const narrow = !wide.matches; + const cx = narrow ? W * 0.78 : W * 0.6; + const cy = narrow ? H * 0.07 : H * 0.47; + const rx = W * (narrow ? 0.28 : 0.15); + const ry = H * (narrow ? 0.08 : 0.33); + const lineStart = cx + rx * 0.35; + const calmEnd = W * (narrow ? 0.45 : 0.34); + const calmFull = W * (narrow ? 0.9 : 0.58); + const buckets: [string, number, number][][] = [[], [], [], [], []]; + const cols = Math.ceil(W / CW); + const rows = Math.ceil(H / CH); + + for (let r = 0; r < rows; r++) { + const py = r * CH + CH / 2; + let row: Line | null = null; + for (const L of lines) if (Math.abs(py - L.y) < CH / 2) row = L; + for (let c = 0; c < cols; c++) { + const px = c * CW + CW / 2; + const f = smoothstep(calmEnd, calmFull, px); + const lens = pointer ? Math.exp(-((px - pointer.x) ** 2 + (py - pointer.y) ** 2) / (2 * 64 * 64)) : 0; + if (f === 0 && lens < 0.05) continue; + + let d = Math.pow(noise(px * 0.018 + t * 0.25, py * 0.03 - t * 0.1), 5) * 0.55 * f; + const dx = (px - cx) / rx; + const dy = (py - cy) / ry; + const g = Math.exp(-(dx * dx + dy * dy) * 1.6); + if (g > 0.01) d = Math.max(d, g * (0.3 + 0.9 * noise(px * 0.045 - t * 0.6, py * 0.06 + t * 0.3))); + + let isLine = false; + if (row && px > lineStart && px < row.x) { + const along = (px - lineStart) / (row.x - lineStart); + const pulse = Math.max(0, Math.sin(px * 0.035 - t * 5 + row.i * 1.7)); + d = Math.max(d, 0.42 + 0.12 * (1 - along) + 0.5 * Math.pow(pulse, 6)); + isLine = true; + } + d = Math.min(0.999, d + lens * 0.55 * Math.max(f, 0.25)); + if (d < 0.1) continue; + + const ch = isLine ? (d > 0.8 ? "=" : "-") : RAMP[Math.floor(d * RAMP.length)]; + if (ch === " ") continue; + const b = d < 0.3 ? 0 : d < 0.5 ? 1 : d < 0.68 ? 2 : d < 0.86 ? 3 : 4; + buckets[b].push([ch, px, py]); + } + } + buckets.forEach((cells, i) => { + if (!cells.length) return; + ctx.fillStyle = colors[i] || "currentColor"; + for (const [ch, x, y] of cells) ctx.fillText(ch, x, y); + }); + }; + + const running = () => visible && !heldRef.current && !reduced.matches; + + const loop = (now: number) => { + raf = 0; + if (!running()) return; + if (now - last >= 33) { + last = now; + draw((now - t0) / 1000); + } + raf = requestAnimationFrame(loop); + }; + + const sync = () => { + if (running()) { + if (!raf) { + t0 = performance.now() - tPaused * 1000; + raf = requestAnimationFrame(loop); + } + } else { + if (raf) cancelAnimationFrame(raf); + raf = 0; + tPaused = (performance.now() - t0) / 1000; + draw(reduced.matches ? 2.4 : tPaused); + } + }; + syncRef.current = sync; + + readColors(); + measure(); + draw(reduced.matches ? 2.4 : 0); + setLive(true); + setCanPause(!reduced.matches); + sync(); + + const onResize = () => { + measure(); + if (!running()) draw(reduced.matches ? 2.4 : tPaused); + }; + const ro = new ResizeObserver(onResize); + ro.observe(hero); + + const io = new IntersectionObserver(([e]) => { + visible = e.isIntersecting; + sync(); + }); + io.observe(hero); + + const mo = new MutationObserver(() => { + readColors(); + if (!running()) draw(reduced.matches ? 2.4 : tPaused); + }); + mo.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] }); + + const onMove = (e: PointerEvent) => { + if (!fine.matches) return; + const r = hero.getBoundingClientRect(); + pointer = { x: e.clientX - r.left, y: e.clientY - r.top }; + }; + const onLeave = () => { + pointer = null; + }; + hero.addEventListener("pointermove", onMove); + hero.addEventListener("pointerleave", onLeave); + const onMotion = () => { + setCanPause(!reduced.matches); + sync(); + }; + reduced.addEventListener("change", onMotion); + + return () => { + if (raf) cancelAnimationFrame(raf); + ro.disconnect(); + io.disconnect(); + mo.disconnect(); + hero.removeEventListener("pointermove", onMove); + hero.removeEventListener("pointerleave", onLeave); + reduced.removeEventListener("change", onMotion); + }; + }, []); + + const toggle = () => { + heldRef.current = !heldRef.current; + setHeld(heldRef.current); + syncRef.current(); + }; + + return ( + <> + + {canPause && ( + + )} + + ); +} diff --git a/components/Contact.tsx b/components/Contact.tsx index bcda1a8..3c1e1f7 100644 --- a/components/Contact.tsx +++ b/components/Contact.tsx @@ -1,6 +1,7 @@ "use client"; import { useState } from "react"; +import { CircleAlert, CircleCheck, LoaderCircle } from "lucide-react"; interface OeffnungsZeit { tag: string; von: string; bis: string } @@ -38,9 +39,8 @@ const themen: Record = { ], }; -const inputClass = - "w-full px-4 py-3 rounded-xl bg-slate-50 dark:bg-[#111925] border border-slate-300 dark:border-gray-700 text-slate-900 dark:text-white placeholder-slate-400 dark:placeholder-slate-600 focus:outline-none focus:border-orange-500/60 focus:ring-1 focus:ring-orange-500/20 transition-colors"; -const labelClass = "block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2"; +const inputClass = "form__input"; +const labelClass = "form__label"; export default function Contact({ telefon = "+49 171 9345193", @@ -51,32 +51,16 @@ export default function Contact({ }: ContactProps = {}) { const contactItems = [ { - icon: ( - - ), label: "Telefon", value: telefon, href: `tel:${telefon.replace(/\s/g, "")}`, }, { - icon: ( - - ), label: "E-Mail", value: email, href: `mailto:${email}`, }, { - icon: ( - - ), label: "Standort", value: `${adresseZeile1}, ${adresseZeile2}`, href: `https://maps.google.com/?q=${encodeURIComponent(adresseZeile1 + " " + adresseZeile2)}`, @@ -134,260 +118,230 @@ ${nachricht}` : ""}` } return ( -
-
-
-
- -
- {/* Header */} -
-

- Projekt anfragen -

-

- Sie haben ein IT-Projekt oder eine Frage? Schreiben Sie uns, - wir melden uns schnellstmöglich bei Ihnen. +

+
+
+

Projekt anfragen

+

+ Sie haben ein IT-Projekt oder eine Frage? Schreiben Sie uns, wir melden uns schnellstmöglich bei Ihnen.

+ +
+ {contactItems.map((item) => ( +
+
{item.label}
+
+ + {item.value} + +
+
+ ))} + {oeffnungszeiten && oeffnungszeiten.length > 0 && ( +
+
Öffnungszeiten
+
+
    + {oeffnungszeiten.map((oz) => ( +
  • + {oz.tag} + + {oz.von} bis {oz.bis} + +
  • + ))} +
+
+
+ )} +
-
- {status === "success" ? ( -
-
- +
+
+ {status === "success" ? ( +
+
-

Anfrage gesendet!

-

- Wir haben Ihre Nachricht erhalten und melden uns schnellstmöglich bei Ihnen. -

- -
- ) : ( -
- {/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */} - -
- Ich melde mich als -
- {([ - ["privat", "Privatkunde"], - ["geschaeftlich", "Geschäftskunde"], - ] as const).map(([value, label]) => ( - - ))} -
-
- -
-
- + ) : ( + + {/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */} + - {zielgruppe === "geschaeftlich" ? ( +
+ Ich melde mich als +
+ {([ + ["privat", "Privatkunde"], + ["geschaeftlich", "Geschäftskunde"], + ] as const).map(([value, label]) => ( + + ))} +
+
+ +
- + setFirma(e.target.value)} - placeholder="Musterfirma GmbH" + required + autoComplete="name" + value={name} + onChange={(e) => setName(e.target.value)} + placeholder="Max Mustermann" className={inputClass} />
- ) : null} + {zielgruppe === "geschaeftlich" ? ( +
+ + setFirma(e.target.value)} + placeholder="Musterfirma GmbH" + className={inputClass} + /> +
+ ) : null} +
+ + setEmailInput(e.target.value)} + placeholder="max@beispiel.de" + className={inputClass} + /> +
+
+ + setTelefonInput(e.target.value)} + placeholder="0171 1234567" + className={inputClass} + /> +
+
+
- - Worum geht es? +
+
- - setTelefonInput(e.target.value)} - placeholder="0171 1234567" + +