@import './fonts/fonts.css';

/* =============================================================================
   INTERNET TELEKOMMUNIKATION — Custom Theme
   ============================================================================= */

:root {
    --blue:        #359cd6;
    --blue-dk:     #1c85bc;
    --blue-lt:     #eaf5fb;
    --dark:        #0b0f16;
    --dark2:       #111827;
    --body-text:   #1e2530;
    --muted:       #6a7686;
    --border:      #dde3eb;
    --surface:     #f0f4f8;
    --page-bg:     #f5f7fa;
    --white:       #ffffff;

    --f-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --f-body: 'Lato', 'Helvetica Neue', Helvetica, sans-serif;

    --nav-h:    62px;
    --radius:    6px;
    --radius-lg: 10px;

    --sh:       0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
    --sh-hover: 0 8px 24px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);

    --t:      .22s ease;
    --t-fast: .14s ease;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    color: var(--body-text);
    background: var(--page-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-dk); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--dark);
    line-height: 1.2;
    margin-top: 0;
    font-weight: 600;
}
p { margin-bottom: 1rem; }

.container, .container-fluid, .container-xl { padding-left: 16px; padding-right: 16px; }
@media (min-width: 1200px) { .container, .container-xl { max-width: 1220px; } }

/* =============================================================================
   SITE SHELL
   ============================================================================= */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1 0 auto; }

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.mainMenuWrapper {
    background: var(--dark);
    border-bottom: 2px solid var(--blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.mainMenuWrapper .container { max-width: 1220px; }

.mainMenuWrapper .navbar {
    padding: 0 !important;
    background: transparent !important;
    min-height: var(--nav-h);
}

.mainMenuWrapper .navbar-brand {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Logo chip — white background shows original logo colors on dark nav */
.brand-logo-wrap {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 5px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.brand-logo-wrap .logo {
    height: 28px;
    width: auto;
    display: block;
}


.mainMenuWrapper .navbar-nav .nav-link {
    color: #8b9ab0 !important;
    font-family: var(--f-body);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 0 13px !important;
    height: var(--nav-h);
    display: flex !important;
    align-items: center;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
}

.mainMenuWrapper .navbar-nav .nav-link:hover,
.mainMenuWrapper .navbar-nav .nav-link.active {
    color: var(--blue) !important;
    border-bottom-color: var(--blue);
}

.mainMenuWrapper .navbar-toggler {
    border: 1px solid rgba(255,255,255,.18);
    padding: 6px 10px;
    background: transparent;
}
.mainMenuWrapper .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(53,156,214,.3); }
.mainMenuWrapper .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .mainMenuWrapper .navbar-collapse {
        background: var(--dark);
        border-top: 1px solid rgba(255,255,255,.07);
        padding: 6px 0 14px;
    }
    .mainMenuWrapper .navbar-nav .nav-link {
        height: auto;
        padding: 10px 20px !important;
        border-bottom: none !important;
        font-size: .8rem;
        margin-bottom: 0;
    }
    .mainMenuWrapper .navbar-nav .nav-link.active,
    .mainMenuWrapper .navbar-nav .nav-link:hover {
        color: var(--blue) !important;
        background: rgba(53,156,214,.08);
    }
}

/* =============================================================================
   BREADCRUMB
   ============================================================================= */
.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
}
.breadcrumb-bar .container { max-width: 1220px; }
.breadcrumb-bar nav,
.breadcrumb-bar p {
    font-size: .74rem;
    color: var(--muted);
    margin: 0;
    line-height: 1;
}
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--blue); }

/* =============================================================================
   CONTENT AREA
   ============================================================================= */
.inner-wrapper { padding: 28px 0 52px; }

/* =============================================================================
   HOMEPAGE HERO
   ============================================================================= */
