/* Generated from frontend templates. Keep selectors in sync with template classes. */

/* Base: websites2/webelements/templates/frontend/base_foerderung.html */
    :root {
      --ink: #15202b;
      --muted: #4f5e6f;
      --brand: #0f766e;
      --brand-strong: #0d5e58;
      --sun: #f5b13a;
      --surface: #ffffff;
      --surface-soft: #f2f6f8;
      --surface-strong: #e8f1f5;
      --border: rgba(15, 23, 42, 0.12);
      --link-tag-bg: rgba(255, 183, 3, 0.18);
      --link-tag-ink: #7a4b00;
      --content-link: #0b5ea8;
      --content-link-hover: #084a84;
      --content-link-underline: rgba(11, 94, 168, 0.32);
      --page-a: #f7fbf8;
      --page-b: #f1f8fc;
      --page-c: #f9f4ea;
      --shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
      --site-header-offset: 6.5rem;
    }

    html[data-theme="dark"] {
      --ink: #e6edf6;
      --muted: #b6c2d2;
      --brand: #49b5ab;
      --brand-strong: #7ad5cc;
      --sun: #f6c86b;
      --surface: #152235;
      --surface-soft: #1a2b40;
      --surface-strong: #213752;
      --border: rgba(148, 163, 184, 0.3);
      --link-tag-bg: rgba(246, 200, 107, 0.24);
      --link-tag-ink: #ffe4ab;
      --content-link: #8bd7ff;
      --content-link-hover: #d8f4ff;
      --content-link-underline: rgba(139, 215, 255, 0.4);
      --page-a: #0d1626;
      --page-b: #122035;
      --page-c: #1a2436;
      --shadow: 0 24px 44px rgba(0, 0, 0, 0.4);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 10%, rgba(15, 118, 110, 0.12), transparent 26%),
        radial-gradient(circle at 92% 20%, rgba(245, 177, 58, 0.14), transparent 30%),
        linear-gradient(140deg, var(--page-a) 0%, var(--page-b) 52%, var(--page-c) 100%);
      font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
      min-height: 100vh;
    }

    html {
      scroll-padding-top: calc(var(--site-header-offset) + 0.75rem);
    }

    .page-shell [id] {
      scroll-margin-top: calc(var(--site-header-offset) + 0.75rem);
    }

    h1, h2, h3, h4 {
      font-family: "Merriweather", "Palatino Linotype", "Book Antiqua", serif;
      letter-spacing: 0.01em;
      margin-top: 0;
    }

    a.iv {
      text-decoration: none;
      color:white;
    }

    .content-link {
      color: var(--content-link);
      font-weight: 600;
      text-decoration-line: underline;
      text-decoration-color: var(--content-link-underline);
      text-decoration-thickness: 0.08em;
      text-underline-offset: 0.16em;
      transition: color 0.2s ease, text-decoration-color 0.2s ease;
    }

    .content-link:hover,
    .content-link:focus-visible {
      color: var(--content-link-hover);
      text-decoration-color: currentColor;
    }

    .content-link:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 2px;
      border-radius: 0.2rem;
    }

    .page-shell {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 1.3rem 3rem;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      padding: 1.1rem 0 0.8rem;
      backdrop-filter: blur(10px);
    }

    .site-nav {
      position: relative;
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem 1.2rem;
      justify-content: space-between;
      align-items: center;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 1rem;
      padding: 0.85rem 1rem;
      box-shadow: var(--shadow);
    }

    .nav-menu {
      margin-left: auto;
    }

    .nav-menu-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 0.7rem;
      min-height: 2.8rem;
      padding: 0.55rem 0.9rem;
      border: 1px solid rgba(15, 118, 110, 0.16);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 249, 248, 0.92));
      color: var(--ink);
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }

    .nav-menu-toggle:hover,
    .nav-menu-toggle:focus-visible {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(227, 245, 241, 0.96));
      color: var(--brand-strong);
      outline: none;
    }

    .nav-menu-toggle__label {
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.03em;
    }

    .nav-menu-toggle__icon {
      display: inline-grid;
      gap: 0.22rem;
    }

    .nav-menu-toggle__icon span {
      width: 1.15rem;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon span:nth-child(1) {
      transform: translateY(4px) rotate(45deg);
    }

    .nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon span:nth-child(2) {
      opacity: 0;
    }

    .nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon span:nth-child(3) {
      transform: translateY(-4px) rotate(-45deg);
    }

    .brand {
      text-decoration: none;
      color: var(--ink);
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      font-size: 0.95rem;
      white-space: nowrap;
    }

    .brand-mark {
      display: inline-block;
      color: var(--brand);
      margin-right: 0.35rem;
      font-weight: 800;
    }

    .nav-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      list-style: none;
      margin: 0;
      padding: 0;
      align-items: center;
    }

    .nav-links > li > a {
      text-decoration: none;
      color: var(--ink);
      font-size: 0.92rem;
      padding: 0.38rem 0.64rem;
      border-radius: 999px;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a:focus {
      background: var(--surface-soft);
      color: var(--brand-strong);
    }

    .nav-links > li > form {
      margin: 0;
    }

    .nav-inline-button {
      width: 100%;
      border: 0;
      background: transparent;
      text-align: left;
      color: var(--ink);
      font-size: 0.92rem;
      padding: 0.38rem 0.64rem;
      border-radius: 999px;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-inline-button:hover,
    .nav-inline-button:focus-visible {
      background: var(--surface-soft);
      color: var(--brand-strong);
      outline: none;
    }

    .nav-links .is-cta {
      background: var(--brand);
      color: #fff;
      font-weight: 700;
      padding: 0.45rem 0.9rem;
    }

    .nav-links .is-cta:hover,
    .nav-links .is-cta:focus {
      background: var(--brand-strong);
      color: #fff;
    }

    .nav-links > .nav-item {
      display: grid;
      gap: 0.38rem;
      position: static;
    }

    .nav-item-row {
      display: inline-flex;
      align-items: center;
      gap: 0.2rem;
      padding: 0.16rem;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(245, 177, 58, 0.16));
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .nav-item-row:hover,
    .nav-item-row:focus-within {
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
      background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 177, 58, 0.2));
    }

    .nav-item-row .nav-link {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      padding: 0.42rem 0.72rem 0.42rem 0.82rem;
      border-radius: 999px;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.68);
      color: var(--ink);
      backdrop-filter: blur(8px);
    }

    .nav-item-row .nav-link:hover,
    .nav-item-row .nav-link:focus {
      background: rgba(255, 255, 255, 0.9);
      color: var(--brand-strong);
    }

    .submenu-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.15rem;
      height: 2.15rem;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 177, 58, 0.28));
      color: var(--brand-strong);
      box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
      flex: 0 0 auto;
    }

    .submenu-toggle:hover,
    .submenu-toggle:focus-visible {
      transform: translateY(-1px);
      background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(245, 177, 58, 0.38));
      color: var(--brand-strong);
      box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.26), 0 8px 18px rgba(15, 23, 42, 0.12);
      outline: none;
    }

    .submenu-toggle[aria-expanded="true"] {
      background: linear-gradient(135deg, var(--brand), var(--brand-strong));
      color: #fff;
      box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
    }

    .submenu-toggle__icon {
      transition: transform 0.2s ease;
    }

    .submenu-toggle[aria-expanded="true"] .submenu-toggle__icon {
      transform: rotate(180deg);
    }

    .nav-submenu-wrapper {
      min-width: 0;
    }

    .nav-submenu-panel {
      display: grid;
      gap: 1rem;
      padding: 1rem;
      border-radius: 1.25rem;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 248, 0.96));
      box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
      max-height: min(60vh, 28rem);
      overflow-y: auto;
    }

    .nav-submenu-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 0.9rem;
      align-items: start;
    }

    .nav-submenu-section {
      display: grid;
      gap: 0.72rem;
      padding: 0.9rem;
      border-radius: 1rem;
      background: rgba(255, 255, 255, 0.76);
      border: 1px solid rgba(15, 23, 42, 0.06);
      min-width: 0;
      align-content: start;
    }

    .nav-submenu-section-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .nav-submenu-heading {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      color: var(--ink);
      text-decoration: none;
      font-weight: 700;
      line-height: 1.35;
    }

    .nav-submenu-heading:hover,
    .nav-submenu-heading:focus {
      color: var(--brand-strong);
      text-decoration: none;
    }

    .submenu-toggle--tertiary {
      width: auto;
      min-height: 2.1rem;
      padding: 0.38rem 0.7rem;
      border-radius: 0.85rem;
      gap: 0.45rem;
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1;
      white-space: nowrap;
    }

    .nav-submenu-toggle-label {
      letter-spacing: 0.02em;
    }

    .nav-submenu-toggle-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.35rem;
      height: 1.35rem;
      padding: 0 0.3rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.82);
      color: var(--brand-strong);
      font-size: 0.72rem;
      font-weight: 800;
      box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
    }

    .nav-tertiary-collapse {
      display: grid;
      gap: 0.55rem;
      padding-top: 0.15rem;
    }

    .nav-submenu-group-label {
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .nav-submenu-links {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 0.42rem;
    }

    .nav-submenu-link {
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      padding: 0.56rem 0.72rem;
      border-radius: 0.9rem;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.92);
      text-decoration: none;
      font-size: 0.89rem;
      line-height: 1.35;
    }

    .nav-submenu-link:hover,
    .nav-submenu-link:focus {
      background: var(--surface-soft);
      color: var(--brand-strong);
      text-decoration: none;
    }

    .nav-submenu-link--featured {
      background: rgba(245, 177, 58, 0.18);
      color: var(--ink);
      font-weight: 700;
      box-shadow: inset 0 0 0 1px rgba(245, 177, 58, 0.26);
    }

    .nav-submenu-mobile {
      display: none;
      padding: 0.7rem;
      border-radius: 1rem;
      border: 1px solid rgba(15, 23, 42, 0.08);
      background: rgba(255, 255, 255, 0.6);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .nav-submenu-mobile-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.55rem;
    }

    .nav-submenu-mobile-card {
      display: grid;
      gap: 0.5rem;
      padding: 0.4rem;
      border-radius: 0.95rem;
      background: rgba(255, 255, 255, 0.78);
      border: 1px solid rgba(15, 23, 42, 0.06);
    }

    .nav-submenu-mobile-row {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .nav-submenu-mobile-link {
      flex: 1 1 auto;
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 0.42rem;
      padding: 0.56rem 0.72rem;
      border-radius: 0.85rem;
      color: var(--ink);
      background: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      font-weight: 700;
      line-height: 1.35;
    }

    .nav-submenu-mobile-link:hover,
    .nav-submenu-mobile-link:focus {
      background: rgba(255, 255, 255, 0.98);
      color: var(--brand-strong);
      text-decoration: none;
    }

    .submenu-toggle--secondary {
      width: 2rem;
      height: 2rem;
    }

    .nav-submenu-mobile-label {
      padding: 0 0.3rem;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .nav-tertiary-list--mobile {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.36rem;
    }

    html[data-theme="dark"] .nav-item-row {
      background: linear-gradient(135deg, rgba(73, 181, 171, 0.16), rgba(246, 200, 107, 0.12));
      border-color: rgba(148, 163, 184, 0.22);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    html[data-theme="dark"] .nav-item-row .nav-link {
      background: rgba(21, 34, 53, 0.9);
      color: var(--ink);
    }

    html[data-theme="dark"] .nav-item-row .nav-link:hover,
    html[data-theme="dark"] .nav-item-row .nav-link:focus {
      background: rgba(26, 43, 64, 0.98);
      color: var(--brand-strong);
    }

    html[data-theme="dark"] .submenu-toggle {
      background: linear-gradient(135deg, rgba(73, 181, 171, 0.18), rgba(246, 200, 107, 0.16));
      color: #d7f5f0;
      box-shadow: inset 0 0 0 1px rgba(122, 213, 204, 0.2);
    }

    html[data-theme="dark"] .submenu-toggle:hover,
    html[data-theme="dark"] .submenu-toggle:focus-visible {
      background: linear-gradient(135deg, rgba(73, 181, 171, 0.24), rgba(246, 200, 107, 0.22));
      box-shadow: inset 0 0 0 1px rgba(122, 213, 204, 0.28), 0 10px 22px rgba(0, 0, 0, 0.28);
    }

    html[data-theme="dark"] .submenu-toggle[aria-expanded="true"] {
      background: linear-gradient(135deg, #49b5ab, #2f8f87);
      color: #f7fffd;
    }

    html[data-theme="dark"] .nav-submenu-panel {
      border-color: rgba(148, 163, 184, 0.24);
      background: linear-gradient(180deg, rgba(21, 34, 53, 0.98), rgba(26, 43, 64, 0.96));
      box-shadow: 0 24px 42px rgba(0, 0, 0, 0.34);
    }

    html[data-theme="dark"] .nav-submenu-section {
      background: rgba(26, 43, 64, 0.82);
      border-color: rgba(148, 163, 184, 0.16);
    }

    html[data-theme="dark"] .nav-submenu-heading {
      color: var(--ink);
    }

    html[data-theme="dark"] .nav-submenu-heading:hover,
    html[data-theme="dark"] .nav-submenu-heading:focus {
      color: var(--brand-strong);
    }

    html[data-theme="dark"] .nav-submenu-toggle-count {
      background: rgba(21, 34, 53, 0.92);
      color: #d7f5f0;
      box-shadow: inset 0 0 0 1px rgba(122, 213, 204, 0.2);
    }

    html[data-theme="dark"] .nav-submenu-link,
    html[data-theme="dark"] .nav-submenu-mobile,
    html[data-theme="dark"] .nav-submenu-mobile-card,
    html[data-theme="dark"] .nav-submenu-mobile-link {
      background: rgba(26, 43, 64, 0.82);
      color: var(--muted);
      border-color: rgba(148, 163, 184, 0.16);
    }

    html[data-theme="dark"] .nav-submenu-link:hover,
    html[data-theme="dark"] .nav-submenu-link:focus,
    html[data-theme="dark"] .nav-submenu-mobile-link:hover,
    html[data-theme="dark"] .nav-submenu-mobile-link:focus {
      background: rgba(33, 55, 82, 0.92);
      color: var(--brand-strong);
    }

    html[data-theme="dark"] .nav-submenu-link--featured {
      background: rgba(246, 200, 107, 0.18);
      color: #ffe8b8;
      box-shadow: inset 0 0 0 1px rgba(246, 200, 107, 0.22);
    }

    html[data-theme="dark"] .nav-submenu-mobile-label {
      color: var(--muted);
    }

    html[data-theme="dark"] .nav-submenu-group-label {
      color: var(--muted);
    }

    html[data-theme="dark"] .nav-menu-toggle {
      background: linear-gradient(135deg, rgba(21, 34, 53, 0.92), rgba(28, 45, 67, 0.9));
      color: var(--ink);
      border-color: rgba(122, 213, 204, 0.16);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    }

    html[data-theme="dark"] .nav-menu-toggle:hover,
    html[data-theme="dark"] .nav-menu-toggle:focus-visible {
      background: linear-gradient(135deg, rgba(26, 43, 64, 0.98), rgba(35, 58, 86, 0.96));
      color: var(--brand-strong);
    }

    .theme-toggle {
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--ink);
      border-radius: 999px;
      padding: 0.35rem 0.82rem;
      line-height: 1;
      font-size: 0.86rem;
      cursor: pointer;
    }

    .theme-toggle:hover,
    .theme-toggle:focus-visible {
      background: var(--surface-soft);
      outline: none;
    }

    .page-main {
      display: grid;
      gap: 1.7rem;
      margin-top: 1.2rem;
    }

    .hero {
      position: relative;
      overflow: hidden;
      background: linear-gradient(140deg, rgba(13, 94, 88, 0.94), rgba(19, 122, 136, 0.88));
      color: #f8fbff;
      border-radius: 1.6rem;
      padding: clamp(1.45rem, 3vw, 2.4rem);
      box-shadow: var(--shadow);
      animation: rise-in 0.62s ease both;
    }

    .hero::after {
      content: "";
      position: absolute;
      width: 420px;
      height: 420px;
      border-radius: 50%;
      right: -140px;
      top: -170px;
      background: radial-gradient(circle, rgba(245, 177, 58, 0.25) 0%, transparent 68%);
    }

    .hero-grid {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 1.2rem 1.8rem;
      align-items: end;
    }

    @media (min-width: 992px) {
      .hero-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
      }
    }

    .eyebrow {
      text-transform: uppercase;
      letter-spacing: 0.24em;
      font-size: 0.73rem;
      opacity: 0.88;
      font-weight: 700;
    }

    .hero-title {
      font-size: clamp(2rem, 4.6vw, 3.25rem);
      line-height: 1.12;
      margin: 0.55rem 0 0.7rem;
    }

    .hero-subtitle {
      font-size: clamp(1rem, 2.1vw, 1.2rem);
      opacity: 0.93;
      margin: 0;
      max-width: 58ch;
    }

    .hero-actions {
      margin-top: 1.2rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem;
    }

    .hero-btn {
      text-decoration: none;
      border-radius: 999px;
      font-weight: 700;
      font-size: 0.9rem;
      padding: 0.58rem 1rem;
      border: 1px solid transparent;
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .hero-btn-primary {
      background: var(--sun);
      color: #2d1e01;
    }

    .hero-btn-secondary {
      border-color: rgba(255, 255, 255, 0.65);
      color: #f5fbff;
      background: rgba(255, 255, 255, 0.06);
    }

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

    .hero-kpis {
      display: grid;
      gap: 0.75rem;
    }

    .hero-kpi {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: 0.9rem;
      padding: 0.75rem 0.85rem;
    }

    .hero-kpi strong {
      display: block;
      font-size: 1.18rem;
      line-height: 1.2;
    }

    .hero-kpi span {
      font-size: 0.86rem;
      opacity: 0.93;
    }

    .surface {
      background: var(--surface);
      border-radius: 1.25rem;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      padding: clamp(1.15rem, 2.4vw, 1.8rem);
      animation: rise-in 0.72s ease both;
      animation-delay: 0.05s;
    }

    .section-head {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 0.8rem;
      align-items: end;
      margin-bottom: 1.05rem;
    }

    .section-title {
      font-size: clamp(1.4rem, 2.5vw, 2rem);
      margin-bottom: 0.35rem;
    }

    .section-lead {
      margin: 0;
      color: var(--muted);
      max-width: 64ch;
      font-size: 0.98rem;
      line-height: 1.64;
    }

    .program-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.95rem;
    }

    .program-card {
      background: linear-gradient(165deg, var(--surface-soft) 0%, var(--surface) 85%);
      border: 1px solid var(--border);
      border-radius: 0.98rem;
      padding: 0.95rem;
      display: grid;
      gap: 0.65rem;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .program-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    }

    .program-badge {
      display: inline-block;
      width: fit-content;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--brand-strong);
      background: rgba(15, 118, 110, 0.12);
      border-radius: 999px;
      padding: 0.26rem 0.55rem;
    }

    .program-card h3 {
      margin: 0;
      font-size: 1.02rem;
      line-height: 1.3;
    }

    .program-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.52;
    }

    .program-meta {
      margin-top: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.84rem;
      color: var(--ink);
      font-weight: 600;
      gap: 0.6rem;
      padding-top: 0.25rem;
    }

    .split-grid {
      display: grid;
      gap: 1rem;
    }

    @media (min-width: 992px) {
      .split-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      }
    }

    .process-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.7rem;
    }

    .process-item {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 0.7rem;
      align-items: start;
      background: var(--surface-soft);
      border: 1px solid var(--border);
      border-radius: 0.85rem;
      padding: 0.75rem;
    }

    .process-index {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--brand);
      color: #fff;
      font-size: 0.82rem;
      font-weight: 700;
    }

    .process-item h3 {
      margin: 0 0 0.25rem;
      font-size: 1rem;
    }

    .process-item p {
      margin: 0;
      color: var(--muted);
      font-size: 0.91rem;
      line-height: 1.5;
    }

    .criteria-panel {
      background: linear-gradient(155deg, var(--surface-strong), var(--surface));
      border: 1px solid var(--border);
      border-radius: 1rem;
      padding: 1rem;
    }

    .criteria-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.52rem;
    }

    .criteria-list li {
      border: 1px solid var(--border);
      background: var(--surface);
      border-radius: 999px;
      padding: 0.32rem 0.62rem;
      font-size: 0.84rem;
      color: var(--ink);
    }

    .cta {
      background: linear-gradient(128deg, rgba(245, 177, 58, 0.24), rgba(15, 118, 110, 0.2));
      border: 1px solid var(--border);
      border-radius: 1.3rem;
      padding: clamp(1.05rem, 2.2vw, 1.6rem);
      display: grid;
      gap: 0.7rem;
      align-items: center;
    }

    @media (min-width: 768px) {
      .cta {
        grid-template-columns: minmax(0, 1fr) auto;
      }
    }

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

    .cta-link {
      text-decoration: none;
      font-weight: 700;
      color: #fff;
      background: var(--brand-strong);
      border-radius: 999px;
      padding: 0.6rem 1rem;
      width: fit-content;
      white-space: nowrap;
    }

    .site-footer {
      margin-top: 1.8rem;
      border-top: 1px solid var(--border);
      padding-top: 1rem;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.7rem;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .site-footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      align-items: center;
    }

    .site-footer a {
      color: var(--brand-strong);
      text-decoration: none;
      font-weight: 600;
    }

    .site-footer a:hover,
    .site-footer a:focus {
      text-decoration: underline;
    }

    @keyframes rise-in {
      from {
        opacity: 0;
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .hero,
      .surface {
        animation: none;
      }
    }

    @media (max-width: 860px) {
      .site-nav {
        border-radius: 0.9rem;
      }

      .nav-menu-toggle {
        display: inline-flex;
      }

      .nav-menu {
        width: 100%;
        margin-left: 0;
        min-height: 0;
        max-height: var(--mobile-nav-menu-max-height, calc(100dvh - 5.5rem));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
      }

      .nav-links {
        width: 100%;
        align-items: stretch;
        padding-top: 0.4rem;
      }

      .nav-links > li,
      .nav-links > .nav-item {
        width: 100%;
      }

      .nav-links a,
      .nav-inline-button,
      .nav-item-row .nav-link,
      .nav-submenu-link,
      .nav-submenu-mobile-link,
      .theme-toggle {
        width: 100%;
      }

      .nav-item-row {
        width: 100%;
        justify-content: space-between;
      }

      .nav-item-row .nav-link {
        flex: 1 1 auto;
        min-width: 0;
      }

      .nav-submenu-wrapper {
        margin-top: 0.35rem;
      }

      .nav-submenu-panel {
        display: none;
      }

      .nav-submenu-mobile {
        display: block;
      }
    }

    @media (min-width: 861px) {
      .nav-menu {
        display: block !important;
      }

      .nav-item--has-children .nav-submenu-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 0.75rem);
        z-index: 30;
      }
    }

