/* =============================================================
   style.css — exlyr technologies
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   1. CSS Custom Properties
───────────────────────────────────────────────────────────── */
:root {
    --color-ink-950: #09111d;
    --color-ink-900: #102033;
    --color-ink-800: #18304a;
    --color-ink-700: #274662;
    --color-surface-0: #f4f8fb;
    --color-surface-1: #ffffff;
    --color-surface-2: #e8eef4;
    --color-surface-3: #d8e2ec;
    --color-accent: #2A526E;
    --color-accent-strong: #2A526E;
    --color-highlight: #2A526E;
    --color-border: rgba(16, 32, 51, 0.12);
    --color-border-strong: rgba(16, 32, 51, 0.2);
    --color-text: #102033;
    --color-muted: #5d6d80;
    --color-muted-strong: #435366;
    --color-success: #2A526E;
    --color-danger: #bf3f30;
    --color-info: #2A526E;
    --color-bg: linear-gradient(180deg, #f8fbfd 0%, #eff4f8 100%);
    --color-bg-alt: linear-gradient(180deg, #fdfefe 0%, #eef4f9 100%);
    --font-sans: "Neue Montreal", "NeueMontreal", "PP Neue Montreal", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Neue Montreal", "NeueMontreal", "PP Neue Montreal", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ribbon-height: 84px;
    --border-radius-sm: 14px;
    --border-radius: 24px;
    --border-radius-lg: 36px;
    --shadow-sm: 0 12px 28px rgba(9, 17, 29, 0.08);
    --shadow-md: 0 22px 60px rgba(9, 17, 29, 0.12);
    --shadow-lg: 0 36px 90px rgba(9, 17, 29, 0.18);
    --transition-fast: 180ms ease;
    --transition-medium: 260ms ease;
    --max-width: 1240px;
    --content-width: 1140px;
    --content-narrow: 900px;
    --gutter: 1.5rem;
    --section-space: clamp(4rem, 7vw, 7rem);
    --grid-gap: clamp(1.25rem, 2vw, 2rem);
}

/* ─────────────────────────────────────────────────────────────
   2. CSS Reset
───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

input,
select,
textarea,
button {
    font: inherit;
}

::selection {
    background: rgba(42, 82, 110, 0.18);
    color: var(--color-ink-950);
}

/* ─────────────────────────────────────────────────────────────
   3. Typography
───────────────────────────────────────────────────────────── */
h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--color-ink-950);
    letter-spacing: -0.03em;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    font-weight: 700;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
}

h3 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────
   4. Layout Helpers
───────────────────────────────────────────────────────────── */
.section-inner,
.footer-inner,
.ribbon-inner {
    width: min(100% - (var(--gutter) * 2), var(--max-width));
    margin: 0 auto;
}

.section-inner {
    position: relative;
    padding: var(--section-space) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

main > section,
.product-detail-page,
.legal-page,
.blog-page {
    position: relative;
}

main > section::before,
.product-detail-page::before,
.legal-page::before,
.blog-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
}

main > section > .section-inner,
.product-detail-page > .section-inner,
.legal-page > .section-inner,
.blog-page > .section-inner {
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   5. Top Ribbon / Navigation
───────────────────────────────────────────────────────────── */
#top-ribbon {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(248, 251, 253, 0.8);
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
    backdrop-filter: blur(18px);
    transition: background var(--transition-fast), border-color var(--transition-fast), padding var(--transition-fast);
}

.ribbon-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: calc(var(--ribbon-height) - 2rem);
    gap: 1rem 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 32px rgba(9, 17, 29, 0.08);
    transition: box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

#top-ribbon.is-scrolled {
    background: rgba(240, 246, 250, 0.94);
    border-bottom-color: rgba(16, 32, 51, 0.12);
}

#top-ribbon.is-scrolled .ribbon-inner {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(9, 17, 29, 0.12);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: auto;
    height: 50px;
    max-width: 210px;
    object-fit: contain;
}

#main-nav {
    position: relative;
    justify-self: center;
}

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-muted-strong);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    appearance: none;
    transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-toggle[aria-expanded="true"] {
    background: rgba(16, 32, 51, 0.06);
    color: var(--color-ink-950);
    box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.05);
}

#main-nav .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 120;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 16rem;
    padding: 0.5rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

#main-nav .nav-dropdown-menu.is-open {
    display: flex;
}

#main-nav .nav-dropdown-menu li {
    width: 100%;
}

#main-nav .nav-dropdown-menu a {
    width: 100%;
    justify-content: flex-start;
}

#main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: var(--color-muted-strong);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

#main-nav a:hover,
#main-nav a:focus-visible,
#main-nav a.is-active,
#main-nav a[aria-current="page"] {
    background: rgba(16, 32, 51, 0.06);
    color: var(--color-ink-950);
    box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.05);
}

/* ─────────────────────────────────────────────────────────────
   6. Hamburger Menu
───────────────────────────────────────────────────────────── */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(16, 32, 51, 0.06);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.hamburger:hover {
    background: rgba(42, 82, 110, 0.12);
}

.hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-ink-950);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    transform-origin: center;
}

.hamburger.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   7. Language Switcher
───────────────────────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-muted-strong);
    cursor: pointer;
    appearance: none;
    transition: transform var(--transition-fast);
}

.lang-btn .flag-icon {
    display: block;
    width: 22px;
    height: 15px;
    border: 1px solid rgba(16, 32, 51, 0.16);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(9, 17, 29, 0.08);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.lang-btn .flag-icon--de {
    background: linear-gradient(
        to bottom,
        #111111 0,
        #111111 33.33%,
        #d12f2f 33.33%,
        #d12f2f 66.66%,
        #efc94c 66.66%,
        #efc94c 100%
    );
}

.lang-btn .flag-icon--uk {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30M60 0L0 30' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lang-btn:hover .flag-icon,
.lang-btn:focus-visible .flag-icon {
    transform: translateY(-1px);
    border-color: rgba(42, 82, 110, 0.35);
    box-shadow: 0 6px 14px rgba(9, 17, 29, 0.16);
}

.lang-btn:focus-visible {
    outline: none;
}

.lang-btn[aria-pressed="true"] .flag-icon {
    background-color: #b0b0b0;
    border-color: rgba(16, 32, 51, 0.28);
    box-shadow: 0 0 0 2px rgba(42, 82, 110, 0.18), 0 6px 14px rgba(9, 17, 29, 0.18);
}

/* ─────────────────────────────────────────────────────────────
   8. Home / Posts Section
───────────────────────────────────────────────────────────── */
#home .section-inner,
.home-overview .section-inner {
    display: grid;
    gap: 0.75rem;
    align-items: start;
    padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

#home .section-inner {
    min-height: clamp(20rem, 42vh, 30rem);
}

/* ponytail: color the outer card blue edge-to-edge, drop the grey shadow/border,
   and let the box hug its text instead of a fixed 420px that pokes into the grey gap */
section#home > .section-inner {
    background: #EBF0F5;
    border: none;
    box-shadow: none;
    min-height: 0;
    /* ponytail: nowrap headline expands the grid track past the rounded corner — pin track to container */
    grid-template-columns: minmax(0, 1fr);
}

.home-intro-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    gap: 1rem;
    justify-items: center;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    background: #EBF0F5;
    border-radius: var(--border-radius);
}

.home-intro-card__headline {
    width: auto;
    max-width: none;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 3.3vw, 2.7rem);
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    justify-self: center;
}

.home-intro-card__subline,
.home-intro-card__entry {
    width: min(100%, 880px);
    max-width: 880px;
    margin-bottom: 0;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    line-height: 1.24;
    text-align: center;
    color: var(--color-muted);
}

.home-top-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 520px);
    aspect-ratio: 2.75 / 1;
    margin: 0 auto;
    overflow: hidden;
    margin-bottom: 0;
}

.home-top-logo__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

#home .section-inner::before {
    content: "";
    position: absolute;
    top: 2.4rem;
    right: 0;
    width: min(34vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: none;
    filter: blur(4px);
    pointer-events: none;
}

#home h1 {
    max-width: 11ch;
}

#home .home-intro-card__headline {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 3vw, 2.35rem);
    text-align: center;
    white-space: nowrap;
}

#posts-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: 0.5rem;
}

#posts-container > *:first-child {
    grid-column: span 7;
}

#posts-container > *:not(:first-child) {
    grid-column: span 5;
}

.posts-loading,
.posts-empty,
.posts-error {
    grid-column: 1 / -1;
    padding: 2.25rem;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.68);
    text-align: center;
    color: var(--color-muted);
}

.posts-error {
    color: var(--color-danger);
}

/* ─────────────────────────────────────────────────────────────
   9. Post Card
───────────────────────────────────────────────────────────── */
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) + 4px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.post-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-accent));
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(42, 82, 110, 0.18);
}

.post-card__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2rem;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-card__title {
    margin-bottom: 0.85rem;
}

.post-card__content {
    overflow: hidden;
    color: var(--color-muted-strong);
    font-size: 1rem;
    line-height: 1.75;
    transition: max-height 320ms ease;
}

.post-card__content.is-collapsed {
    max-height: 168px;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.post-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    color: var(--color-accent-strong);
    font-size: 1rem;
    font-weight: 600;
}

.post-card__toggle:hover {
    color: var(--color-ink-950);
}

/* ─────────────────────────────────────────────────────────────
   10. Products Section
───────────────────────────────────────────────────────────── */
#products,
#services,
#about,
#contact {
    background: transparent;
}