.home-hero {
    background: var(--dark);
    background-image:
        radial-gradient(ellipse 65% 100% at 100% 50%, rgba(53,156,214,.13) 0%, transparent 60%),
        linear-gradient(155deg, #0e2338 0%, var(--dark) 55%);
    padding: 64px 0 72px;
    border-bottom: 1px solid rgba(53,156,214,.18);
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(53,156,214,.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: .4;
    pointer-events: none;
}
.home-hero .container {
    max-width: 1220px;
    position: relative;
    z-index: 1;
}
.home-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.home-hero__text { flex: 1; min-width: 0; }
.home-hero__tag {
    display: inline-flex;
    align-items: center;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(53,156,214,.1);
    border: 1px solid rgba(53,156,214,.28);
    border-radius: 3px;
    padding: 4px 10px;
    margin: 0 0 18px;
}
.home-hero__brand {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: .95;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.home-hero__brand span {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    color: var(--white);
    letter-spacing: .02em;
    display: block;
}
.home-hero__brand-line {
    width: 48px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
    margin: 20px 0 18px;
}
.home-hero__subtitle {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.38);
    margin: 0 0 12px;
}
.home-hero__slogan {
    font-size: .95rem;
    color: #7a9cb8;
    line-height: 1.65;
    max-width: 520px;
    margin: 0;
}
.home-hero__deco {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    position: relative;
}
.home-hero__deco-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.home-hero__deco-ring.r1 {
    width: 200px; height: 200px;
    border: 1px solid rgba(53,156,214,.15);
}
.home-hero__deco-ring.r2 {
    width: 140px; height: 140px;
    border: 1px solid rgba(53,156,214,.25);
}
.home-hero__deco-ring.r3 {
    width: 80px; height: 80px;
    border: 1px solid rgba(53,156,214,.4);
}
.home-hero__deco-ring.r1::before {
    content: '';
    position: absolute;
    width: 7px; height: 7px;
    background: var(--blue);
    border-radius: 50%;
    top: -3.5px; left: 50%;
    margin-left: -3.5px;
    box-shadow: 0 0 8px rgba(53,156,214,.8);
}
.home-hero__deco-ring.r2::after {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: rgba(53,156,214,.8);
    border-radius: 50%;
    bottom: -2.5px; left: 50%;
    margin-left: -2.5px;
    box-shadow: 0 0 6px rgba(53,156,214,.6);
}
.home-hero__deco-dot {
    position: absolute;
    width: 14px; height: 14px;
    background: var(--blue);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 0 4px rgba(53,156,214,.15), 0 0 24px rgba(53,156,214,.5);
}
@media (max-width: 991.98px) {
    .home-hero__deco { width: 160px; height: 160px; }
    .home-hero__deco-ring.r1 { width: 150px; height: 150px; }
    .home-hero__deco-ring.r2 { width: 105px; height: 105px; }
    .home-hero__deco-ring.r3 { width: 60px; height: 60px; }
}
@media (max-width: 767.98px) {
    .home-hero { padding: 36px 0 40px; }
    .home-hero__deco { display: none; }
    .home-hero__brand span { font-size: clamp(2rem, 10vw, 2.8rem); }
}

/* =============================================================================
   CATEGORY SECTION HEADER
   ============================================================================= */
.article-list { margin-bottom: 40px; }

.article-list > h2 {
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.article-list > h2 a { color: inherit; }
.article-list > h2 a:hover { color: var(--blue); }
.article-list > h2 .cat-more {
    font-size: .68rem;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .75;
    transition: opacity var(--t-fast);
}
.article-list > h2:hover .cat-more { opacity: 1; }

.article-list > p {
    font-size: .82rem;
    color: var(--muted);
    margin: -10px 0 14px;
}

/* =============================================================================
   ARTICLE CARDS
   ============================================================================= */
.article-list .row > [class*="col"] {
    margin-bottom: 22px;
    display: flex;
}

.article-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--sh);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t), transform var(--t);
    border: 1px solid rgba(0,0,0,.04);
}
.article-item:hover {
    box-shadow: var(--sh-hover);
    transform: translateY(-3px);
}
.article-item > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Aspect-ratio on wrapper prevents CLS */
.article-item .image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface);
    flex-shrink: 0;
}
.article-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article-item:hover .image img { transform: scale(1.05); }

