/* ==========================================================================
   Martin Baumann Rohstoffhandel GmbH - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Local Font Definitions (DSGVO-konform)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/oswald-latin-400-normal.woff2') format('woff2'),
         url('fonts/oswald-latin-400-normal.woff') format('woff');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/oswald-latin-500-normal.woff2') format('woff2'),
         url('fonts/oswald-latin-500-normal.woff') format('woff');
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/oswald-latin-600-normal.woff2') format('woff2'),
         url('fonts/oswald-latin-600-normal.woff') format('woff');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/outfit-latin-300-normal.woff2') format('woff2'),
         url('fonts/outfit-latin-300-normal.woff') format('woff');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'),
         url('fonts/outfit-latin-400-normal.woff') format('woff');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'),
         url('fonts/outfit-latin-500-normal.woff') format('woff');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'),
         url('fonts/outfit-latin-600-normal.woff') format('woff');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'),
         url('fonts/outfit-latin-700-normal.woff') format('woff');
}

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --color-bg: #ffffff;
    --color-bg-secondary: #f5f7fa;
    --color-bg-card: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-accent: #174894;
    --color-accent-hover: #1e5cb3;
    --color-accent-light: #e8eef7;
    --color-metal: #4a5568;
    --color-border: #e0e0e0;
    --font-display: 'Oswald', 'Arial Narrow', 'Helvetica Condensed', sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(23, 72, 148, 0.15);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.25rem;
}

.lang-switch a {
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-switch a:hover {
    color: var(--color-text);
}

.lang-switch a.active {
    background: var(--color-accent);
    color: #fff;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 999;
    padding: 100px 2rem 2rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-family: var(--font-display);
    letter-spacing: 1px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.mobile-nav a:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(245,247,250,0.9) 100%),
        url('images/hero.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(23, 72, 148, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 148, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(23, 72, 148, 0.1);
    border: 1px solid rgba(23, 72, 148, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.95;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--color-accent) 0%, #438CFF 50%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* --------------------------------------------------------------------------
   Page Hero (for subpages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding: 10rem 4rem 4rem;
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(23, 72, 148, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(23, 72, 148, 0.05) 0%, transparent 50%);
}

.page-hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section-label {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.stats {
    padding: 6rem 4rem;
    background: var(--color-bg-secondary);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    padding: 8rem 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    display: block;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #0f3a75);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.service-icon-schrottankauf { background-image: url('images/schrottankauf.jpeg'); }
.service-icon-produktionsschrotte { background-image: url('images/produktionsschrotte.jpeg'); }
.service-icon-gebrauchtmaschinen { background-image: url('images/gebrauchtmaschinen.jpeg'); }
.service-icon-nutzmaterial { background-image: url('images/nutzmaterial.jpeg'); }
.service-icon-demontage { background-image: url('images/demontage.jpeg'); }
.service-icon-handel { background-image: url('images/rohstoffhandel.jpeg'); }

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.service-card:hover .service-link {
    gap: 1rem;
}

/* --------------------------------------------------------------------------
   Service Detail Section (Leistungen page)
   -------------------------------------------------------------------------- */
.service-section {
    padding: 6rem 4rem;
}

.service-section:nth-child(even) {
    background: var(--color-bg-secondary);
}

.service-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.service-section:nth-child(even) .service-container {
    direction: rtl;
}

.service-section:nth-child(even) .service-container > * {
    direction: ltr;
}

.service-image {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.service-image-schrottankauf { background-image: url('images/schrottankauf.jpeg'); }
.service-image-produktionsschrotte { background-image: url('images/produktionsschrotte.jpeg'); }
.service-image-gebrauchtmaschinen { background-image: url('images/gebrauchtmaschinen.jpeg'); }
.service-image-nutzmaterial { background-image: url('images/nutzmaterial.jpeg'); }
.service-image-demontage { background-image: url('images/demontage.jpeg'); }
.service-image-handel { background-image: url('images/rohstoffhandel.jpeg'); }

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(23, 72, 148, 0.15) 0%, transparent 50%);
}

.service-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.service-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.service-feature span {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
    padding: 8rem 4rem;
    background: var(--color-bg-secondary);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(23, 72, 148, 0.2) 0%, transparent 50%);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: url('images/firmengelaende.jpeg');
    background-size: cover;
    background-position: center;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.about-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Environment Section (Über uns page)
   -------------------------------------------------------------------------- */
