:root {
    --itop-bg: #08131d;
    --itop-bg-soft: #0d1a25;
    --itop-surface: #10212d;
    --itop-surface-2: #132733;
    --itop-border: #243c4b;

    --itop-text: #eaf3f8;
    --itop-muted: #8ea5b4;
    --itop-accent: #22b8f0;
    --itop-accent-soft: rgba(34, 184, 240, .12);

    --itop-radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    position: relative;
    min-height: 100vh;
    background: #fff;

    color: #17242d;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background: url("../images/background_neu.png")
                center center / cover no-repeat;

    opacity: 0.2;

    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
}

/* NAVIGATION */

.navbar {
    background: rgba(8, 19, 29, .92) !important;
    border-bottom: 1px solid var(--itop-border);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -.02em;
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    #object-fit: cover;
    #border-radius: 50%;
}

.nav-link {
    color: var(--itop-muted) !important;
    font-size: .94rem;
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--itop-text) !important;
}

.navbar-toggler {
    border-color: var(--itop-border);
}

/* TYPOGRAFIE */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--itop-accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--itop-accent);
    opacity: .8;
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--itop-bg);
    color: var(--itop-text);
}

.section-head {
    margin-bottom: 2.5rem;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 0;
    background:
        radial-gradient(circle at 75% 45%, rgba(34, 184, 240, .12), transparent 28%),
        var(--itop-bg);
    color: var(--itop-text);
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: 50%;
    width: 560px;
    height: 560px;
    transform: translateY(-50%);
    border: 1px solid rgba(34, 184, 240, .06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 760px;
    margin: 1rem 0 1.2rem;
    font-size: clamp(3rem, 7vw, 5.7rem);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.055em;

	color: var(--itop-accent);
}

.hero .lead {
    max-width: 720px;
    color: #b7c7d1;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-wrap::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,184,240,.12), rgba(34,184,240,0) 68%);
    filter: blur(10px);
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    height: auto;
    filter: drop-shadow(0 0 28px rgba(34, 184, 240, .14));
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.3rem;
    margin-top: 1.6rem;
    color: var(--itop-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-meta span {
    position: relative;
}

.hero-meta span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -.9rem;
    color: var(--itop-accent);
}

/* BUTTONS */

.hero .btn-insights {
    background: transparent;
    border: 1px solid transparent;
    color: var(--itop-accent) !important;
    font-weight: 400;
    border-radius: 4px;
    padding: .45rem .75rem;
    line-height: 1.5;
    box-shadow: none;
}

.hero .btn-insights:hover {
    background: #55cbf5;
    border-color: #55cbf5;
    color: #061017 !important;
}

/* Profil */
.hero .btn-insights-outline {
    background: transparent;
    border: 1px solid transparent;
    color: var(--itop-accent) !important;
    font-weight: 400;
    border-radius: 4px;
    padding: .45rem .75rem;
    line-height: 1.5;
    box-shadow: none;
}

.hero .btn-insights-outline:hover {
    background: transparent;
    border-color: var(--itop-accent);
    color: #55cbf5 !important;
}

/* SECTIONS */

.section {
    padding: 6rem 0;
    border-top: 1px solid rgba(36, 60, 75, .55);
}

.section-alt {
    background: var(--itop-bg-soft);
	color: var(--itop-accent) !important;
}

.section-head {
    margin-bottom: 3.2rem;
}

/* SURFACES */

.surface {
    background: var(--itop-surface);
    border: 1px solid var(--itop-border);
    border-radius: var(--itop-radius);
	color: var(--itop-muted);
}

.profile-panel {
    padding: 2rem;
}

.profile-panel p:last-child {
    margin-bottom: 0;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.tech-pill {
    padding: .42rem .72rem;
    border: 1px solid var(--itop-border);
    border-radius: 999px;
    color: #b7c7d1;
    background: rgba(255,255,255,.015);
    font-size: .84rem;
}

/* THEMEN */

.topic-item {
    height: 100%;
    padding: 1.55rem;
}

.topic-index {
    display: block;
    margin-bottom: 1.35rem;
    color: var(--itop-accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.topic-item h3 {
    font-size: 1.08rem;
    font-weight: 700;
}

.topic-item p {
    margin: 0;
    color: var(--itop-muted);
    font-size: .94rem;
}

.topic-item i {
    margin-right: .5rem;
    color: var(--itop-accent);
}

/* =========================================================
   PROJEKTE
   ========================================================= */

.project-list {
    padding: 0 1.75rem;
}

/* Link */
.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-link:hover {
    color: inherit;
}

/* Projekt */
.project-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1.2rem;

    padding: 1.45rem 0;

    /* IMMER Trennlinie */
    border-bottom: 1px solid var(--itop-border);

    transition:
        background-color .2s ease,
        padding-left .2s ease,
        padding-right .2s ease;
}

/* Nur der wirklich letzte Eintrag der Liste ohne Linie */
.project-list > :last-child .project-row,
.project-list > .project-row:last-child {
    border-bottom: 0;
}


/* Nummer */
.project-no {
    padding-top: .12rem;
    color: var(--itop-accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
}


/* Titel */
.project-row h3 {
    margin-bottom: .4rem;
    font-size: 1.06rem;
    transition: color .2s ease;
}


/* Text */
.project-row p {
    margin: 0;
    color: var(--itop-muted);
}


/* Hover bei verlinkten Projekten */
.project-link:hover .project-row {
    background: rgba(34, 184, 240, .04);

    padding-left: .5rem;
    padding-right: .5rem;
}

.project-link:hover .project-no,
.project-link:hover h3 {
    color: var(--itop-accent);
}

/* PLATFORM / NETWORK */

.network-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    align-items: center;
    margin-top: 2rem;
}

.network-node {
    position: relative;
    padding: 1rem;
    text-align: center;
    color: var(--itop-muted);
    font-size: .86rem;
}

.network-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 2px;
    height: 2px;
    box-shadow: 0 0 0 1px var(--itop-accent),
                0 0 12px rgba(34,184,240,.35);
    border-radius: 50%;
}

.network-node:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    right: -50%;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, var(--itop-border), rgba(34,184,240,.35));
    z-index: 0;
}

.network-node span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: .4rem .7rem;
    background: var(--itop-bg-soft);
}