.article-item__body {
    padding: 14px 17px 17px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-item .date {
    font-size: .67rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.article-item h2,
.article-item h3 {
    font-family: var(--f-head);
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--dark2);
    line-height: 1.25;
    margin: 0 0 8px;
    transition: color var(--t-fast);
}
.article-item:hover h2,
.article-item:hover h3 { color: var(--blue); }

.article-item .excerpt {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 10px;
}

.article-item__readmore {
    font-size: .7rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    opacity: .7;
    transition: opacity var(--t-fast), gap var(--t-fast);
}
.article-item:hover .article-item__readmore { opacity: 1; gap: 7px; }

/* =============================================================================
   CATEGORY PAGE INTRO
   ============================================================================= */
.intro {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.intro h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 8px;
}
.intro p { font-size: .92rem; color: var(--muted); margin: 0; }

/* =============================================================================
   ARTICLE PAGE
   ============================================================================= */
.article-hero__title {
    font-family: var(--f-head);
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: .02em;
}

/* Aspect-ratio on image wrapper prevents CLS */
.article-hero .image {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 16px;
}
@media (max-width: 767.98px) { .article-hero .image { aspect-ratio: 16 / 9; } }
.article-hero .image img { width: 100%; height: 100%; object-fit: cover; }

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.article-meta .date {
    font-size: .76rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-meta .date::before {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}
.article-meta .modified-date { font-size: .72rem; color: #aab0ba; }

/* Prose */
.content {
    font-size: 1rem;
    line-height: 1.78;
    color: var(--body-text);
}
.content h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 36px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.content h3 { font-size: 1.22rem; font-weight: 600; margin: 28px 0 8px; }
.content h4 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 6px; }
.content p  { margin-bottom: 18px; }
.content ul, .content ol { padding-left: 22px; margin-bottom: 18px; }
.content li { margin-bottom: 6px; }
.content img {
    border-radius: var(--radius);
    margin: 24px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.content a {
    color: var(--blue);
    border-bottom: 1px solid rgba(53,156,214,.35);
    transition: border-color var(--t-fast), color var(--t-fast);
}
.content a:hover { color: var(--blue-dk); border-bottom-color: var(--blue-dk); }
.content blockquote {
    border-left: 3px solid var(--blue);
    margin: 28px 0;
    padding: 10px 0 10px 22px;
    color: var(--muted);
    font-style: italic;
}
.content strong { color: var(--dark); }

/* Related */
.related-articles {
    margin-top: 52px;
    padding-top: 28px;
    border-top: 2px solid var(--border);
}
.related-articles__heading {
    font-family: var(--f-head);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

/* =============================================================================
   SIDEBAR
   ============================================================================= */
.sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 18px);
}
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--sh);
    padding: 18px 20px 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(0,0,0,.04);
}
.sidebar-card__title {
    font-family: var(--f-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blue);
}
.sidebar-categories { list-style: none; margin: 0; padding: 0; }
.sidebar-categories li + li { border-top: 1px solid var(--border); }
.sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    color: var(--body-text);
    font-size: .87rem;
    transition: color var(--t-fast), padding-left var(--t-fast);
}
.sidebar-categories a:hover { color: var(--blue); padding-left: 5px; }
.sidebar-categories a .arrow {
    color: var(--blue);
    font-size: 1.1rem;
    opacity: .4;
    transition: opacity var(--t-fast), transform var(--t-fast);
    line-height: 1;
}
.sidebar-categories a:hover .arrow { opacity: 1; transform: translateX(3px); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
    background: var(--dark);
    border-top: 2px solid rgba(53,156,214,.22);
    padding: 38px 0 24px;
    flex-shrink: 0;
}
.site-footer .container { max-width: 1220px; }

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    opacity: .7;
    display: block;
}
.footer-slogan {
    font-size: .78rem;
    color: #4a5e70;
    font-style: italic;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: flex-end;
    align-items: center;
    padding-top: 6px;
}
.footer-nav a {
    color: #586878;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--blue); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.05);
    margin-top: 24px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-copyright { font-size: .72rem; color: #3c4c5a; margin: 0; }
.footer-tech      { font-size: .68rem; color: #2e3c48; letter-spacing: .05em; }

/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination { gap: 3px; margin-top: 24px; }
.pagination .page-link {
    color: var(--blue);
    border-color: var(--border);
    background: var(--white);
    font-size: .84rem;
    padding: 6px 13px;
    border-radius: var(--radius) !important;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pagination .page-link:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.pagination .page-item.active .page-link { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination .page-item.disabled .page-link { color: #c5ccd5; background: var(--white); border-color: var(--border); }

/* =============================================================================
   GENERIC PAGE
   ============================================================================= */
.page-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--sh);
    padding: 32px 36px;
    border: 1px solid rgba(0,0,0,.04);
}
.page-content h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Cookie icon */
.cookieicon { background-color: var(--blue) !important; opacity: .8; transition: opacity var(--t-fast); }
.cookieicon:hover { opacity: 1; }

/* =============================================================================
   ANIMATIONS — only opacity+transform, zero CLS impact
   ============================================================================= */
@media (prefers-reduced-motion: no-preference) {
    @keyframes fadeSlideUp {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .article-item {
        opacity: 0;
        animation: fadeSlideUp .45s ease both;
    }
    .col-lg-4:nth-child(1) .article-item,
    .col-md-4:nth-child(1) .article-item { animation-delay: .04s; }
    .col-lg-4:nth-child(2) .article-item,
    .col-md-4:nth-child(2) .article-item { animation-delay: .1s; }
    .col-lg-4:nth-child(3) .article-item,
    .col-md-4:nth-child(3) .article-item { animation-delay: .16s; }
    .col-lg-4:nth-child(4) .article-item,
    .col-md-4:nth-child(4) .article-item { animation-delay: .22s; }
    .col-lg-4:nth-child(5) .article-item,
    .col-md-4:nth-child(5) .article-item { animation-delay: .28s; }
    .col-lg-4:nth-child(6) .article-item,
    .col-md-4:nth-child(6) .article-item { animation-delay: .34s; }

    @keyframes hero-spin-cw  { to { transform: translate(-50%,-50%) rotate(360deg); } }
    @keyframes hero-spin-ccw { to { transform: translate(-50%,-50%) rotate(-360deg); } }
    @keyframes hero-pulse {
        0%, 100% { box-shadow: 0 0 0 4px rgba(53,156,214,.15), 0 0 24px rgba(53,156,214,.5); }
        50%       { box-shadow: 0 0 0 6px rgba(53,156,214,.2),  0 0 36px rgba(53,156,214,.7); }
    }
    .home-hero__deco-ring.r1 { animation: hero-spin-cw  25s linear infinite; }
    .home-hero__deco-ring.r2 { animation: hero-spin-ccw 18s linear infinite; }
    .home-hero__deco-dot     { animation: hero-pulse     2.8s ease-in-out infinite; }
    .home-hero__tag        { animation: fadeSlideUp .4s .0s  ease both; }
    .home-hero__brand      { animation: fadeSlideUp .5s .06s ease both; }
    .home-hero__brand-line { animation: fadeSlideUp .4s .18s ease both; }
    .home-hero__subtitle   { animation: fadeSlideUp .5s .22s ease both; }
    .home-hero__slogan     { animation: fadeSlideUp .5s .30s ease both; }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 991.98px) {
    .inner-wrapper { padding: 20px 0 36px; }
    .sidebar { position: static; }
    .sidebar-card { margin-top: 24px; }
}
@media (max-width: 767.98px) {
    .footer-nav { justify-content: flex-start; }
    .page-content { padding: 22px 18px; }
}
