/* ============================================================ */
/* KABELWERK SCHMIDT GMBH — Shared Stylesheet                    */
/* German Industrial Cable Factory Corporate Website             */
/* ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --navy: #1a2332;
    --navy-light: #1e2d3d;
    --navy-dark: #0f1724;
    --steel: #4a4f55;
    --steel-light: #6b7280;
    --ink: #0a0a0a;
    --industrie: #1e40af;
    --industrie-hover: #1e3a8a;
}

/* ── Base ──────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 0;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav-scrolled {
    background: rgba(15, 23, 36, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1a2332;
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 50;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: #9ca3af;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s ease, background 0.2s ease;
}
.dropdown-menu a:last-child {
    border-bottom: none;
}
.dropdown-menu a:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

/* Mobile nav */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.mobile-menu.open {
    max-height: 800px;
}
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-submenu.open {
    max-height: 400px;
}
.mobile-submenu a {
    padding-left: 2rem !important;
    font-size: 13px !important;
}

/* ── Fixed Sidebar ─────────────────────────────────────────── */
.sidebar-btn {
    position: relative;
}
.sidebar-btn .tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: #1a2332;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    letter-spacing: 0.04em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.sidebar-btn:hover .tooltip {
    opacity: 1;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ── Line Decorations ──────────────────────────────────────── */
.line-left {
    position: relative;
    padding-left: 24px;
}
.line-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1e40af;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
}

/* ── Fade-in Animation ─────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Form Elements ─────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 1px #1e40af;
}

/* ── Page Header (subpages) ────────────────────────────────── */
.page-header {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb a {
    transition: color 0.2s ease;
}

/* ── Product Detail Table ──────────────────────────────────── */
.spec-table th,
.spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.spec-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 13px;
    color: #1a2332;
    letter-spacing: 0.03em;
    width: 30%;
}
.spec-table td {
    font-size: 14px;
    color: #4a4f55;
}

/* ── News Card ─────────────────────────────────────────────── */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ── Page Section ──────────────────────────────────────────── */
.page-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
@media (min-width: 1024px) {
    .page-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* ── Responsive images placeholder ─────────────────────────── */
.img-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.img-placeholder.dark {
    background: var(--navy);
}

/* ── Back to top ───────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 40;
    cursor: pointer;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--industrie);
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 40px;
        right: 80px;
    }
}