.network-node.center span {
    color: var(--itop-text);
    border: 1px solid rgba(34,184,240,.35);
    border-radius: 7px;
}

/* ARTICLES */

.article-card {
    overflow: hidden;
    height: 100%;
}

.article-card img {
    width: 100%;
	background: white;
    aspect-ratio: 16/9;
    object-fit: contain;
    opacity: .88;
}

.article-card-body {
    padding: 1.35rem;
}

.article-card time {
    color: var(--itop-accent);
    font-size: .78rem;
    letter-spacing: .04em;
}

.article-card h3 {
    margin: .5rem 0 .55rem;
    font-size: 1.07rem;
}

.article-card p {
    margin: 0;
    color: var(--itop-muted);
}

/* FOOTER */

footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--itop-border);
    background: #061019;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
	color: var(--itop-accent);
}

.footer-brand img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

.footer-link {
    color: var(--itop-muted);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--itop-text);
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4.5rem;
    }

    .hero-logo-wrap {
        margin-top: 2.5rem;
    }

    .hero-logo {
        max-width: 340px;
    }

    .section {
        padding: 4.5rem 0;
    }

    .network-strip {
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    .network-node::before,
    .network-node::after {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: 3rem;
    }

    .project-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }
}

        /* ARTICLE HOVER + MODAL */
        .article-preview {
            cursor: pointer;
            transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
        }

        .article-preview:hover {
            transform: translateY(-5px);
            border-color: rgba(34, 184, 240, .55);
            box-shadow:
                0 14px 35px rgba(0, 0, 0, .18),
                0 0 0 1px rgba(34, 184, 240, .08);
        }

        .article-image-wrap {
            position: relative;
            overflow: hidden;
        }

        .article-image-wrap img {
            display: block;
            width: 100%;
            transition: transform .35s ease, filter .35s ease;
        }

        .article-preview:hover .article-image-wrap img {
            transform: scale(1.035);
            filter: brightness(.45);
        }

        .article-hover-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.4rem;
            color: var(--itop-text);
            background:
                linear-gradient(
                    to top,
                    rgba(8, 19, 29, .96) 0%,
                    rgba(8, 19, 29, .75) 50%,
                    rgba(8, 19, 29, .18) 100%
                );
            opacity: 0;
            transition: opacity .25s ease;
        }

        .article-preview:hover .article-hover-overlay {
            opacity: 1;
        }

        .article-hover-type {
            align-self: flex-start;
            margin-bottom: .7rem;
            padding: .25rem .55rem;
            border: 1px solid rgba(34, 184, 240, .4);
            border-radius: 999px;
            color: var(--itop-accent);
            font-size: .7rem;
            font-weight: 700;
            letter-spacing: .08em;
        }

        .article-hover-overlay p {
            margin-bottom: .8rem;
            color: #dce9ef;
            font-size: .88rem;
            line-height: 1.45;
        }

        .article-hover-action {
            color: var(--itop-accent);
            font-size: .82rem;
            font-weight: 600;
        }

        .article-modal {
            background: var(--itop-bg-soft);
            color: var(--itop-text);
            border: 1px solid var(--itop-border);
            border-radius: var(--itop-radius);
        }

        .article-modal .modal-header {
            padding: 1.8rem 2rem 1rem;
        }

        .article-modal .modal-body {
            padding: 1rem 2rem 2rem;
        }

        .article-modal-meta {
            margin-bottom: .45rem;
            color: var(--itop-accent);
            font-size: .74rem;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .article-modal .modal-title {
            font-weight: 750;
            letter-spacing: -.025em;
        }

        .article-modal-image {
            width: 100%;
            max-height: 420px;
            object-fit: cover;
            border: 1px solid var(--itop-border);
        }

        .article-modal-content {
            color: var(--itop-text);
        }

        .article-modal-content h2,
        .article-modal-content h3,
        .article-modal-content h4 {
            margin-top: 1.6rem;
        }

        .article-modal-content p,
        .article-modal-content li {
            color: var(--itop-muted);
        }

        .article-modal-content pre {
            padding: 1rem;
            overflow: auto;
            background: #07111a;
            border: 1px solid var(--itop-border);
            border-radius: 8px;
        }

        @media (hover: none) {
            .article-hover-overlay {
                opacity: 1;
                background:
                    linear-gradient(
                        to top,
                        rgba(8, 19, 29, .90) 0%,
                        rgba(8, 19, 29, .20) 62%,
                        transparent 100%
                    );
            }

            .article-hover-overlay p {
                display: none;
            }
        }

.footer-heading {
    display: block;
    margin-bottom: 1rem;

    color: var(--itop-accent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.footer-legal-links a {
    color: var(--itop-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-legal-links a:hover {
    color: var(--itop-accent);
}

.footer-link {
	display: flex;
	align-items: center;
	gap: .55rem;
	color: var(--itop-muted);
	text-decoration: none;
	transition: color .2s ease;
}

.footer-link i {
	width: 16px;
	text-align: center;
	font-size: .85rem;
	color: #7191a3;
	transition: color .2s ease;
}

.footer-link:hover,
.footer-link:hover i {
	color: var(--itop-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.footer-bottom small {
    flex: 1;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-legal-links a {
    color: var(--itop-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-legal-links a:hover {
    color: var(--itop-accent);
}

/* Mobil wieder untereinander */
@media (max-width: 767.98px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
}
.footer-location {
    display: flex;
    align-items: center;
    gap: .55rem;

    color: var(--itop-muted);
    font-size: .95rem;
}

.footer-bottom small a {
    color: var(--itop-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-bottom small a:hover {
    color: var(--itop-accent);
}

/* =========================================================
   SINNVOLLE ERGÄNZUNGEN AUS DER ALTERNATIVEN CSS
   Original-Theme bleibt unverändert; Ergänzungen nur additiv.
   ========================================================= */

/* Navbar-Brand-Text ist im aktuellen Seitenquelltext vorhanden. */
.navbar-brand span {
    color: var(--itop-text);
    font-weight: 650;
}

/* Logo-Dateien nicht beschneiden. */
.navbar-brand img {
    object-fit: contain;
}

/* Artikelbild-Container: stabilisiert das 16:9-Layout der aktuellen Cards. */
.article-image-wrap {
    aspect-ratio: 16 / 9;
    background: var(--itop-bg-soft);
}

.article-image-wrap img {
    height: 100%;
    object-fit: contain;
}

/*
 * Artikel-Inhaltsbilder + Lightbox.
 * Diese Regeln greifen nur auf Artikelseiten, wenn .article-content bzw.
 * .article-lightbox vorhanden sind, und verändern die Startseite sonst nicht.
 */
.article-content img {
    display: block;
    width: 60%;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 10px;
    cursor: zoom-in;
}

.article-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(5, 13, 20, .92);
    cursor: zoom-out;
}

.article-lightbox.active {
    display: flex;
}

.article-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    cursor: default;
}

.footer-divider {
    margin: 2.5rem 0 1.5rem;
    border-color: var(--itop-border);
    opacity: .5;
}

.footer-legal-links {
    font-size: .8rem;
}

@media (max-width: 767.98px) {
    .article-content img {
        width: 100%;
    }

    .article-lightbox {
        padding: 1rem;
    }
}

/* LINKED TOPICS */

.topic-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.topic-link:hover {
    color: inherit;
}

.topic-link .topic-item {
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.topic-link:hover .topic-item {
    transform: translateY(-3px);
    border-color: var(--itop-accent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}


/* BACK TO TOP */

html {
    scroll-behavior: smooth;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: var(--itop-bg);
    border: 1px solid var(--itop-border);
    border-radius: 6px;

    color: var(--itop-accent);
    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.back-to-top:hover {
    background: var(--itop-accent);
    border-color: var(--itop-accent);
    color: #061017;

    transform: translateY(-2px);
}

/* =========================================================
   ARTICLE KICKER + BREADCRUMB
   ========================================================= */

/* Kicker deutlich hervorheben */
.article-page .kicker {
    color: #008fc4;
    font-weight: 800;
    letter-spacing: .12em;

    padding: .3rem .65rem;
    background: rgba(255, 255, 255, .88);
    border-left: 3px solid var(--itop-accent);
    box-shadow: 0 2px 8px rgba(8, 19, 29, .08);

    text-shadow: none;
}

/* vorhandene Linie des Kickers etwas kräftiger */
.article-page .kicker::before {
    background: var(--itop-accent);
    opacity: 1;
}


/* Breadcrumb */

.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;

    margin-top: .9rem;
    margin-bottom: 1.8rem;

    font-size: .85rem;
    font-weight: 500;

    color: #17242d;
}


/* Normale Breadcrumb-Links schwarz */

.article-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;

    color: #17242d;
    text-decoration: none;

    transition: color .2s ease;
}

.article-breadcrumb a:hover {
    color: var(--itop-accent);
}


/* Home-Icon weiterhin Akzentfarbe */

.article-breadcrumb .fa-house {
    color: var(--itop-accent);
}


/* Pfeile dunkel */

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;

    font-size: .6rem;
    color: #52616a;
}


/* Aktuelle Position blau */

.breadcrumb-current {
    color: #009fd8;
    font-weight: 600;
}

/* =========================================================
   LINKED SECTION TITLE – Beiträge
   ========================================================= */

.section-title-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: inherit;
    text-decoration: none;
}

.section-title-link i {
    color: var(--itop-accent);
    font-size: .72em;
    transition: transform .2s ease;
}

.section-title-link:hover {
    color: var(--itop-accent);
}

.section-title-link:hover i {
    transform: translateX(4px);
}


/* =========================================================
   ARTICLES OVERVIEW - same card geometry as home
   ========================================================= */
.articles-overview .article-card-grid > [class*="col-"] {
    display: flex;
}

.articles-overview .article-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.articles-overview .article-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

.articles-overview .article-image-wrap > img,
.articles-overview .article-image-wrap picture,
.articles-overview .article-image-wrap picture > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.articles-overview .article-card-body {
    padding: 1.35rem;
}
