/* ============================================================
   IT-Infrastruktur Page CSS – To Line GmbH
   Ergänzungs-Stylesheet für it-infrastruktur.html & index.html
   ============================================================ */

/* ─── IT Hero Section ─────────────────────────────────────── */
.it-hero {
    position: relative;
    background: var(--black);
    color: var(--white);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.it-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Bilder/server-room.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
}

.it-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 43, 128, 0.75) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.it-hero-content {
    position: relative;
    z-index: 2;
    max-width: 52rem;
}

.it-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .it-hero-content h1 {
        font-size: 3.75rem;
    }
    .it-hero {
        padding: 7rem 0 5rem;
    }
}

.it-hero-content p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 1.75rem;
    line-height: 1.7;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .it-hero-content p {
        font-size: 1.25rem;
    }
}

/* IT Tags */
.it-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.it-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(61, 166, 250, 0.15);
    border: 1px solid rgba(61, 166, 250, 0.4);
    border-radius: 2rem;
    color: var(--magenta-light);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.2s;
}

.it-tag:hover {
    background: rgba(61, 166, 250, 0.25);
}

/* ─── Intro Banner ────────────────────────────────────────── */
.it-intro-banner {
    background: var(--magenta);
    padding: 2rem 0;
}

.it-intro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .it-intro-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.it-intro-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: white;
}

.it-intro-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255,255,255,0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.it-intro-label {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.it-intro-text {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-top: 0.125rem;
}

/* ─── Services Section ────────────────────────────────────── */
.it-services-section {
    padding: 5rem 0;
    background: var(--white);
}

@media (min-width: 768px) {
    .it-services-section {
        padding: 7rem 0;
    }
}

/* Service Row Layout */
.it-service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--gray-200);
}

.it-service-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .it-service-row {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .it-service-row-reverse .it-service-row-img {
        order: 2;
    }

    .it-service-row-reverse .it-service-row-content {
        order: 1;
    }
}

.it-service-row-img {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    aspect-ratio: 3/2;
}

.it-service-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.it-service-row-img:hover img {
    transform: scale(1.04);
}

.it-service-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.it-service-row-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .it-service-row-title {
        font-size: 1.875rem;
    }
}

.it-service-row-desc {
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.it-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.it-service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
}

.it-service-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--magenta);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Messung & Dokumentation Section ────────────────────── */
.it-measure-section {
    background: var(--gray-900);
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .it-measure-section {
        padding: 6rem 0;
    }
}

.it-measure-inner {
    max-width: 56rem;
    margin: 0 auto;
}

.it-measure-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .it-measure-title {
        font-size: 2.5rem;
    }
}

.it-measure-desc {
    color: var(--gray-400);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
}

.it-measure-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .it-measure-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .it-measure-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.it-measure-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    color: var(--gray-200);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.2s;
}

.it-measure-item:hover {
    background: rgba(12, 91, 220, 0.2);
    border-color: rgba(12, 91, 220, 0.4);
}

.it-measure-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--magenta);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── Process Section ─────────────────────────────────────── */
.it-process-section {
    background: var(--gray-50);
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .it-process-section {
        padding: 6rem 0;
    }
}

.it-process-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.it-process-step {
    flex: 1 1 160px;
    max-width: 200px;
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--white);
    border-radius: 1rem;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.it-process-step:hover {
    border-color: var(--magenta);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(12, 91, 220, 0.1);
}

.it-process-num {
    width: 3rem;
    height: 3rem;
    background: var(--magenta);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 auto 1rem;
}

.it-process-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.it-process-step p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.it-process-arrow {
    color: var(--gray-300);
    display: none;
}

@media (min-width: 768px) {
    .it-process-arrow {
        display: block;
    }
}

/* ─── IT Services Grid (index.html preview) ───────────────── */
.it-preview-section {
    background: var(--gray-50);
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .it-preview-section {
        padding: 6rem 0;
    }
}

.it-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 640px) {
    .it-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .it-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.it-service-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.it-service-card:hover {
    border-color: var(--magenta);
    box-shadow: 0 12px 40px rgba(12, 91, 220, 0.12);
    transform: translateY(-5px);
}

.it-service-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.it-service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.it-service-card:hover .it-service-img {
    transform: scale(1.06);
}

.it-service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 43, 128, 0.5) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.it-service-card:hover .it-service-overlay {
    opacity: 1;
}

.it-service-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--magenta);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.it-service-body {
    padding: 1.5rem;
    flex: 1;
}

.it-service-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.625rem;
}

.it-service-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.65;
}