#home .section-inner,
.home-overview .section-inner,
#products .section-inner,
#services .section-inner,
#about .section-inner,
#contact .section-inner {
    padding-right: clamp(1.4rem, 3vw, 2.4rem);
    padding-left: clamp(1.4rem, 3vw, 2.4rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: 2.4rem;
}

/* ─────────────────────────────────────────────────────────────
   11. Product Card
───────────────────────────────────────────────────────────── */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) + 2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.92));
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(42, 82, 110, 0.18);
}

.product-card::after {
    content: none;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card h3 {
    margin-top: 0.1rem;
}

.product-card p {
    flex: 1;
    color: var(--color-muted);
}

.product-card-img-link {
    display: block;
    overflow: hidden;
    border-radius: calc(var(--border-radius) - 2px);
    background: linear-gradient(145deg, #e4edf5, #f8fbfd);
    aspect-ratio: 16 / 10;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.product-card:hover .product-card-img,
.product-card-img-link:focus .product-card-img {
    transform: scale(1.05);
}

.product-card-link {
    margin-top: auto;
}

/* ─────────────────────────────────────────────────────────────
   11b. Product Detail Page
───────────────────────────────────────────────────────────── */
.product-detail-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.product-detail-page > .section-inner {
    width: min(100% - (var(--gutter) * 2), var(--content-width));
    padding-top: 2rem;
}

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-muted);
    font-size: 0.88rem;
}

.breadcrumb a {
    color: var(--color-accent-strong);
}

.product-detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 238, 244, 0.86));
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.product-detail-hero::before {
    content: "";
    position: absolute;
    top: -12%;
    right: -8%;
    width: min(34vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: none;
}

.product-detail-image {
    position: relative;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: calc(var(--border-radius) + 6px);
    border: 1px solid rgba(16, 32, 51, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.92));
    box-shadow: var(--shadow-md);
}

.product-detail-image::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) - 6px);
    pointer-events: none;
}

.product-detail-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 8px);
    background: #fff;
}

.product-detail-intro {
    position: relative;
    z-index: 1;
}

.product-detail-intro h1 {
    max-width: 12ch;
}

.product-detail-lead {
    max-width: 56ch;
    margin-bottom: 1.75rem;
    color: var(--color-muted-strong);
    font-size: 1.08rem;
    line-height: 1.85;
}

.product-detail-section {
    margin-top: 1.5rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-feature-item {
    min-height: 100%;
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) - 8px);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(232, 238, 244, 0.86));
}

.product-feature-item strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--color-ink-950);
}

.product-feature-item span {
    display: block;
    color: var(--color-muted);
}

.product-page-end-logo {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0;
}

.product-page-end-logo__image {
    width: min(100%, 560px);
    height: auto;
}

.screenshot-carousel {
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.92));
    box-shadow: var(--shadow-md);
}

.screenshot-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.carousel-track {
    display: flex;
    transition: transform 420ms ease;
    will-change: transform;
}

.carousel-slide {
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0 0.85rem;
}

.carousel-slide img,
.carousel-placeholder {
    width: 100%;
    height: clamp(280px, 48vw, 520px);
    border-radius: calc(var(--border-radius) - 6px);
}

.carousel-slide img {
    object-fit: cover;
}

.carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(16, 32, 51, 0.16);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(232, 238, 244, 0.9));
    color: var(--color-muted-strong);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.carousel-btn--prev {
    left: 1.1rem;
}

.carousel-btn--next {
    right: 1.1rem;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.carousel-dot[aria-selected="true"] {
    background: var(--color-highlight);
    transform: scale(1.25);
}

/* ─────────────────────────────────────────────────────────────
   12. About Us Section
───────────────────────────────────────────────────────────── */
.mission-vision {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: var(--grid-gap);
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
}

.about-intro,
.mission,
.vision {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: #EBF0F5;
    box-shadow: var(--shadow-sm);
}

.about-intro::before,
.mission::before,
.vision::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 174, 197, 0.18), transparent 70%);
}

.about-intro h3,
.mission h3,
.vision h3 {
    color: var(--color-ink-950);
}

.about-intro p,
.mission p,
.vision p {
    color: var(--color-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

/* ─────────────────────────────────────────────────────────────
   13. Employee Card
───────────────────────────────────────────────────────────── */
.employee-card {
    padding: 1.7rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
}

.employee-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(42, 82, 110, 0.22);
}

.employee-name {
    margin-bottom: 0.15rem;
    color: var(--color-ink-950);
    font-weight: 700;
}

.employee-title {
    color: var(--color-accent-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.employee-card p:not(.employee-name):not(.employee-title) {
    color: var(--color-muted);
}

/* ─────────────────────────────────────────────────────────────
   14. Contact Form
───────────────────────────────────────────────────────────── */
#contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 2.25rem;
}

#contact-form .form-group--message,
#contact-form .form-group--checkbox,
#contact-form > .btn,
#contact-feedback {
    grid-column: 1 / -1;
}

#contact-form .form-group--product {
    max-width: 22rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    color: var(--color-muted-strong);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(16, 32, 51, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(42, 82, 110, 0.42);
    box-shadow: 0 0 0 5px rgba(42, 82, 110, 0.12);
}

#contact-form .form-group--checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.25rem;
}

#contact-form .form-group--checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0;
    accent-color: var(--color-accent);
}

#contact-form .form-group--checkbox label {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.form-feedback {
    padding: 0.95rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 0.95rem;
}

.form-feedback--success {
    background: rgba(42, 82, 110, 0.1);
    border-color: rgba(42, 82, 110, 0.18);
    color: var(--color-success);
}

.form-feedback--error {
    background: rgba(191, 63, 48, 0.1);
    border-color: rgba(191, 63, 48, 0.18);
    color: var(--color-danger);
}

.form-feedback--info {
    background: rgba(12, 106, 201, 0.1);
    border-color: rgba(12, 106, 201, 0.18);
    color: var(--color-info);
}

/* ─────────────────────────────────────────────────────────────
   15. Buttons
───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(42, 82, 110, 0.28);
    outline-offset: 3px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
    color: #fff;
    box-shadow: 0 14px 26px rgba(42, 82, 110, 0.22);
}

.btn--primary:hover {
    box-shadow: 0 18px 34px rgba(42, 82, 110, 0.3);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(16, 32, 51, 0.12);
    color: var(--color-ink-950);
}

.btn--ghost:hover {
    background: rgba(16, 32, 51, 0.06);
}

.btn--danger {
    background: linear-gradient(135deg, #d35445, #b63c2e);
    color: #fff;
    box-shadow: 0 12px 24px rgba(191, 63, 48, 0.18);
}

.btn--sm {
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
}

/* ─────────────────────────────────────────────────────────────
   16. Footer
───────────────────────────────────────────────────────────── */
#site-footer {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 3rem;
    background: var(--color-accent);
    color: rgba(255, 255, 255, 0.88);
}

#site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   17. Cookie Consent Banner
───────────────────────────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background: rgba(9, 17, 29, 0.92);
    color: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

#cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__text a {
    color: #fff;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
}

#cookie-banner .btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

#cookie-banner .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ─────────────────────────────────────────────────────────────
   18. Legal Pages (Impressum, Datenschutz)
───────────────────────────────────────────────────────────── */
.legal-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.legal-page > .section-inner {
    width: min(100% - (var(--gutter) * 2), var(--content-narrow));
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
}

.legal-page h1 {
    margin-bottom: 1.75rem;
}

.legal-block {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.legal-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-page h2 {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
}

.legal-page p,
.legal-page li,
.legal-page address {
    color: var(--color-muted-strong);
}

.legal-intro {
    padding: 1.2rem 1.3rem;
    border-radius: 22px;
    background: rgba(42, 82, 110, 0.08);
    color: var(--color-ink-900);
}

.legal-list {
    margin: 0.9rem 0;
    padding-left: 1.4rem;
    list-style: disc;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--color-accent-strong);
}

.blog-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.blog-page > .section-inner {
    width: min(100% - (var(--gutter) * 2), var(--max-width));
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

.blog-page__intro {
    margin-bottom: 2rem;
    padding: clamp(1.4rem, 3vw, 2.1rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 238, 244, 0.86));
    box-shadow: var(--shadow-md);
}

.blog-page__eyebrow {
    margin-bottom: 0.65rem;
    color: var(--color-accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-page__intro h1 {
    margin-bottom: 0.8rem;
}

.blog-page__lead {
    max-width: 58ch;
    color: var(--color-muted-strong);
    font-size: 1.02rem;
}

.blog-page #posts-container {
    margin-top: 0;
}

/* ─────────────────────────────────────────────────────────────
   19. Admin – Shared
───────────────────────────────────────────────────────────── */
.admin-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4f8 0%, #e3ebf2 100%);
    color: var(--color-text);
}

