/* ============================================
   merciva – Shared Stylesheet
   ============================================ */

/* --- Reset & Base --- */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
    background: #3a3a52;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #5b9bd5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8dbde8;
}

/* --- Animations --- */

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Navigation --- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(58, 58, 82, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav .nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-nav .nav-brand:hover {
    color: #8dbde8;
}

.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.site-nav .nav-links a {
    color: #9aa8bc;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.site-nav .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #5b9bd5;
    transition: width 0.3s ease;
}

.site-nav .nav-links a:hover {
    color: #ffffff;
}

.site-nav .nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #e0e0e0;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero --- */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3a3a52 0%, #434365 40%, #3a4a60 70%, #3a3a52 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.brand {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.1em;
}

.brand-sub {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: #7a8ba8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: #9aa8bc;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-weight: 400;
}

.hero-subtext {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: #6b7a8d;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-cta {
    display: inline-block;
    color: #ffffff;
    background: rgba(91, 155, 213, 0.15);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.85rem 2.4rem;
    border: 1px solid rgba(91, 155, 213, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.hero-cta:hover {
    background: rgba(91, 155, 213, 0.25);
    border-color: rgba(91, 155, 213, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
}

/* --- Section Common --- */

.section {
    padding: 5rem 2rem;
    position: relative;
}

.section--alt {
    background: rgba(0, 0, 0, 0.12);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #7a8ba8;
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-subtitle--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title--center {
    text-align: center;
}

/* --- Back Link --- */

.back-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #7a8ba8;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.back-link:hover {
    color: #ffffff;
    border-color: rgba(91, 155, 213, 0.35);
    background: rgba(91, 155, 213, 0.08);
}

/* --- Product Cards Grid --- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card .card-body {
    padding: 1.75rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(91, 155, 213, 0.25);
    transform: translateY(-4px);
}

/* --- Product Card Image --- */

.card-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(91, 155, 213, 0.08) 0%, rgba(67, 67, 101, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-img svg {
    opacity: 0.85;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-card:hover .card-img svg {
    transform: scale(1.08);
    opacity: 1;
}

.product-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(91, 155, 213, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.product-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.product-card .card-series {
    font-size: 0.85rem;
    color: #5b9bd5;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.product-card .card-desc {
    font-size: 0.92rem;
    color: #8a96a8;
    flex: 1;
    margin-bottom: 1.5rem;
}

.product-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5b9bd5;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .card-link:hover {
    color: #8dbde8;
    gap: 0.7rem;
}

/* --- Advantages / Features Grid --- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(91, 155, 213, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.88rem;
    color: #7a8ba8;
    line-height: 1.5;
}

/* --- Contact Form --- */

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #9aa8bc;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(91, 155, 213, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    display: inline-block;
    background: #5b9bd5;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    align-self: flex-start;
}

.form-submit:hover {
    background: #4a8ac4;
    transform: translateY(-1px);
}

.form-note {
    font-size: 0.8rem;
    color: #556678;
    margin-top: 0.25rem;
}

/* --- Product Detail Page --- */

.page-hero {
    padding: 8rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3a3a52 0%, #434365 50%, #3a4a60 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.page-hero .page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.page-hero .page-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #9aa8bc;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Spec Table --- */

.spec-section {
    padding: 4rem 2rem;
}

.spec-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.spec-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-table th {
    color: #7a8ba8;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.spec-table td {
    color: #c8d0dc;
}

.spec-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* --- Product Detail Cards --- */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(91, 155, 213, 0.2);
}

.detail-card-img {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(91, 155, 213, 0.06) 0%, rgba(67, 67, 101, 0.35) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-card-img svg {
    opacity: 0.8;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.detail-card:hover .detail-card-img svg {
    transform: scale(1.06);
    opacity: 1;
}

.detail-card-body {
    padding: 1.5rem 2rem 2rem;
}

.detail-card .detail-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.detail-card .detail-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #5b9bd5;
    background: rgba(91, 155, 213, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.detail-card .detail-desc {
    font-size: 0.9rem;
    color: #8a96a8;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.detail-card .detail-specs {
    list-style: none;
    margin-bottom: 1.5rem;
}

.detail-card .detail-specs li {
    font-size: 0.85rem;
    color: #9aa8bc;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
}

.detail-card .detail-specs li:last-child {
    border-bottom: none;
}

.detail-card .detail-specs .spec-label {
    color: #6b7a8d;
}

.detail-card .detail-specs .spec-value {
    color: #c8d0dc;
    font-weight: 500;
}

.btn-anfrage {
    display: inline-block;
    color: #5b9bd5;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(91, 155, 213, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-anfrage:hover {
    background: rgba(91, 155, 213, 0.12);
    border-color: rgba(91, 155, 213, 0.6);
    color: #8dbde8;
}

/* --- CTA Banner --- */

.cta-banner {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(91, 155, 213, 0.06);
    border-top: 1px solid rgba(91, 155, 213, 0.1);
    border-bottom: 1px solid rgba(91, 155, 213, 0.1);
}

.cta-banner .cta-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cta-banner .cta-desc {
    font-size: 0.95rem;
    color: #7a8ba8;
    margin-bottom: 1.5rem;
}

.cta-banner .btn-primary {
    display: inline-block;
    background: #5b9bd5;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-banner .btn-primary:hover {
    background: #4a8ac4;
    transform: translateY(-1px);
    color: #ffffff;
}

/* --- Footer --- */

.site-footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-brand-sub {
    font-size: 0.82rem;
    color: #556678;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #556678;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8dbde8;
}

.footer-contact {
    font-size: 0.85rem;
    color: #556678;
    text-align: right;
}

.footer-contact a {
    color: #7a8ba8;
}

.footer-contact a:hover {
    color: #8dbde8;
}

/* --- Legal Pages (Impressum/Datenschutz) --- */

.legal-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    animation: fadeIn 0.6s ease-out;
}

.legal-section h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c8d0dc;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: #8a96a8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.legal-section a {
    color: #5b9bd5;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* --- Connection Tags --- */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    color: #9aa8bc;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .site-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(58, 58, 82, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 2rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .site-nav .nav-links.active {
        display: flex;
    }

    .site-nav .nav-links li {
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .site-nav .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact {
        text-align: left;
    }

    .spec-table {
        font-size: 0.82rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 0.65rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