.link-panel {
  background: linear-gradient(135deg, var(--surface), var(--surface-soft-2));
  border-radius: 1.75rem;
  padding: 2.25rem;
  box-shadow: var(--panel-shadow);
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
}

.link-panel::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.25), transparent 70%);
  pointer-events: none;
}

.link-panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.link-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--muted-ink);
  margin-bottom: 0.4rem;
}

.link-panel h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.link-count {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  color: var(--muted-ink);
}

.link-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

.link-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-ink);
}

.link-card-media {
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 1 / 1;
}

.link-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.link-tag {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--link-tag-bg);
  color: var(--link-tag-ink);
  
  font-weight: 600;
}

.link-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.35;
}

.link-meta {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.disclaimer {
  font-style: italic;
}

/* Partial: websites2/webelements/templates/frontend/partials/lead_capture_widget_foerderung.html */
.lead-capture {
  --lead-ink: var(--ink, #15202b);
  --lead-muted: var(--muted, #4f5e6f);
  --lead-border: var(--border, rgba(15, 23, 42, 0.12));
  --lead-shadow: var(--shadow, 0 16px 35px rgba(15, 23, 42, 0.12));
  --lead-surface: var(--surface, #fff);
  --lead-surface-soft: var(--surface-soft, #f4f5f7);
  --lead-surface-soft-2: var(--surface-strong, #eef3f8);
  --lead-accent: var(--accent-strong, #f77f00);
  margin: 2rem auto 2.5rem;
  max-width: 1200px;
  padding: 0 1.25rem;
}

html[data-theme="dark"] .lead-capture {
  --lead-muted: #c8d5e4;
  --lead-border: rgba(148, 163, 184, 0.34);
  --lead-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
  --lead-surface-soft-2: var(--surface-strong, #213752);
}

.lead-capture:focus,
.lead-capture:focus-visible {
  outline: none;
}

.lead-capture__inner {
  border: 1px solid var(--lead-border);
  box-shadow: var(--lead-shadow);
  border-radius: 1.25rem;
  background: var(--lead-surface);
  padding: 1.5rem;
}

.lead-capture__title {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--lead-ink);
}

.lead-capture__text {
  margin-bottom: 1rem;
  color: var(--lead-muted);
}

.lead-capture__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lead-capture__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.lead-capture__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
}

.lead-capture__error {
  color: #b00020;
  font-size: 0.92rem;
}

.lead-capture__button {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  background: var(--lead-accent);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1rem;
}

html[data-theme="dark"] .lead-capture__button {
  background: #f6c86b;
  color: #2b1c00;
}

.lead-capture__preview {
  border: 1px solid var(--lead-border);
  background: var(--lead-surface-soft);
  border-radius: 0.8rem;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.lead-comments {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--lead-border);
}

.lead-comments__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.lead-comments__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--lead-ink);
}

.lead-comments__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(247, 127, 0, 0.14);
  color: var(--lead-accent);
}

.lead-comments__list {
  display: grid;
  gap: 0.8rem;
}

.lead-comment-card {
  border: 1px solid var(--lead-border);
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--lead-surface), var(--lead-surface-soft-2));
  padding: 0.9rem 1rem;
}

.lead-comment-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.lead-comment-card__author {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(255, 183, 3, 0.18);
  color: #7a4b00;
}

.lead-comment-card__time {
  font-size: 0.82rem;
  color: var(--lead-muted);
}

.lead-comment-card__text {
  margin: 0;
  color: var(--lead-ink);
  line-height: 1.55;
  white-space: normal;
}

@media (min-width: 860px) {
  .lead-capture__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared page: news_detail.html */
.news-entry-page {
  display: grid;
  gap: 1.5rem;
}
.news-entry-hero,
.news-entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}
.news-entry-hero {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.news-entry-kicker {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.news-entry-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.news-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.news-entry-card {
  padding: clamp(1.25rem, 2vw, 2rem);
}
.news-entry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.news-entry-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.news-entry-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.news-entry-gallery figcaption {
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.news-entry-richtext,
.news-entry-richtext p,
.news-entry-richtext li {
  color: var(--ink);
  line-height: 1.75;
}
.news-entry-richtext > *:first-child {
  margin-top: 0;
}
.news-entry-richtext > *:last-child {
  margin-bottom: 0;
}

/* Template: websites2/webelements/templates/frontend/document_foerderung.html */
.funding-query-panel {
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(13, 94, 88, 0.03), rgba(13, 94, 88, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.funding-query-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.funding-query-eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.funding-query-heading {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.25;
}

.funding-query-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.1);
  color: var(--brand-strong);
  font-size: 0.83rem;
  font-weight: 700;
}

.funding-query-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funding-query-list-item {
  margin: 0;
  padding: 0;
}

.funding-query-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.funding-query-item.has-media {
  grid-template-columns: 2.35rem 5.75rem minmax(0, 1fr) auto;
}

.funding-query-item:hover,
.funding-query-item:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(13, 94, 88, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.funding-query-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(13, 94, 88, 0.12), rgba(245, 177, 58, 0.18));
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.funding-query-media {
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--surface-soft);
}

.funding-query-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.funding-query-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.funding-query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.funding-query-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.12);
  color: #0d5e58;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.funding-query-pill-secondary {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}
.funding-query-pill-hero {
  background: rgba(245, 177, 58, 0.7);
  color: #7a4c00;
}
.funding-query-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.funding-query-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.funding-query-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.funding-query-arrow {
  align-self: center;
  color: var(--brand-strong);
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .funding-query-panel {
    padding: 0.9rem;
  }

  .funding-query-item,
  .funding-query-item.has-media {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .funding-query-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
  }

  .funding-query-media {
    grid-column: 2;
    margin-top: -0.05rem;
  }

  .funding-query-media img {
    aspect-ratio: 16 / 7;
  }

  .funding-query-main {
    grid-column: 2;
  }

  .funding-query-arrow {
    display: none;
  }
}

html[data-theme="dark"] .funding-query-panel {
  background:
    linear-gradient(180deg, rgba(88, 214, 192, 0.08), rgba(88, 214, 192, 0)),
    linear-gradient(145deg, rgba(18, 24, 32, 0.92), rgba(14, 20, 28, 0.98));
}

html[data-theme="dark"] .funding-query-count {
  background: rgba(88, 214, 192, 0.16);
  color: #d9fff6;
}

html[data-theme="dark"] .funding-query-item {
  background: rgba(20, 28, 38, 0.88);
}

html[data-theme="dark"] .funding-query-item:hover,
html[data-theme="dark"] .funding-query-item:focus {
  background: rgba(24, 34, 46, 0.98);
  border-color: rgba(88, 214, 192, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .funding-query-index {
  background: linear-gradient(145deg, rgba(88, 214, 192, 0.18), rgba(255, 196, 92, 0.16));
  color: #e6fff9;
}

html[data-theme="dark"] .funding-query-pill {
  background: rgba(88, 214, 192, 0.2);
  color: #d7fff5;
  border: 1px solid rgba(88, 214, 192, 0.24);
}

html[data-theme="dark"] .funding-query-pill-secondary {
  background: rgba(255, 196, 92, 0.2);
  color: #fff0c7;
  border: 1px solid rgba(255, 196, 92, 0.22);
}

.funding-detail-page {
  gap: 1.2rem;
}

#kommentar {
  scroll-margin-top: calc(var(--site-header-offset, 72px) + 1rem);
}

.funding-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: linear-gradient(138deg, rgba(13, 94, 88, 0.95), rgba(17, 132, 128, 0.86));
  color: #f8fbff;
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
}

.funding-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(245, 177, 58, 0.22), transparent 72%);
}

