Files
sonith-website/css/style.css
T
techadmin 82cea98b52 feat: animiertes Knoten-Mesh im Hero (v1.5.0)
Greift das Logo-Motiv (vernetzte Knotenpunkte) als ganzflaechiges Hero-
Hintergrundelement auf — transportiert visuell die Netzwerk-/MSP-Kompetenz.

- 12 Knoten in CI-Sonith-Gelb mit asynchroner Pulse-Animation
  (skaliert zwischen 1.0 und 1.6, drop-shadow-Glow)
- 17 Verbindungslinien in CI-Petrol mit stroke-dasharray-Datenfluss
  (drei Geschwindigkeiten und Phasen, zufaellig wirkend)
- mix-blend-mode: screen fuer weiches Aufblenden auf den Orbs
- prefers-reduced-motion respektiert (Animation aus, Mesh bleibt sichtbar)
- Orb-Opazitaeten reduziert, damit das Mesh den primaeren Akzent setzt

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 23:50:14 +02:00

250 lines
6.0 KiB
CSS

/* ============================================================
sonith.de — Custom Styles
CI-konform: Logo-Gelb #DEDC1E, Petrol #067391, CI-Grau #848687/#C8C9CA
Hintergrund: petrol-getoentes Dunkel #0a1f28 / #102b38
============================================================ */
/* Smooth scrolling offset for fixed nav */
html {
scroll-padding-top: 5rem;
}
/* ---- Navbar ---- */
#navbar {
background: rgba(10, 31, 40, 0.8);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
#navbar.scrolled {
background: rgba(10, 31, 40, 0.95);
box-shadow: 0 1px 0 rgba(6, 115, 145, 0.2);
}
/* Header schrumpft beim Scrollen: gross & einladend oben, kompakt waehrend des Lesens */
.nav-row {
height: 6rem;
transition: height 0.3s ease;
}
.nav-logo {
height: 3.5rem;
transition: height 0.3s ease;
}
@media (min-width: 1024px) {
.nav-row { height: 7rem; }
.nav-logo { height: 4.5rem; }
}
#navbar.scrolled .nav-row { height: 4rem; }
#navbar.scrolled .nav-logo { height: 2.25rem; }
@media (min-width: 1024px) {
#navbar.scrolled .nav-row { height: 5rem; }
#navbar.scrolled .nav-logo { height: 2.5rem; }
}
/* Active nav link */
.nav-link.active {
color: #DEDC1E;
}
/* ---- Fade-in Animation ---- */
.fade-in {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
/* Staggered children */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
/* ---- Service Cards ---- */
.service-card {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.5s ease-out, transform 0.5s ease-out,
border-color 0.3s, box-shadow 0.3s;
}
.service-card.visible {
opacity: 1;
transform: translateY(0);
}
.service-card:nth-child(1) { transition-delay: 0.0s; }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:nth-child(6) { transition-delay: 0.40s; }
.service-card:hover {
box-shadow: 0 0 24px rgba(222, 220, 30, 0.08),
0 0 48px rgba(6, 115, 145, 0.06);
}
/* ---- Hero Mesh: animiertes Knoten-Netz im Logo-Stil ---- */
.hero-mesh {
opacity: 0.55;
mix-blend-mode: screen;
}
.mesh-lines line {
stroke-opacity: 0.25;
stroke-dasharray: 4 8;
animation: line-flow 6s linear infinite;
}
.mesh-lines line:nth-child(3n) { animation-duration: 9s; stroke-opacity: 0.18; }
.mesh-lines line:nth-child(3n+1) { animation-duration: 7s; animation-delay: -2s; }
.mesh-lines line:nth-child(3n+2) { animation-duration: 11s; animation-delay: -4s; stroke-opacity: 0.30; }
@keyframes line-flow {
to { stroke-dashoffset: -48; }
}
.node {
transform-box: fill-box;
transform-origin: center;
animation: node-pulse 3.6s ease-in-out infinite;
filter: drop-shadow(0 0 4px rgba(222, 220, 30, 0.6));
}
.node:nth-child(2n) { animation-delay: -0.8s; animation-duration: 4.2s; }
.node:nth-child(3n) { animation-delay: -1.6s; animation-duration: 5.0s; }
.node:nth-child(4n+1) { animation-delay: -2.4s; }
.node:nth-child(5n+2) { animation-delay: -3.0s; animation-duration: 4.8s; }
@keyframes node-pulse {
0%, 100% { transform: scale(1); opacity: 0.55; }
50% { transform: scale(1.6); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.mesh-lines line,
.node { animation: none !important; }
}
/* ---- Floating Orbs (Hero) ---- */
.orb {
filter: blur(64px);
pointer-events: none;
will-change: transform;
}
.orb-petrol {
background: radial-gradient(circle, #067391 0%, transparent 70%);
animation: drift 14s ease-in-out infinite;
}
.orb-petrol-2 {
background: radial-gradient(circle, #045066 0%, transparent 70%);
animation: drift 18s ease-in-out infinite reverse;
}
.orb-sonith {
background: radial-gradient(circle, #DEDC1E 0%, transparent 70%);
animation: drift 20s ease-in-out infinite;
animation-delay: -6s;
}
@keyframes drift {
0%, 100% { transform: translate(0, 0) scale(1); }
33% { transform: translate(40px, -30px) scale(1.08); }
66% { transform: translate(-30px, 25px) scale(0.95); }
}
/* Auf reduzierten Bewegungswunsch achten (a11y) */
@media (prefers-reduced-motion: reduce) {
.orb { animation: none !important; }
}
/* ---- USP Cards (mit subtiler Pulse-Aura auf Icon-Kreisen) ---- */
.usp-card {
transition: transform 0.3s ease;
}
.usp-card:hover {
transform: translateY(-4px);
}
.usp-card > div:first-child {
position: relative;
}
.usp-card > div:first-child::before {
content: "";
position: absolute;
inset: -6px;
border-radius: 9999px;
background: radial-gradient(circle, rgba(222, 220, 30, 0.18) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.4s ease;
z-index: -1;
}
.usp-card:hover > div:first-child::before {
opacity: 1;
animation: pulse-soft 2.4s ease-in-out infinite;
}
@keyframes pulse-soft {
0%, 100% { transform: scale(1); opacity: 0.6; }
50% { transform: scale(1.18); opacity: 1; }
}
/* ---- Team Cards ---- */
.team-card {
transition: transform 0.3s ease;
}
.team-card:hover {
transform: translateY(-4px);
}
/* ---- Contact Cards ---- */
.contact-card {
transition: all 0.3s ease;
}
.contact-card:hover {
transform: translateY(-2px);
}
/* ---- Selection Color ---- */
::selection {
background: rgba(222, 220, 30, 0.3);
color: #fff;
}
/* ---- Scrollbar (CI-Petrol-Toene) ---- */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #0a1f28;
}
::-webkit-scrollbar-thumb {
background: #1a3d4d;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #045066;
}
/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible {
outline: 2px solid #DEDC1E;
outline-offset: 2px;
border-radius: 4px;
}