@import url('/custom/assets/fonts/fonts.css');

/* =============================================================================
   Internet Teledienste – "Signal" theme
   Deep navy chrome, electric blue primary, amber accent, dot-grid canvas.
   ============================================================================= */

:root {
    --primary:       #007ACC;
    --primary-dark:  #005C9B;
    --primary-soft:  #D6EAF8;
    --secondary:     #FFB020;
    --secondary-dark:#E09400;

    --navy:          #0A2036;   /* .outer-mainmenu-container / footer */
    --navy-2:        #12304D;
    --navy-line:     rgba(255, 255, 255, .12);

    --page-bg:       #DCE5EF;   /* body background – darker than the white logo needs */
    --surface:       #FFFFFF;
    --ink:           #13293D;
    --muted:         #52667A;
    --border:        #C3D1E0;

    --font-head: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --font-body: 'Figtree', 'Segoe UI', sans-serif;

    --radius:    10px;
    --radius-lg: 16px;
    --shadow:    0 1px 2px rgba(10, 32, 54, .08), 0 6px 18px rgba(10, 32, 54, .07);
    --shadow-up: 0 2px 4px rgba(10, 32, 54, .1), 0 16px 34px rgba(10, 32, 54, .16);
    --ease:      .22s cubic-bezier(.2, .7, .2, 1);

    --logo-height: 70px;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--page-bg);
    background-image: radial-gradient(rgba(10, 32, 54, .09) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 .6em;
}

.container { max-width: 1240px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--secondary); color: var(--navy);
    padding: .6rem 1rem; border-radius: 0 0 8px 8px; font-weight: 700;
}
.skip-link:focus { top: 0; color: var(--navy); }

/* --- Buttons -------------------------------------------------------------- */
.btn-signal {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .65rem 1.3rem;
    background: var(--secondary); color: var(--navy);
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    border-radius: 999px;
    box-shadow: 0 4px 0 var(--secondary-dark);
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.btn-signal:hover { color: var(--navy); background: #FFC04D; transform: translateY(-2px); box-shadow: 0 6px 0 var(--secondary-dark); }
.btn-signal:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--secondary-dark); }
.btn-signal--block { display: flex; width: 100%; }

/* --- Header --------------------------------------------------------------- */
.site-header,
.outer-mainmenu-container {
    background-color: var(--navy);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid var(--primary);
    transition: box-shadow var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 32, 54, .45); }

.site-header__top {
    display: flex; align-items: center; gap: 1.5rem;
    padding: .5rem 0;
}
.site-brand { display: inline-flex; flex-shrink: 0; }
.site-brand__logo { height: var(--logo-height); width: auto; display: block; }
.site-header__slogan {
    margin: 0 auto 0 0;
    font-family: var(--font-head); font-size: 1.05rem; font-weight: 500;
    color: rgba(255, 255, 255, .72);
    padding-left: 1.5rem; border-left: 2px solid var(--primary);
    line-height: 1.3;
}
.site-header__cta { padding: .5rem 1.15rem; }

