:root {
    --bg-primary: #faf8f5;
    --bg-secondary: #f1ede6;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --accent: #d97706;
    --accent-hover: #b45309;
    --border: rgba(28, 25, 23, 0.09);
    --border-hover: rgba(217, 119, 6, 0.4);
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Soft warm glow behind the content */
.glow {
    position: fixed;
    top: -18vh;
    left: 0;
    right: 0;
    height: 75vh;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(560px 360px at 50% 45%, rgba(251, 191, 36, 0.18) 0%, transparent 70%),
        radial-gradient(460px 320px at 68% 30%, rgba(249, 115, 22, 0.10) 0%, transparent 70%);
    filter: blur(24px);
}

/* Grain texture overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-mark {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 18px;
    display: block;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.brand:hover .logo {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
}

/* Container */
.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 9rem 2rem 5rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Hero */
.hero-section {
    text-align: center;
    padding-bottom: 3rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(217, 119, 6, 0);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #d97706 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 9s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.75rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.button-primary {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.3);
}

.button-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

/* Sections */
.section {
    padding: 3.5rem 0 0;
    text-align: center;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    text-align: left;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 1.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 34px rgba(28, 25, 23, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Features */
.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.35rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.04);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--accent);
    font-size: 1rem;
}

/* Contact */
.contact-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(249, 115, 22, 0.08)), var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(28, 25, 23, 0.05);
}

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 1.4rem;
}

/* Impressum */
.impressum-section {
    max-width: 720px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease both;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.03em;
}

.impressum-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.04);
}

.impressum-block {
    margin-bottom: 2.5rem;
}

.impressum-block:last-child {
    margin-bottom: 0;
}

.impressum-block h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
}

.impressum-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.impressum-block a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.back-button:hover,
.back-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.75rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 1rem 1.5rem;
    }

    .container {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-subtitle {
        margin-bottom: 2.25rem;
    }

    .section {
        padding-top: 2.75rem;
    }

    .impressum-content {
        padding: 2rem 1.5rem;
    }

    .impressum-block h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: 0.9rem 1rem;
    }

    .logo {
        font-size: 1.35rem;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .container {
        padding: 6rem 1rem 2.5rem;
    }

    .button {
        padding: 0.8rem 1.35rem;
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 2.25rem 1.35rem;
    }

    .impressum-content {
        padding: 1.5rem 1.15rem;
    }

    .footer {
        padding: 1.5rem 0.5rem;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
