/* ============================================================
   technomed Landing Page
   ============================================================ */

.idx {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
    color: #0F172A;
    scroll-behavior: smooth;
}
.idx *, .idx *::before, .idx *::after { box-sizing: border-box; }

/* ---- SKIP LINK (a11y) ---- */
.idx-skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--matblue);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s;
}
.idx-skip-link:focus {
    top: 0;
}

/* ---- REVEAL ---- */
.idx-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.idx-reveal.visible { opacity: 1; transform: translateY(0); }

.idx-stagger > *:nth-child(1) { transition-delay: 0s; }
.idx-stagger > *:nth-child(2) { transition-delay: 0.07s; }
.idx-stagger > *:nth-child(3) { transition-delay: 0.14s; }
.idx-stagger > *:nth-child(4) { transition-delay: 0.21s; }
.idx-stagger > *:nth-child(5) { transition-delay: 0.28s; }
.idx-stagger > *:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
    .idx-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .idx-hero-bg { animation: none !important; }
    .idx-hero-fadein { animation: none !important; opacity: 1 !important; }
}

/* ---- FOCUS VISIBLE (a11y) ---- */
.idx a:focus-visible,
.idx button:focus-visible,
.idx [tabindex]:focus-visible {
    outline: 3px solid var(--matblue);
    outline-offset: 2px;
    border-radius: 4px;
}


/* ================================================================
   HERO
   ================================================================ */
.idx-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 480px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.idx-hero-bg {
    position: absolute;
    inset: -30px;
    background: url('/images/img/DSC_2002.jpg') center 40% / cover no-repeat;
    z-index: 0;
    animation: idx-kb 25s ease-in-out infinite alternate;
}
@keyframes idx-kb {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06) translate(-0.5%, -0.5%); }
}

.idx-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,20,40,0.4) 0%, rgba(10,20,40,0.2) 40%, rgba(10,20,40,0.55) 100%);
    z-index: 1;
}

.idx-hero-fadein {
    animation: idx-hf 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
@keyframes idx-hf {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.idx-hero-panel {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 640px;
    padding: 40px 36px;
    background: rgba(10,20,40,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.idx-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--matblue);
    padding: 5px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
}

.idx-hero-title {
    font-family: 'Figtree', 'Noto Sans', sans-serif;
    font-size: clamp(26px, 4.5vw, 48px);
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 10px;
}
.idx-hero-title strong { font-weight: 700; }

.idx-hero-sub {
    font-size: clamp(14px, 1.6vw, 16px);
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 480px;
}

.idx-hero-ctas {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.idx-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.idx-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.idx-btn-primary {
    background: var(--matblue);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(3,169,244,0.3);
}
.idx-btn-primary svg { fill: #fff !important; }
.idx-btn-primary:hover { background: #0295d6; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(3,169,244,0.4); }

.idx-btn-glass {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.idx-btn-glass:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

.idx-hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
}
.idx-hero-scroll:hover { color: rgba(255,255,255,0.95); }
.idx-hero-scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
    animation: idx-sp 2s ease-in-out infinite;
}
@keyframes idx-sp {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1;   transform: scaleY(1); }
}


/* ================================================================
   TRUST STRIP
   ================================================================ */
.idx-trust {
    background: #fff;
    border-bottom: 1px solid #eef1f5;
    padding: 36px 16px;
}

.idx-trust-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.idx-trust-item { text-align: center; }

.idx-trust-icon {
    width: 40px; height: 40px;
    margin: 0 auto 8px;
    border-radius: 10px;
    background: rgba(3,169,244,0.07);
    display: flex; align-items: center; justify-content: center;
}
.idx-trust-icon svg { width: 20px; height: 20px; fill: var(--matblue); }

.idx-trust-number {
    font-family: 'Figtree', 'Noto Sans', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: #0F172A;
    line-height: 1.1;
    margin-bottom: 2px;
}

.idx-trust-label {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}


/* ================================================================
   SHARED SECTION STYLES
   ================================================================ */
.idx-section-inner { max-width: 1100px; margin: 0 auto; }

.idx-section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--matblue);
    margin-bottom: 6px;
}

.idx-section-title {
    font-family: 'Figtree', 'Noto Sans', sans-serif;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 400;
    color: #0F172A;
    margin: 0 0 4px;
    line-height: 1.2;
}
.idx-section-title strong { font-weight: 700; }

.idx-section-sub {
    font-size: clamp(13px, 1.3vw, 15px);
    color: #64748B;
    margin: 0 0 32px;
    max-width: 480px;
    line-height: 1.6;
}

.idx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.idx-section-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--matblue);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 7px;
    background: rgba(3,169,244,0.06);
    transition: all 0.2s;
    cursor: pointer;
}
.idx-section-link:hover { background: rgba(3,169,244,0.12); }
.idx-section-link svg { width: 14px; height: 14px; fill: currentColor; }


