/* =========================================================
   BSC – Business Systems & Communication
   ========================================================= */

:root {
    --navy: #203060;
    --navy-deep: #131c3a;
    --signal: #123dbe;
    --paper: #f3f5f9;
    --ink: #18203a;
    --muted: #556078;
    --line: #dde2eb;
    --line-dark: rgba(255, 255, 255, 0.16);

    --font: "Archivo", system-ui, sans-serif;
    --wide: 112;     /* headline width axis */
    --nav-h: 96px;
    --section-y: clamp(80px, 10vw, 136px);
}

html,
body {
    height: 100%;
}

html {
    scroll-padding-top: 88px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: inherit;
    hyphens: manual;
}

a {
    color: var(--signal);
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: #fff;
    color: var(--ink);
    border-radius: 6px;
}

.skip-link:focus {
    top: 16px;
}

/* ---------------------------------------------------------
   NAVBAR
   --------------------------------------------------------- */

.navbar {
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.logo {
    max-height: 58px;
    width: auto;
    transition: filter 0.3s ease, max-height 0.3s ease;
}

.navbar:not(.scrolled) .logo {
    filter: brightness(0) invert(1);
}

.navbar .nav-link {
    position: relative;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 0 !important;
    margin: 0 14px;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: #fff;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-block;
    margin-left: 14px;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav-cta:hover {
    background: #fff;
    color: var(--navy);
}

/* scrolled state */

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.navbar.scrolled .logo {
    max-height: 48px;
}

.navbar.scrolled .nav-link {
    color: var(--ink);
}

.navbar.scrolled .nav-link:hover {
    color: var(--signal);
}

.navbar.scrolled .nav-cta {
    background: var(--signal);
    border-color: var(--signal);
    color: #fff;
}

.navbar.scrolled .nav-cta:hover {
    background: var(--navy);
    border-color: var(--navy);
}

/* toggler */

.navbar-toggler {
    border: 0;
    padding: 6px;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 1.6em;
    height: 1.6em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .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='%2318203a' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 12px;
        padding: 8px 20px 20px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid var(--line);
    }

    .navbar .nav-link,
    .navbar.scrolled .nav-link {
        color: var(--ink);
        margin: 0;
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--line);
    }

    .navbar .nav-link::after {
        display: none;
    }

    .nav-cta,
    .navbar.scrolled .nav-cta {
        margin: 16px 0 0;
        background: var(--signal);
        border-color: var(--signal);
        color: #fff;
    }
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-pill--light {
    background: #fff;
    color: var(--navy);
}

.btn-pill--light:hover {
    background: var(--paper);
    color: var(--signal);
}

.btn-pill--solid {
    background: var(--signal);
    color: #fff;
    border: 0;
}

.btn-pill--solid:hover {
    background: var(--navy);
    color: #fff;
}

/* ---------------------------------------------------------
   HERO  (colour, image and layout kept from the original)
   --------------------------------------------------------- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(32, 48, 96, .6), rgba(32, 48, 96, .9)),
        url("../img/background.jpg") center / cover;
}

.hero-copy {
    max-width: 44rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.75rem);
    font-weight: 700;
    font-variation-settings: "wdth" var(--wide);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-weight: 400;
    line-height: 1.5;
    max-width: 32rem;
    opacity: 0.9;
    margin-bottom: 2.25rem;
}

/* one orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        opacity: 0;
        transform: translateY(18px);
        animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
    }

    .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
    .hero-copy > :nth-child(3) { animation-delay: 0.24s; }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* sub pages */

.sub-hero {
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 56px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(32, 48, 96, .8), rgba(32, 48, 96, .95)),
        url("../img/background.jpg") center / cover;
}

.sub-hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    font-variation-settings: "wdth" var(--wide);
    letter-spacing: -0.02em;
    margin: 0;
}

.sub-hero .lead {
    margin: 0.5rem 0 0;
    opacity: 0.85;
}

/* ---------------------------------------------------------
   SECTIONS & TYPE
   --------------------------------------------------------- */

.section {
    padding: var(--section-y) 0;
}

.section--paper {
    background: var(--paper);
}

.section--dark {
    background: var(--navy-deep);
    color: #fff;
}