/* ─────────────────────────────────────────────────────────────
   20. Admin – Login Page
───────────────────────────────────────────────────────────── */
.admin-login {
    width: min(100% - 2rem, 460px);
    margin: clamp(3rem, 8vw, 7rem) auto 0;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.admin-login h1 {
    margin-bottom: 1.4rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.admin-login .form-group {
    margin-bottom: 1rem;
}

.admin-login .btn {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   21. Admin – Dashboard
───────────────────────────────────────────────────────────── */
.admin-header {
    width: min(100% - 2rem, var(--max-width));
    margin: 1rem auto 0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.admin-header h1 {
    margin: 0;
    font-size: 1.6rem;
}

.admin-main {
    width: min(100% - 2rem, var(--max-width));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.admin-post-list,
.admin-post-form {
    padding: 1.5rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.admin-post-list h2,
.admin-post-form h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-table tbody tr:hover {
    background: rgba(16, 32, 51, 0.03);
}

.admin-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-post-form .form-group {
    margin-bottom: 1rem;
}

#quill-editor {
    min-height: 220px;
    border: 1px solid rgba(16, 32, 51, 0.12);
    border-top: none;
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, 0.96);
}

.ql-toolbar {
    border-color: rgba(16, 32, 51, 0.12) !important;
    border-radius: 20px 20px 0 0;
}

.ql-container {
    border-color: rgba(16, 32, 51, 0.12) !important;
    font-family: var(--font-sans);
}

.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

/* ─────────────────────────────────────────────────────────────
   22. Motion Hooks
───────────────────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   23. Responsive – Tablet (max-width: 960px)
───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    #posts-container,
    .admin-main,
    .product-features,
    .mission-vision,
    .products-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    #posts-container > *:first-child,
    #posts-container > *:not(:first-child) {
        grid-column: 1 / -1;
    }

    .product-detail-hero,
    #contact-form {
        grid-template-columns: 1fr;
    }

    #contact-form .form-group--product {
        max-width: none;
    }

    .home-intro-card {
        width: min(100%, 1000px);
    }

    .home-intro-card__subline,
    .home-intro-card__entry {
        max-width: 100%;
    }
}

/* ─────────────────────────────────────────────────────────────
   24. Responsive – Tablet (max-width: 768px)
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --gutter: 1rem;
        --section-space: 3.5rem;
    }

    #top-ribbon {
        padding: 0.75rem 0;
    }

    .ribbon-inner {
        grid-template-columns: auto auto auto;
        border-radius: 28px;
    }

    .hamburger {
        display: inline-flex;
        justify-self: end;
    }

    #main-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        display: none;
        justify-self: stretch;
        padding: 0.8rem;
        border: 1px solid rgba(16, 32, 51, 0.08);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-md);
    }

    #main-nav.is-open {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0.9rem;
    }

    #main-nav .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 0.25rem;
        box-shadow: none;
    }

    #main-nav a {
        justify-content: flex-start;
        padding-left: 0.9rem;
    }

    .lang-switcher {
        justify-self: center;
    }

    #products .section-inner,
    #about .section-inner,
    #contact .section-inner,
    .legal-page > .section-inner,
    .blog-page > .section-inner,
    .product-detail-hero,
    .screenshot-carousel,
    .admin-header,
    .admin-post-list,
    .admin-post-form,
    .admin-login {
        border-radius: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    #cookie-banner {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cookie-banner__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .cookie-banner__actions .btn {
        flex: 1 1 180px;
    }
}

/* ─────────────────────────────────────────────────────────────
   25. Responsive – Mobile (max-width: 540px)
───────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .ribbon-inner {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
        padding: 0.8rem 0.9rem;
    }

    .logo-link {
        width: 128px;
        height: 50px;
    }

    .lang-switcher {
        grid-column: 1 / -1;
        justify-self: start;
    }

    #main-nav {
        top: calc(100% + 0.5rem);
    }

    .post-card__body,
    .mission,
    .vision,
    .employee-card,
    .admin-post-list,
    .admin-post-form,
    .admin-login {
        padding: 1.2rem;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .carousel-btn--prev {
        left: 0.75rem;
    }

    .carousel-btn--next {
        right: 0.75rem;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;
    }

    .admin-form-actions,
    .admin-table__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}/* =============================================================
   style.css — exlyr technologies
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   1. CSS Custom Properties
───────────────────────────────────────────────────────────── */
:root {
    --color-ink-950: #09111d;
    --color-ink-900: #102033;
    --color-ink-800: #18304a;
    --color-ink-700: #274662;
    --color-surface-0: #f4f8fb;
    --color-surface-1: #ffffff;
    --color-surface-2: #e8eef4;
    --color-surface-3: #d8e2ec;
    --color-accent: #2A526E;
    --color-accent-strong: #2A526E;
    --color-accent-soft: rgba(42, 82, 110, 0.12);
    --color-highlight: #2A526E;
    --color-border: rgba(16, 32, 51, 0.12);
    --color-border-strong: rgba(16, 32, 51, 0.2);
    --color-text: #102033;
    --color-muted: #5d6d80;
    --color-muted-strong: #435366;
    --color-success: #2A526E;
    --color-danger: #bf3f30;
    --color-info: #2A526E;
    --color-bg: linear-gradient(180deg, #f8fbfd 0%, #eff4f8 100%);
    --color-bg-alt: linear-gradient(180deg, #fdfefe 0%, #eef4f9 100%);
    --ribbon-height: 84px;
    --border-radius-sm: 14px;
    --border-radius: 24px;
    --border-radius-lg: 36px;
    --shadow-sm: 0 12px 28px rgba(9, 17, 29, 0.08);
    --shadow-md: 0 22px 60px rgba(9, 17, 29, 0.12);
    --shadow-lg: 0 36px 90px rgba(9, 17, 29, 0.18);
    --transition-fast: 180ms ease;
    --transition-medium: 260ms ease;
    --max-width: 1240px;
    --content-width: 1140px;
    --content-narrow: 900px;
    --gutter: 1.5rem;
    --section-space: clamp(4rem, 7vw, 7rem);
    --grid-gap: clamp(1.25rem, 2vw, 2rem);
}

/* ─────────────────────────────────────────────────────────────
   2. CSS Reset
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea, button {
    font: inherit;
}

::selection {
    background: rgba(42, 82, 110, 0.18);
    color: var(--color-ink-950);
}

/* ─────────────────────────────────────────────────────────────
   3. Typography
───────────────────────────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--color-ink-950);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────
   4. Layout Helpers
───────────────────────────────────────────────────────────── */
.section-inner,
.footer-inner,
.ribbon-inner {
    width: min(100% - (var(--gutter) * 2), var(--max-width));
    margin: 0 auto;
}

.section-inner {
    position: relative;
    padding: var(--section-space) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

main > section,
.product-detail-page,
.legal-page {
    position: relative;
}

main section[id],
.product-detail-page,
.legal-page {
    scroll-margin-top: calc(var(--ribbon-height) + 1rem);
}

main > section::before,
.product-detail-page::before,
.legal-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
}

main > section > .section-inner,
.product-detail-page > .section-inner,
.legal-page > .section-inner,
.blog-page > .section-inner {
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   5. Top Ribbon / Navigation
───────────────────────────────────────────────────────────── */
#top-ribbon {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 253, 0.8);
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
    transition: background var(--transition-fast), border-color var(--transition-fast), padding var(--transition-fast);
}

.ribbon-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: calc(var(--ribbon-height) - 2rem);
    gap: 1rem 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(9, 17, 29, 0.08);
    transition: box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

#top-ribbon.is-scrolled {
    background: rgba(240, 246, 250, 0.94);
    border-bottom-color: rgba(16, 32, 51, 0.12);
}

#top-ribbon.is-scrolled .ribbon-inner {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(9, 17, 29, 0.12);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

#main-nav {
    justify-self: center;
}

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-muted-strong);
    border-radius: 999px;
    transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

#main-nav a:hover,
#main-nav a:focus-visible,
#main-nav a.is-active,
#main-nav a[aria-current="page"] {
    color: var(--color-ink-950);
    background: rgba(16, 32, 51, 0.06);
    box-shadow: inset 0 0 0 1px rgba(16, 32, 51, 0.05);
}

/* ─────────────────────────────────────────────────────────────
   6. Hamburger Menu
───────────────────────────────────────────────────────────── */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(16, 32, 51, 0.06);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.hamburger:hover {
    background: rgba(42, 82, 110, 0.12);
}

.hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-ink-950);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    transform-origin: center;
}

.hamburger.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   7. Language Switcher
───────────────────────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(16, 32, 51, 0.05);
}

.lang-btn {
    min-width: 48px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-muted-strong);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.lang-btn:hover {
    color: var(--color-ink-950);
}

.lang-btn[aria-pressed="true"] {
    background: #b0b0b0;
    color: #fff;
    box-shadow: 0 10px 20px rgba(42, 82, 110, 0.28);
}

/* ─────────────────────────────────────────────────────────────
   8. Home / Posts Section
───────────────────────────────────────────────────────────── */
#home .section-inner,
.home-overview .section-inner {
    display: grid;
    gap: 2rem;
    align-items: start;
}

#home .section-inner::before {
    content: '';
    position: absolute;
    top: 2.4rem;
    right: 0;
    width: min(34vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: none;
    filter: blur(4px);
    pointer-events: none;
}

#home h1 {
    max-width: 11ch;
}

#posts-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: 0.5rem;
}

#posts-container > *:first-child {
    grid-column: span 7;
}

#posts-container > *:not(:first-child) {
    grid-column: span 5;
}

.posts-loading,
.posts-empty,
.posts-error {
    grid-column: 1 / -1;
    padding: 2.25rem;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.68);
    text-align: center;
    color: var(--color-muted);
}

.posts-error {
    color: var(--color-danger);
}

/* ─────────────────────────────────────────────────────────────
   9. Post Card
───────────────────────────────────────────────────────────── */
.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) + 4px);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-accent));
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(42, 82, 110, 0.18);
}

.post-card__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2rem;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-card__title {
    margin-bottom: 0.85rem;
}

.post-card__content {
    color: var(--color-muted-strong);
    font-size: 1rem;
    line-height: 1.75;
    overflow: hidden;
    transition: max-height 320ms ease;
}

.post-card__content.is-collapsed {
    max-height: 168px;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.post-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    color: var(--color-accent-strong);
    font-size: 1rem;
    font-weight: 600;
}

.post-card__toggle:hover {
    color: var(--color-ink-950);
}

/* ─────────────────────────────────────────────────────────────
   10. Products Section
───────────────────────────────────────────────────────────── */
#products,
#services {
    background: transparent;
}