.funding-hero > * {
  position: relative;
  z-index: 1;
}

.funding-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.86;
}

.funding-title {
  margin: 0.45rem 0 0.6rem;
  font-size: clamp(1.7rem, 4.2vw, 2.8rem);
  line-height: 1.16;
}

.funding-intro {
  margin: 0;
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.62;
  opacity: 0.95;
}

.funding-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.funding-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.82rem;
}

.funding-chip--interactive {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.funding-chip--reminder {
  border-color: rgba(255, 248, 196, 0.62);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(250, 215, 87, 0.26));
  box-shadow: 0 10px 22px rgba(250, 215, 87, 0.18);
}

.funding-chip--interactive:hover,
.funding-chip--interactive:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.funding-chip--reminder:hover,
.funding-chip--reminder:focus-visible {
  box-shadow: 0 12px 26px rgba(250, 215, 87, 0.26);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(250, 215, 87, 0.34));
}

.funding-chip__action {
  font-weight: 700;
}

.funding-chip.yellow {
  background: #FADC57;
  color:black;
}

.funding-chip.danger {
  background: #FA7157;
}
.funding-chip.secondary {
  background: #919191;
}

.funding-action-toolbar {
  display: grid;
  gap: 1rem;
  margin-top: -0.15rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(244, 250, 248, 0.96), rgba(236, 245, 242, 0.98));
  border: 1px solid rgba(13, 94, 88, 0.12);
  box-shadow: 0 14px 36px rgba(13, 94, 88, 0.08);
}