/* ================================================================
   SPOTLIGHTS — horizontal cards, 2-col grid (harmonized with news)
   ================================================================ */
.idx-spotlights {
    background: #fff;
    padding: 56px 16px;
}

.idx-spot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.idx-spot-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef1f5;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: row;
    position: relative;
}
.idx-spot-card:hover {
    border-color: #dde4ed;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.idx-spot-img-wrap {
    position: relative;
    width: 140px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f7f8fc;
}

.idx-spot-img {
    width: 140px;
    height: 120px;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
}
.idx-spot-card:hover .idx-spot-img { transform: scale(1.05); }

.idx-spot-img-wrap.idx-spot-img-err .idx-spot-img { display: none; }
.idx-spot-img-wrap.idx-spot-img-err::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='%23d5d5d5' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / 40px no-repeat, #f5f5f5;
}

.idx-spot-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.idx-spot-title {
    font-family: 'Figtree', 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.idx-spot-card:hover .idx-spot-title { color: var(--matblue); }

.idx-spot-group {
    font-size: 12px;
    color: #64748B;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.idx-spot-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--matblue);
    margin-top: auto;
    padding-top: 4px;
}
.idx-spot-footer svg { width: 13px; height: 13px; fill: currentColor; transition: transform 0.2s; }
.idx-spot-card:hover .idx-spot-footer svg { transform: translateX(3px); }

.idx-spot-arrow { display: none; }


/* ================================================================
   NEWS — compact horizontal cards
   ================================================================ */
.idx-news {
    background: #f7f8fc;
    padding: 56px 16px;
}

.idx-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.idx-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: row;
    border: 1px solid #eef1f5;
}
.idx-news-card:hover {
    border-color: #dde4ed;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.idx-news-img-box {
    width: 160px;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f7f8fc;
}
.idx-news-img-box img {
    width: 160px;
    height: 130px;
    object-fit: contain;
    display: block;
}
.idx-news-img-box .idx-news-no-img {
    width: 160px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f6, #e8eaef);
}
.idx-news-img-box .idx-news-no-img svg { width: 28px; height: 28px; fill: #ccc; }

.idx-news-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.idx-news-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--matblue);
    letter-spacing: 0.5px;
}

.idx-news-title {
    font-family: 'Figtree', 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.idx-news-card:hover .idx-news-title { color: var(--matblue); }

.idx-news-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.idx-news-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--matblue);
    margin-top: auto;
    padding-top: 2px;
}
.idx-news-footer svg { width: 13px; height: 13px; fill: currentColor; transition: transform 0.2s; }
.idx-news-card:hover .idx-news-footer svg { transform: translateX(3px); }

/* News pager bar — pager left, page-size right */
.idx-news-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.idx-news-pager-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.idx-news-pager-btn {
    min-width: 32px; height: 32px;
    padding: 0 8px;
    border: 1px solid #e0e4ea;
    background: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
}
.idx-news-pager-btn:hover { border-color: var(--matblue); color: var(--matblue); }
.idx-news-pager-btn.active { background: var(--matblue); border-color: var(--matblue); color: #fff; font-weight: 700; }
.idx-news-pager-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.idx-news-pager-btn svg { width: 14px; height: 14px; fill: currentColor; }
.idx-news-pager-ellipsis {
    width: 16px; display: flex; align-items: center; justify-content: center;
    color: #CBD5E1; font-size: 12px; user-select: none;
}

/* Page size selector */
.idx-news-pager-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748B;
}
.idx-news-pager-size-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 5px 28px 5px 10px;
    border: 1px solid #e0e4ea;
    border-radius: 7px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 8px center / 12px no-repeat;
    font-size: 12px;
    font-family: 'Noto Sans', 'Roboto', sans-serif;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 52px;
}
.idx-news-pager-size-select:hover { border-color: var(--matblue); }
.idx-news-pager-size-select:focus-visible { outline: 3px solid var(--matblue); outline-offset: 2px; }