.nav-toggle {
    display: none; margin-left: auto;
    width: 46px; height: 46px; padding: 0;
    background: transparent; border: 2px solid var(--navy-line); border-radius: 10px;
    cursor: pointer; position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: ''; position: absolute; left: 11px; right: 11px; height: 2px;
    background: #fff; border-radius: 2px; transition: transform var(--ease), top var(--ease), background var(--ease);
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle__bar::after  { top: 7px;  left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

.site-nav { border-top: 1px solid var(--navy-line); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav__link {
    position: relative; display: block;
    padding: .85rem 1rem;
    font-family: var(--font-head); font-weight: 600; font-size: .98rem;
    color: rgba(255, 255, 255, .82);
}
.site-nav__link::after {
    content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .5rem; height: 3px;
    background: var(--secondary); border-radius: 3px;
    transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}
.site-nav__link:hover, .site-nav__link.is-active { color: #fff; }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__newsletter { display: none; }

/* --- Breadcrumb ----------------------------------------------------------- */
.breadcrumb-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb-bar .breadcrumb { margin: 0; padding: .7rem 0; font-size: .9rem; flex-wrap: wrap; }
.breadcrumb-bar .breadcrumb-item a { color: var(--primary-dark); font-weight: 600; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--muted); }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* --- Home hero ------------------------------------------------------------ */
.home-hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 380px at 85% -10%, rgba(0, 122, 204, .55), transparent 70%),
        radial-gradient(500px 300px at 0% 110%, rgba(255, 176, 32, .18), transparent 70%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
}
.home-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
            mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
}
.home-hero__inner { position: relative; max-width: 820px; animation: rise .7s var(--ease) both; }
.home-hero__tag {
    display: inline-block; margin: 0 0 1.2rem; padding: .3rem .9rem;
    background: rgba(255, 176, 32, .16); color: var(--secondary);
    border: 1px solid rgba(255, 176, 32, .5); border-radius: 999px;
    font-family: var(--font-head); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
}
.home-hero__title {
    font-size: clamp(2.2rem, 5.2vw, 3.8rem);
    color: #fff; margin-bottom: 1rem;
}
.home-hero__text { font-size: 1.15rem; color: rgba(255, 255, 255, .84); max-width: 680px; }
.home-hero__text p:last-child { margin-bottom: 0; }
.home-hero__topics { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.home-hero__topics a {
    padding: .5rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
    color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
    transition: background var(--ease), color var(--ease), transform var(--ease);
}
.home-hero__topics a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); color: #fff; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --- Layout sections ------------------------------------------------------ */
.inner-wrapper { padding: 2.75rem 0 4rem; }

.intro {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 2rem 2.25rem; margin-bottom: 2rem;
    border-left: 6px solid var(--primary); box-shadow: var(--shadow);
}
.intro h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .6rem; }
.intro__text { color: var(--muted); font-size: 1.1rem; }
.intro__text p:last-child { margin-bottom: 0; }

/* --- Article list / cards ------------------------------------------------- */
.article-list { margin-bottom: 3rem; }
.article-list > .row { --bs-gutter-x: 1.4rem; --bs-gutter-y: 1.4rem; }
.article-list__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    margin-bottom: 1.3rem; padding-bottom: .7rem; border-bottom: 2px solid var(--ink);
}
.article-list__head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.article-list__head h2 a { color: var(--ink); }
.article-list__head h2 a:hover { color: var(--primary); }
.cat-more { font-family: var(--font-head); font-weight: 600; font-size: .95rem; white-space: nowrap; }

.article-item {
    height: 100%; background: var(--surface);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border-bottom: 4px solid transparent;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.article-item > a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.article-item .image { overflow: hidden; aspect-ratio: 660 / 412; background: var(--primary-soft); }
.article-item .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-item__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.3rem; }
.article-item h2, .article-item h3 { font-size: 1.15rem; line-height: 1.28; margin-bottom: .55rem; transition: color var(--ease); }
.article-item .excerpt { font-size: .95rem; line-height: 1.55; color: var(--muted); margin-bottom: 1rem; }
.article-item__readmore { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--primary-dark); }
.article-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); border-bottom-color: var(--secondary); }
.article-item:hover .image img { transform: scale(1.06); }
.article-item:hover h2, .article-item:hover h3 { color: var(--primary); }
.empty-note { color: var(--muted); }

/* --- Article detail ------------------------------------------------------- */
.article-hero {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem 2.5rem; box-shadow: var(--shadow);
}
.article-hero__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1.4rem; }
.article-hero .image { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; }
.article-hero .image img { width: 100%; display: block; }