.funding-action-toolbar__intro {
  display: grid;
  gap: 0.25rem;
}

.funding-action-toolbar__eyebrow {
  margin: 0;
  color: #5c756e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.funding-action-toolbar__title {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.funding-action-toolbar__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.funding-action-toolbar__actions {
  display: grid;
  gap: 0.8rem;
}

.funding-action {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(13, 94, 88, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(13, 94, 88, 0.05);
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

button.funding-action {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.funding-action:hover,
.funding-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(13, 94, 88, 0.24);
  box-shadow: 0 14px 28px rgba(13, 94, 88, 0.11);
  text-decoration: none;
  color: var(--ink);
  outline: none;
}

.funding-action--primary {
  background: linear-gradient(180deg, rgba(13, 94, 88, 0.96), rgba(18, 113, 107, 0.97));
  color: #f8fbff;
  border-color: transparent;
}

.funding-action--primary:hover,
.funding-action--primary:focus-visible {
  color: #f8fbff;
  background: linear-gradient(180deg, rgba(11, 82, 77, 0.98), rgba(16, 101, 95, 0.99));
}

.funding-action__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.09);
  color: var(--brand-strong);
}

.funding-action--primary .funding-action__icon {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fbff;
}

.funding-action__body {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.funding-action__label {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}

.funding-action__meta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.funding-action--primary .funding-action__meta {
  color: rgba(248, 251, 255, 0.84);
}

html[data-theme="dark"] .funding-action-toolbar {
  background: linear-gradient(180deg, rgba(22, 38, 57, 0.96), rgba(26, 45, 66, 0.99));
  border-color: rgba(122, 213, 204, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .funding-action-toolbar__eyebrow {
  color: #9fd9d1;
}

html[data-theme="dark"] .funding-action-toolbar__text {
  color: #d2deeb;
}

html[data-theme="dark"] .funding-action {
  background: linear-gradient(180deg, rgba(29, 48, 71, 0.96), rgba(24, 41, 61, 0.98));
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .funding-action:hover,
html[data-theme="dark"] .funding-action:focus-visible {
  border-color: rgba(122, 213, 204, 0.5);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .funding-action--primary {
  background: linear-gradient(180deg, rgba(75, 181, 171, 0.28), rgba(50, 139, 131, 0.42));
  border-color: rgba(122, 213, 204, 0.42);
  color: #f3fbff;
}

html[data-theme="dark"] .funding-action--primary:hover,
html[data-theme="dark"] .funding-action--primary:focus-visible {
  background: linear-gradient(180deg, rgba(86, 201, 191, 0.34), rgba(58, 155, 146, 0.48));
  color: #f3fbff;
}

html[data-theme="dark"] .funding-action__icon {
  background: rgba(122, 213, 204, 0.14);
  color: #b8f0e8;
}

html[data-theme="dark"] .funding-action--primary .funding-action__icon {
  background: rgba(230, 237, 246, 0.12);
  color: #f3fbff;
}

html[data-theme="dark"] .funding-action__meta {
  color: #d2deeb;
}

html[data-theme="dark"] .funding-action--primary .funding-action__meta {
  color: rgba(243, 251, 255, 0.9);
}

.funding-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .funding-action-toolbar {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
    align-items: center;
  }

  .funding-action-toolbar__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .funding-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
    align-items: start;
  }

  .funding-sidebar {
    position: sticky;
    top: 84px;
  }
}

.funding-stack,
.funding-sidebar {
  display: grid;
  gap: 1rem;
}

.fd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.fd-card h2,
.fd-card h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
}

.fd-card p {
  color: var(--muted);
  line-height: 1.65;
}

.fd-richtext,
.fd-richtext p,
.fd-richtext li {
  color: var(--muted);
  line-height: 1.65;
}

.fd-richtext > *:first-child {
  margin-top: 0;
}

.fd-richtext > *:last-child {
  margin-bottom: 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
}

.fact-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-soft);
  padding: 0.72rem;
}

.fact-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.22rem;
}

.fact-value {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.38;
}

.funder-name {
  font-size: 1.04rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0;
}

.category-groups {
  display: grid;
  gap: 0.85rem;
}

.category-group {
  display: grid;
  gap: 0.45rem;
}

.category-group-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.funding-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  background: var(--brand-strong);
  color: #fff;
}

.funding-link:hover,
.funding-link:focus {
  color: #fff;
  text-decoration: none;
}

.funding-richtext-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 94, 88, 0.96), rgba(18, 113, 107, 0.97));
  box-shadow: 0 12px 24px rgba(13, 94, 88, 0.18);
  color: #f8fbff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.funding-richtext-button::after {
  content: "→";
  font-size: 0.95em;
  line-height: 1;
}

.funding-richtext-button:hover,
.funding-richtext-button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(11, 82, 77, 0.98), rgba(16, 101, 95, 0.99));
  box-shadow: 0 16px 30px rgba(13, 94, 88, 0.24);
  color: #f8fbff;
  text-decoration: none;
  outline: none;
}

html[data-theme="dark"] .funding-richtext-button {
  background: linear-gradient(180deg, rgba(88, 214, 192, 0.2), rgba(13, 94, 88, 0.88));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  color: #f8fbff;
}

html[data-theme="dark"] .funding-richtext-button:hover,
html[data-theme="dark"] .funding-richtext-button:focus-visible {
  background: linear-gradient(180deg, rgba(88, 214, 192, 0.26), rgba(11, 82, 77, 0.94));
  color: #ffffff;
}

.funding-query-footer {
  margin-top: 1rem;
}

.no-data-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .funding-action {
    padding: 0.9rem;
  }

  .funding-action__meta {
    font-size: 0.88rem;
  }
}

body.funding-reminder-modal-open {
  overflow: hidden;
}

body.share-modal-open {
  overflow: hidden;
}

.funding-share-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.funding-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 31, 0.58);
  backdrop-filter: blur(4px);
}

.funding-share-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(72vh, 38rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.03) 36%, rgba(255, 255, 255, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.24),
    0 8px 24px rgba(15, 118, 110, 0.12);
  padding: clamp(1.15rem, 2.8vw, 1.5rem);
}

.funding-share-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.funding-share-modal__close:hover,
.funding-share-modal__close:focus-visible {
  background: var(--surface);
  color: var(--brand-strong);
  outline: none;
}

.funding-share-panel {
  display: grid;
  gap: 0.9rem;
}

.funding-share-modal__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.funding-share-modal__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.funding-share-modal__buttons {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.funding-share-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.78rem 1rem;
  font-size: 0.95rem;
  border-radius: 0.95rem;
}

.funding-share-button i {
  width: 1.2rem;
  text-align: center;
}

html[data-theme="dark"] .funding-share-modal__dialog {
  background:
    linear-gradient(180deg, rgba(75, 181, 171, 0.14), rgba(75, 181, 171, 0.04) 36%, rgba(255, 255, 255, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
}

html[data-theme="dark"] .funding-share-modal__close {
  background: rgba(26, 43, 64, 0.9);
}

html[data-theme="dark"] .funding-share-button:not(.share-button--whatsapp):not(.share-button--facebook) {
  background: linear-gradient(180deg, rgba(230, 237, 246, 0.14), rgba(230, 237, 246, 0.08));
  border-color: rgba(139, 215, 255, 0.3);
  color: #f3fbff;
}

html[data-theme="dark"] .funding-share-button:not(.share-button--whatsapp):not(.share-button--facebook):hover,
html[data-theme="dark"] .funding-share-button:not(.share-button--whatsapp):not(.share-button--facebook):focus-visible {
  border-color: rgba(139, 215, 255, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

.funding-reminder-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.funding-reminder-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 31, 0.58);
  backdrop-filter: blur(4px);
}

.funding-reminder-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(75vh, 42rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(15, 118, 110, 0.03) 36%, rgba(255, 255, 255, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.24),
    0 8px 24px rgba(15, 118, 110, 0.12);
  padding: clamp(1.15rem, 2.8vw, 1.5rem);
}

.funding-reminder-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.funding-reminder-modal__close:hover,
.funding-reminder-modal__close:focus-visible {
  background: var(--surface);
  color: var(--brand-strong);
  outline: none;
}

.funding-reminder-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.funding-reminder-modal__text,
.funding-reminder-modal__hint,
.funding-reminder-modal__status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.funding-reminder-modal__hint {
  margin-top: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(15, 118, 110, 0.04));
  border: 1px solid var(--border);
}

.funding-reminder-modal__label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.funding-reminder-modal__date {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.funding-reminder-modal__date:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
  border-color: rgba(15, 118, 110, 0.35);
}

.funding-reminder-modal__actions {
  margin-top: 1rem;
}

.funding-reminder-modal__form[hidden] {
  display: none;
}

.funding-reminder-modal__button,
.funding-reminder-modal__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.funding-reminder-modal__button {
  border: 1px solid rgba(13, 94, 88, 0.12);
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  box-shadow: 0 16px 28px rgba(13, 94, 88, 0.26);
}

.funding-reminder-modal__button:hover,
.funding-reminder-modal__button:focus-visible {
  transform: translateY(-1px);
  color: #fff;
  outline: none;
  box-shadow: 0 20px 34px rgba(13, 94, 88, 0.32);
}

.funding-reminder-modal__result {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.funding-reminder-modal__link {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.08));
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--brand-strong);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.funding-reminder-modal__link:hover,
.funding-reminder-modal__link:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--brand-strong);
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(15, 118, 110, 0.12));
  outline: none;
}