.environment {
    padding: 6rem 4rem;
    background: var(--color-bg-secondary);
}

.environment-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.environment-content {
    order: 2;
}

.environment-image {
    order: 1;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
}

.environment-image-placeholder {
    width: 100%;
    height: 100%;
    background: url('images/umweltgedanke.jpeg');
    background-size: cover;
    background-position: center;
}

.environment-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.environment-content p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.environment-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.environment-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.environment-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.environment-feature-icon svg {
    width: 20px;
    height: 20px;
    color: #22c55e;
}

/* --------------------------------------------------------------------------
   Team Section
   -------------------------------------------------------------------------- */
.team {
    padding: 6rem 4rem;
}

.team-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.team-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.team-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.team-image {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
}

.team-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #0f3a75 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: rgba(255,255,255,0.3);
}

.team-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.team-info .role {
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.team-info p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 0 4rem 6rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.contact-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.contact-card a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--color-accent-hover);
}

.hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.95rem;
}

.hours-grid span:nth-child(even) {
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Map Section
   -------------------------------------------------------------------------- */
.map-section {
    padding: 0 4rem 6rem;
}

.map-container {
    max-width: 1400px;
    margin: 0 auto;
}

.map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.map-header p {
    color: var(--color-text-muted);
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    display: block;
}

/* Google Maps Consent Placeholder */
.map-consent-placeholder {
    width: 100%;
    height: 450px;
    background: var(--color-bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.map-consent-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.map-consent-placeholder h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-consent-placeholder p {
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.map-consent-placeholder .consent-link {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
    padding: 8rem 4rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #0f3a75 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(23, 72, 148, 0.15) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
}

.cta .btn-primary {
    background: #fff;
    color: var(--color-accent);
}

.cta .btn-primary:hover {
    background: var(--color-bg-secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: 5rem 4rem 2rem;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Quick Nav (Leistungen page)
   -------------------------------------------------------------------------- */
.quick-nav {
    background: var(--color-bg-card);
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.quick-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.quick-nav-container::-webkit-scrollbar {
    display: none;
}

.quick-nav a {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quick-nav a:hover,
.quick-nav a.active {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Legal Pages (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal-content {
    padding: 2rem 4rem 6rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 1px;
    margin: 2.5rem 0 1rem;
    color: var(--color-text);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-text);
}

.legal-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    color: var(--color-text-muted);
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-accent-hover);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.legal-content th,
.legal-content td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-content th {
    font-weight: 600;
    color: var(--color-text);
}

.legal-content td {
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 1.5rem 2rem;
    display: none;
}

.cookie-banner.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--color-accent);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: var(--color-accent-hover);
}

.cookie-btn-reject {
    background: var(--color-accent);
    color: #fff;
}

.cookie-btn-reject:hover {
    background: var(--color-accent-hover);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--color-text-muted);
    padding: 0.75rem 1rem;
}

.cookie-btn-settings:hover {
    color: var(--color-text);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: var(--color-bg-card);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.5rem;
}

.cookie-modal-close:hover {
    color: var(--color-text);
}

.cookie-category {
    padding: 1.25rem;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-header h4 {
    font-size: 1rem;
}

.cookie-category p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-border);
    border-radius: 26px;
    transition: 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .nav {
        padding: 1rem 2rem;
    }
    
    .nav.scrolled {
        padding: 0.75rem 2rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .service-container,
    .about-container,
    .environment-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-section:nth-child(even) .service-container {
        direction: ltr;
    }
    
    .environment-content {
        order: 1;
    }
    
    .environment-image {
        order: 2;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .team-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .team-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 6rem 1.5rem;
        min-height: auto;
        padding-top: 8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .page-hero {
        padding: 8rem 1.5rem 3rem;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .services,
    .about,
    .environment,
    .team,
    .cta {
        padding: 4rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        padding: 4rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .service-section {
        padding: 4rem 1.5rem;
    }
    
    .contact-section,
    .map-section {
        padding: 0 1.5rem 4rem;
    }
    
    .quick-nav {
        padding: 1rem 1.5rem;
        top: 60px;
    }
    
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .legal-content {
        padding: 1.5rem 1.5rem 4rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .map-consent-placeholder {
        height: 350px;
    }
    
    .map-wrapper iframe {
        height: 350px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-header {
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}