.content { font-size: 1.1rem; }
.content > :first-child { margin-top: 0; }
.content h2, .content h3, .content h4 { margin-top: 2rem; }
.content h2 { font-size: 1.7rem; }
.content h3 { font-size: 1.35rem; }
.content p, .content li { margin-bottom: 1rem; }
.content ul, .content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.content li::marker { color: var(--primary); font-weight: 700; }
.content a { text-decoration: underline; text-decoration-color: var(--primary-soft); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.content a:hover { text-decoration-color: var(--primary); }
.content img { border-radius: var(--radius); margin: 1rem 0; }
.content blockquote { margin: 1.5rem 0; padding: .8rem 1.4rem; border-left: 5px solid var(--secondary); background: #FFF6E2; border-radius: 0 var(--radius) var(--radius) 0; }
.content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.content th, .content td { padding: .6rem .8rem; border: 1px solid var(--border); }
.content th { background: var(--primary-soft); font-family: var(--font-head); }

.related-articles { margin-top: 3rem; }
.related-articles__heading {
    display: inline-block; font-size: 1.6rem; margin-bottom: 1.3rem;
    padding-bottom: .3rem; border-bottom: 4px solid var(--secondary);
}

/* --- Static pages --------------------------------------------------------- */
.page-content {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem 2.5rem; box-shadow: var(--shadow);
}
.page-content h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }

/* --- Sidebar -------------------------------------------------------------- */
.sidebar { position: sticky; top: 170px; display: grid; gap: 1.4rem; margin-top: 0; }
.fi-newsletter-cta {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 1.6rem 1.4rem 1.5rem;
    box-shadow: var(--shadow-up);
}
.fi-newsletter-cta::after {
    content: ''; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px;
    border-radius: 50%; border: 24px solid rgba(255, 255, 255, .1);
}
.fi-newsletter-cta__badge {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: .9rem;
    display: grid; place-items: center;
    background: var(--secondary); color: var(--navy);
    font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
}
.fi-newsletter-cta__title { color: #fff; font-size: 1.45rem; margin-bottom: .5rem; }
.fi-newsletter-cta__text { position: relative; font-size: .97rem; line-height: 1.55; color: rgba(255, 255, 255, .92); margin-bottom: 1.1rem; }

.sidebar-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.3rem 1.2rem; box-shadow: var(--shadow); }
.sidebar-card__title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; color: var(--muted); }
.sidebar-categories { list-style: none; margin: 0; padding: 0; }
.sidebar-categories li + li { border-top: 1px solid var(--border); }
.sidebar-categories a {
    display: flex; justify-content: space-between; align-items: center; gap: .6rem;
    padding: .7rem .1rem; color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.3;
}
.sidebar-categories .arrow { color: var(--primary); font-size: 1.4rem; transition: transform var(--ease); }
.sidebar-categories a:hover { color: var(--primary); }
.sidebar-categories a:hover .arrow { transform: translateX(4px); }

/* --- Pagination ----------------------------------------------------------- */
.pagination { gap: .4rem; }
.pagination .page-link {
    border: 0; border-radius: 10px !important; min-width: 44px; text-align: center;
    background: var(--surface); color: var(--ink); font-family: var(--font-head); font-weight: 700;
    box-shadow: var(--shadow);
}
.pagination .page-link:hover { background: var(--primary-soft); color: var(--primary-dark); }
.pagination .page-item.active .page-link { background: var(--primary); color: #fff; }
.pagination .page-item.disabled .page-link { background: transparent; box-shadow: none; color: var(--muted); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); border-top: 4px solid var(--primary); padding: 3rem 0 2.5rem; text-align: center; }
.site-footer__brand { display: inline-block; margin-bottom: 1.2rem; }
.site-footer__logo { height: 50px; width: auto; }
.site-footer__copyright { margin: 0 0 1.2rem; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--navy-line); }
.footer-nav a { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: var(--secondary); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .site-header__slogan { display: none; }
    .site-header__cta { margin-left: auto; }
    .site-nav__link { padding: .85rem .7rem; font-size: .92rem; }
    .site-nav__link::after { left: .7rem; right: .7rem; }
}

@media (max-width: 991.98px) {
    :root { --logo-height: 56px; }
    .site-header__cta { display: none; }
    .nav-toggle { display: block; }
    .site-nav { display: none; padding-bottom: .6rem; }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__link { padding: .8rem .2rem; font-size: 1.02rem; }
    .site-nav__link::after { display: none; }
    .site-nav__link.is-active { color: var(--secondary); }
    .site-nav__newsletter { display: block; }
    .sidebar { position: static; margin-top: 2.5rem; }
    .home-hero { padding: 3rem 0 2.8rem; }
}

@media (max-width: 575.98px) {
    body { font-size: 1rem; }
    .intro, .article-hero, .page-content { padding: 1.4rem 1.2rem 1.6rem; }
    .article-list__head { flex-direction: column; gap: .3rem; }
    .inner-wrapper { padding: 2rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