#home .section-inner,
.home-overview .section-inner,
#products .section-inner,
#services .section-inner,
#about .section-inner,
#contact .section-inner {
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
    padding-left: clamp(1.4rem, 3vw, 2.4rem);
    padding-right: clamp(1.4rem, 3vw, 2.4rem);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin-top: 2.4rem;
}

.service-card {
    align-items: center;
    justify-content: center;
    min-height: 140px;
    text-align: center;
}

.service-card h3 {
    margin-bottom: 0;
}

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

/* ─────────────────────────────────────────────────────────────
   11. Product Card
───────────────────────────────────────────────────────────── */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) + 2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.92));
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(42, 82, 110, 0.18);
}

.product-card::after {
    content: none;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card h3 {
    margin-top: 0.1rem;
}

.product-card p {
    flex: 1;
    color: var(--color-muted);
}

.product-card-img-link {
    display: block;
    overflow: hidden;
    border-radius: calc(var(--border-radius) - 2px);
    background: linear-gradient(145deg, #e4edf5, #f8fbfd);
    aspect-ratio: 16 / 10;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

.product-card:hover .product-card-img,
.product-card-img-link:focus .product-card-img {
    transform: scale(1.05);
}

.product-card-link {
    margin-top: auto;
}

/* ─────────────────────────────────────────────────────────────
   11b. Product Detail Page
───────────────────────────────────────────────────────────── */
.product-detail-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.product-detail-page > .section-inner {
    width: min(100% - (var(--gutter) * 2), var(--content-width));
    padding-top: 2rem;
}

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-muted);
    font-size: 0.88rem;
}

.breadcrumb a {
    color: var(--color-accent-strong);
}

.product-detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 238, 244, 0.86));
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.product-detail-hero::before {
    content: '';
    position: absolute;
    top: -12%;
    right: -8%;
    width: min(34vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: none;
}

.product-detail-image {
    position: relative;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.product-detail-image::after {
    content: none;
}

.product-detail-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 8px);
    background: #fff;
}

.product-detail-intro {
    position: relative;
    z-index: 1;
}

.product-detail-intro h1 {
    max-width: 12ch;
}

.service-detail-page .product-detail-hero {
    grid-template-columns: minmax(0, 1fr);
}

.service-detail-page .product-detail-intro h1 {
    max-width: none;
}

/* KI Consulting — two-column hero with image */
.ki-consulting-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center;
}

.ki-hero-image img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* KI Consulting — “Was wir tun” two-column section */
.ki-what-section {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ki-what-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.ki-what-text h2 {
    margin-top: 0;
}

.ki-what-text p {
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.ki-what-text p:last-child {
    margin-bottom: 0;
}

.ki-what-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ki-what-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
    transform: translateY(2rem);
}

.product-detail-lead {
    max-width: 56ch;
    color: var(--color-muted-strong);
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.product-detail-section {
    margin-top: 1.5rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-feature-item {
    min-height: 100%;
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) - 8px);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(232, 238, 244, 0.86));
}

.product-feature-item strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--color-ink-950);
}

.product-feature-item span {
    display: block;
    color: var(--color-muted);
}

.product-page-end-logo {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.25rem 0 0;
}

.product-page-end-logo__image {
    width: min(100%, 560px);
    height: auto;
}

/* ─── Product detail: hero stats, flow diagram, trust band, FAQ, CTA ─── */
.product-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.product-stat {
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) - 8px);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(232, 238, 244, 0.86));
}

.product-stat__value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.product-stat__label {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.bei-flow {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin: 1.25rem 0;
}

.bei-flow__node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 1.1rem;
    text-align: center;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: calc(var(--border-radius) - 8px);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(232, 238, 244, 0.86));
    color: var(--color-muted-strong);
    font-weight: 600;
    line-height: 1.5;
}

.bei-flow__engine {
    background: linear-gradient(135deg, var(--color-ink-900), var(--color-accent));
    color: #fff;
    border-color: transparent;
}

.bei-flow__engine img {
    width: min(100%, 160px);
    height: auto;
    padding: 0.6rem 0.9rem;
    background: #fff;
    border-radius: calc(var(--border-radius) - 12px);
}

.bei-flow__engine-sub {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
}

.bei-flow__arrow {
    align-self: center;
    color: var(--color-accent);
    font-size: 1.6rem;
    font-weight: 700;
}

.product-trust-band {
    margin: 1.5rem 0 0;
    padding: 1rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
    color: var(--color-muted-strong);
    font-weight: 600;
}

.product-faq details {
    border-bottom: 1px solid rgba(16, 32, 51, 0.1);
}

.product-faq details:last-of-type {
    border-bottom: 0;
}

.product-faq summary {
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-ink-950);
    list-style: none;
}

.product-faq summary::-webkit-details-marker {
    display: none;
}

.product-faq summary::after {
    content: "+";
    float: right;
    color: var(--color-accent);
    font-weight: 700;
}

.product-faq details[open] summary::after {
    content: "–";
}

.product-faq details p {
    margin: 0 0 1rem;
    color: var(--color-muted);
    line-height: 1.75;
}

.product-cta-band {
    margin-top: 1.5rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 238, 244, 0.86));
    box-shadow: var(--shadow-sm);
}

.product-cta-band p {
    max-width: 56ch;
    margin: 0.75rem auto 1.5rem;
    color: var(--color-muted-strong);
}

.product-cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 640px) {
    .product-hero-stats {
        grid-template-columns: 1fr;
    }
    .bei-flow {
        flex-direction: column;
    }
    .bei-flow__arrow {
        transform: rotate(90deg);
    }
}

.screenshot-carousel {
    position: relative;
    margin: 1.5rem 0;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.92));
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.screenshot-carousel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.carousel-track {
    display: flex;
    transition: transform 420ms ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img,
.carousel-placeholder {
    width: 100%;
    height: clamp(280px, 48vw, 520px);
    border-radius: calc(var(--border-radius) - 6px);
}

.carousel-slide img {
    object-fit: cover;
}

.carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(16, 32, 51, 0.16);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(232, 238, 244, 0.9));
    color: var(--color-muted-strong);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.carousel-btn--prev {
    left: 1.1rem;
}

.carousel-btn--next {
    right: 1.1rem;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.carousel-dot[aria-selected="true"] {
    background: var(--color-highlight);
    transform: scale(1.25);
}

/* ─────────────────────────────────────────────────────────────
   12. About Us Section
───────────────────────────────────────────────────────────── */
#about {
    background: transparent;
}

.mission-vision {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: var(--grid-gap);
    margin-top: 2.25rem;
    margin-bottom: 2.25rem;
}

.about-intro,
.mission,
.vision {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: #EBF0F5;
    box-shadow: var(--shadow-sm);
}

.about-intro::before,
.mission::before,
.vision::before {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 174, 197, 0.18), transparent 70%);
}

.about-intro h3,
.mission h3,
.vision h3 {
    color: var(--color-ink-950);
}

.about-intro p,
.mission p,
.vision p {
    color: var(--color-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

/* ─────────────────────────────────────────────────────────────
   13. Employee Card
───────────────────────────────────────────────────────────── */
.employee-card {
    padding: 1.7rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
}

.employee-avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 28px rgba(42, 82, 110, 0.22);
}

.employee-name {
    font-weight: 700;
    color: var(--color-ink-950);
    margin-bottom: 0.15rem;
}

.employee-title {
    color: var(--color-accent-strong);
    font-size: 0.92rem;
    font-weight: 600;
}

.employee-card p:not(.employee-name):not(.employee-title) {
    color: var(--color-muted);
}

/* ─────────────────────────────────────────────────────────────
   14. Contact Form
───────────────────────────────────────────────────────────── */
#contact {
    background: transparent;
}

#contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 2.25rem;
}

#contact-form .form-group--message,
#contact-form .form-group--checkbox,
#contact-form > .btn,
#contact-feedback {
    grid-column: 1 / -1;
}

#contact-form .form-group--product {
    max-width: 22rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-muted-strong);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(16, 32, 51, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(42, 82, 110, 0.42);
    box-shadow: 0 0 0 5px rgba(42, 82, 110, 0.12);
}

#contact-form .form-group--checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.25rem;
}

#contact-form .form-group--checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0;
    accent-color: var(--color-accent);
}

#contact-form .form-group--checkbox label {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.form-feedback {
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.form-feedback--success {
    background: rgba(42, 82, 110, 0.1);
    border-color: rgba(42, 82, 110, 0.18);
    color: var(--color-success);
}

.form-feedback--error {
    background: rgba(191, 63, 48, 0.1);
    border-color: rgba(191, 63, 48, 0.18);
    color: var(--color-danger);
}

.form-feedback--info {
    background: rgba(12, 106, 201, 0.1);
    border-color: rgba(12, 106, 201, 0.18);
    color: var(--color-info);
}

/* ─────────────────────────────────────────────────────────────
   15. Buttons
───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(42, 82, 110, 0.28);
    outline-offset: 3px;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
    box-shadow: 0 14px 26px rgba(42, 82, 110, 0.22);
}

.btn--primary:hover {
    box-shadow: 0 18px 34px rgba(42, 82, 110, 0.3);
}

.btn--ghost {
    color: var(--color-ink-950);
    border-color: rgba(16, 32, 51, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.btn--ghost:hover {
    background: rgba(16, 32, 51, 0.06);
}

.btn--danger {
    color: #fff;
    background: linear-gradient(135deg, #d35445, #b63c2e);
    box-shadow: 0 12px 24px rgba(191, 63, 48, 0.18);
}

.btn--sm {
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
}

/* ─────────────────────────────────────────────────────────────
   16. Footer
───────────────────────────────────────────────────────────── */
#site-footer {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 3rem;
    background: var(--color-accent);
    color: rgba(255, 255, 255, 0.88);
}