.funding-reminder-modal__link--secondary {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(15, 118, 110, 0.08));
}

@media (max-width: 640px) {
  .funding-reminder-modal__dialog {
    width: 100%;
    max-height: min(82vh, 46rem);
    border-radius: 1.25rem;
  }

  .funding-reminder-modal__result,
  .funding-reminder-modal__button,
  .funding-reminder-modal__link {
    width: 100%;
  }
}

.funding-related-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

/* Template: websites2/webelements/templates/frontend/homepage_foerderung.html */
.funding-query-panel {
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(13, 94, 88, 0.03), rgba(13, 94, 88, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.funding-query-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.funding-query-eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.funding-query-heading {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.25;
}

.funding-query-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.1);
  color: var(--brand-strong);
  font-size: 0.83rem;
  font-weight: 700;
}

.funding-query-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funding-query-list-item {
  margin: 0;
  padding: 0;
}

.funding-query-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.funding-query-item.has-media {
  grid-template-columns: 2.35rem 5.75rem minmax(0, 1fr) auto;
}

.funding-query-item:hover,
.funding-query-item:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(13, 94, 88, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.funding-query-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(13, 94, 88, 0.12), rgba(245, 177, 58, 0.18));
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.funding-query-media {
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--surface-soft);
}

.funding-query-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.funding-query-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.funding-query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.funding-query-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.12);
  color: #0d5e58;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.funding-query-pill-secondary {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}

.funding-query-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.funding-query-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.funding-query-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.funding-query-arrow {
  align-self: center;
  color: var(--brand-strong);
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .funding-query-panel {
    padding: 0.9rem;
  }

  .funding-query-item,
  .funding-query-item.has-media {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .funding-query-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
  }

  .funding-query-media {
    grid-column: 2;
    margin-top: -0.05rem;
  }

  .funding-query-media img {
    aspect-ratio: 16 / 7;
  }

  .funding-query-main {
    grid-column: 2;
  }

  .funding-query-arrow {
    display: none;
  }
}

html[data-theme="dark"] .funding-query-panel {
  background:
    linear-gradient(180deg, rgba(88, 214, 192, 0.08), rgba(88, 214, 192, 0)),
    linear-gradient(145deg, rgba(18, 24, 32, 0.92), rgba(14, 20, 28, 0.98));
}

html[data-theme="dark"] .funding-query-count {
  background: rgba(88, 214, 192, 0.16);
  color: #d9fff6;
}

html[data-theme="dark"] .funding-query-item {
  background: rgba(20, 28, 38, 0.88);
}

html[data-theme="dark"] .funding-query-item:hover,
html[data-theme="dark"] .funding-query-item:focus {
  background: rgba(24, 34, 46, 0.98);
  border-color: rgba(88, 214, 192, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .funding-query-index {
  background: linear-gradient(145deg, rgba(88, 214, 192, 0.18), rgba(255, 196, 92, 0.16));
  color: #e6fff9;
}

html[data-theme="dark"] .funding-query-pill {
  background: rgba(88, 214, 192, 0.2);
  color: #d7fff5;
  border: 1px solid rgba(88, 214, 192, 0.24);
}

html[data-theme="dark"] .funding-query-pill-secondary {
  background: rgba(255, 196, 92, 0.2);
  color: #fff0c7;
  border: 1px solid rgba(255, 196, 92, 0.22);
}

.link-card-header {
  align-items: flex-start;
  gap: 0.7rem;
}

.link-card-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.link-tag {
  padding: 0.25rem 0.56rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.12);
  color: #0d5e58;
  font-weight: 700;
}

.link-tag-secondary {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}

html[data-theme="dark"] .link-tag {
  background: rgba(88, 214, 192, 0.2);
  color: #d7fff5;
  border: 1px solid rgba(88, 214, 192, 0.34);
}

html[data-theme="dark"] .link-tag-secondary {
  background: rgba(255, 196, 92, 0.24);
  color: #fff0c7;
  border: 1px solid rgba(255, 196, 92, 0.32);
}

.category-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.6rem;
  align-items: flex-start;
}

.category-chip-link {
  display: inline-flex;
  text-decoration: none;
}

.homepage-dynamic-section {
  overflow: hidden;
  padding: 0;
}

.homepage-section-body {
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.homepage-inline-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  background-size: cover;
  background-position: center;
}

.homepage-richtext,
.homepage-richtext p,
.homepage-richtext li {
  color: var(--muted);
  line-height: 1.68;
}

.homepage-richtext > *:first-child {
  margin-top: 0;
}

.homepage-richtext > *:last-child {
  margin-bottom: 0;
}

.homepage-richtext-primary {
  padding: 0.35rem 0;
}

.hero-search-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 24rem;
  min-width: min(100%, 24rem);
  max-width: 38rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f8fbff;
  padding: 0.72rem 0.95rem;
  font-size: 0.96rem;
}

.hero-search-input::placeholder {
  color: rgba(248, 251, 255, 0.72);
}

.hero-search-input:focus {
  outline: none;
}

.hero-search-form:focus-within {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.hero-search-submit {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-strong);
  font-weight: 800;
  padding: 0.72rem 1.05rem;
  white-space: nowrap;
}

.hero-search-submit:hover,
.hero-search-submit:focus-visible {
  background: #ffffff;
  color: var(--brand-strong);
}

@media (max-width: 575.98px) {
  .hero-search-form {
    min-width: 100%;
  }

  .hero-search-submit {
    padding-inline: 0.9rem;
  }
}

/* Template: websites2/webelements/templates/frontend/topicpage_foerderung.html */
.funding-query-panel {
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(13, 94, 88, 0.03), rgba(13, 94, 88, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.funding-query-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.funding-query-eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.funding-query-heading {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.25;
}

.funding-query-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.1);
  color: var(--brand-strong);
  font-size: 0.83rem;
  font-weight: 700;
}

.funding-query-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funding-query-list-item {
  margin: 0;
  padding: 0;
}

.funding-query-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.funding-query-item.has-media {
  grid-template-columns: 2.35rem 5.75rem minmax(0, 1fr) auto;
}

.funding-query-item:hover,
.funding-query-item:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(13, 94, 88, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.funding-query-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(13, 94, 88, 0.12), rgba(245, 177, 58, 0.18));
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.funding-query-media {
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--surface-soft);
}

.funding-query-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.funding-query-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.funding-query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.funding-query-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.12);
  color: #0d5e58;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.funding-query-pill-secondary {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}

.funding-query-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.funding-query-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.funding-query-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.funding-query-arrow {
  align-self: center;
  color: var(--brand-strong);
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .funding-query-panel {
    padding: 0.9rem;
  }

  .funding-query-item,
  .funding-query-item.has-media {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .funding-query-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
  }

  .funding-query-media {
    grid-column: 2;
    margin-top: -0.05rem;
  }

  .funding-query-media img {
    aspect-ratio: 16 / 7;
  }

  .funding-query-main {
    grid-column: 2;
  }

  .funding-query-arrow {
    display: none;
  }
}

html[data-theme="dark"] .funding-query-panel {
  background:
    linear-gradient(180deg, rgba(88, 214, 192, 0.08), rgba(88, 214, 192, 0)),
    linear-gradient(145deg, rgba(18, 24, 32, 0.92), rgba(14, 20, 28, 0.98));
}

html[data-theme="dark"] .funding-query-count {
  background: rgba(88, 214, 192, 0.16);
  color: #d9fff6;
}

html[data-theme="dark"] .funding-query-item {
  background: rgba(20, 28, 38, 0.88);
}

html[data-theme="dark"] .funding-query-item:hover,
html[data-theme="dark"] .funding-query-item:focus {
  background: rgba(24, 34, 46, 0.98);
  border-color: rgba(88, 214, 192, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .funding-query-index {
  background: linear-gradient(145deg, rgba(88, 214, 192, 0.18), rgba(255, 196, 92, 0.16));
  color: #e6fff9;
}

html[data-theme="dark"] .funding-query-pill {
  background: rgba(88, 214, 192, 0.2);
  color: #d7fff5;
  border: 1px solid rgba(88, 214, 192, 0.24);
}

html[data-theme="dark"] .funding-query-pill-secondary {
  background: rgba(255, 196, 92, 0.2);
  color: #fff0c7;
  border: 1px solid rgba(255, 196, 92, 0.22);
}

.funding-topic-page {
  display: grid;
  gap: 1rem;
}

.funding-topic-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.35rem;
  background: linear-gradient(138deg, rgba(13, 94, 88, 0.95), rgba(17, 132, 128, 0.86));
  color: #f8fbff;
  box-shadow: var(--shadow);
}

.funding-topic-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -140px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 177, 58, 0.22), transparent 72%);
}

.funding-topic-hero > * {
  position: relative;
  z-index: 1;
}

.funding-topic-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.86;
}

.funding-topic-title {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.12;
}

.funding-topic-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.45;
  opacity: 0.95;
}

.funding-topic-lead {
  margin: 0.9rem 0 0;
  max-width: 72ch;
  line-height: 1.68;
  opacity: 0.95;
}

.funding-topic-layout {
  display: grid;
  gap: 1rem;
}

.funding-topic-card,
.funding-topic-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.funding-topic-panel {
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.funding-topic-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .funding-topic-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.95fr);
    align-items: start;
  }
}

.funding-topic-card {
  overflow: hidden;
}

.funding-topic-card-body {
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.funding-topic-card h2,
.funding-topic-card h3,
.funding-topic-panel h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.16rem, 2.2vw, 1.45rem);
}

.funding-topic-richtext,
.funding-topic-richtext p,
.funding-topic-richtext li {
  color: var(--muted);
  line-height: 1.68;
}

.funding-topic-richtext > *:first-child {
  margin-top: 0;
}

.funding-topic-richtext > *:last-child {
  margin-bottom: 0;
}

