/* ═══ Cormorant, self-hosted (SIL OFL, see /fonts/OFL.txt) ═══ */
  /* latin-ext */
  @font-face {
    font-family: 'Cormorant';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/cormorant-400-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Cormorant';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/cormorant-400-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Cormorant';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/cormorant-700-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Cormorant';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/cormorant-700-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/cormorant-400-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/cormorant-400-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/cormorant-500-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/cormorant-500-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/cormorant-600-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/cormorant-600-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/cormorant-700-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/cormorant-700-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --navy: #0A1628;
    --navy-mid: #0F1F38;
    --green: #1B4332;
    --green-light: #2D6A4F;
    --gold: #C9A84C;
    --gold-dark: #A8893A;
    --gold-glow: #C9A84C18;
    --white: #F0EDE6;
    --gray: #8A9BB0;
    --gray-light: #B8C4D4;
    --card-bg: #0E1D34;
    --card-border: #1A3050;

    /* ═══ MATERIALS ═══
       Three surface treatments, plus a slight temperature split. Matte
       panels lean a touch cooler, glossy ones a touch warmer. Same navy
       family throughout, just enough difference that the eye reads them
       as different materials rather than different colours. */
    --matte:        #0D2135;   /* calm blocks: stats, partners, feature lists */
    --matte-edge:   #1C3A57;
    --gloss-top:    #17264A;   /* clickable things: cards, buttons */
    --gloss-mid:    #101D38;
    --gloss-bottom: #0B1627;
    --gloss-edge:   #24395C;
    --sunken:       #071222;   /* things you type into */
    --sunken-edge:  #16304F;

    /* Light comes from above, so raised things carry a bright top edge and
       drop a shadow, and sunken things are shaded on the inside top. */
    --lip:        inset 0 1px 0 rgba(255, 255, 255, .05);
    --lip-bright: inset 0 1px 0 rgba(255, 255, 255, .10);
    --cast-soft:  0 8px 22px rgba(3, 7, 14, .34);
    --cast:       0 12px 30px rgba(3, 7, 14, .42);
    --cast-deep:  0 20px 48px rgba(3, 7, 14, .55);
    --carved:     inset 0 2px 5px rgba(0, 0, 0, .50), inset 0 -1px 0 rgba(255, 255, 255, .03);
    --font-heading: 'Cormorant', Georgia, serif;
    --font-body: 'Cormorant', Georgia, serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.6;
    overflow-x: hidden;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .anim { opacity: 0; animation: fadeUp .7s cubic-bezier(.22,1,.36,1) forwards; }
  .anim-d1 { animation-delay: .1s; }
  .anim-d2 { animation-delay: .25s; }
  .anim-d3 { animation-delay: .4s; }
  .anim-d4 { animation-delay: .55s; }
  .anim-d5 { animation-delay: .7s; }
  .anim-d6 { animation-delay: .82s; }
  .anim-d7 { animation-delay: .94s; }

  /* ═══ HEADER ═══ */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: linear-gradient(180deg, #0A1628f0, #0A1628dd);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
  }
  .header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .logo {
    display: flex; align-items: center; gap: 14px; cursor: pointer; text-decoration: none;
    background: none; border: none; padding: 0; color: inherit;
    font-family: inherit; text-align: left;
  }
  .logo-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .logo-icon img {
    width: 100%; height: 100%; object-fit: contain;
    display: block;
  }
  .logo-text-main {
    font-family: var(--font-heading); font-weight: 700; font-size: 18px;
    color: var(--white); letter-spacing: .02em; line-height: 1.2;
  }
  .logo-text-sub {
    font-size: 14px; color: var(--gold);
    letter-spacing: .1em; text-transform: uppercase;
  }

  /* Hamburger */
  .menu-toggle {
    background: none; border: 1px solid var(--card-border);
    border-radius: 8px; padding: 10px 14px; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px;
    transition: border-color .25s;
    position: relative; z-index: 10;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
  }
  .menu-toggle:hover { border-color: var(--gold); }
  .menu-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--gold); border-radius: 2px;
    transition: all .3s cubic-bezier(.22,1,.36,1);
  }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Dropdown */
  .dropdown-menu {
    position: fixed; top: 73px; right: 0; left: 0; z-index: 190;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--card-border);
    max-height: 0; overflow: hidden;
    /* While closed the menu is not just clipped but hidden, so the keyboard and
       screen readers skip it. Clipped links stayed in the tab order, which made
       a keyboard user press Tab a dozen times through links nobody could see.
       "visibility" flips only after the closing animation has finished. */
    visibility: hidden;
    transition: max-height .4s cubic-bezier(.22,1,.36,1), padding .4s, visibility 0s linear .4s;
    padding: 0 24px;
    pointer-events: none;
    overscroll-behavior: contain;
  }
  .dropdown-menu.open {
    pointer-events: auto;
    max-height: calc(100vh - 73px);
    padding: 16px 24px 20px;
    /* Visible at once when opening; only the closing waits (see above). */
    visibility: visible;
    transition: max-height .4s cubic-bezier(.22,1,.36,1), padding .4s, visibility 0s;
  }
  /* Scrolling is switched on only once the menu has finished opening.
     While it is still growing it is shorter than its content, and a
     scrollbar that appears for a moment and then goes takes its width out
     of the layout, which is what made the menu shift sideways. */
  .dropdown-menu.open.scrollable { overflow-y: auto; }
  /* Dropdown scrollbar styling */
  .dropdown-menu::-webkit-scrollbar { width: 8px; }
  .dropdown-menu::-webkit-scrollbar-track { background: transparent; }
  .dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--card-border); border-radius: 4px;
  }
  .dropdown-menu::-webkit-scrollbar-thumb:hover { background: var(--gold); }
  .dropdown-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 2px;
  }
  .menu-section-label {
    font-size: 20px; color: var(--gold); letter-spacing: .15em;
    text-transform: uppercase; padding: 12px 16px 6px; font-weight: 600;
  }
  .menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px; cursor: pointer;
    transition: background .2s; text-decoration: none; color: var(--gray-light);
    font-size: 20px; border: none; background: none; width: 100%;
    font-family: var(--font-body); text-align: left;
  }
  .menu-item:hover { background: #1A305066; color: var(--white); }
  .menu-item .mi-icon { font-size: 15px; width: 28px; text-align: center; }
  .menu-item .mi-label { flex: 1; }
  .menu-item .mi-arrow { font-size: 18px; color: var(--gold); opacity: 0; transition: opacity .2s; }
  .menu-item:hover .mi-arrow { opacity: 1; }
  .menu-item-static, .menu-item-static:hover { cursor: default; background: none; color: var(--gray-light); }
  .menu-divider { height: 1px; background: var(--card-border); margin: 8px 0; }

  /* Partner menu items */
  .mi-swatch {
    width: 28px; height: 22px; border-radius: 4px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--white);
  }
  .mi-swatch.mlp-swatch {
    background: #EEF1F7; color: #0E3D5C;
    font-family: Arial, sans-serif; font-weight: 900; font-size: 12px;
  }

  /* Breadcrumb */
  .breadcrumb-bar {
    position: fixed; top: 73px; left: 0; right: 0; z-index: 100;
    background: #0F1F38ee; backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 10px 24px; display: none;
  }
  .breadcrumb-bar.visible { display: block; }
  .breadcrumb-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 8px; font-size: 17px;
  }
  .breadcrumb-inner a { color: var(--gold); text-decoration: none; cursor: pointer; }
  .breadcrumb-inner a:hover { text-decoration: underline; }
  .breadcrumb-inner span.sep { color: var(--gray); }
  .breadcrumb-inner span.current { color: var(--gray-light); }

  .page { display: none; }
  .page.active { display: block; }

  /* ═══ HERO ═══ */
  .hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 120px 24px 60px; position: relative; overflow: hidden;
  }
  .hero-glow {
    position: absolute; top: 5%; left: 50%; transform: translateX(-50%);
    width: 160%; height: 80%;
    background: radial-gradient(ellipse at center, #1B433218 0%, #C9A84C06 40%, transparent 70%);
    pointer-events: none;
  }
  .hero-line {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, transparent, #C9A84C44);
  }
  .hero-label {
    font-size: 17px; color: var(--gold);
    letter-spacing: .22em; text-transform: uppercase;
    margin-bottom: 24px; font-weight: 500;
  }
  .hero h1 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(32px, 5.5vw, 64px); color: var(--white);
    line-height: 1.12; max-width: 820px; margin: 0 auto 28px;
  }
  .hero h1 em { color: var(--gold); font-style: normal; }
  .hero .subtitle {
    font-family: var(--font-heading); font-weight: 400;
    font-size: clamp(24px, 4vw, 42px); color: var(--gray-light);
    max-width: 600px; line-height: 1.4; margin: 0 auto 60px;
  }
  .hero .choose-label {
    font-size: 15px; color: var(--gold);
    letter-spacing: .16em; text-transform: uppercase; margin-bottom: 32px;
  }

  /* ═══ CARDS ═══ */
  .cards-row {
    display: flex; gap: 46px; flex-wrap: wrap;
    justify-content: center; max-width: 1060px; margin: 0 auto;
  }
  .card {
    border: 1px solid var(--card-border);
    border-radius: 18px; cursor: pointer; text-align: center;
    transition: all .4s cubic-bezier(.22,1,.36,1);
    position: relative; overflow: hidden;
    width: 320px; display: flex; flex-direction: column;
  }
  .card:hover {
    border-color: #C9A84C66; transform: translateY(-8px);
    box-shadow: 0 24px 64px #0A162866, 0 8px 32px #C9A84C12;
  }
  .service-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px; max-width: 1000px; margin: 0 auto;
  }
  .svc-card {
    background: linear-gradient(160deg, var(--card-bg), #0B1828);
    border: 1px solid var(--card-border);
    border-radius: 18px; padding: 34px 28px; cursor: pointer;
    text-align: left; transition: all .4s cubic-bezier(.22,1,.36,1);
    position: relative; overflow: hidden;
  }
  .svc-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    opacity: 0; transition: opacity .35s;
  }
  .svc-card:hover::before { opacity: 1; }
  .svc-card:hover {
    border-color: #C9A84C44; transform: translateY(-5px);
    box-shadow: 0 20px 52px #0A162844;
  }
  .svc-card h3 {
    font-family: var(--font-heading); font-size: 22px; font-weight: 700;
    color: var(--white); margin-bottom: 12px;
  }
  .svc-card p { font-size: 18px; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
  .svc-card .card-cta {
    font-size: 17px; color: var(--gold);
    display: flex; align-items: center; gap: 6px;
  }
  .svc-card .card-cta .arrow { font-size: 20px; transition: transform .3s; }
  .svc-card:hover .card-cta .arrow { transform: translateX(5px); }

  .cat-header {
    text-align: center; padding: 120px 24px 20px;
    max-width: 1000px; margin: 0 auto;
  }
  .cat-header .icon { font-size: 44px; margin-bottom: 18px; }
  .cat-header .label {
    font-size: 15px; color: var(--gold);
    letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px;
  }
  .cat-header h1 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(28px, 4vw, 44px); color: var(--white); margin-bottom: 12px;
  }
  .cat-header .sub {
    font-size: 20px; color: var(--gray); max-width: 600px;
    margin: 0 auto 12px; line-height: 1.7;
  }
  .cat-header .desc {
    font-size: 20px; color: var(--gray-light); max-width: 650px;
    margin: 0 auto 48px; line-height: 1.7;
  }
  /* "Comes later" notice on the Energieberater pages: a quiet gold line in a
     thin pill, sized like the surrounding labels so it takes little room. */
  .coming-soon {
    display: inline-block; margin: 2px 0 22px; padding: 7px 20px;
    border: 1px solid #C9A84C55; border-radius: 999px;
    background: rgba(201, 168, 76, .06);
    color: var(--gold); font-size: 17px; line-height: 1.4; letter-spacing: .04em;
  }
  .cat-header .choose {
    font-size: 15px; color: var(--gold);
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px;
  }

  /* ═══ DETAIL ═══ */
  .detail-page { padding: 120px 24px 80px; max-width: 800px; margin: 0 auto; }
  .back-btn {
    background: transparent; border: 1px solid var(--card-border);
    border-radius: 8px; padding: 9px 20px; color: var(--gray-light);
    font-family: var(--font-body); font-size: 17px; cursor: pointer;
    margin-bottom: 40px; display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s ease;
  }
  .back-btn:hover { border-color: #C9A84C55; color: var(--gold); }
  .detail-label {
    font-size: 15px; color: var(--gold);
    letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px;
  }
  .detail-page h1 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(24px, 4vw, 36px); color: var(--white); margin-bottom: 20px;
  }
  .detail-page .detail-desc {
    font-size: 22px; color: var(--gray-light); line-height: 1.8; margin-bottom: 40px;
  }
  .features-box {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 18px; padding: 34px 28px; margin-bottom: 40px;
  }
  .features-box h3 {
    font-family: var(--font-heading); font-size: 17px; font-weight: 700;
    color: var(--white); margin-bottom: 22px;
  }
  .feature-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
  }
  .feature-item:last-child { border-bottom: none; }
  .feature-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0; margin-top: 7px;
  }
  .feature-item span { font-size: 20px; color: var(--gray-light); line-height: 1.6; }

  .cta-box {
    background: linear-gradient(135deg, #1B433218, #C9A84C08);
    border: 1px solid #2D6A4F33; border-radius: 18px;
    padding: 36px 28px; text-align: center;
  }
  .cta-box h3 {
    font-family: var(--font-heading); font-size: 22px; font-weight: 700;
    color: var(--white); margin-bottom: 10px;
  }
  .cta-box p { font-size: 20px; color: var(--gray); margin-bottom: 24px; line-height: 1.6; }

  /* ═══ TRUST ═══ */
  .trust-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--navy-mid), var(--navy));
    border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  }
  .trust-inner { max-width: 1000px; margin: 0 auto; }
  .trust-section h2 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(24px, 3.5vw, 36px); color: var(--white);
    text-align: center; margin-bottom: 12px;
  }
  .trust-section h2 em { color: var(--gold); font-style: italic; }
  .trust-sub {
    text-align: center; color: var(--gray); font-size: 20px;
    max-width: 550px; margin: 0 auto 48px; line-height: 1.7;
  }
  .why-grid {
    display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 24px;
    align-items: stretch;
  }
  @media (max-width: 880px) {
    .why-grid { grid-template-columns: 1fr; }
  }
  /* With no partners to show, the two stat cards share the row. */
  .why-grid.no-partners { grid-template-columns: 1fr 1fr; }
  @media (max-width: 880px) {
    .why-grid.no-partners { grid-template-columns: 1fr; }
  }
  /* The line under the stats row. Plain text across the whole width, so it
     ends where the first and last stat card end. pre-line keeps the line
     breaks the owner types in the admin. */
  .trust-note {
    margin: 44px 0 0; text-align: center;
    font-size: 21px; line-height: 1.8; color: var(--gray-light);
    white-space: pre-line;
  }

  /* Fade-in on scroll. The page only hides an element once the script that
     reveals it is running, so without JavaScript the text is simply there. */
  .reveal { transition: opacity 1s ease, transform 1s ease; }
  .reveal.reveal-pending { opacity: 0; transform: translateY(16px); }
  .reveal.reveal-pending.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.reveal-pending, .reveal.reveal-pending.in {
      opacity: 1; transform: none; transition: none;
    }
  }

  .why-text-card, .partners-card {
    border-radius: 14px; border: 1px solid var(--card-border);
    background: linear-gradient(160deg, var(--card-bg), #0B1828);
    padding: 36px 24px;
  }
  .why-text-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
  }
  .why-value {
    font-family: var(--font-heading); font-size: 56px; font-weight: 700;
    color: var(--gold); line-height: 1; margin-bottom: 14px;
  }
  .why-label {
    font-size: 18px; color: var(--gray-light); line-height: 1.4;
  }
  .partners-card { padding: 28px 24px; }
  .partners-title {
    font-family: var(--font-heading); font-size: 14px; font-weight: 400;
    color: var(--gold); letter-spacing: .14em; text-transform: uppercase;
    text-align: center; margin-bottom: 18px;
  }
  /* Flex rather than a fixed 3-column grid, so one partner centres
     instead of hugging the left edge of an empty row. */
  .partners-grid {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  }
  .partners-grid .partner-box { flex: 0 1 calc(33.333% - 7px); min-width: 92px; }
  .partner-box img {
    width: 100%; height: 100%; object-fit: contain; display: block;
  }
  .partner-box .partner-name {
    font-family: var(--font-heading); font-size: 16px; font-weight: 700;
    color: var(--navy); text-align: center; padding: 0 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .partner-box:not(.partner-mlp) { background: var(--white); padding: 8px; }
  .mi-swatch img { width: 100%; height: 100%; object-fit: contain; }
  .mi-swatch:has(img) { background: var(--white); padding: 2px; }
  .partner-box {
    aspect-ratio: 16/10; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
  }
  .partner-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.35), 0 0 0 1px var(--gold);
  }
  .partner-box:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 2px;
  }
  .partner-mlp {
    background: #EEF1F7;
    padding: 10px;
  }
  .partner-mlp svg { width: 100%; height: 100%; }

  /* ═══ CONTACT ═══ */
  .contact-section { padding: 80px 24px; max-width: 800px; margin: 0 auto; }
  .contact-section h2 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(24px, 3.5vw, 36px); color: var(--white);
    text-align: center; margin-bottom: 12px;
  }
  .contact-sub {
    text-align: center; color: var(--gray); font-size: 14px;
    line-height: 1.7; margin-bottom: 12px;
  }
  .response-notice {
    text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 18px; color: var(--gold);
    background: var(--gold-glow); border: 1px solid #C9A84C22;
    border-radius: 10px; padding: 12px 20px; max-width: 520px;
    margin: 0 auto 36px;
  }
  .response-notice .rn-icon { font-size: 15px; flex-shrink: 0; }

  .contact-form {
    background: linear-gradient(160deg, var(--card-bg), #0B1828);
    border: 1px solid var(--card-border);
    border-radius: 18px; padding: 38px 34px;
  }
  .form-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-bottom: 20px;
  }
  .form-group label {
    font-size: 17px; color: var(--gray-light);
    display: block; margin-bottom: 8px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%; padding: 13px 16px; background: var(--navy);
    border: 1px solid var(--card-border); border-radius: 10px;
    color: var(--white); font-family: var(--font-body); font-size: 20px;
    outline: none; transition: border-color .25s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus { border-color: var(--gold); }
  .form-group textarea { resize: vertical; }
  .form-group select { color: var(--gray); }
  .form-group.full { margin-bottom: 20px; }

  .btn-primary {
    width: 100%; padding: 15px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none; border-radius: 12px; color: var(--navy);
    font-family: var(--font-body); font-size: 20px; font-weight: 700;
    cursor: pointer; transition: all .3s ease;
    letter-spacing: .03em; box-shadow: 0 4px 20px #C9A84C22;
  }
  .btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 30px #C9A84C33; }

  /* The data-protection note, right above the send button. */
  .form-privacy { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--gray); }
  .form-privacy a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
  .form-privacy a:hover { text-decoration-thickness: 2px; }
  /* Text for screen readers only. */
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }

  /* ═══ FILE UPLOAD ═══ */
  .upload-section { margin-bottom: 20px; }
  .upload-section > label {
    font-size: 17px; color: var(--gray-light);
    display: block; margin-bottom: 8px;
  }
  .upload-hint {
    font-size: 15px; color: var(--gray); margin-bottom: 10px; line-height: 1.6;
    background: #1B433215; border: 1px solid #2D6A4F22;
    border-radius: 8px; padding: 10px 14px;
  }
  .upload-zone {
    border: 2px dashed var(--card-border);
    border-radius: 14px; padding: 32px 20px;
    text-align: center; cursor: pointer;
    transition: all .3s ease; position: relative;
    background: #0A162844;
  }
  .upload-zone:hover, .upload-zone.dragover {
    border-color: var(--gold); background: var(--gold-glow);
  }
  .upload-zone .uz-icon { font-size: 31px; margin-bottom: 12px; }
  .upload-zone .uz-text { font-size: 18px; color: var(--gray-light); line-height: 1.6; }
  .upload-zone .uz-text strong { color: var(--gold); }
  .upload-zone .uz-sub { font-size: 15px; color: var(--gray); margin-top: 8px; }
  .upload-zone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
  }
  .file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
  .file-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--navy); border: 1px solid var(--card-border);
    border-radius: 10px; padding: 10px 14px; font-size: 17px;
  }
  .file-item .fi-icon { font-size: 15px; }
  .file-item .fi-name { flex: 1; color: var(--gray-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-item .fi-size { color: var(--gray); font-size: 15px; }
  .file-item .fi-remove {
    background: none; border: none; color: #E74C3C; font-size: 14px;
    cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background .2s;
  }
  .file-item .fi-remove:hover { background: #E74C3C22; }

  /* ═══ FOOTER ═══ */
  .site-footer {
    padding: 52px 24px 36px; border-top: 1px solid var(--card-border);
    background: var(--navy-mid); text-align: center;
  }
  .footer-name {
    font-family: var(--font-heading); font-weight: 700; font-size: 15px;
    color: var(--white); margin-bottom: 6px;
  }
  .footer-info { font-size: 17px; color: var(--gray); margin-bottom: 24px; line-height: 1.7; }
  .footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
  .footer-links a { font-size: 15px; color: var(--gray); text-decoration: none; cursor: pointer; transition: color .2s; }
  .footer-links a:hover { color: var(--gold); }
  .footer-copy { font-size: 14px; color: #8A9BB066; }

  @media (max-width: 600px) {
    /* Stacked, so the wide gap becomes vertical dead space. */
    .cards-row { gap: 26px; }
    .card { width: 100%; max-width: 400px; }
    .header-inner { padding: 12px 16px; }
    .cat-header, .detail-page, .contact-section { padding-left: 16px; padding-right: 16px; }
    .contact-form { padding: 24px 18px; }
    .form-row { grid-template-columns: 1fr; }
  }

  /* ═══ CARD WITH FULL BACKGROUND IMAGE + HOVER PANEL ═══ */
  .card-has-bg {
    position: relative; overflow: hidden; padding: 0;
    aspect-ratio: 9 / 16; min-height: 400px;
    background: transparent;
    cursor: pointer;
  }
  .card-has-bg .card-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
  }
  .card-has-bg:hover .card-bg { transform: scale(1.04); }

  /* Title — sits at center of image, slides to top of panel on hover */
  .card-has-bg .card-title {
    position: absolute; left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 3; text-align: center;
    color: var(--white); margin: 0; padding: 0 20px;
    font-family: var(--font-heading); font-size: 27px; font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 18px rgba(0,0,0,.7), 0 0 4px rgba(0,0,0,.5);
    transition: top .55s cubic-bezier(.22,1,.36,1),
                transform .55s cubic-bezier(.22,1,.36,1),
                text-shadow .35s ease .15s;
  }
  .card-has-bg:hover .card-title {
    top: 36px; transform: translateY(0);
    text-shadow: none;
  }

  /* Colored panel — slides up from bottom on hover */
  .card-has-bg .card-panel {
    position: absolute; inset: 0; z-index: 2;
    background: var(--panel-color, #1d3556);
    transform: translateY(100%);
    transition: transform .55s cubic-bezier(.22,1,.36,1);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 110px 28px 36px;
  }
  .card-has-bg:hover .card-panel { transform: translateY(0); }

  /* Per-card panel colors */
  .card-has-bg.card-color-blue  .card-panel { --panel-color: #1E3A5C; }
  .card-has-bg.card-color-green .card-panel { --panel-color: #3D6541; }
  .card-has-bg.card-color-gold  .card-panel { --panel-color: #866A24; }

  /* Keywords inside panel */
  .card-has-bg .card-keywords {
    list-style: none; padding: 0; margin: 0 0 28px 0;
    text-align: center;
  }
  .card-has-bg .card-keywords li {
    font-family: var(--font-heading); font-size: 22px; font-weight: 400;
    color: rgba(255,255,255,.95); line-height: 1.6;
    opacity: 0; transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .card-has-bg:hover .card-keywords li {
    opacity: 1; transform: translateY(0);
    transition-delay: .25s;
  }

  /* CTA button — white rectangular box */
  .card-has-bg .card-cta-btn {
    background: var(--white); color: var(--navy);
    padding: 13px 28px; border-radius: 4px;
    font-family: var(--font-heading); font-weight: 700; font-size: 15px;
    letter-spacing: .03em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 8px;
    border: none; cursor: pointer;
    opacity: 0; transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, box-shadow .25s ease;
  }
  .card-has-bg:hover .card-cta-btn {
    opacity: 1; transform: translateY(0);
    transition-delay: .35s, .35s, 0s;
  }
  .card-has-bg .card-cta-btn:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,.3);
  }
  .card-has-bg .card-cta-btn .arrow {
    font-size: 17px; transition: transform .25s;
  }
  .card-has-bg .card-cta-btn:hover .arrow { transform: translateX(4px); }

  /* Touch devices have no hover, so the panel is unreachable there.
     JS adds .touched on the first tap; the second tap navigates.
     Mirrors every :hover rule above. */
  @media (hover: none) and (pointer: coarse) {
    .card-has-bg.touched .card-bg { transform: scale(1.04); }
    .card-has-bg.touched .card-title {
      top: 36px; transform: translateY(0); text-shadow: none;
    }
    .card-has-bg.touched .card-panel { transform: translateY(0); }
    .card-has-bg.touched .card-keywords li {
      opacity: 1; transform: translateY(0); transition-delay: .25s;
    }
    .card-has-bg.touched .card-cta-btn {
      opacity: 1; transform: translateY(0); transition-delay: .35s, .35s, 0s;
    }
  }

  /* The same open state for someone using the keyboard: tabbing to the link in
     a card opens it, just as hovering does. Mirrors the :hover rules above.
     :focus-visible (not plain focus) so that a card does not stay open after a
     mouse click on its link and a trip back with the Back button. */
  .card-has-bg:has(:focus-visible) .card-bg { transform: scale(1.04); }
  .card-has-bg:has(:focus-visible) .card-title {
    top: 36px; transform: translateY(0); text-shadow: none;
  }
  .card-has-bg:has(:focus-visible) .card-panel { transform: translateY(0); }
  .card-has-bg:has(:focus-visible) .card-keywords li {
    opacity: 1; transform: translateY(0); transition-delay: .25s;
  }
  .card-has-bg:has(:focus-visible) .card-cta-btn {
    opacity: 1; transform: translateY(0); transition-delay: .35s, .35s, 0s;
  }

  /* Phone numbers and addresses in the footer and the contact text are links
     now; they should read as part of the sentence, not as blue underlined text. */
  .footer-info a { color: inherit; text-decoration: none; transition: color .2s; }
  .footer-info a:hover { color: var(--gold); text-decoration: underline; }
  .contact-sub a { color: var(--gold); text-decoration: none; }
  .contact-sub a:hover { text-decoration: underline; }

  /* ═══ QoL: Scroll Progress Bar ═══ */
  .scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 999;
    background: linear-gradient(90deg, #3B6FA0, var(--green-light), var(--gold));
    width: 0%; transition: width .1s linear;
    pointer-events: none;
  }

  /* ═══ QoL: Back to Top Button ═══ */
  .back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 150;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px #C9A84C33;
    opacity: 0; transform: translateY(20px);
    /* Hidden, not just transparent, until the page has been scrolled: an invisible
       button must not take keyboard focus. */
    visibility: hidden;
    transition: opacity .4s, transform .4s, visibility .4s;
    pointer-events: none;
    font-size: 17px; color: var(--navy); line-height: 1;
  }
  .back-to-top.visible {
    opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible;
  }
  .back-to-top:hover {
    transform: translateY(-3px); box-shadow: 0 8px 30px #C9A84C44;
  }

  /* ═══ QoL: Toast Notification ═══ */
  .toast {
    position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
    z-index: 500;
    background: linear-gradient(135deg, #1B4332, #2D6A4F);
    color: var(--white); border: 1px solid #40916C44;
    border-radius: 14px; padding: 16px 28px;
    font-family: var(--font-body); font-size: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    display: flex; align-items: center; gap: 12px;
    opacity: 0; transition: all .5s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
  }
  .toast.show {
    opacity: 1; transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  .toast .toast-icon { font-size: 19px; flex-shrink: 0; }
  .toast .toast-close {
    background: none; border: none; color: var(--gray-light);
    font-size: 15px; cursor: pointer; margin-left: 12px;
    padding: 4px 8px; border-radius: 6px; transition: background .2s;
  }
  .toast .toast-close:hover { background: #ffffff15; }
  /* The message itself stays in place so screen readers announce it, but its
     close button is out of the tab order while no message is showing. */
  .toast:not(.show) .toast-close { visibility: hidden; }

  /* ═══ QoL: Header scroll enhancement ═══ */
  .site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,.3);
    border-bottom-color: #C9A84C22;
  }

  /* ═══ CONTACT FORM STATE ═══ */
  /* Honeypot. Off-screen rather than display:none so bots still fill it. */
  .hp {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
  }
  .form-group .field-error {
    display: block; font-size: 15px; color: #E86B64; margin-top: 6px;
  }
  .form-group input.invalid,
  .form-group select.invalid,
  .form-group textarea.invalid { border-color: #E86B64; }
  .toast.error { background: linear-gradient(135deg, #5A2321, #8A3A35); border-color: #E86B6444; }

  /* ═══ CROSS NAVIGATION (move between sub-pages directly) ═══ */
  .crossnav { max-width: 1000px; margin: 0 auto; padding: 0 24px 80px; }
  .crossnav-group { margin-bottom: 30px; }
  .crossnav-group:last-child { margin-bottom: 0; }
  .crossnav-title {
    font-size: 15px; color: var(--gold);
    letter-spacing: .16em; text-transform: uppercase;
    margin-bottom: 16px; text-align: center;
  }
  .crossnav-row {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  }
  .crossnav-link {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(160deg, var(--card-bg), #0B1828);
    border: 1px solid var(--card-border); border-radius: 12px;
    padding: 14px 22px; cursor: pointer; text-align: left;
    color: var(--gray-light); font-family: var(--font-body); font-size: 19px;
    transition: border-color .3s, color .3s,
                transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
  }
  .crossnav-link:hover {
    border-color: #C9A84C55; color: var(--white);
    transform: translateY(-3px); box-shadow: 0 12px 30px #0A162855;
  }
  .crossnav-link .cn-icon { font-size: 18px; flex-shrink: 0; }
  .crossnav-link .cn-arrow { color: var(--gold); transition: transform .25s; }
  .crossnav-link:hover .cn-arrow { transform: translateX(4px); }

  /* Controls that are real links, so every page can be found and followed by
     search engines. They keep the look of the buttons and cards they replaced. */
  a.svc-card { display: block; color: inherit; text-decoration: none; }
  a.crossnav-link, a.card-cta-btn, a.back-btn, a.btn-primary { text-decoration: none; }
  a.btn-primary { display: inline-block; text-align: center; }
  .contact-section { scroll-margin-top: 90px; }

  /* inside a detail page the wrapper already supplies the gutter */
  .detail-page .crossnav { padding: 0; max-width: none; margin-top: 46px; }

  @media (max-width: 600px) {
    .crossnav { padding-left: 16px; padding-right: 16px; }
    .crossnav-row { flex-direction: column; }
    .crossnav-link { width: 100%; }
  }

  /* ═══ LEGAL PAGES (Impressum / Datenschutz / AGB) ═══ */
  .legal-page { padding: 120px 24px 80px; max-width: 820px; margin: 0 auto; }
  .legal-placeholder {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--gold-glow); border: 1px solid #C9A84C44;
    border-radius: 12px; padding: 16px 20px; margin-bottom: 36px;
    font-size: 18px; color: var(--gold); line-height: 1.6;
  }
  .legal-placeholder strong { color: var(--white); }
  .legal-placeholder[hidden] { display: none; }
  .legal-placeholder .lp-icon { font-size: 18px; flex-shrink: 0; }
  .legal-label {
    font-size: 15px; color: var(--gold);
    letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px;
  }
  .legal-page h1 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(28px, 4vw, 40px); color: var(--white); margin-bottom: 8px;
  }
  .legal-page h2 {
    font-family: var(--font-heading); font-weight: 700; font-size: 24px;
    color: var(--white); margin: 34px 0 10px;
    padding-bottom: 8px; border-bottom: 1px solid var(--card-border);
  }
  .legal-page p, .legal-page address {
    font-size: 19px; color: var(--gray-light); line-height: 1.75;
    margin-bottom: 14px; font-style: normal;
  }
  .legal-page .muted { color: var(--gray); font-size: 18px; }
  .legal-page a { color: var(--gold); }

  @media (max-width: 600px) {
    .legal-page { padding-left: 16px; padding-right: 16px; }
  }

  /* ═══ Skip link ═══ */
  .skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--gold); color: var(--navy);
    padding: 12px 22px; border-radius: 0 0 10px 0;
    font-family: var(--font-body); font-size: 17px; font-weight: 700;
    text-decoration: none;
  }
  .skip-link:focus { left: 0; }

  /* ═══ QoL: Focus styles (keyboard accessibility) ═══ */
  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .form-group input:focus-visible,
  .form-group select:focus-visible,
  .form-group textarea:focus-visible {
    outline-offset: 0;
  }

  /* ═══ QoL: Reduced motion ═══ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
  }

  /* ═══ QoL: Page transition ═══ */
  .page { transition: opacity .3s ease; }
  .page.fade-out { opacity: 0; }

  /* ═══════════════════════════════════════════════════════════════
     MATERIAL LAYER
     Appended last so it overrides the flat styling above by source
     order rather than by piling on specificity.
     ═══════════════════════════════════════════════════════════════ */

  /* 1 ── Grain.
     A fixed, non-interactive speckle over everything. At this opacity it
     is invisible as texture and only noticeable by its absence: it stops
     large flat fills reading as moulded plastic. */
  body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .055;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
  }

  /* 2 ── Matte: calm blocks that hold information and invite no click. */
  .why-text-card,
  .partners-card,
  .features-box {
    background: var(--matte);
    border-color: var(--matte-edge);
    box-shadow: var(--lip), var(--cast-soft);
  }

  .response-notice {
    background: linear-gradient(180deg, #16223A, #121D32);
    border-color: #2E3F55;
    box-shadow: var(--lip), var(--cast-soft);
  }

  /* 3 ── Glossy: anything that should look pressable. A fade from lighter
     at the top to darker at the bottom, with a crisp lit top edge. */
  .svc-card,
  .crossnav-link {
    background: linear-gradient(170deg, var(--gloss-top) 0%, var(--gloss-mid) 48%, var(--gloss-bottom) 100%);
    border-color: var(--gloss-edge);
    box-shadow: var(--lip-bright), var(--cast);
  }
  .svc-card:hover,
  .crossnav-link:hover {
    box-shadow: var(--lip-bright), var(--cast-deep);
  }

  .cta-box {
    background: linear-gradient(170deg, #1A3246 0%, #132436 55%, #0C1A28 100%);
    border-color: #2C4A58;
    box-shadow: var(--lip-bright), var(--cast);
  }

  .btn-primary {
    background: linear-gradient(180deg, #DCBC62 0%, #C9A84C 45%, #A8893A 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(201, 168, 76, .22);
  }
  .btn-primary:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 26px rgba(201, 168, 76, .32);
  }

  /* The revealed panel is a rough mineral surface, not a colour field.
     Four layers, painted top to bottom:
       1  a soft glow where the light lands, upper middle
       2  shading that deepens toward the bottom edge
       3  coarse cloudy mottle, the plaster or stone character
       4  fine tooth, the close-up grain
     Both noise layers are desaturated inside the SVG, otherwise the
     turbulence is coloured and would tint the panel. */
  .card-has-bg .card-panel {
    background-color: var(--panel-color, #1d3556);
    background-image:
      radial-gradient(130% 85% at 50% 8%, rgba(255,255,255,.16), rgba(255,255,255,0) 58%),
      linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(0,0,0,.10) 52%, rgba(0,0,0,.34) 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 100% 100%, 100% 100%, 420px 420px, 170px 170px;
    background-repeat: no-repeat, no-repeat, repeat, repeat;
    background-blend-mode: screen, multiply, soft-light, overlay;
  }

  /* A lit top lip, so the panel looks like it has a thickness. */
  .card-has-bg .card-panel::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: rgba(255, 255, 255, .22);
    pointer-events: none;
  }

  /* ── Type on the offer cards ──────────────────────────────────────
     Plain white at bold weight reads as a label. What reads as considered
     is the opposite: a lighter cut of the serif, set larger, with the
     letters given room, in a warm ivory rather than a flat white. */

  /* The round badge is part of each card image and starts about 51% of
     the way down. The card keeps a fixed 9:16 shape and the image scales
     with it, so a position given as a share of the card height stays
     clear of the badge at every screen size. 34% leaves room for a
     two-line title above it. */
  .card-has-bg .card-title {
    top: 34%;
  }
  .card-has-bg:hover .card-title { top: 36px; }
  .card-has-bg .card-title {
    font-weight: 500;
    font-size: 30px;
    letter-spacing: .045em;
    color: #F7F3EA;
  }

  /* A short rule, centred, to separate the name from the services. Far
     quieter than a full-width border and does more work. */
  .card-has-bg .card-keywords {
    position: relative;
    padding-top: 26px;
  }
  .card-has-bg .card-keywords::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 46px; height: 1px;
    background: linear-gradient(90deg,
      rgba(247, 243, 234, 0), rgba(247, 243, 234, .6), rgba(247, 243, 234, 0));
  }

  .card-has-bg .card-keywords li {
    font-size: 21px;
    font-weight: 400;
    letter-spacing: .03em;
    line-height: 1.9;
    color: rgba(247, 243, 234, .92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  }

  /* The solid white box was the least considered thing on the card. An
     outline with the letters spaced wide carries far more weight. */
  .card-has-bg .card-cta-btn {
    background: transparent;
    border: 1px solid rgba(247, 243, 234, .55);
    color: #F7F3EA;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .2em;
    padding: 14px 28px;
    box-shadow: none;
  }
  .card-has-bg .card-cta-btn:hover {
    background: rgba(247, 243, 234, .12);
    border-color: #F7F3EA;
    box-shadow: none;
  }
  .card-has-bg .card-cta-btn .arrow { margin-left: 2px; }
  .card-has-bg { box-shadow: var(--cast); }
  .card-has-bg:hover { box-shadow: var(--cast-deep); }

  .card-cta-btn {
    background: linear-gradient(180deg, #FFFFFF 0%, #EDE8DC 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(0, 0, 0, .25);
  }

  /* 4 ── Sunken: fields are cut into the surface, not sitting on it. */
  .form-group input,
  .form-group select,
  .form-group textarea {
    background: var(--sunken);
    border-color: var(--sunken-edge);
    box-shadow: var(--carved);
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: var(--carved), 0 0 0 3px rgba(201, 168, 76, .12);
  }

  .upload-zone {
    background: linear-gradient(180deg, #091525 0%, #0B1A2C 100%);
    box-shadow: var(--carved);
  }
  .file-item {
    background: var(--sunken);
    border-color: var(--sunken-edge);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
  }

  /* 5 ── The page furniture gets the same light treatment. */
  .site-header { box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 6px 20px rgba(3, 7, 14, .30); }
  .contact-form {
    background: linear-gradient(170deg, #12213C 0%, #0E1A30 55%, #0A1526 100%);
    border-color: var(--gloss-edge);
    box-shadow: var(--lip), var(--cast);
  }
  .legal-page .message,
  .message { background: var(--sunken); box-shadow: var(--carved); }

  .site-footer {
    background: linear-gradient(180deg, #0D1B30 0%, #0A1524 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  }

  .partner-box { box-shadow: var(--lip), 0 4px 12px rgba(3, 7, 14, .35); }

  /* ═══ QoL: Selection color ═══ */
  ::selection { background: var(--gold); color: var(--navy); }
  ::-moz-selection { background: var(--gold); color: var(--navy); }
