:root {
    --color-primary: #0f172a; /* Deep Blue */
    --color-secondary: #d52b1e; /* Swiss Red */
    --color-text: #334155; /* Slate 700 */
    --color-text-light: #64748b; /* Slate 500 */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc; /* Slate 50 */
    --color-border: #e2e8f0; /* Slate 200 */
    
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --container-width: 1200px;
    --header-height: 80px;
    --status-bar-height: 40px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header.center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

/* Status Bar */
.status-bar {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    height: var(--status-bar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.site-header.scrolled {
    height: 60px;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sub {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: var(--transition);
}

.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 9px; }
.burger-menu span:nth-child(3) { top: 18px; }

.burger-menu.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: -1;
}

/* Abstract geometric shape */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(213, 43, 30, 0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.tagline {
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.subheadline {
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.underline-anim {
    position: relative;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
}

.underline-anim::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-secondary);
    animation: growLine 1.5s ease-out forwards 0.5s;
}

@keyframes growLine {
    to { width: 100%; }
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.hero-info-cards {
    display: flex;
    gap: var(--spacing-md);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text);
}

/* Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

/* Service Cards */
.service-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.service-card.accent-blue:hover {
    border-color: #0ea5e9; /* Sky 500 */
}

/* Partner Section */
.section-partner {
    background-color: var(--color-bg-alt);
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.partner-badge {
    background: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 150px;
    transition: var(--transition);
}

.partner-badge:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
}

.partner-badge.wide {
    flex-basis: 100%;
    max-width: 400px;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.stats-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.visual-box {
    width: 100%;
    height: 400px;
    background-color: var(--color-bg-alt);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.pipe-art {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 20px solid var(--color-text-light);
    border-radius: 50%;
    opacity: 0.1;
}

.pipe-art::before, .pipe-art::after {
    content: '';
    position: absolute;
    background: var(--color-text-light);
}

.pipe-art::before {
    width: 20px;
    height: 100px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.pipe-art::after {
    width: 100px;
    height: 20px;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.info-block {
    margin-bottom: var(--spacing-md);
}

.contact-links a {
    display: inline-block;
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.contact-links a:hover {
    color: var(--color-secondary);
}

#hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-sm);
}

#hours-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

#hours-table tr.today {
    font-weight: 700;
    color: var(--color-primary);
}

#hours-table tr.today td::after {
    content: ' (Heute)';
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-left: 5px;
}

.contact-form {
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-radius: 8px;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.form-message {
    margin-top: var(--spacing-sm);
    font-weight: 500;
    min-height: 1.5em;
}

.form-message.success {
    color: #16a34a; /* Green 600 */
}

/* Map */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-links a {
    margin-left: var(--spacing-sm);
    color: #94a3b8; /* Slate 400 */
}

.footer-links a:hover {
    color: white;
}

/* Animations */
.reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up { transform: translateY(30px); }

.reveal-visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-2-col, .about-wrapper, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        gap: var(--spacing-lg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        padding: var(--spacing-md);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid var(--color-border);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .main-nav a {
        font-size: 1.25rem;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .hero-info-cards {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}