#site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   17. Cookie Consent Banner
───────────────────────────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background: rgba(9, 17, 29, 0.92);
    color: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

#cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__text a {
    color: #fff;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
}

#cookie-banner .btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
}

#cookie-banner .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ─────────────────────────────────────────────────────────────
   18. Legal Pages (Impressum, Datenschutz)
───────────────────────────────────────────────────────────── */
.legal-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.legal-page > .section-inner {
    width: min(100% - (var(--gutter) * 2), var(--content-narrow));
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-md);
}

.legal-page h1 {
    margin-bottom: 1.75rem;
}

.legal-block {
    padding-top: 1.4rem;
    margin-top: 1.4rem;
    border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.legal-block:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.legal-page h2 {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
}

.legal-page p,
.legal-page li,
.legal-page address {
    color: var(--color-muted-strong);
}

.legal-intro {
    padding: 1.2rem 1.3rem;
    border-radius: 22px;
    background: rgba(42, 82, 110, 0.08);
    color: var(--color-ink-900);
}

.legal-list {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0.9rem 0;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--color-accent-strong);
}

.blog-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.blog-page > .section-inner {
    width: min(100% - (var(--gutter) * 2), var(--max-width));
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

.blog-page__intro {
    margin-bottom: 2rem;
    padding: clamp(1.4rem, 3vw, 2.1rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 238, 244, 0.86));
    box-shadow: var(--shadow-md);
}

.blog-page__eyebrow {
    margin-bottom: 0.65rem;
    color: var(--color-accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-page__intro h1 {
    margin-bottom: 0.8rem;
}

.blog-page__lead {
    max-width: 58ch;
    color: var(--color-muted-strong);
    font-size: 1.02rem;
}

.blog-page #posts-container {
    margin-top: 0;
}

/* ─────────────────────────────────────────────────────────────
   19. Admin – Shared
───────────────────────────────────────────────────────────── */
.admin-body {
    background: linear-gradient(180deg, #eef4f8 0%, #e3ebf2 100%);
    color: var(--color-text);
    min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────
   20. Admin – Login Page
───────────────────────────────────────────────────────────── */
.admin-login {
    width: min(100% - 2rem, 460px);
    margin: clamp(3rem, 8vw, 7rem) auto 0;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.admin-login h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 1.4rem;
}

.admin-login .form-group {
    margin-bottom: 1rem;
}

.admin-login .btn {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   21. Admin – Dashboard
───────────────────────────────────────────────────────────── */
.admin-header {
    width: min(100% - 2rem, var(--max-width));
    margin: 1rem auto 0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.admin-header h1 {
    font-size: 1.6rem;
    margin: 0;
}

.admin-main {
    width: min(100% - 2rem, var(--max-width));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.admin-post-list,
.admin-post-form {
    padding: 1.5rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.admin-post-list h2,
.admin-post-form h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid rgba(16, 32, 51, 0.08);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-table tbody tr:hover {
    background: rgba(16, 32, 51, 0.03);
}

.admin-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-post-form .form-group {
    margin-bottom: 1rem;
}

#quill-editor {
    min-height: 220px;
    border: 1px solid rgba(16, 32, 51, 0.12);
    border-top: none;
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, 0.96);
}

.ql-toolbar {
    border-radius: 20px 20px 0 0;
    border-color: rgba(16, 32, 51, 0.12) !important;
}

.ql-container {
    border-color: rgba(16, 32, 51, 0.12) !important;
    font-family: var(--font-sans);
}

.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

/* ─────────────────────────────────────────────────────────────
   22. Motion Hooks
───────────────────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 480ms ease, transform 480ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   23. Responsive – Tablet (max-width: 960px)
───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    #posts-container,
    .admin-main,
    .product-features,
    .mission-vision,
    .products-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    #posts-container > *:first-child,
    #posts-container > *:not(:first-child) {
        grid-column: 1 / -1;
    }

    .product-detail-hero {
        grid-template-columns: 1fr;
    }

    .ki-consulting-hero {
        grid-template-columns: 1fr !important;
    }

    .ki-what-grid {
        grid-template-columns: 1fr;
    }

    #contact-form {
        grid-template-columns: 1fr;
    }

    #contact-form .form-group--product {
        max-width: none;
    }
}

/* ─────────────────────────────────────────────────────────────
   24. Responsive – Tablet (max-width: 768px)
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --gutter: 1rem;
        --section-space: 3.5rem;
    }

    #top-ribbon {
        padding: 0.75rem 0;
    }

    .ribbon-inner {
        grid-template-columns: auto auto auto;
        border-radius: 28px;
    }

    .hamburger {
        display: inline-flex;
        justify-self: end;
    }

    #main-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        display: none;
        justify-self: stretch;
        padding: 0.8rem;
        border: 1px solid rgba(16, 32, 51, 0.08);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-md);
    }

    #main-nav.is-open {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    #main-nav a {
        justify-content: flex-start;
        padding-left: 0.9rem;
    }

    .lang-switcher {
        justify-self: center;
    }

    #products .section-inner,
    #about .section-inner,
    #contact .section-inner,
    .legal-page > .section-inner,
    .blog-page > .section-inner,
    .product-detail-hero,
    .screenshot-carousel,
    .admin-header,
    .admin-post-list,
    .admin-post-form,
    .admin-login {
        border-radius: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    #cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-banner__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .cookie-banner__actions .btn {
        flex: 1 1 180px;
    }
}

/* ─────────────────────────────────────────────────────────────
   25. Responsive – Mobile (max-width: 540px)
───────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .ribbon-inner {
        grid-template-columns: 1fr auto;
        gap: 0.8rem;
        padding: 0.8rem 0.9rem;
    }

    .logo {
        height: 42px;
    }

    .lang-switcher {
        grid-column: 1 / -1;
        justify-self: start;
    }

    #main-nav {
        top: calc(100% + 0.5rem);
    }

    .post-card__body,
    .mission,
    .vision,
    .employee-card,
    .admin-post-list,
    .admin-post-form,
    .admin-login {
        padding: 1.2rem;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .carousel-btn--prev {
        left: 0.75rem;
    }

    .carousel-btn--next {
        right: 0.75rem;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;
    }

    .admin-form-actions,
    .admin-table__actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}/* =============================================================
   style.css — exlyr technologies
   =============================================================
   TABLE OF CONTENTS
   1.  CSS Custom Properties (Variables)
   2.  CSS Reset
   3.  Typography
   4.  Layout Helpers
   5.  Top Ribbon / Navigation
   6.  Hamburger Menu
   7.  Language Switcher
   8.  Home / Posts Section
   9.  Post Card
   10. Products Section
   11. Product Card
   12. About Us Section
   13. Employee Card
   14. Contact Form
   15. Buttons
   16. Footer
   17. Cookie Consent Banner
   18. Legal Pages (Impressum, Datenschutz)
   19. Admin – Shared
   20. Admin – Login Page
   21. Admin – Dashboard
   22. Responsive – Tablet  (max-width: 768px)
   23. Responsive – Mobile  (max-width: 480px)
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   1. CSS Custom Properties
───────────────────────────────────────────────────────────── */
:root {
    --color-primary:       #2A526E;
    --color-primary-dark:  #2A526E;
    --color-primary-light: #2A526E;
    --color-bg:            #fff;
    --color-bg-alt:        #f8f8fc;
    --color-text:          #1a1a2e;
    --color-muted:         #888;
    --color-border:        #e0e0f0;
    --ribbon-height:       64px;
    --border-radius:       8px;
    --shadow-sm:           0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:           0 4px 16px rgba(0, 0, 0, 0.12);
    --transition-fast:     all 0.18s ease;
    --max-width:           1100px;
    --gutter:              1.5rem;
}

/* ─────────────────────────────────────────────────────────────
   2. CSS Reset
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea, button {
    font: inherit;
}

/* ─────────────────────────────────────────────────────────────
   3. Typography
───────────────────────────────────────────────────────────── */
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
}

h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem; }

h1,
h2,
h3 {
    font-family: var(--font-display);
}

p {
    margin-bottom: 1rem;
}
p:last-child {
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────
   4. Layout Helpers
───────────────────────────────────────────────────────────── */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

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

/* ─────────────────────────────────────────────────────────────
   5. Top Ribbon / Navigation
───────────────────────────────────────────────────────────── */
#top-ribbon {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ribbon-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 150px;
    height: 62px;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

#main-nav li,
#main-nav .nav-dropdown {
    display: flex;
    align-items: center;
}

#main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    border-radius: 4px;
    position: relative;
    transition: var(--transition-fast);
}

#main-nav .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    border-radius: 4px;
    position: relative;
    transition: var(--transition-fast);
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.18s ease;
}

#main-nav .nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.18s ease;
}

#main-nav a:hover,
#main-nav a.is-active {
    color: var(--color-primary);
}

#main-nav .nav-dropdown-toggle:hover,
#main-nav .nav-dropdown-toggle:focus-visible,
#main-nav .nav-dropdown-toggle[aria-expanded="true"] {
    color: var(--color-primary);
}

#main-nav a:hover::after,
#main-nav a.is-active::after {
    transform: scaleX(1);
}

#main-nav .nav-dropdown-toggle:hover::after,
#main-nav .nav-dropdown-toggle:focus-visible::after,
#main-nav .nav-dropdown-toggle[aria-expanded="true"]::after {
    transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────
   6. Hamburger Menu