.section h2,
.section-title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 650;
    font-variation-settings: "wdth" var(--wide);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.intro {
    font-size: clamp(1.125rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    max-width: 40em;
}

/* heading-left / content-right */

.split {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 32px clamp(32px, 6vw, 96px);
    align-items: start;
}

.split--head {
    align-items: end;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.split--head h2,
.split--head .intro {
    margin-bottom: 0;
}

.section--dark .intro {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */

.membership {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: border-color 0.25s ease;
}

.membership:hover {
    border-color: var(--navy);
}

.membership img {
    width: 180px;
    height: auto;
}

.lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.lists h3 {
    font-size: 1.125rem;
    font-weight: 650;
    margin-bottom: 1rem;
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticks li {
    position: relative;
    padding: 0 0 0 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 12px;
    height: 2px;
    background: var(--signal);
}

/* ---------------------------------------------------------
   SERVICES
   --------------------------------------------------------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.service {
    background: #fff;
    padding: clamp(28px, 3vw, 40px);
}

.service i {
    display: inline-flex;
    font-size: 1.75rem;
    color: var(--signal);
    margin-bottom: 1.75rem;
}

.service h3 {
    font-size: 1.25rem;
    font-weight: 650;
    font-variation-settings: "wdth" 104;
    line-height: 1.25;
    margin-bottom: 0.625rem;
}

.service p {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
}

.service--cta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.service--cta p {
    color: rgba(255, 255, 255, 0.8);
}

.service--cta:hover {
    background: var(--signal);
    color: #fff;
}

.service-link {
    margin-top: 1.75rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ---------------------------------------------------------
   REFERENCES
   --------------------------------------------------------- */

.sectors {
    border-top: 1px solid var(--line-dark);
}

.sector {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 16px clamp(32px, 6vw, 96px);
    padding: clamp(32px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--line-dark);
}

.sector h3 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 600;
    font-variation-settings: "wdth" var(--wide);
    line-height: 1.15;
    margin: 0;
}

.sector p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 40em;
    margin-bottom: 1.25rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tags li {
    padding: 6px 14px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
}

.facts dt {
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 600;
    font-variation-settings: "wdth" 100;
    line-height: 1;
    letter-spacing: -0.02em;
}

.facts dd {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------
   PARTNERS
   --------------------------------------------------------- */

.partners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
}

.partners a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.25s ease;
}

.partners a:hover {
    border-color: var(--navy);
}

.partners img {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
}

/* ---------------------------------------------------------
   CONTACT BAND
   --------------------------------------------------------- */

.contact-band {
    background: var(--signal);
    color: #fff;
    padding: clamp(64px, 8vw, 104px) 0;
}

.contact-band .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.contact-band h2 {
    max-width: 14em;
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    font-weight: 650;
    font-variation-settings: "wdth" var(--wide);
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.contact-band-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.contact-band-phone {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-band-phone:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.72);
    padding: 72px 0 32px;
    font-size: 0.9375rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-dark);
}

.footer-grid address,
.footer-grid p {
    margin: 0;
    line-height: 1.7;
}

.footer-logo {
    max-height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 24px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a + a {
    margin-left: 24px;
}

/* ---------------------------------------------------------
   CONTENT PAGES (Kontakt, Impressum, Datenschutz)
   --------------------------------------------------------- */

.prose .container > * {
    max-width: 46rem;
}

.prose h1 {
    display: none; /* the page title already sits in the sub-hero */
}

.prose h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 650;
    font-variation-settings: "wdth" 106;
    margin: 3rem 0 1rem;
}

.prose h2:first-of-type {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 650;
    margin: 2rem 0 0.5rem;
}

.prose h4 {
    font-size: 1.0625rem;
    font-weight: 650;
    margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
    color: #39425a;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px clamp(32px, 6vw, 96px);
}

.contact-grid h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    margin-bottom: 1.5rem;
}

.contact-grid .contact-name {
    font-weight: 650;
    margin-bottom: 0.25rem;
}

.contact-grid a[href^="tel"] {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.contact-form {
    padding: clamp(28px, 4vw, 48px);
    background: var(--paper);
    border-radius: 16px;
}

.contact-form .form-label {
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 6px;
}

.contact-form .form-control {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-check-input:focus {
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(18, 61, 190, 0.18);
}

.contact-form .form-check-input:checked {
    background-color: var(--signal);
    border-color: var(--signal);
}

.contact-form .form-check-label {
    font-size: 0.9375rem;
    color: var(--muted);
}

.contact-form .btn-pill {
    width: 100%;
    justify-content: center;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
    .split,
    .sector,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 1rem;
    }

    .logo {
        max-height: 44px;
    }

    .navbar.scrolled .logo {
        max-height: 40px;
    }

    .lists,
    .service-grid,
    .partners,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .partners a {
        height: 104px;
    }
}

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