/* ================================================================
   SERVICE
   ================================================================ */
.idx-service {
    background: #f7f8fc;
    padding: 56px 16px;
}

.idx-service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.idx-service-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #eef1f5;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.idx-service-card:hover {
    border-color: #dde4ed;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.idx-service-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.idx-service-icon svg { width: 22px; height: 22px; fill: #fff; }

.idx-service-icon--repair  { background: linear-gradient(135deg, #43a047, #66bb6a); }
.idx-service-icon--wartung { background: linear-gradient(135deg, #00897b, #26a69a); }
.idx-service-icon--stk     { background: linear-gradient(135deg, #ef6c00, #ffa726); }
.idx-service-icon--mtk     { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.idx-service-icon--sla     { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }

.idx-service-title { font-family: 'Figtree', 'Noto Sans', sans-serif; font-size: 15px; font-weight: 700; color: #0F172A; margin: 0; line-height: 1.3; }
.idx-service-desc  { font-size: 13px; color: #475569; line-height: 1.55; margin: 0; }


/* ================================================================
   CTA BAND
   ================================================================ */
.idx-cta {
    background: linear-gradient(135deg, #0a1929 0%, #0d2137 50%, #0a1929 100%);
    padding: 64px 16px;
    position: relative;
    overflow: hidden;
}
.idx-cta::before {
    content: '';
    position: absolute; top: -50%; left: -20%; width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(3,169,244,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.idx-cta-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

.idx-cta-title {
    font-family: 'Figtree', 'Noto Sans', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}
.idx-cta-title strong { font-weight: 700; }

.idx-cta-sub {
    font-size: clamp(14px, 1.4vw, 16px);
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 500px;
}

.idx-cta-actions {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px;
}

.idx-cta-contact {
    display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
}

.idx-cta-contact-item {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; transition: color 0.2s;
}
.idx-cta-contact-item:hover { color: var(--matblue); }
.idx-cta-contact-item svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .idx-service-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .idx-hero { height: auto; min-height: 0; max-height: none; padding: 60px 12px 48px; }
    .idx-hero-panel { padding: 28px 20px; border-radius: 16px; }
    .idx-hero-title { font-size: 24px; }
    .idx-hero-ctas { flex-direction: column; }
    .idx-hero-ctas .idx-btn { justify-content: center; }
    .idx-hero-scroll { display: none; }
    .idx-section-header { flex-direction: column; align-items: flex-start; }

    .idx-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .idx-spot-grid { grid-template-columns: 1fr; }
    .idx-spot-img-wrap { width: 120px; height: 100px; }
    .idx-spot-img { width: 120px; height: 100px; }

    .idx-news-grid { grid-template-columns: 1fr; }
    .idx-news-card { flex-direction: row; }
    .idx-news-img-box { width: 120px; height: 110px; }
    .idx-news-img-box img { width: 120px; height: 110px; }
    .idx-news-img-box .idx-news-no-img { width: 120px; height: 110px; }

    .idx-service-grid { grid-template-columns: repeat(2, 1fr); }

    .idx-cta-actions { flex-direction: column; align-items: stretch; }
    .idx-cta-actions .idx-btn { justify-content: center; }
    .idx-cta-contact { flex-direction: column; align-items: center; gap: 12px; }
}

@media (max-width: 420px) {
    .idx-news-img-box { width: 100px; height: 90px; }
    .idx-news-img-box img { width: 100px; height: 90px; }
    .idx-news-img-box .idx-news-no-img { width: 100px; height: 90px; }
    .idx-service-grid { grid-template-columns: 1fr; }
}