───────────────────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.hamburger:hover {
    background: rgba(95, 99, 194, 0.08);
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: center;
}

/* Animate to X when open */
.hamburger.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   7. Language Switcher
───────────────────────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.lang-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text);
    letter-spacing: 0.04em;
    transition: var(--transition-fast);
    cursor: pointer;
    background: transparent;
}

.lang-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.lang-btn[aria-pressed="true"] {
    background: #b0b0b0;
    border-color: #b0b0b0;
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   8. Home / Posts Section
───────────────────────────────────────────────────────────── */
#home {
    background: var(--color-bg);
}

#posts-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.posts-loading,
.posts-empty,
.posts-error {
    text-align: center;
    padding: 3rem;
    color: var(--color-muted);
    font-size: 1rem;
}

.posts-error {
    color: #c0392b;
}

/* ─────────────────────────────────────────────────────────────
   9. Post Card
───────────────────────────────────────────────────────────── */
.post-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-card__body {
    padding: 1.5rem;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.post-card__date {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.post-card__author {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-style: italic;
}

.post-card__title {
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.post-card__content {
    font-size: 0.95rem;
    line-height: 1.7;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.post-card__content a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
    text-decoration-color: rgba(26, 60, 92, 0.35);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-card__content a:hover,
.post-card__content a:focus-visible {
    color: var(--color-primary-dark);
    text-decoration-color: currentColor;
}

.post-card__content.is-collapsed {
    max-height: 120px;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.post-card__toggle {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.post-card__toggle:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   10. Products Section
───────────────────────────────────────────────────────────── */
#products {
    background: var(--color-bg-alt);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* ─────────────────────────────────────────────────────────────
   11. Product Card
───────────────────────────────────────────────────────────── */
.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.product-card:hover,
.product-card:focus-visible {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.product-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.product-image-placeholder svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.product-card h3 {
    margin: 0;
    color: var(--color-text);
}

.product-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.product-card-img-link {
    display: block;
    border-radius: calc(var(--border-radius) - 2px);
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
    background: transparent;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img,
.product-card:focus-visible .product-card-img {
    transform: scale(1.04);
}

/* ─────────────────────────────────────────────────────────────
   11b. Product Detail Page
───────────────────────────────────────────────────────────── */
.product-detail-page {
    padding-top: var(--ribbon-height);
    padding-bottom: 1.25rem;
}

.product-detail-page > .section-inner {
    padding-top: 2rem;
    padding-bottom: 1.25rem;
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    width: 100%;
    background: var(--color-bg);
    overflow: hidden;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-top: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
}

.screenshot-carousel--contain .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1890 / 880;
    background: var(--color-bg-alt);
}

.carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.screenshot-carousel--contain .carousel-slide img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-placeholder {
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    color: var(--color-muted);
    font-size: 1rem;
    letter-spacing: 0.04em;
    border: 2px dashed var(--color-border);
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    padding: 0;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-btn--prev { left: 1rem; }
.carousel-btn--next { right: 1rem; }

.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.carousel-dot[aria-selected="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.carousel-lightbox-open {
    overflow: hidden;
}

.carousel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.carousel-lightbox[hidden] {
    display: none;
}

.carousel-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 24, 0.82);
    backdrop-filter: blur(8px);
}

.carousel-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(98vw, 1680px);
    max-height: 98vh;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(12, 18, 28, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.carousel-lightbox__image {
    display: block;
    max-width: min(97vw, 1600px);
    max-height: calc(98vh - 3rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.carousel-lightbox__caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    text-align: center;
}

.carousel-lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 18, 28, 0.72);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.carousel-lightbox__close:hover {
    background: rgba(12, 18, 28, 0.88);
}

.carousel-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 18, 28, 0.72);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.carousel-lightbox__nav:hover {
    background: rgba(12, 18, 28, 0.88);
}

.carousel-lightbox__nav--prev {
    left: 0.75rem;
}

.carousel-lightbox__nav--next {
    right: 0.75rem;
}

@media (max-width: 600px) {
    .carousel-slide img,
    .carousel-placeholder {
        height: 220px;
    }
    .screenshot-carousel--contain .carousel-slide {
        min-height: 220px;
    }
    .screenshot-carousel--contain .carousel-slide img {
        height: 220px;
        max-height: 220px;
    }
    .carousel-btn { width: 36px; height: 36px; }
    .carousel-lightbox {
        padding: 1rem;
    }
    .carousel-lightbox__dialog {
        width: 100%;
        padding: 0.75rem;
    }
    .carousel-lightbox__image {
        max-width: 100%;
    }
    .carousel-lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.75rem;
    }
    .carousel-lightbox__nav--prev {
        left: 0.5rem;
    }
    .carousel-lightbox__nav--next {
        right: 0.5rem;
    }
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.product-detail-image img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: contain;
    box-shadow: none;
    max-height: 400px;
    background: transparent;
}

.product-detail-intro h1 {
    margin-bottom: 1rem;
}

.product-detail-lead {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.product-detail-section {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.product-detail-section h2 {
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.product-feature-item {
    margin-bottom: 1rem;
}

.product-feature-item strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.product-feature-item span {
    display: block;
}

@media (max-width: 768px) {
    .product-detail-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────
   12. About Us Section
───────────────────────────────────────────────────────────── */
#about {
    background: var(--color-bg);
}

.about-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--color-muted);
    line-height: 1.7;
}

.mission-vision {
    display: grid;
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.mission,
.vision {
    padding: 1.5rem 2rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.mission h3,
.vision h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    text-align: center;
}

.mission p,
.vision p {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ─────────────────────────────────────────────────────────────
   13. Employee Card
───────────────────────────────────────────────────────────── */
.employee-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.employee-media {
    aspect-ratio: 3 / 4;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(42, 82, 110, 0.08), rgba(42, 82, 110, 0.02));
}

.employee-media--photo {
    padding: 0;
    background: transparent;
}

.employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    letter-spacing: 0.05em;
    user-select: none;
}

.employee-avatar--photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    background: #fff;
    color: inherit;
}

.employee-info {
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 1.2rem 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    background: rgba(42, 82, 110, 0.05);
}

.employee-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.employee-role,
.employee-title {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.employee-title:empty {
    display: none;
}

.employee-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.employee-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   14. Contact Form
───────────────────────────────────────────────────────────── */
#contact {
    background: var(--color-bg-alt);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(95, 99, 194, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group--checkbox input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin-top: 0.15em;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-group--checkbox label {
    font-weight: 400;
    cursor: pointer;
}

/* Honeypot – visually hidden but not display:none to fool bots */
.field--honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.form-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-feedback {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-feedback--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-feedback--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-feedback--info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* ─────────────────────────────────────────────────────────────
   15. Buttons
───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Primary */
.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-sm);
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--ghost:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Danger */
.btn--danger {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.btn--danger:hover {
    background: #a93226;
    border-color: #a93226;
}

/* Small modifier */
.btn--sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
}

/* ─────────────────────────────────────────────────────────────
   16. Footer
───────────────────────────────────────────────────────────── */
#site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.88);
    padding: 2rem 0;
    font-size: 0.875rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-copy {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.footer-social a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.footer-social svg {
    width: 1.15rem;
    height: 1.15rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    margin-left: clamp(1rem, 3vw, 2.5rem);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   17. Cookie Consent Banner
───────────────────────────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 9999;
    font-size: 0.875rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

#cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: #fff;
    font-weight: 600;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   18. Legal Pages (Impressum, Datenschutz)
───────────────────────────────────────────────────────────── */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--ribbon-height) + 3rem) var(--gutter) 4rem;
    line-height: 1.8;
}

.legal-page h1 {
    margin-bottom: 2rem;
}

.legal-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--color-primary);
}

.legal-page p,
.legal-page address {
    font-style: normal;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.legal-page a {
    color: var(--color-primary);
}

.legal-intro {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--color-muted);
    margin: 0.75rem 0 0.75rem;
    line-height: 1.8;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────
   19. Admin – Shared
───────────────────────────────────────────────────────────── */
.admin-body {
    background: #f5f5f7;
    color: var(--color-text);
    min-height: 100vh;
}

/* ─────────────────────────────────────────────────────────────
   20. Admin – Login Page
───────────────────────────────────────────────────────────── */
.admin-login {
    max-width: 380px;
    margin: 8rem auto 0;
    padding: 2.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.admin-login h1 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.admin-login .form-group {
    margin-bottom: 1.25rem;
}

.admin-login .btn {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   21. Admin – Dashboard
───────────────────────────────────────────────────────────── */
.admin-header {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
}

.admin-header .btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.admin-header .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.admin-post-list,
.admin-post-form {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
}

.admin-post-list h2,
.admin-post-form h2 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    background: #f9f9fb;
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.admin-table__actions {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-post-form .form-group {
    margin-bottom: 1.1rem;
}

/* Quill editor container */
#quill-editor {
    min-height: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.ql-toolbar {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.admin-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ─────────────────────────────────────────────────────────────
   22. Responsive – Tablet (max-width: 768px)
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Navigation */
    #main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem var(--gutter);
        gap: 0;
        display: none;
    }

    #main-nav.is-open {
        display: flex;
    }

    #main-nav a {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    #main-nav a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    /* Grids collapse to 1 column */
    .products-grid,
    .team-grid,
    .mission-vision {
        grid-template-columns: 1fr;
    }

    /* Footer stacks */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-nav {
        justify-content: center;
        margin-left: 0;
    }

    /* Cookie banner stacks */
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    /* Admin dashboard */
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────
   23. Responsive – Mobile (max-width: 480px)
───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    :root {
        --gutter: 1rem;
    }

    .section-inner {
        padding: 3rem var(--gutter);
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

    /* Admin login */
    .admin-login {
        margin: 3rem auto 0;
        padding: 1.5rem;
    }

    /* Admin table: compact */
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .admin-table__actions {
        flex-direction: column;
    }
}

/* ─────────────────────────────────────────────────────────────
   Overrides (last wins — robust against the duplicated blocks above)
───────────────────────────────────────────────────────────── */

/* Mission card: same card treatment as the product/how/pilot cards
   (gradient, subtle border, soft shadow) so it matches the rest of the page. */
.mission {
    padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, rgba(244, 248, 251, 0.96), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(42, 82, 110, 0.18);
    border-radius: calc(var(--border-radius, 12px) + 4px);
    box-shadow: var(--shadow-md);
}
.mission::before {
    content: none;
}

/* Round all remaining square frames. */
.product-detail-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Contact product selection: exlyr grey #B0B0B0. */
#contact-product {
    border-color: #B0B0B0;
}

/* Anchor target #mission-card is a <div>, not a section[id] —
   give it the same header offset so "Über exlyr" lands at the card top. */
#mission-card {
    scroll-margin-top: calc(var(--ribbon-height) + 1rem);
}

/* Bilingual legal pages: show the block matching the active <html lang>.
   main.js sets document.documentElement.lang on language switch. */
[data-lang-content] { display: none; }
html[lang="de"] [data-lang-content="de"],
html[lang="en"] [data-lang-content="en"] { display: block; }

/* Team photos linking to LinkedIn: keep the image flush, show it's clickable. */
.employee-media a { display: block; cursor: pointer; }

/* BEI positioning claim — statement panel in the site's tile style. */
.product-claim {
    position: relative;
    max-width: var(--content-narrow);
    margin: clamp(2.5rem, 6vw, 4rem) auto;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
    background: #EBF0F5;
    border: none;
    border-radius: var(--border-radius-lg);
    text-align: center;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-accent);
}

/* Service card icons (homepage services grid). */
.service-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.9rem;
    flex: none;
}

/* ============================================================
   Mobile optimisation (appended last — wins over the duplicated
   blocks above). Fixes: overflowing headline, burger menu +
   nested dropdowns, two-column heroes, single-column layout.
   ============================================================ */

/* Never allow sideways scrolling; keep media inside their boxes. */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; }

@media (max-width: 900px) {
    /* ---- Burger + mobile nav overlay ---- */
    .hamburger { display: flex; }

    #main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 12px 24px rgba(9, 17, 29, 0.14);
        padding: 0.25rem var(--gutter) 1rem;
        display: none;
        max-height: calc(100vh - var(--ribbon-height));
        overflow-y: auto;
        z-index: 200;
    }
    #main-nav.is-open { display: block; }

    #main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    #main-nav li,
    #main-nav .nav-dropdown {
        display: block;
        width: 100%;
    }
    #main-nav a,
    #main-nav .nav-dropdown-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        font-size: 1rem;
    }
    /* Sub-menus (Produkte / Dienstleistungen) expand inline, not floating */
    #main-nav .nav-dropdown-menu {
        position: static;
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 0.25rem 1rem;
    }
    #main-nav .nav-dropdown-menu.is-open { display: block; }
    #main-nav .nav-dropdown-menu a {
        border-bottom: none;
        padding: 0.6rem 0.25rem;
        font-weight: 500;
    }
    /* Drop the desktop hover underline on mobile */
    #main-nav a::after,
    #main-nav .nav-dropdown-toggle::after { display: none; }

    /* ---- Headline must wrap instead of overflowing the card ---- */
    #home .home-intro-card__headline {
        white-space: normal !important;
    }

    /* ---- Everything collapses to one column ---- */
    .products-grid,
    .services-grid,
    .team-grid,
    .mission-vision,
    .product-detail-hero,
    .ki-consulting-hero,
    .ki-what-grid {
        grid-template-columns: 1fr !important;
    }

    /* No staggered offset on mobile — it pushed the image past the card edge. */
    .ki-what-image img {
        transform: none !important;
    }

    /* ---- Hard stop against any text leaving its container ---- */
    .home-intro-card,
    .product-card,
    .product-detail-section,
    .post-card__content,
    .legal-block,
    .product-claim,
    h1, h2, h3, p, li {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .logo-link { width: 124px; height: 52px; }
    .ribbon-inner { padding: 0 1rem; gap: 0.5rem; }
    .lang-btn { padding: 0.3rem 0.5rem; }
    .product-detail-image img,
    .ki-hero-image img { max-height: 280px; }
    .home-intro-card__headline { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* Datenprozesse service hero illustration (transparent, shown in full). */
.datenprozesse-hero-image img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* ============================================================
   Brand energy pass — distinctive hero, lively CTAs, motion.
   Appended last so it wins over the duplicated blocks above.
   ============================================================ */
:root {
    --brand-gradient: linear-gradient(120deg, #2A526E 0%, #11897A 100%);
    --color-cta: #11897A;
}

/* ---- Hero ---- */
.hero {
    display: grid;
    /* text takes the flexible space; visual is a narrow column matching the smaller logo */
    grid-template-columns: minmax(0, 1fr) clamp(220px, 26vw, 320px);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    width: 100%;
    padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}
.hero__text {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    text-align: left;
}
.hero__headline {
    margin: 0;
    max-width: 30ch;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: normal;
    text-wrap: balance;
    color: var(--color-ink-950);
}
.hero__lead {
    margin: 0;
    max-width: 54ch;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.5;
    color: var(--color-muted-strong);
}
.hero__sub {
    margin: 0;
    max-width: 54ch;
    color: var(--color-muted);
    line-height: 1.5;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.6rem;
}
.hero__visual {
    position: relative;
}
/* soft brand glow behind the illustration so it doesn't sit flat */
.hero__visual::before {
    content: "";
    position: absolute;
    inset: -8% -4% -8% 4%;
    background: radial-gradient(58% 58% at 62% 42%, rgba(17, 137, 122, 0.20), rgba(42, 82, 110, 0.10) 45%, transparent 72%);
    filter: blur(18px);
    z-index: 0;
}
.hero__visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 390px;
    height: auto;
    margin-inline: auto;
    display: block;
    animation: hero-float 8s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    25%      { transform: translateY(-24px); }
    75%      { transform: translateY(24px); }
}

/* ---- Lively primary CTA (brand gradient) ---- */
.btn--primary {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 137, 122, 0.22);
}
.btn--primary:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(17, 137, 122, 0.30);
}
.btn--lg {
    padding: 0.9rem 1.7rem;
    font-size: 1.05rem;
    border-radius: 999px;
}
.btn--ghost.btn--lg {
    border-radius: 999px;
}