.funding-topic-infobox {
  background: linear-gradient(145deg, rgba(245, 177, 58, 0.14), rgba(15, 118, 110, 0.08));
}

.topic-inline-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  background-size: cover;
  background-position: center;
}

.gallery-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.4rem);
}

.gallery-header {
  margin-bottom: 1rem;
}

.gallery-header h3 {
  margin: 0 0 0.35rem;
}

.gallery-subtitle {
  margin: 0;
  color: var(--muted);
}

.gallery-main-media {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface-soft);
}

.gallery-main-media img {
  width: 100%;
  display: block;
}

.gallery-caption {
  color: var(--muted);
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.thumb {
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 2px solid transparent;
}

.thumb[aria-current="true"] .thumb-img {
  border-color: rgba(13, 94, 88, 0.5);
}

.topic-share {
  margin-top: 0.5rem;
}

/* Template: websites2/webelements/templates/frontend/search_foerderung.html */
.funding-query-panel {
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(13, 94, 88, 0.03), rgba(13, 94, 88, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.funding-query-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.funding-query-eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.funding-query-heading {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.25;
}

.funding-query-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.1);
  color: var(--brand-strong);
  font-size: 0.83rem;
  font-weight: 700;
}

.funding-query-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funding-query-list-item {
  margin: 0;
  padding: 0;
}

.funding-query-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.funding-query-item.has-media {
  grid-template-columns: 2.35rem 5.75rem minmax(0, 1fr) auto;
}

.funding-query-item:hover,
.funding-query-item:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(13, 94, 88, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.funding-query-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(13, 94, 88, 0.12), rgba(245, 177, 58, 0.18));
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.funding-query-media {
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--surface-soft);
}

.funding-query-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.funding-query-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.funding-query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.funding-query-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.12);
  color: #0d5e58;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.funding-query-pill-secondary {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}

.funding-query-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.funding-query-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.funding-query-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.funding-query-arrow {
  align-self: center;
  color: var(--brand-strong);
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .funding-query-panel {
    padding: 0.9rem;
  }

  .funding-query-item,
  .funding-query-item.has-media {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .funding-query-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
  }

  .funding-query-media {
    grid-column: 2;
    margin-top: -0.05rem;
  }

  .funding-query-media img {
    aspect-ratio: 16 / 7;
  }

  .funding-query-main {
    grid-column: 2;
  }

  .funding-query-arrow {
    display: none;
  }
}

html[data-theme="dark"] .funding-query-panel {
  background:
    linear-gradient(180deg, rgba(88, 214, 192, 0.08), rgba(88, 214, 192, 0)),
    linear-gradient(145deg, rgba(18, 24, 32, 0.92), rgba(14, 20, 28, 0.98));
}

html[data-theme="dark"] .funding-query-count {
  background: rgba(88, 214, 192, 0.16);
  color: #d9fff6;
}

html[data-theme="dark"] .funding-query-item {
  background: rgba(20, 28, 38, 0.88);
}

html[data-theme="dark"] .funding-query-item:hover,
html[data-theme="dark"] .funding-query-item:focus {
  background: rgba(24, 34, 46, 0.98);
  border-color: rgba(88, 214, 192, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .funding-query-index {
  background: linear-gradient(145deg, rgba(88, 214, 192, 0.18), rgba(255, 196, 92, 0.16));
  color: #e6fff9;
}

html[data-theme="dark"] .funding-query-pill {
  background: rgba(88, 214, 192, 0.2);
  color: #d7fff5;
  border: 1px solid rgba(88, 214, 192, 0.24);
}

html[data-theme="dark"] .funding-query-pill-secondary {
  background: rgba(255, 196, 92, 0.2);
  color: #fff0c7;
  border: 1px solid rgba(255, 196, 92, 0.22);
}

.document-page {
  padding: 1.4rem 0 2.8rem;
}

.page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.search-content {
  --muted-ink: var(--muted);
  --accent-strong: var(--brand-strong);
  --panel-shadow: var(--shadow);
  --panel-border: var(--border);
  --surface-soft-2: var(--surface-soft);
  --flat-surface: #ffffff;
  --flat-border: rgba(15, 23, 42, 0.14);
  --result-tag-bg: var(--link-tag-bg, rgba(245, 177, 58, 0.22));
  --result-tag-ink: var(--link-tag-ink, #6e4300);
}

html[data-theme="dark"] .search-content {
  --muted-ink: #c8d5e4;
  --panel-border: rgba(148, 163, 184, 0.34);
  --surface-soft-2: var(--surface-strong);
  --flat-surface: #1a2b40;
  --flat-border: rgba(148, 163, 184, 0.35);
}

.panel {
  background: var(--surface);
  border-radius: 1.35rem;
  padding: 1.4rem;
  box-shadow: var(--panel-shadow);
  border: 1px solid var(--panel-border);
}

.search-hero {
  min-height: 38vh;
}

.search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.meta-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.search-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .search-layout {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }
}

.filter-panel {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.filter-panel h3 {
  margin: 0;
}

.filter-group {
  margin-bottom: 1rem;
  border: 1px solid var(--flat-border);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  background: var(--flat-surface);
}

.filter-group.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.11);
}

.filter-group.is-active .filter-group-title {
  color: var(--brand-strong);
}

.filter-group:last-of-type {
  margin-bottom: 0;
}

.filter-drawer-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-drawer-close {
  display: none;
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-drawer-backdrop {
  display: none;
}

.wizard-box {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(245, 177, 58, 0.12), rgba(15, 118, 110, 0.08));
  border: 1px solid rgba(245, 177, 58, 0.28);
}

.wizard-box-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wizard-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-strong);
  margin-bottom: 0.35rem;
}

.wizard-intro,
.wizard-current-description,
.wizard-current-group {
  margin: 0;
  color: var(--muted-ink);
}

.wizard-header-actions,
.wizard-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.wizard-step-list,
.wizard-option-list {
  display: grid;
  gap: 0.75rem;
}

.wizard-step-pill,
.wizard-option {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wizard-step-pill:hover,
.wizard-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.wizard-step-pill.is-current,
.wizard-option.is-selected {
  border-color: rgba(245, 177, 58, 0.45);
  box-shadow: 0 12px 28px rgba(245, 177, 58, 0.14);
}

.wizard-step-pill.is-completed {
  border-color: rgba(15, 118, 110, 0.28);
}

.wizard-step-index {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  font-weight: 700;
}

.wizard-step-copy,
.wizard-option {
  min-width: 0;
}

.wizard-step-copy {
  display: grid;
  gap: 0.2rem;
}

.wizard-step-name,
.wizard-option-title {
  font-weight: 700;
}

.wizard-step-selection,
.wizard-option-description,
.wizard-current-meta,
.wizard-empty,
.wizard-results-teaser p {
  color: var(--muted-ink);
}

.wizard-current-card {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.wizard-current-card h4,
.wizard-results-teaser h4 {
  margin: 0;
}

.wizard-results-teaser {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.monitoring-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.1);
}

.monitoring-banner h4,
.monitoring-banner p {
  margin: 0;
}

.monitoring-meta {
  color: var(--muted-ink);
}

.monitoring-panel {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.monitoring-panel form {
  margin: 0;
}

.monitoring-panel .btn {
  white-space: nowrap;
}

.monitoring-note {
  color: var(--muted-ink);
  font-size: 0.92rem;
}

@media (max-width: 767.98px) {
  .monitoring-panel {
    justify-items: stretch;
  }
}

.filter-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  margin: 0;
}

.filter-group-title:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 3px;
  border-radius: 999px;
}

.filter-group-title::-webkit-details-marker {
  display: none;
}

.filter-group-title::marker {
  content: "";
}

.filter-group-toggle {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--flat-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  flex-shrink: 0;
}

.filter-group-toggle::before {
  content: "+";
}

details[open] .filter-group-toggle::before {
  content: "–";
}

details[open] .filter-group-title {
  margin-bottom: 0.75rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.filter-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink);
  margin-left: calc(var(--depth, 0) * 1.1rem);
  max-width: 100%;
}

.filter-option input {
  margin: 0;
  accent-color: var(--accent-strong);
}

.filter-option input:checked + .filter-label {
  font-weight: 600;
}

.filter-option.is-implicit {
  border-style: dashed;
  color: var(--muted-ink);
}

.filter-note {
  margin: 0 0 1rem;
  color: var(--muted-ink);
  font-size: 0.85rem;
}

.search-box {
  margin-bottom: 1rem;
}

.search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--ink);
}

.search-input {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid var(--flat-border);
  background: var(--flat-surface);
  color: var(--ink);
  padding: 0.8rem 0.95rem;
}

.search-input:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.search-helper,
.search-status {
  margin: 0.45rem 0 0;
  color: var(--muted-ink);
  font-size: 0.85rem;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted-ink);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.14);
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.filter-chip-button {
  border: 1px solid rgba(15, 118, 110, 0.32);
  cursor: pointer;
}

.filter-chip-button:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  font-size: 0.8rem;
  line-height: 1;
  background: var(--flat-surface);
  color: var(--brand-strong);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.filter-chip-button:hover .filter-chip-remove,
.filter-chip-button:focus-visible .filter-chip-remove {
  opacity: 1;
  transform: scale(1);
}

.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.match-reason {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  font-size: 0.78rem;
  line-height: 1.3;
}

.empty-state {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--flat-surface);
  border: 1px dashed var(--flat-border);
  text-align: center;
}

.empty-state h4 {
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--flat-surface);
  border: 1px solid var(--flat-border);
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--flat-border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.pagination-link.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.pagination-status {
  color: var(--muted-ink);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .filter-drawer-toggle {
    display: inline-flex;
  }

  .filter-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: min(85vh, 720px);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 1040;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .filter-drawer-close {
    display: inline-flex;
  }

  .filter-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .filter-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1030;
  }

  .filter-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.filters-open {
    overflow: hidden;
  }

  .filter-chip-remove {
    opacity: 1;
    transform: scale(1);
  }
}

/* Template: websites2/webelements/templates/frontend/news_foerderung.html */
.news-page {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.news-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(18rem, 38vw, 30rem);
  display: grid;
  align-items: end;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border-radius: 1.4rem;
  background:
    linear-gradient(145deg, rgba(13, 94, 88, 0.94), rgba(17, 132, 128, 0.72)),
    radial-gradient(circle at 80% 8%, rgba(245, 177, 58, 0.32), transparent 32%);
  color: #f8fbff;
  box-shadow: var(--shadow);
}

