/* ===== Variables ===== */
:root {
    /* React-inspired: cyan + dark mix */
    --color-bg: #f8fafc;
    --color-surface: #f0f9ff;
    --color-surface-light: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-accent: #0ea5e9;
    --color-accent-hover: #0284c7;
    --color-accent-soft: rgba(14, 165, 233, 0.12);
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    padding-top: 5rem; /* Abstand unter dem fixen Header */
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: padding var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.logo-img {
    display: block;
    height: 34px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav a:hover {
    color: var(--color-text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition);
}

.header-action:hover {
    color: var(--color-text);
}

.header-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.header-action:hover .header-action-icon {
    color: var(--color-text);
}

.header-action-icon svg {
    width: 22px;
    height: 22px;
}

.header-action-label {
    font-weight: 500;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--color-accent-soft) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(15, 23, 42, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--color-text);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-compact {
    min-height: auto;
    padding: 7rem 0 3rem;
}

/* ===== Sections ===== */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.products .section-title {
    font-weight: 600;
}

/* ===== Products – Modern Card Grid ===== */
.products {
    background: linear-gradient(180deg, #ecfeff 0%, #f0f9ff 50%, #ffffff 100%);
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.products-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 0;
    align-items: stretch;
}

.products-sidebar {
    background: rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
}

.products-sidebar-inner {
    padding: 2.5rem 1.5rem 2.5rem 2rem;
    max-height: none;
    overflow-y: visible;
}

.products-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.products-sidebar-title-secondary {
    margin-top: 2rem;
}

.products-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.products-sidebar-list li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 0.28rem 0;
    cursor: pointer;
    transition: color var(--transition);
}

.products-sidebar-list li:hover,
.products-sidebar-list li.is-active {
    color: var(--color-accent);
}

.products-main {
    background: transparent;
}

.products-main .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.products-toolbar-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.products-search input {
    width: 280px;
    max-width: 100%;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.products-search input::placeholder {
    color: var(--color-text-muted);
}

.products-search input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    animation: product-fade-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
}

.product-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(14, 165, 233, 0.12);
    color: var(--color-accent);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

.product-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    flex-grow: 1;
}

.product-cta {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.25s ease, color 0.25s ease;
}

.product-card:hover .product-cta {
    gap: 0.5rem;
}

.product-cta span {
    font-size: 1.1em;
    transition: transform 0.25s ease;
}

.product-card:hover .product-cta span {
    transform: translateX(2px);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 18px;
}

.products-empty {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

@keyframes product-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar-inner {
        max-height: none;
        padding: 1.5rem 1.5rem 2rem;
    }
}

/* ===== Product detail page ===== */
.product-page main {
    padding-top: 7rem;
}

.product-hero {
    position: relative;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #cffafe, #e0f2fe);
}

.product-detail {
    background: #ffffff;
    padding: 3.5rem 0 2.5rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
}

.product-detail-text {
    margin-top: 1rem;
    font-size: 0.98rem;
    color: var(--color-text-muted);
}

.product-facts {
    background: #f9fafb;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.product-facts h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.product-facts ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.product-facts ul li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 0.25rem 0;
}

.btn-product-aside {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Product configurator (Form) ===== */
.product-config {
    background: #ecfeff;
    padding: 3rem 0 4rem;
}

.product-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.product-preview-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.product-preview-image {
    margin-bottom: 1.25rem;
}

.product-preview-placeholder {
    height: 220px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
}

.product-preview-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.product-preview-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.product-form {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 1.75rem 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.product-form-group {
    margin-bottom: 1.1rem;
}

.product-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.2rem;
}

.product-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #374151;
}

.product-form input,
.product-form select,
.product-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text);
    background: #ffffff;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
    background: #f9fafb;
}

.product-form textarea {
    resize: vertical;
    min-height: 80px;
}

.product-form-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 0.9rem 0.5rem;
    margin-bottom: 1.1rem;
}

.product-form-fieldset legend {
    padding: 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
}

.product-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.product-radio input {
    width: auto;
}

.product-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.btn-product-submit {
    margin-top: 0.5rem;
}

@media (max-width: 960px) {
    .product-config-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Quote Form ===== */
.quote-section {
    padding: 5rem 0;
}

.quote-form {
    max-width: 600px;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9aad' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

.btn-submit {
    margin-top: 0.5rem;
    width: 100%;
}

/* ===== Contact ===== */
.contact {
    background: var(--color-surface);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-item {
    color: var(--color-text-muted);
}

.contact-item a {
    color: var(--color-text);
}

/* ===== Footer ===== */
.footer {
    margin-top: 0;
}

.footer-main {
    background: #fff;
    color: #1a1a1a;
    padding: 3rem 0;
}

.footer-main .container {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.footer-logo:hover {
    color: var(--color-accent);
}

.footer-logo-img {
    display: block;
    height: 54px;
    width: auto;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.footer-services-list,
.footer-col ul {
    list-style: none;
}

.footer-services-list li,
.footer-col ul li {
    padding: 0.2rem 0;
    font-size: 0.9rem;
    color: #444;
}

.footer-services-list li::before {
    content: "• ";
    color: var(--color-accent);
}

.footer-legal {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.footer-legal p {
    font-size: 0.8rem;
    color: #666;
    margin: 0.25rem 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    color: #1a1a1a;
    font-size: 1rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: white;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.footer-col ul li a {
    color: #444;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.9rem;
    color: #444;
    margin: 0.4rem 0;
    line-height: 1.5;
}

.footer-contact a {
    color: #1a1a1a;
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    background: #f5f5f5;
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.footer-bottom a {
    color: #444;
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
    .header-actions {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-surface);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-toggle span {
        transition: transform var(--transition), opacity var(--transition);
    }
}