/* ---- Cards feel interactive ---- */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ---- Mobile: hero stacks, centred ---- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .hero__text { text-align: center; align-items: center; }
    .hero__headline { max-width: none; }
    .hero__lead, .hero__sub { max-width: 60ch; }
    .hero__actions { justify-content: center; }
    /* headline first on mobile; icon is decorative, keep it small below the message */
    .hero__visual { order: 1; max-width: 200px; margin: 0.5rem auto 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__visual img { animation: none; }
}

/* iSAQB certification badge in the Software-Architektur qualification block. */
.qualification-row {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}
.cert-badge {
    flex: none;
    width: clamp(96px, 12vw, 128px);
    height: auto;
}
@media (max-width: 560px) {
    .qualification-row { flex-direction: column; text-align: center; }
}

/* Override the legacy #home h1 width cap for the new hero headline. */
#home .hero__headline { max-width: 18ch; }
@media (max-width: 900px) {
    #home .hero__headline { max-width: none; }
}

/* ============================================================
   OPEN CANVAS — less boxing, more air (chosen direction).
   Whitespace ≥30% → lower cognitive load + premium feel.
   Cards de-boxed; they "lift into focus" on hover (Von Restorff).
   ============================================================ */

:root { --grid-gap: clamp(1.75rem, 3vw, 2.75rem); }

/* Generous vertical rhythm on desktop (mobile stays compact). */
@media (min-width: 768px) {
    .section-inner { padding: clamp(5rem, 9vw, 8.5rem) 1.5rem; }
    #home .section-inner { padding-top: clamp(3.5rem, 7vw, 6rem); }
}

/* Section labels become quiet eyebrows — grouping by space, not size. */
#products-heading,
#services-heading {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* Airy product/service cards: no heavy fill; surface appears on focus. */
.products-grid,
.services-grid { gap: clamp(1.75rem, 3vw, 2.75rem); }

.product-card {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: clamp(1.85rem, 3vw, 2.6rem);
    box-shadow: none;
}
.product-card:hover,
.product-card:focus-visible {
    background: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

/* Calm, readable detail pages: limited line length + open leading. */
.product-detail-section p,
.product-detail-section li,
.legal-block p {
    max-width: 70ch;
    line-height: 1.75;
}
.product-detail-section { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* A touch more air under the hero before the first section. */
#home + #products .section-inner { padding-top: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   ROOT FIX: the section containers themselves were big white
   tiles (border + bg + shadow + blur) — that's why everything
   "hung in a card". De-box them so content sits free on the
   page. Contact keeps a subtle card (forms read better framed).
   ============================================================ */
#home .section-inner,
.home-overview .section-inner,
#products .section-inner,
#services .section-inner,
#about .section-inner {
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

/* ============================================================
   Hero as a FULL-WIDTH band: move the grey panel from the
   centred inner container onto the section itself, so it spans
   edge-to-edge instead of floating as a rounded card.
   ============================================================ */
section#home {
    background: #EBF0F5;
}
section#home > .section-inner {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* ============================================================
   Consistent full-width section bands (alternating rhythm):
   hero (grey) · products (light) · services (grey) ·
   about (light) · contact (grey). Backgrounds sit on the
   section so they span edge-to-edge; content stays centred.
   ============================================================ */
section#services,
section#contact {
    background: #EBF0F5;
}
section#services > .section-inner,
section#contact > .section-inner {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* ============================================================
   Let content use the new full-width bands — wider container,
   larger hero type, so text doesn't sit squeezed in the middle.
   ============================================================ */