.news-hero--plain {
  min-height: auto;
  padding-block: clamp(1.4rem, 4vw, 2.5rem);
  align-items: center;
}

.news-hero::before {
  content: "";
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 177, 58, 0.34), transparent 68%);
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(145deg, rgba(0, 0, 0, 0.5), transparent 72%);
}

.news-hero__content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.news-eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0.86;
}

.news-title {
  margin: 0;
  font-size: clamp(2.05rem, 6vw, 4.4rem);
  line-height: 1.02;
}

.news-lead {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: rgba(248, 251, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.news-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.news-richtext,
.news-richtext p,
.news-richtext li {
  color: var(--muted);
  line-height: 1.68;
}

.news-richtext > *:first-child {
  margin-top: 0;
}

.news-richtext > *:last-child {
  margin-bottom: 0;
}

.news-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.news-section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.news-section-heading p {
  margin: 0;
  color: var(--muted);
}

.news-feed {
  display: grid;
  gap: 1rem;
}

.news-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.news-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] .news-card {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.36);
}

.news-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-strong);
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  background: rgba(13, 94, 88, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}

html[data-theme="dark"] .news-chip {
  background: rgba(122, 213, 204, 0.16);
  color: #d8fff8;
  border: 1px solid rgba(122, 213, 204, 0.26);
}

.news-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.1vw, 1.42rem);
  line-height: 1.24;
}

.news-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.news-card__title a:hover,
.news-card__title a:focus-visible {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.news-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.news-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.news-card__link:hover,
.news-card__link:focus-visible {
  color: #fff;
  filter: brightness(1.05);
}

.news-empty {
  padding: clamp(1rem, 2.2vw, 1.4rem);
  border: 1px dashed var(--border);
  border-radius: 1rem;
  background: var(--surface-soft);
  color: var(--muted);
}

/* Template: websites2/webelements/templates/frontend/newsdetail_foerderung.html */
.funding-query-panel {
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(13, 94, 88, 0.03), rgba(13, 94, 88, 0)),
    linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow);
}

.funding-query-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.funding-query-eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.funding-query-heading {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.25;
}

.funding-query-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.1);
  color: var(--brand-strong);
  font-size: 0.83rem;
  font-weight: 700;
}

.funding-query-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.funding-query-list-item {
  margin: 0;
  padding: 0;
}

.funding-query-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.funding-query-item.has-media {
  grid-template-columns: 2.35rem 5.75rem minmax(0, 1fr) auto;
}

.funding-query-item:hover,
.funding-query-item:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(13, 94, 88, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.funding-query-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(13, 94, 88, 0.12), rgba(245, 177, 58, 0.18));
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.funding-query-media {
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--surface-soft);
}

.funding-query-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.funding-query-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.funding-query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.funding-query-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 94, 88, 0.12);
  color: #0d5e58;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.funding-query-pill-secondary {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}

.funding-query-name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.funding-query-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.funding-query-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.1rem;
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.funding-query-arrow {
  align-self: center;
  color: var(--brand-strong);
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .funding-query-panel {
    padding: 0.9rem;
  }

  .funding-query-item,
  .funding-query-item.has-media {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .funding-query-index {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
  }

  .funding-query-media {
    grid-column: 2;
    margin-top: -0.05rem;
  }

  .funding-query-media img {
    aspect-ratio: 16 / 7;
  }

  .funding-query-main {
    grid-column: 2;
  }

  .funding-query-arrow {
    display: none;
  }
}

html[data-theme="dark"] .funding-query-panel {
  background:
    linear-gradient(180deg, rgba(88, 214, 192, 0.08), rgba(88, 214, 192, 0)),
    linear-gradient(145deg, rgba(18, 24, 32, 0.92), rgba(14, 20, 28, 0.98));
}

html[data-theme="dark"] .funding-query-count {
  background: rgba(88, 214, 192, 0.16);
  color: #d9fff6;
}

html[data-theme="dark"] .funding-query-item {
  background: rgba(20, 28, 38, 0.88);
}

html[data-theme="dark"] .funding-query-item:hover,
html[data-theme="dark"] .funding-query-item:focus {
  background: rgba(24, 34, 46, 0.98);
  border-color: rgba(88, 214, 192, 0.28);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .funding-query-index {
  background: linear-gradient(145deg, rgba(88, 214, 192, 0.18), rgba(255, 196, 92, 0.16));
  color: #e6fff9;
}

html[data-theme="dark"] .funding-query-pill {
  background: rgba(88, 214, 192, 0.2);
  color: #d7fff5;
  border: 1px solid rgba(88, 214, 192, 0.24);
}

html[data-theme="dark"] .funding-query-pill-secondary {
  background: rgba(255, 196, 92, 0.2);
  color: #fff0c7;
  border: 1px solid rgba(255, 196, 92, 0.22);
}

.news-detail-page {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.7rem);
}

.news-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(22rem, 48vw, 38rem);
  display: grid;
  align-items: end;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-radius: 1.45rem;
  color: #f8fbff;
  background:
    linear-gradient(145deg, rgba(13, 94, 88, 0.96), rgba(17, 132, 128, 0.78)),
    radial-gradient(circle at 86% 12%, rgba(245, 177, 58, 0.34), transparent 34%);
  box-shadow: var(--shadow);
}

.news-detail-hero--plain {
  min-height: auto;
  padding-block: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
}

.news-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.44), transparent 72%);
}

.news-detail-hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -9rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 177, 58, 0.38), transparent 68%);
}

.news-detail-hero__content {
  position: relative;
  z-index: 1;
  max-width: 58rem;
}

.news-detail-eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 800;
  opacity: 0.88;
}

.news-detail-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.02;
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.news-detail-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  background: rgba(255, 255, 255, 0.11);
  font-size: 0.84rem;
  font-weight: 700;
}

.news-detail-layout {
  display: grid;
  gap: 1rem;
}

.news-detail-layout--content-only {
  display: block;
}

@media (min-width: 960px) {
  .news-detail-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    align-items: start;
  }

  .news-detail-aside {
    position: sticky;
    top: 84px;
  }
}

.news-detail-stack,
.news-detail-aside {
  display: grid;
  gap: 1rem;
}

.news-detail-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.news-detail-card__body {
  padding: clamp(1rem, 2.2vw, 1.45rem);
}

.news-detail-card h2,
.news-detail-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
}

.news-detail-richtext,
.news-detail-richtext p,
.news-detail-richtext li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.news-detail-richtext > *:first-child {
  margin-top: 0;
}

.news-detail-richtext > *:last-child {
  margin-bottom: 0;
}

.news-detail-lead {
  border-left: 0.35rem solid var(--sun);
  background: linear-gradient(135deg, rgba(245, 177, 58, 0.14), transparent 70%);
}

.news-detail-empty {
  margin: 0;
  color: var(--muted);
}

.news-detail-query {
  display: grid;
  gap: 1rem;
}

.fd-richtext + .funding-query-panel,
.homepage-richtext + .funding-query-panel,
.funding-topic-richtext + .funding-query-panel,
.news-detail-richtext + .funding-query-panel {
  margin-top: clamp(1rem, 2vw, 1.4rem);
}

.news-detail-query-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Template: websites2/webelements/templates/frontend/frontenduser_login_foerderung.html */
.frontend-auth-page {
  padding: 1.6rem 0 3rem;
}

.frontend-auth-shell {
  max-width: 760px;
  margin: 0 auto;
}

.frontend-auth-hero,
.frontend-auth-card {
  padding: clamp(1.3rem, 2.8vw, 1.9rem);
}

.frontend-auth-card {
  margin-top: 1.4rem;
}

.frontend-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-auth-title {
  margin: 1rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.frontend-auth-lead,
.frontend-auth-note,
.frontend-auth-help {
  color: var(--muted);
  line-height: 1.7;
}

.frontend-auth-form {
  display: grid;
  gap: 1rem;
}

.frontend-auth-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.frontend-auth-field .form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
}

.frontend-auth-field .form-control:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: rgba(15, 118, 110, 0.55);
  background: var(--surface);
}

.frontend-auth-errorlist,
.frontend-auth-nonfield {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-size: 0.92rem;
}

.frontend-auth-alert {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
}

.frontend-auth-alert-success {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.22);
}

.frontend-auth-alert-info {
  background: rgba(245, 177, 58, 0.16);
  border-color: rgba(245, 177, 58, 0.26);
}

.frontend-auth-submit {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
  justify-self: start;
}

.frontend-auth-submit:hover,
.frontend-auth-submit:focus-visible {
  background: var(--brand-strong);
}

.frontend-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
}

.frontend-auth-link {
  color: var(--content-link);
  font-weight: 700;
}

/* Template: websites2/webelements/templates/frontend/frontenduser_register_foerderung.html */
.register-page {
  padding: 1.6rem 0 3rem;
}

.register-shell {
  max-width: 760px;
  margin: 0 auto;
}

.register-hero {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.register-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.register-title {
  margin: 1rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.register-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.register-card {
  margin-top: 1.4rem;
  padding: clamp(1.25rem, 2.6vw, 1.8rem);
}

.register-card h2 {
  margin-bottom: 0.4rem;
}

.register-form {
  display: grid;
  gap: 1rem;
}

.register-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.register-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.register-field .form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
}

.register-field .form-control:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: rgba(15, 118, 110, 0.55);
  background: var(--surface);
}

.register-help,
.register-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.register-errorlist,
.register-nonfield {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-size: 0.92rem;
}

.register-alert {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
}

.register-alert-success {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.22);
}

.register-submit {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
  justify-self: start;
}

.register-submit:hover,
.register-submit:focus-visible {
  background: var(--brand-strong);
}

.register-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.register-chip {
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
  font-weight: 700;
  font-size: 0.86rem;
}

html[data-theme="dark"] .register-chip {
  background: rgba(255, 196, 92, 0.22);
  color: #ffe9b5;
}

/* Template: websites2/webelements/templates/frontend/frontenduser_account_foerderung.html */
.frontend-account-page {
  padding: 1.6rem 0 3rem;
}

.frontend-account-shell {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
}

.frontend-account-hero,
.frontend-account-card {
  padding: clamp(1.3rem, 2.8vw, 1.9rem);
}

