Files
pyx-website/themes/pyx-theme/static/css/style.css
Joe Ammann 5674fe005a Initialize Hugo website with custom infinite-scroll theme
- Set up complete Hugo project structure with bilingual support (EN/DE)
- Create custom pyx-theme with modern, clean design
- Implement infinite scrolling single-page layout with sections
- Style with white background, black text, and blue accent color
- Add responsive navigation with smooth anchor scrolling
- Move logo assets to static/images directory
- Configure i18n translations for English and German (Swiss spelling)
- Add company data structure in data/company.yaml
- Create archetypes for consistent content frontmatter
- Update CLAUDE.md with comprehensive project documentation

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 14:21:10 +01:00

372 lines
6.1 KiB
CSS

/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-blue: #0066cc;
--text-black: #1a1a1a;
--background-white: #ffffff;
--light-gray: #f5f5f5;
--medium-gray: #e0e0e0;
}
html {
scroll-behavior: smooth;
scroll-snap-type: y mandatory;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
color: var(--text-black);
background: var(--background-white);
line-height: 1.6;
}
/* Header */
header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
border-bottom: 1px solid var(--medium-gray);
}
header nav {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
header nav a.logo {
display: flex;
align-items: center;
}
header nav img {
height: 32px;
width: auto;
}
header nav ul {
display: flex;
list-style: none;
gap: 2rem;
align-items: center;
}
header nav a {
color: var(--text-black);
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
header nav a:hover {
color: var(--primary-blue);
}
header .language-switcher {
gap: 0.5rem;
}
header .language-switcher a {
padding: 0.25rem 0.75rem;
border: 1px solid var(--medium-gray);
border-radius: 4px;
font-size: 0.9rem;
}
header .language-switcher a:hover {
background: var(--light-gray);
border-color: var(--primary-blue);
}
/* Main Content */
main {
margin-top: 65px;
}
/* Section Styles */
section {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 4rem 2rem;
scroll-snap-align: start;
}
section:nth-child(even) {
background: var(--light-gray);
}
.section-content {
max-width: 1200px;
width: 100%;
}
/* Hero Section */
.hero {
text-align: center;
}
.hero .logo {
max-width: 400px;
width: 100%;
height: auto;
margin-bottom: 2rem;
}
.hero h1 {
font-size: 3rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--text-black);
}
.hero p {
font-size: 1.5rem;
color: #666;
margin-bottom: 2rem;
}
.hero .cta {
display: inline-block;
padding: 1rem 2rem;
background: var(--primary-blue);
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
transition: background 0.3s ease, transform 0.2s ease;
}
.hero .cta:hover {
background: #0052a3;
transform: translateY(-2px);
}
/* Services Section */
.services {
background: var(--light-gray);
}
.services h2 {
font-size: 2.5rem;
margin-bottom: 3rem;
text-align: center;
color: var(--text-black);
}
.service-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
width: 100%;
}
.service-list article {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-list article:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 102, 204, 0.2);
}
.service-list h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--primary-blue);
}
.service-list h3 a {
color: var(--primary-blue);
text-decoration: none;
}
.service-list p {
color: #666;
line-height: 1.8;
}
/* About Section */
.about {
background: white;
}
.about h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
text-align: center;
}
.about .content {
max-width: 800px;
margin: 0 auto;
font-size: 1.1rem;
line-height: 1.8;
color: #444;
}
/* Projects Section */
.projects h2 {
font-size: 2.5rem;
margin-bottom: 3rem;
text-align: center;
}
.project-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
width: 100%;
}
.project-list article {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.project-list article:hover {
transform: translateY(-4px);
}
.project-list img {
width: 100%;
height: 200px;
object-fit: cover;
}
.project-list .project-content {
padding: 1.5rem;
}
.project-list h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem;
color: var(--text-black);
}
/* Footer */
footer {
background: var(--text-black);
color: white;
padding: 3rem 2rem 1rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
footer h3 {
color: var(--primary-blue);
margin-bottom: 1rem;
}
footer a {
color: #ccc;
text-decoration: none;
transition: color 0.3s ease;
}
footer a:hover {
color: var(--primary-blue);
}
footer ul {
list-style: none;
}
footer li {
margin-bottom: 0.5rem;
}
.footer-bottom {
max-width: 1200px;
margin: 0 auto;
padding-top: 2rem;
border-top: 1px solid #444;
text-align: center;
color: #888;
}
/* Scroll Indicator */
.scroll-indicator {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
animation: bounce 2s infinite;
}
.scroll-indicator::before {
content: "↓";
font-size: 2rem;
color: var(--primary-blue);
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateX(-50%) translateY(0);
}
40% {
transform: translateX(-50%) translateY(-10px);
}
60% {
transform: translateX(-50%) translateY(-5px);
}
}
/* Responsive */
@media (max-width: 768px) {
header nav {
flex-direction: column;
gap: 1rem;
}
header nav ul {
gap: 1rem;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1.2rem;
}
section {
min-height: auto;
padding: 3rem 1rem;
}
.service-list,
.project-list {
grid-template-columns: 1fr;
}
}