.section-inner { max-width: 1280px; }

@media (min-width: 901px) {
    .hero {
        grid-template-columns: 1.12fr 0.88fr;
        gap: clamp(2.5rem, 5vw, 5rem);
    }
    .hero__headline { font-size: clamp(2.4rem, 4.4vw, 3.8rem); max-width: 15ch; }
    .hero__lead     { font-size: clamp(1.15rem, 1.5vw, 1.4rem); max-width: 56ch; }
    .hero__sub      { font-size: 1.05rem; }
}

/* Three products (BEI is the flagship above) in one centred row on wide screens. */
@media (min-width: 901px) {
    #products .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   Consistency: one shared content container (.section-inner)
   used by every page → widen it so content fills the new
   full-width bands instead of sitting squeezed in the middle.
   Body text stays readable (capped per-paragraph elsewhere).
   ============================================================ */
.section-inner { max-width: 1500px; }

/* Use the real screen width on large monitors (was capped at 1500,
   leaving products squeezed in a narrow centre column). */
.section-inner { max-width: min(94vw, 1680px); }
.product-card { padding: clamp(1.5rem, 2.4vw, 2.2rem); }

/* REAL FIX: .section-inner had an explicit `width: min(100%-gutter,
   var(--max-width))` (~1100px) — a hard width, not max-width, so the
   earlier max-width bumps did nothing. Override the width itself. */
.section-inner {
    width: min(95vw, 1680px);
    max-width: none;
}

/* ============================================================
   Team photos: the LinkedIn <a> wrapper had no height, so the
   image's height:100% collapsed (Marcel got letter-boxed).
   Make the link fill the square media box → both photos cover
   identically (same format).
   ============================================================ */
.employee-media a,
.employee-photo-link {
    display: block;
    width: 100%;
    height: 100%;
}
.employee-avatar--photo { object-position: center 25%; }

/* Mission: single column using the full card width, centred, heading on top. */
.mission-vision { grid-template-columns: minmax(0, 1fr); }
.mission {
    padding: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
}
.mission h3 {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.mission p {
    max-width: none;
    margin: 0 0 1rem;
    text-align: center;
}
.mission p:last-child { margin-bottom: 0; }

/* ============================================================
   Service detail pages: centre the text in image-less sections
   (and their feature tiles). Sections paired with a side image
   (hero, KI "Was wir tun", iSAQB qualification) stay left.
   ============================================================ */
.service-detail-page .product-detail-section { text-align: center; }
.service-detail-page .product-detail-section p { margin-left: auto; margin-right: auto; }

.service-detail-page .ki-what-section,
.service-detail-page .product-detail-section:has(.qualification-row) { text-align: left; }
.service-detail-page .ki-what-section p,
.service-detail-page .product-detail-section:has(.qualification-row) p { margin-left: 0; margin-right: 0; }

/* ============================================================
   Products: same centred treatment as services for image-less
   sections/tiles (overview text + feature tiles). Hero (logo)
   and screenshot carousels aren't .product-detail-section, so
   they're unaffected. Re-assert image-paired exclusions last.
   ============================================================ */
.product-detail-page .product-detail-section { text-align: center; }
.product-detail-page .product-detail-section p { margin-left: auto; margin-right: auto; }

.service-detail-page .ki-what-section,
.product-detail-page .product-detail-section:has(.qualification-row) { text-align: left; }
.service-detail-page .ki-what-section p,
.product-detail-page .product-detail-section:has(.qualification-row) p { margin-left: 0; margin-right: 0; }

/* ============================================================
   Hero: give the text the room it now has (smaller visual).
   Wider text column, smaller capped visual, looser headline.
   ============================================================ */
@media (min-width: 901px) {
    .hero {
        grid-template-columns: 1.35fr 0.65fr;
        gap: clamp(1rem, 2vw, 2rem);
        align-items: center;
    }
    .hero__visual { max-width: 480px; justify-self: start; width: fit-content; }
    .hero__headline { max-width: 20ch; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1.05; }
    .hero__lead { max-width: 64ch; font-size: clamp(1.18rem, 1.5vw, 1.45rem); }
    .hero__sub  { max-width: 64ch; font-size: 1.08rem; }
}

/* ─────────────────────────────────────────────────────────────
   Flagship product (V.L.E.X.A BEI) — elevated above the grid
───────────────────────────────────────────────────────────── */
.product-flagship {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-top: 2.4rem;
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    border: 1px solid rgba(42, 82, 110, 0.18);
    border-radius: calc(var(--border-radius) + 4px);
    background: linear-gradient(135deg, rgba(244, 248, 251, 0.96), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}
.product-flagship:hover,
.product-flagship:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg, var(--shadow-md));
    border-color: rgba(42, 82, 110, 0.35);
}
.product-flagship__visual {
    overflow: hidden;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, #e4edf5, #f8fbfd);
    aspect-ratio: 16 / 10;
}
.product-flagship__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(1rem, 3vw, 2rem);
    transition: transform 360ms ease;
}
.product-flagship:hover .product-flagship__visual img {
    transform: scale(1.04);
}
.product-flagship__body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.product-flagship__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-accent, #2a526e);
}
.product-flagship__body h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.product-flagship__body p {
    margin: 0;
    color: var(--color-muted);
}
.product-flagship__cta {
    margin-top: 0.4rem;
    font-weight: 600;
    color: var(--color-accent, #2a526e);
}
.product-flagship__cta::after { content: " \2192"; }

@media (max-width: 760px) {
    .product-flagship {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────
   Hero trust signals · How it works · Stat strip · Pilot band
───────────────────────────────────────────────────────────── */
.hero__trust {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent, #2a526e);
}

/* "Free first consultation" notes (hero + pilot band) */
.hero__cta-note {
    margin: 0.9rem 0 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-accent, #2a526e);
}
.pilot-card__note {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent, #2a526e);
}

.section-lead {
    max-width: 60ch;
    margin: 0.4rem 0 0;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap, 1.5rem);
    margin-top: 2rem;
}
.how-step {
    padding: 1.5rem;
    border: 1px solid rgba(16, 32, 51, 0.08);
    border-radius: var(--border-radius, 12px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.92));
    box-shadow: var(--shadow-sm);
}
.how-step h3 { margin: 0 0 0.5rem; color: var(--color-accent, #2a526e); }
.how-step p { margin: 0; color: var(--color-muted); }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.6rem 1rem;
    border-radius: var(--border-radius, 12px);
    background: linear-gradient(135deg, #102033, #2a526e);
    color: #fff;
    text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat__value { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.1; }
.stat__label { font-size: 0.82rem; opacity: 0.88; }

.pilot-card {
    text-align: center;
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: calc(var(--border-radius, 12px) + 4px);
    border: 1px solid rgba(42, 82, 110, 0.18);
    background: linear-gradient(135deg, rgba(244, 248, 251, 0.96), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-md);
}
.pilot-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: var(--color-accent, #2a526e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
/* V.L.E.X.A BEI subtitle (Business-Event-Intelligence) */
.product-flagship__subtitle,
.product-subtitle {
    margin: 0.1rem 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent, #2a526e);
}

.pilot-card h2 { margin: 0 0 0.75rem; }
.pilot-card p { margin: 0 auto 1.5rem; max-width: 60ch; color: var(--color-muted); }

@media (max-width: 760px) {
    .how-steps { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
}

/* ─────────────────────────────────────────────────────────────
   Print / browser PDF (Ctrl+P) — best-effort clean document.
   For a pixel-1:1 export use `node export_pdf.js` instead; paper is
   narrower than the desktop layout, so Ctrl+P can never match exactly.
   Goal here: readable, backgrounds intact, no blank pages, no overflow.
───────────────────────────────────────────────────────────── */
@media print {
    @page { size: A4; margin: 12mm; }

    /* reveal animation hides off-screen blocks; force all visible */
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* drop interactive chrome that makes no sense on paper */
    #top-ribbon, .hamburger, .lang-switcher, #cookie-banner,
    .hero__actions, .nav-dropdown-menu {
        display: none !important;
    }

    body { background: #fff !important; color: #102033 !important; }
    .section-inner { width: auto !important; max-width: 100% !important; padding: 0 !important; }

    /* collapse every multi-column layout to a single clean column */
    .hero, .product-flagship, .products-grid, .services-grid,
    .product-features, .mission-vision, .team-grid {
        display: block !important;
    }
    .product-flagship > *, .hero > * { width: auto !important; }

    /* tame the responsive clamp() font sizes (they balloon on paper width) */
    .hero__headline { font-size: 21pt !important; line-height: 1.15 !important; }
    .hero__lead { font-size: 13pt !important; }
    h2 { font-size: 18pt !important; }
    h3 { font-size: 13pt !important; }
    p, li { font-size: 11pt !important; line-height: 1.4 !important; }

    /* keep visuals on the page and from being cut across a break */
    img { max-width: 100% !important; height: auto !important; }
    .hero__visual { max-width: 320px !important; margin: 0 auto 1rem !important; }
    .product-card, .product-flagship, .service-card, .mission-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        margin-bottom: 1rem !important;
    }

    a { color: inherit; text-decoration: none; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