.frontend-account-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-account-title {
  margin: 1rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.frontend-account-lead,
.frontend-account-note {
  color: var(--muted);
  line-height: 1.7;
}

.frontend-account-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .frontend-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.frontend-account-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-soft);
  padding: 1rem;
}

.frontend-account-item dt {
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.frontend-account-item dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

.frontend-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: 1rem;
}

.frontend-account-link,
.frontend-account-button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.frontend-account-link {
  background: var(--brand);
  color: #fff;
}

.frontend-account-link:hover,
.frontend-account-link:focus-visible {
  background: var(--brand-strong);
  color: #fff;
}

.frontend-account-button {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}

.frontend-account-button:hover,
.frontend-account-button:focus-visible {
  background: rgba(245, 177, 58, 0.28);
}

.frontend-account-actions form {
  margin: 0;
}

.frontend-account-status {
  margin: 0 0 1rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 1rem;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-strong);
  padding: 0.85rem 1rem;
  font-weight: 750;
}

.frontend-account-query-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.frontend-account-query {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-soft);
  padding: 1rem;
}

.frontend-account-query-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.frontend-account-query h3 {
  margin: 0;
  font-size: 1.05rem;
}

.frontend-account-query-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.frontend-account-query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.frontend-account-query-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 0.45rem 0.75rem;
}

.frontend-account-query-chip-search {
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
}

.frontend-account-query-chip-status {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.frontend-account-query-chip-group {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.frontend-account-monitoring-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
}

.frontend-account-query-empty {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.frontend-account-query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.9rem;
}

.frontend-account-query-actions form {
  margin: 0;
}

.frontend-account-monitoring-button {
  border: 0;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
}

.frontend-account-monitoring-button:hover,
.frontend-account-monitoring-button:focus-visible {
  background: rgba(15, 118, 110, 0.22);
}

.frontend-account-delete-button {
  border: 0;
  border-radius: 999px;
  background: rgba(153, 27, 27, 0.1);
  color: #991b1b;
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
}

.frontend-account-delete-button:hover,
.frontend-account-delete-button:focus-visible {
  background: rgba(153, 27, 27, 0.18);
}

html[data-theme="dark"] .frontend-account-delete-button {
  background: #7f1d1d;
  color: #fee2e2;
  border: 1px solid rgba(254, 202, 202, 0.38);
}

html[data-theme="dark"] .frontend-account-delete-button:hover,
html[data-theme="dark"] .frontend-account-delete-button:focus-visible {
  background: #991b1b;
  color: #fff7f7;
  border-color: rgba(254, 202, 202, 0.62);
}

html[data-theme="dark"] .frontend-account-delete-button:focus-visible {
  outline: 3px solid rgba(248, 113, 113, 0.42);
  outline-offset: 2px;
}

/* Template: websites2/webelements/templates/frontend/funding_monitoring_results_foerderung.html */
.monitoring-results-page {
  padding: 1.6rem 0 3rem;
}

.monitoring-results-shell {
  display: grid;
  gap: 1.4rem;
  margin: 0 auto;
  max-width: 980px;
}

.monitoring-results-hero,
.monitoring-results-card {
  padding: clamp(1.3rem, 2.8vw, 2rem);
}

.monitoring-results-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}

.monitoring-results-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 1rem 0 0.7rem;
}

.monitoring-results-lead,
.monitoring-results-meta,
.monitoring-results-empty {
  color: var(--muted);
  line-height: 1.7;
}

.monitoring-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.monitoring-results-button {
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
}

.monitoring-results-button:hover,
.monitoring-results-button:focus-visible {
  background: var(--brand-strong);
  color: #fff;
}

.monitoring-results-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.monitoring-result-item {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--surface-soft);
  padding: 1.1rem;
}

.monitoring-result-item h3 {
  font-size: 1.18rem;
  margin: 0 0 0.45rem;
}

.monitoring-result-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.monitoring-result-item h3 a:hover,
.monitoring-result-item h3 a:focus-visible {
  color: var(--brand-strong);
  text-decoration: underline;
}

.monitoring-result-date {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(245, 177, 58, 0.18);
  color: #7a4c00;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.7rem;
}

html[data-theme="dark"] .monitoring-result-date {
  color: #ffe4ab;
}

/* Shared utilities extracted from static template attributes. */
.share-icon {
  font-size: 1.5em;
}

.panel--muted-flat {
  box-shadow: none;
  background: var(--surface-soft);
}

.cv-hero-image {
  border-radius: 10px;
}

.tourbook-navbar-collapse {
  position: relative;
  left: 20px;
}

.tourbook-attribute-icon-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tourbook-fact-icon {
  font-size: 1.5em;
}

.flag {
  width: 30px;
  height: 18px;
  display: inline-block;
  margin: 4px;
  border: 1px solid #ccc;
}

.flag--18,
.flag--small,
.flag-sm {
  width: 30px;
  height: 18px;
}

/* Deutschland */
.de {
  background: linear-gradient(
    to bottom,
    #000 0 33.333%,
    #dd0000 33.333% 66.666%,
    #ffce00 66.666% 100%
  );
}

/* Österreich */
.at {
  background: linear-gradient(
    to bottom,
    #ed2939 0 33.333%,
    #fff 33.333% 66.666%,
    #ed2939 66.666% 100%
  );
}

/* Italien */
.it {
  background: linear-gradient(
    to right,
    #009246 0 33.333%,
    #fff 33.333% 66.666%,
    #ce2b37 66.666% 100%
  );
}

/* Schweiz */
.ch {
  position: relative;
  background: #ff0000;
  width: 18px; /* Schweizer Flagge ist quadratisch */
  height: 18px;
}

.ch::before,
.ch::after {
  content: "";
  position: absolute;
  background: #fff;
}

.ch::before {
  width: 60%;
  height: 22.222%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ch::after {
  width: 22.222%;
  height: 60%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ch.flag--18,
.ch.flag--small,
.ch.flag-sm {
  width: 18px;
  height: 18px;
}

/* Final override: this variant must win against repeated secondary pill blocks above. */
.funding-query-pill.funding-query-pill-hero {
  background: rgba(245, 177, 58, 0.7);
  color: #7a4c00;
}

html[data-theme="dark"] .funding-query-pill.funding-query-pill-hero {
  background: rgba(255, 196, 92, 0.36);
  color: #fff0c7;
  border: 1px solid rgba(255, 196, 92, 0.32);
}

/* Template: websites2/webelements/templates/frontend/topicpage_foerderung_generic.html */
.funding-topic-generic-page {
  display: grid;
  gap: 1rem;
}

.funding-topic-generic-stack {
  display: grid;
  gap: 1rem;
}

.funding-topic-generic-section-index,
.funding-topic-generic-cta-eyebrow,
.funding-topic-generic-module-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.funding-topic-generic-section-title,
.funding-topic-generic-group h3 {
  color: var(--ink);
}

.funding-topic-generic-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.funding-topic-generic-page .funding-topic-generic-facts {
  position: relative;
  z-index: 1;
}

.funding-topic-generic-fact {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.funding-topic-generic-fact-value {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  line-height: 1.05;
  color: #fff;
}

.funding-topic-generic-fact-label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 251, 248, 0.78);
}

.funding-query-aggregation {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(13, 94, 88, 0.08), rgba(13, 94, 88, 0)),
    var(--surface);
  box-shadow: var(--shadow);
}

.funding-query-aggregation__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
}

.funding-query-aggregation__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.funding-query-aggregation__title {
  margin: 0;
  color: var(--ink);
}

.funding-query-aggregation__count {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.funding-query-aggregation__value {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  font-weight: 800;
  color: var(--brand-strong);
}

.funding-query-aggregation__label {
  font-size: 0.9rem;
  color: var(--muted);
}

.funding-query-aggregation__items {
  display: grid;
  gap: 0.75rem;
}

.funding-query-aggregation__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.funding-query-aggregation__item h4 {
  margin: 0;
  color: var(--ink);
}

.funding-query-aggregation__item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.funding-query-aggregation__item-metrics {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.funding-query-aggregation__item-metrics strong {
  font-size: 1.15rem;
  color: var(--brand-strong);
}

.funding-query-aggregation__item-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
}

.funding-topic-generic-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.funding-topic-generic-jumpnav a,
.funding-topic-generic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-strong);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.funding-topic-generic-jumpnav a:hover,
.funding-topic-generic-jumpnav a:focus-visible,
.funding-topic-generic-pill:hover,
.funding-topic-generic-pill:focus-visible {
  text-decoration: none;
  border-color: rgba(13, 94, 88, 0.3);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.funding-topic-generic-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  margin-bottom: 1rem;
}

.funding-topic-generic-section-index {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  background: var(--brand);
  border: 1px solid rgba(13, 94, 88, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}

.funding-topic-generic-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.15;
}

.funding-topic-generic-section-intro {
  margin: 0.45rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.6;
}

.funding-topic-generic-group,
.funding-topic-generic-gallery-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.funding-topic-generic-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.funding-topic-generic-group {
  padding: 1.2rem 1.2rem 1.15rem;
}

.funding-topic-generic-group h3 {
  margin: 0;
  font-size: 1.15rem;
}

.funding-topic-generic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.funding-topic-generic-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.funding-topic-generic-gallery-item {
  overflow: hidden;
}

.funding-topic-generic-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.funding-topic-generic-gallery-item figcaption {
  padding: 0.9rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.funding-topic-generic-module-kicker {
  margin-bottom: 0.9rem;
  color: var(--brand-strong);
}

.funding-topic-generic-module-query {
  margin-top: 0.25rem;
}

.funding-topic-generic-cta-copy {
  min-width: 0;
}

.funding-topic-generic-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 1rem 1.35rem;
  align-items: center;
  background: linear-gradient(145deg, rgba(245, 177, 58, 0.12), rgba(15, 118, 110, 0.08));
}

.funding-topic-generic-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.funding-topic-generic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 0.85rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.funding-topic-generic-button:hover,
.funding-topic-generic-button:focus-visible {
  background: var(--brand-strong);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .funding-topic-generic-cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .funding-topic-generic-section-head {
    grid-template-columns: 1fr;
  }

  .funding-topic-generic-section-index {
    width: auto;
    padding: 0 0.9rem;
    height: 2.2rem;
    border-radius: 999px;
  }

  .funding-topic-generic-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
