@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Design System - Framework-level styles */
/* Design System Components */

/* Framework-level, reusable components */

/* Design Tokens */
/* Colors */
:root {
  --color-black: #000f;
  --color-transapent: #0000;
  --color-white: #ffff;

  /* Dead Pixels */
  --color-dead-pixel-10: #fafafaff;
  --color-dead-pixel-25: #f5f5f5ff;
  --color-dead-pixel-100: #f1f1f1ff;
  --color-dead-pixel-200: #ecececff;
  --color-dead-pixel-300: #d9d9d9ff;
  --color-dead-pixel-400: #c6c6c6ff;
  --color-dead-pixel-500: #b4b4b4ff;
  --color-dead-pixel-600: #a2a2a2ff;
  --color-dead-pixel-700: #919190ff;
  --color-dead-pixel-800: #7f7f7fff;
  --color-dead-pixel-900: #6f6f6eff;
  --color-dead-pixel-1000: #5e5e5dff;
  --color-dead-pixel-1100: #4e4e4dff;
  --color-dead-pixel-1200: #3f3f3eff;
  --color-dead-pixel-1300: #303030ff;
  --color-dead-pixel-1400: #222f;
  --color-dead-pixel-1500: #151515ff;

  /* Ripe Mango */
  --color-ripe-mango-100: #fff9e9ff;
  --color-ripe-mango-200: #fef7e1ff;
  --color-ripe-mango-300: #feefc3ff;
  --color-ripe-mango-400: #fde7a5ff;
  --color-ripe-mango-500: #fdde87ff;
  --color-ripe-mango-600: #fcd66aff;
  --color-ripe-mango-700: #fcce4cff;
  --color-ripe-mango-800: #fbc62eff;
  --color-ripe-mango-900: #eab51dff;
  --color-ripe-mango-1000: #c99b19ff;
  --color-ripe-mango-1100: #a78115ff;
  --color-ripe-mango-1200: #866811ff;
  --color-ripe-mango-1300: #644e0cff;
  --color-ripe-mango-1400: #433408ff;
  --color-ripe-mango-1500: #221a04ff;

  /* Lager */
  --color-lager-100: #faf681ff;
  --color-lager-200: #f7f24bff;
  --color-lager-300: #e5df16ff;
  --color-lager-400: #d2cc15ff;
  --color-lager-500: #beb913ff;
  --color-lager-600: #aba711ff;
  --color-lager-700: #99940fff;
  --color-lager-800: #87830dff;
  --color-lager-900: #75720bff;
  --color-lager-1000: #64610aff;
  --color-lager-1100: #535108ff;
  --color-lager-1200: #434107ff;
  --color-lager-1300: #333205ff;
  --color-lager-1400: #242304ff;
  --color-lager-1500: #161602ff;

  /* Cornflower */
  --color-cornflower-100: #edf0fbff;
  --color-cornflower-200: #e7ecfaff;
  --color-cornflower-300: #d0d9f5ff;
  --color-cornflower-400: #b9c5f0ff;
  --color-cornflower-500: #a1b2eaff;
  --color-cornflower-600: #8ba0e6ff;
  --color-cornflower-700: #738de0ff;
  --color-cornflower-800: #5c7adbff;
  --color-cornflower-900: #4e69c4ff;
  --color-cornflower-1000: #425aa7ff;
  --color-cornflower-1100: #374b8bff;
  --color-cornflower-1200: #2c3c70ff;
  --color-cornflower-1300: #222e56ff;
  --color-cornflower-1400: #18213dff;
  --color-cornflower-1500: #0f1426ff;

  /* Ferocious */
  --color-ferocious-100: #fdedecff;
  --color-ferocious-1500: #2d0806ff;
  --color-ferocious-200: #fce7e6ff;
  --color-ferocious-300: #f9cfcdff;
  --color-ferocious-400: #f6b7b2ff;
  --color-ferocious-500: #f39e98ff;
  --color-ferocious-600: #f0837cff;
  --color-ferocious-700: #ec665cff;
  --color-ferocious-800: #e84237ff;
  --color-ferocious-900: #d6271bff;
  --color-ferocious-1000: #b72217ff;
  --color-ferocious-1100: #991c13ff;
  --color-ferocious-1200: #7d1710ff;
  --color-ferocious-1300: #61120cff;
  --color-ferocious-1400: #460d09ff;

  /* Pastel Green */
  --color-pastel-green-100: #e2f6e2ff;
  --color-pastel-green-200: #d8f3d8ff;
  --color-pastel-green-300: #b1e6b1ff;
  --color-pastel-green-400: #87d987ff;
  --color-pastel-green-500: #74c774ff;
  --color-pastel-green-600: #69b369ff;
  --color-pastel-green-700: #5da05dff;
  --color-pastel-green-800: #528d52ff;
  --color-pastel-green-900: #477a47ff;
  --color-pastel-green-1000: #3d683dff;
  --color-pastel-green-1100: #335733ff;
  --color-pastel-green-1200: #294629ff;
  --color-pastel-green-1300: #1f361fff;
  --color-pastel-green-1400: #162616ff;
  --color-pastel-green-1500: #0e170eff;

  /* Violaceous Greti */
  --color-violaceous-greti-100: #f6eef7ff;
  --color-violaceous-greti-200: #f4e9f4ff;
  --color-violaceous-greti-300: #e8d2e9ff;
  --color-violaceous-greti-400: #ddbcddff;
  --color-violaceous-greti-500: #d2a6d2ff;
  --color-violaceous-greti-600: #c690c7ff;
  --color-violaceous-greti-700: #bb7abcff;
  --color-violaceous-greti-800: #af63b1ff;
  --color-violaceous-greti-900: #a44ca5ff;
  --color-violaceous-greti-1000: #973399ff;
  --color-violaceous-greti-1100: #88188aff;
  --color-violaceous-greti-1200: #6e1370ff;
  --color-violaceous-greti-1300: #560f57ff;
  --color-violaceous-greti-1400: #3e0b3fff;
  --color-violaceous-greti-1500: #270728ff;
}

:root {
  --color-fg-brand-primary: var(--color-ripe-mango-1200);
  --color-bg-brand-primary: var(--color-ripe-mango-1300);
  --color-bg-brand-secondary: var(--color-ripe-mango-200);
  --color-accent-light: var(--color-ripe-mango-200);

  /* Semantische Rollen */
  --color-fg-default: var(--color-dead-pixel-1400);
  --color-fg-emphasis: var(--color-dead-pixel-1500);
  --color-fg-muted: var(--color-dead-pixel-1000);
  --color-bg-default: var(--color-white);
  --color-border-default: var(--color-dead-pixel-300);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / 10%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%);
}

/* Aliase fuer Namen, die in Komponenten benutzt, aber nie definiert wurden.
   Sie zeigen auf die Dead-Pixel-Graustufe bzw. Ripe Mango. */
:root {
  --color-grey-50: var(--color-dead-pixel-25);
  --color-grey-200: var(--color-dead-pixel-200);
  --color-grey-300: var(--color-dead-pixel-300);
  --color-gray-600: var(--color-dead-pixel-1000);
  --color-gray-700: var(--color-dead-pixel-1100);
  --color-gray-900: var(--color-dead-pixel-1300);
  --color-black-60: var(--color-dead-pixel-1000);
  --color-black-70: var(--color-dead-pixel-1100);
  --color-black-80: var(--color-dead-pixel-1300);
  --color-black-85: var(--color-dead-pixel-1400);
  --color-ripe-mango-50: var(--color-ripe-mango-100);
}

.color-fg-brand-primary {
  color: var(--color-fg-brand-primary);
}

.color-bg-brand-primary {
  background: var(--color-bg-brand-primary);
}

.color-fg-light {
  color: var(--color-dead-pixel-10);
}

.color-bg-dark {
  color: var(--color-dead-pixel-1300);
}



:root {
  --font-family-sans: 'Inter', sans-serif;
  --typo-size-80: 0.75rem; /* 12px */
  --typo-size-90: 0.875rem; /* 14px */
  --typo-size-100: 1rem; /* 16px */
  --typo-size-200: 1.125rem; /* 18px */
  --typo-size-300: 1.25rem; /* 20px */
  --typo-size-400: 1.5rem; /* 24px */
  --typo-size-500: 1.75rem; /* 28px */
  --typo-size-600: 2rem; /* 32px */
  --typo-size-700: 2.5rem; /* 40px */
  --typo-size-800: 3rem; /* 48px */
  --typo-size-900: 3.5rem; /* 56px */
  --typo-size-1000: 4rem; /* 64px */
  --typo-line-height-narrow: 120%;
  --typo-line-height-regular: 130%;
  --typo-line-height-wide: 160%;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semiBold: 600;
  --font-weight-bold: 700;
}

html {
  font-family: Inter, system-ui, sans-serif;
}

.font-title3XXL {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-1000);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
}

.font-title2XXL {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-900);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
}

.font-titleXXL {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-800);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
  @media (width < 490px) {
    & {
      font-size: var(--typo-size-700);
    }
  }
}

.font-titleXL {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-700);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
}

.font-title {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-600);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
}

.font-title2 {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-500);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
}

.font-title3 {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-400);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
}

.font-headline {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-300);
  line-height: var(--typo-line-height-regular);
  font-weight: var(--font-weight-bold);
}

.font-subheadline {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-200);
  line-height: var(--typo-line-height-regular);
  font-weight: var(--font-weight-medium);
}

.font-body {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-100);
  line-height: var(--typo-line-height-regular);
  font-weight: var(--font-weight-regular);
}

.font-footnote {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-90);
  line-height: var(--typo-line-height-regular);
  font-weight: var(--font-weight-regular);
}

.font-caption {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-80);
  line-height: var(--typo-line-height-regular);
  font-weight: var(--font-weight-regular);
}

.font-line-height-narrow {
  line-height: var(--typo-line-height-narrow);
}

.font-line-height-regular {
  line-height: var(--typo-line-height-regular);
}

.font-line-height-wide {
  line-height: var(--typo-line-height-wide);
}

.font-weight-light {
  font-weight: var(--font-weight-light);
}

.font-weight-regular {
  font-weight: var(--font-weight-regular);
}

.font-weight-medium {
  font-weight: var(--font-weight-medium);
}

.font-weight-semiBold {
  font-weight: var(--font-weight-semiBold);
}

.font-weight-bold {
  font-weight: var(--font-weight-bold);
}

.font-italic {
  font-style: italic;
} /* Border Radius */
:root {
  --border-radius-0: 0;
  --border-radius-1: 1px;
  --border-radius-2: 2px;
  --border-radius-3: 4px;
  --border-radius-4: 8px;
  --border-radius-5: 12px;
  --border-radius-6: 16px;
  --border-radius-7: 24px;
  --border-radius-8: 32px;
  --border-radius-9: 48px;
  --border-radius-10: 64px;
  --border-radius-pill: 10000px;
} /* Size */
:root {
  --size-0: 0;
  --size-1px: 1px;
  --size-2px: 2px;
  --size-1: 0.25rem; /* 4px */
  --size-2: 0.5rem; /* 8px */
  --size-3: 0.75rem; /* 12px */
  --size-4: 1rem;
  --size-5: 1.5rem;
  --size-6: 2rem;
  --size-7: 40px;
  --size-8: 48px;
  --size-9: 56px;
  --size-10: 64px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

h6,
.h6 {
  font-size: var(--typo-size-200);
}

h5,
.h5 {
  font-size: var(--typo-size-300);
}

h4,
.h4 {
  font-size: var(--typo-size-400);
}

h3,
.h3 {
  font-size: var(--typo-size-500);
}

h2,
.h2 {
  font-size: var(--typo-size-600);
}

h1,
.h1 {
  font-size: var(--typo-size-700);
}

html {
  font-family: var(--font-family-sans);
  line-height: var(--typo-line-height-regular);
}


/* UI Components */
/* Icons - Design System */

/* Line icons rendered by the `utilities/icon` snippet. They inherit the text
   colour through `currentColor`, so no variant per background is needed. */

.gs-c-icon {
  /* The global reset puts every svg on `display: block`; icons sit in running
     text, so they need to be inline and nudged onto the text baseline. */
  display: inline-block;
  flex: none;
  vertical-align: -0.15em;
}

/* Wrapper for an icon followed by its label, for containers that are not
   already a flex row. */
.gs-c-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.gs-c-btn {
  /* Background */
  --_background: var(--color-ripe-mango-700);

  /* Foreground */
  --_foreground: var(--color-ripe-mango-1400);

  /* Border */
  --_border-width: 1px;
  --_border: var(--_border-width) solid rgb(0 0 0 / 0%);
  --_border-radius: var(--border-radius-pill);

  /* Font */
  --_font-size: 0.875rem;
  --_font-weight: 600;

  /* Padding */
  --_padding-horizontal: 1rem;
  --_padding-vertical: 0.5rem;
  --_height: 2.25rem;

  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--_background);
  color: var(--_foreground);
  border: var(--_border);
  border-radius: var(--_border-radius);
  padding: var(--_padding-vertical) var(--_padding-horizontal);
  font-size: var(--_font-size);
  font-weight: var(--_font-weight);
  height: var(--_height);

  &:hover {
    --_background: var(--color-ripe-mango-300);
    --_foreground: var(--color-ripe-mango-1200);
  }

  &:focus {
    --_background: var(--color-ripe-mango-200);
    --_foreground: var(--color-ripe-mango-700);
  }

  &.disabled,
  &[disabled] {
    --_background: var(--color-dead-pixel-25);
    --_foreground: var(--color-dead-pixel-400);

    pointer-events: none;
  }
} /* Type 
can be
- primary
- secondary
- tertiary
*/
.gs-c-btn {
  &[data-type='primary'] {
    --_background-primary-enabled: var(--color-ripe-mango-700);
    --_background-primary-hover: var(--color-ripe-mango-300);
    --_background-primary-pressed: var(--color-ripe-mango-200);
    --_background-primary-disabled: var(--color-dead-pixel-25);
    --_foreground-primary-enabled: var(--color-ripe-mango-1400);
    --_foreground-primary-hover: var(--color-ripe-mango-1200);
    --_foreground-primary-pressed: var(--color-ripe-mango-700);
    --_foreground-primary-disabled: var(--color-dead-pixel-400);
    --_border-primary-enabled: var(--_border-width) solid rgb(0 0 0 / 0%);
    --_border-primary-hover: var(--_border-width) solid rgb(0 0 0 / 0%);
    --_border-primary-pressed: var(--_border-width) solid rgb(0 0 0 / 0%);
    --_border-primary-disabled: var(--_border-width) solid rgb(0 0 0 / 0%);
    --_background: var(--_background-primary-enabled);
    --_foreground: var(--_foreground-primary-enabled);

    &:hover {
      --_background: var(--_background-primary-hover);
      --_foreground: var(--_foreground-primary-hover);
    }

    &:focus {
      --_background: var(--_background-primary-pressed);
      --_foreground: var(--_foreground-primary-pressed);
    }

    &.disabled,
    &[disabled] {
      --_background: var(--_background-primary-disabled);
      --_foreground: var(--_foreground-primary-disabled);
    }

    &[data-role='destructive'] {
      --_background-primary-enabled: var(--color-ferocious-900);
      --_background-primary-hover: var(--color-ferocious-500);
      --_background-primary-pressed: var(--color-ferocious-300);
      --_background-primary-disabled: var(--color-ferocious-100);
      --_foreground-primary-enabled: var(--color-white);
      --_foreground-primary-hover: var(--color-white);
      --_foreground-primary-pressed: var(--color-white);
      --_foreground-primary-disabled: var(--color-ferocious-600);
    }
  }

  &[data-type='secondary'] {
    --_background-primary-enabled: none;
    --_background-primary-hover: var(--color-dead-pixel-1200);
    --_background-primary-pressed: none;
    --_background-primary-disabled: none;
    --_foreground-primary-enabled: var(--color-dead-pixel-1200);
    --_foreground-primary-hover: var(--color-dead-pixel-25);
    --_foreground-primary-pressed: var(--color-dead-pixel-500);
    --_foreground-primary-disabled: var(--color-dead-pixel-400);
    --_border-primary-enabled: var(--_border-width) solid
      var(--color-dead-pixel-1200);
    --_border-primary-hover: var(--_border-width) solid
      var(--_background-primary-hover);
    --_border-primary-pressed: var(--_border-width) solid
      var(--color-dead-pixel-400);
    --_border-primary-disabled: var(--_border-width) solid
      var(--color-dead-pixel-300);
    --_background: var(--_background-primary-enabled);
    --_foreground: var(--_foreground-primary-enabled);
    --_border: var(--_border-primary-enabled);

    &:hover {
      --_background: var(--_background-primary-hover);
      --_foreground: var(--_foreground-primary-hover);
      --_border: var(--_border-primary-hover);
    }

    &:focus {
      --_background: var(--_background-primary-pressed);
      --_foreground: var(--_foreground-primary-pressed);
      --_border: var(--_border-primary-pressed);
    }

    &.disabled,
    &[disabled] {
      --_background: var(--_background-primary-disabled);
      --_foreground: var(--_foreground-primary-disabled);
      --_border: var(--_border-primary-disabled);
    }

    &[data-role='destructive'] {
      --_background-primary-enabled: none;
      --_background-primary-hover: var(--color-ferocious-900);
      --_background-primary-pressed: none;
      --_background-primary-disabled: none;
      --_foreground-primary-enabled: var(--color-ferocious-900);
      --_foreground-primary-hover: var(--color-white);
      --_foreground-primary-pressed: var(--color-ferocious-500);
      --_foreground-primary-disabled: var(--color-ferocious-500);
      --_border-primary-enabled: var(--_border-width) solid
        var(--color-ferocious-900);
      --_border-primary-hover: var(--_border-width) solid
        var(--_background-primary-hover);
      --_border-primary-pressed: var(--_border-width) solid
        var(--color-ferocious-500);
      --_border-primary-disabled: var(--_border-width) solid
        var(--color-ferocious-300);
    }
  }

  &[data-type='tertiary'] {
    --_background: none;
    --_border: none;
    --_foreground: var(--color-ripe-mango-1200);

    &:hover {
      text-decoration-line: underline;
    }
  }
} /* Style 
can be
- pill
- rounded-corners
- square
*/
.gs-c-btn {
  &[data-style='pill'] {
    border-radius: var(--border-radius-pill);
  }

  &[data-style='rounded-corners'] {
    border-radius: var(--border-radius-3);
  }

  &[data-style='square'] {
    border-radius: var(--border-radius-0);
  }
} /* Size 
can be
- small
- regular
- large
*/
.gs-c-btn {
  &[data-size='small'] {
    --_height: 1.75rem;
    --_font-size: 0.75rem;
  }

  &[data-size='regular'] {
    --_height: 2.25rem;
    --_font-size: 0.875rem;
  }

  &[data-size='large'] {
    --_height: 2.75rem;
    --_font-size: 1rem;
  }
}

button {
  font: inherit;
  background: none;
  color: currentcolor;
  cursor: pointer;
  line-height: inherit;
}

/**
 * Form Components - Design System
 * DreamForm Integration with MachMit!Haus Design System
 */

/* ==========================================
   FORM CONTAINER & STRUCTURE
   ========================================== */
:root {
  --_background-primary-enabled: var(--color-ripe-mango-700);
  --_background-primary-hover: var(--color-ripe-mango-300);
  --_background-primary-pressed: var(--color-ripe-mango-200);
  --_background-primary-disabled: var(--color-dead-pixel-25);
  --_foreground-primary-enabled: var(--color-ripe-mango-1400);
  --_foreground-primary-hover: var(--color-ripe-mango-1200);
  --_foreground-primary-pressed: var(--color-ripe-mango-700);
  --_foreground-primary-disabled: var(--color-dead-pixel-400);
}

.c-blog-form {
  display: flex;
  padding-bottom: 2rem;
  margin-top: 2rem;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(0 0 0 / 10%);
  background: #fff;
  overflow: hidden;

  @media (width >= 768px) {
    & {
      padding: var(--size-10);
    }
  }
}

.c-blog-form h2 {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-600);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--size-6) 0;
  text-align: left;
}

.dreamform p {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-100);
  line-height: var(--typo-line-height-regular);
  color: var(--color-dead-pixel-1000);
  margin: 0 0 var(--size-4) 0;
}

.dreamform-title {
  margin: 0 0 var(--size-5);
  font-family: var(--font-family-sans);
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  line-height: var(--typo-line-height-narrow);
  font-weight: var(--font-weight-bold);
  color: var(--color-dead-pixel-1400);
}

.dreamform {
  padding-top: var(--size-2);
}

/* ==========================================
   FORM FIELDS & INPUTS
   ========================================== */

.dreamform-field {
  margin-bottom: var(--size-6);
}

.dreamform-field[data-has-error] .dreamform-error {
  display: flex;
}

.dreamform-field:last-child {
  margin-bottom: 0;
}

.dreamform-label {
  display: block;
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-90);
  font-weight: var(--font-weight-semiBold);
  line-height: var(--typo-line-height-regular);
  color: var(--color-dead-pixel-1300);
  margin-bottom: var(--size-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dreamform-label > em {
  color: var(--color-ferocious-800);
  font-weight: var(--font-weight-bold);
}

.dreamform-input,
.dreamform-textarea,
.dreamform-select {
  width: 100%;
  padding: var(--size-4) var(--size-5);
  border: 2px solid rgb(0 0 0 / 10%);
  border-radius: 0.5rem;
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-100);
  line-height: var(--typo-line-height-regular);
  color: var(--color-dead-pixel-1400);
  background: var(--color-white);
  transition: border-color 0.2s ease,
    box-shadow 0.2s ease;

  &:focus {
    outline: none;
    border-color: var(--color-ripe-mango-1000);
  }

  &:hover {
  }

  &::placeholder {
    color: var(--color-dead-pixel-600);
    font-style: italic;
  }
}

.dreamform-textarea {
  min-height: 120px;
  resize: vertical;
}

.dreamform-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--size-3) center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: var(--size-10);
}

/* ==========================================
   CHECKBOX & RADIO INPUTS
   ========================================== */

.dreamform-checkbox,
.dreamform-radio {
  display: flex;
  gap: var(--size-4);
  margin-bottom: var(--size-4);
  cursor: pointer;
  align-items: center;
}

.dreamform-checkbox:last-child,
.dreamform-radio:last-child {
  margin-bottom: 0;
}

.dreamform-checkbox input[type='checkbox'] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  border: 2px solid rgb(0 0 0 / 15%);
  background: #fff;
  transition: background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.dreamform-checkbox input[type='checkbox']:not(:checked):hover {
  border-color: rgb(0 0 0 / 30%);
  background: rgb(0 0 0 / 3%);
}

.dreamform-checkbox input[type='checkbox']:checked {
  background: var(--color-ripe-mango-700);
  border-color: var(--color-ripe-mango-700);
  color: var(--color-ripe-mango-1400);
}

.dreamform-checkbox input[type='checkbox']:checked:hover {
  background: var(--color-ripe-mango-700);
  border-color: var(--color-ripe-mango-700);
  color: var(--color-ripe-mango-1400);
}

.dreamform-checkbox input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(252 206 46 / 25%);
}

.dreamform-checkbox input[type='checkbox']::after {
  content: '';
  width: 0.45rem;
  height: 0.25rem;
  border: 2px solid currentcolor;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.12s ease;
}

.dreamform-checkbox input[type='checkbox']:checked::after {
  transform: rotate(-45deg) scale(1);
}

.dreamform-checkbox label,
.dreamform-radio label {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-100);
  line-height: var(--typo-line-height-regular);
  color: var(--color-dead-pixel-1200);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  font-weight: var(--font-weight-regular);
}

/* Specific styling for checkbox and radio containers */
.dreamform .dreamform-checkbox,
.dreamform .dreamform-radio {
  padding: var(--size-2) 0;
}

/* Secondary button variant */
.dreamform-button--secondary {
  --_background-primary-enabled: none;
  --_background-primary-hover: var(--color-dead-pixel-1200);
  --_background-primary-pressed: none;
  --_background-primary-disabled: none;
  --_foreground-primary-enabled: var(--color-dead-pixel-1200);
  --_foreground-primary-hover: var(--color-dead-pixel-25);
  --_foreground-primary-pressed: var(--color-dead-pixel-500);
  --_foreground-primary-disabled: var(--color-dead-pixel-400);
  --_border-primary-enabled: var(--_border-width) solid
    var(--color-dead-pixel-1200);
  --_border-primary-hover: var(--_border-width) solid
    var(--_background-primary-hover);
  --_border-primary-pressed: var(--_border-width) solid
    var(--color-dead-pixel-400);
  --_border-primary-disabled: var(--_border-width) solid
    var(--color-dead-pixel-300);
  --_background: var(--_background-primary-enabled);
  --_foreground: var(--_foreground-primary-enabled);
  --_border: var(--_border-primary-enabled);

  &:hover {
    --_background: var(--_background-primary-hover);
    --_foreground: var(--_foreground-primary-hover);
    --_border: var(--_border-primary-hover);
  }

  &:focus {
    --_background: var(--_background-primary-pressed);
    --_foreground: var(--_foreground-primary-pressed);
    --_border: var(--_border-primary-pressed);
  }

  &.disabled,
  &[disabled] {
    --_background: var(--_background-primary-disabled);
    --_foreground: var(--_foreground-primary-disabled);
    --_border: var(--_border-primary-disabled);
  }

  &[data-role='destructive'] {
    --_background-primary-enabled: none;
    --_background-primary-hover: var(--color-ferocious-900);
    --_background-primary-pressed: none;
    --_background-primary-disabled: none;
    --_foreground-primary-enabled: var(--color-ferocious-900);
    --_foreground-primary-hover: var(--color-white);
    --_foreground-primary-pressed: var(--color-ferocious-500);
    --_foreground-primary-disabled: var(--color-ferocious-500);
    --_border-primary-enabled: var(--_border-width) solid
      var(--color-ferocious-900);
    --_border-primary-hover: var(--_border-width) solid
      var(--_background-primary-hover);
    --_border-primary-pressed: var(--_border-width) solid
      var(--color-ferocious-500);
    --_border-primary-disabled: var(--_border-width) solid
      var(--color-ferocious-300);
  }
}

/* ==========================================
   FILE UPLOAD
   ========================================== */

.dreamform-file-upload {
  position: relative;
  border: 2px dashed var(--color-dead-pixel-400);
  border-radius: var(--border-radius-3, 8px);
  padding: var(--size-8);
  text-align: center;
  background: var(--color-dead-pixel-25);
  transition: border-color 0.2s ease,
    background-color 0.2s ease;

  &:hover {
    border-color: var(--color-ripe-mango-600);
    background: var(--color-ripe-mango-100);
  }

  &.dragover {
    border-color: var(--color-ripe-mango-800);
    background: var(--color-ripe-mango-200);
  }
}

.dreamform-file-upload input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dreamform-file-upload-content {
  pointer-events: none;
}

.dreamform-file-upload-icon {
  font-size: var(--typo-size-600);
  color: var(--color-dead-pixel-600);
  margin-bottom: var(--size-2);
}

.dreamform-file-upload-text {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-100);
  font-weight: var(--font-weight-medium);
  color: var(--color-dead-pixel-1200);
}

.dreamform-file-upload-hint {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-90);
  color: var(--color-dead-pixel-800);
  margin-top: var(--size-1);
}

/* ==========================================
   ERROR & SUCCESS STATES
   ========================================== */

.dreamform-error {
  color: var(--color-ferocious-800);
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-90);
  font-weight: var(--font-weight-medium);
  margin-top: var(--size-1);
  display: none;
  align-items: center;
  gap: var(--size-1);
}

.dreamform-error::before {
  /* Icon as a mask so it takes the text colour, like the svg icon set does */
  content: '';
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  background: currentcolor;
  mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z%22/%3E%3Cline x1=%2212%22 y1=%229%22 x2=%2212%22 y2=%2213%22/%3E%3Cline x1=%2212%22 y1=%2217%22 x2=%2212.01%22 y2=%2217%22/%3E%3C/svg%3E')
    center / contain no-repeat;
}

.dreamform-field--error .dreamform-input,
.dreamform-field--error .dreamform-textarea,
.dreamform-field--error .dreamform-select,
.dreamform-field.has-error .dreamform-input,
.dreamform-field.has-error .dreamform-textarea,
.dreamform-field.has-error .dreamform-select {
  border-color: var(--color-ferocious-800);
}

.dreamform-field--error .dreamform-input:focus,
.dreamform-field--error .dreamform-textarea:focus,
.dreamform-field--error .dreamform-select:focus,
.dreamform-field.has-error .dreamform-input:focus,
.dreamform-field.has-error .dreamform-textarea:focus,
.dreamform-field.has-error .dreamform-select:focus {
  box-shadow: 0 0 0 3px rgb(232 66 55 / 20%);
}

.dreamform-success {
  background: var(--color-pastel-green-100);
  border: 2px solid var(--color-pastel-green-600);
  border-radius: var(--border-radius-3, 8px);
  padding: var(--size-6);
  margin: var(--size-6) 0;
  text-align: center;
}

.dreamform-success-title {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-400);
  font-weight: var(--font-weight-bold);
  color: var(--color-pastel-green-1300);
  margin: 0 0 var(--size-2) 0;
}

.dreamform-success-message {
  font-family: var(--font-family-sans);
  font-size: var(--typo-size-100);
  color: var(--color-pastel-green-1200);
  margin: 0;
}

/* ==========================================
   LOADING STATES
   ========================================== */

.dreamform-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.dreamform-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  border: 2px solid var(--color-dead-pixel-400);
  border-top-color: var(--color-ripe-mango-800);
  border-radius: 50%;
  animation: dreamform-spin 1s linear infinite;
}

@keyframes dreamform-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   HONEYPOT & SECURITY
   ========================================== */

.dreamform-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (width < 768px) {
  .dreamform {
    padding: var(--size-6);
    margin: var(--size-4) 0;
  }

  .dreamform-button,
  .dreamform-submit {
    width: 100%;
    justify-content: center;
  }

  .dreamform h2 {
    font-size: var(--typo-size-500);
  }
}

@media (width >= 1024px) {
  .dreamform-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--size-6);
  }

  .dreamform-field-group .dreamform-field {
    margin-bottom: 0;
  }
}

/* Form wrapper for better integration */
.dreamform form {
  width: 100%;
}

.dreamform .dreamform-field:last-child {
  margin-bottom: var(--size-6);
}

/* ==========================================
   HIGH CONTRAST & ACCESSIBILITY
   ========================================== */

@media (prefers-contrast: high) {
  .dreamform-input,
  .dreamform-textarea,
  .dreamform-select {
    border-width: 3px;
  }

  .dreamform-button,
  .dreamform-submit {
    border-width: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dreamform-input,
  .dreamform-textarea,
  .dreamform-select,
  .dreamform-button,
  .dreamform-submit {
    transition: none;
  }

  .dreamform-loading::after {
    animation: none;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
  .c-blog-form,
  .dreamform {
    box-shadow: none;
    border: 1px solid var(--color-dead-pixel-600);
  }

  .dreamform-button,
  .dreamform-submit {
    display: none;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  white-space: nowrap;
}

.badge[data-variant='primary'] {
  background-color: var(--color-ripe-mango-700);
  color: var(--color-ripe-mango-1400);
}

.badge[data-variant='secondary'] {
  background-color: var(--color-dead-pixel-400);
  color: var(--color-dead-pixel-1200);
}

.badge[data-variant='success'] {
  background-color: #10b981;
  color: white;
}

.badge[data-variant='warning'] {
  background-color: #f59e0b;
  color: white;
}

.badge[data-variant='error'] {
  background-color: #ef4444;
  color: white;
}

mark,
.highlight {
  background-color: var(--color-ripe-mango-300);
  color: var(--color-ripe-mango-1400);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: var(--font-weight-medium);
}

/* Base modal component — works on native <dialog> elements.
   Customize per-variant via CSS custom properties on the modifier class. */

.gs-c-modal {
  --modal-width: min(90vw, 40rem);
  --modal-border-radius: 1rem;
  --modal-close-bg: rgb(200 200 200 / 90%);
  --modal-close-bg-hover: rgb(0 0 0 / 35%);
  --modal-close-color: var(--color-dead-pixel-1300);

  inset: 0;
  margin: auto;
  width: var(--modal-width);
  max-height: min(90vh, 90dvh);
  padding: 0;
  border: none;
  border-radius: var(--modal-border-radius);
  box-shadow: 0 25px 50px rgb(0 0 0 / 40%);
  overflow-y: auto;
}

.gs-c-modal::backdrop {
  background: rgb(0 0 0 / 55%);
  backdrop-filter: blur(4px);
}

/* Sticky zero-height bar — keeps close button visible during scroll
   and visually overlays the hero image when present */
.gs-c-modal__close-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 0;
  overflow: visible;
  display: flex;
  justify-content: flex-end;
}

.gs-c-modal__close {
  position: relative;
  top: 0.75rem;
  margin-inline-end: 0.75rem;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--modal-close-bg);
  color: var(--modal-close-color);
  border: none;
  border-radius: 50%;
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease;
}

.gs-c-modal__close:hover {
  background: var(--modal-close-bg-hover);
}

.gs-c-modal__close:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 2px;
}

/* Hero: full-bleed at top, rounded upper corners matching the dialog */
.gs-c-modal__hero {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--modal-border-radius) var(--modal-border-radius) 0 0;
}

/* Body: no top padding — hero provides the visual separation */
.gs-c-modal__body {
  padding: 0 1.5rem 1.5rem;
}

/* No hero: push content below the close button area
   (close-bar is height:0, so without a hero the button overlaps body content) */
.gs-c-modal:not(.gs-c-modal--has-hero) .gs-c-modal__body {
  padding-top: 3.5rem;
}

/* Footer: standardized action row with separator */
.gs-c-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgb(0 0 0 / 10%);
}


/* Content Components */
/* Standard Timeline Container */
.timeline-block--standard.c-project-timeline {
  --timeline-accent: var(
    --color-ripe-mango-1000,
    var(--color-fg-brand-primary)
  );

  position: relative;
  margin: 20px auto;
  padding: 20px 0;
}

.timeline-block--standard.c-project-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: var(--timeline-accent);
  border-radius: 999px;
}

/* Standard card container */
.timeline-block--standard .c-project-timeline-card {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: -20px;
}

.timeline-block--standard .c-project-timeline-card:last-child {
  margin-bottom: 0;
}

.timeline-block--standard .c-project-timeline-card:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 32px);
}

.timeline-block--standard .c-project-timeline-card:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 32px);
}

.timeline-block--standard .c-project-timeline-card::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  background: var(--color-bg-default, white);
  border: 4px solid var(--timeline-accent);
  border-radius: 50%;
  z-index: 2;
}

.timeline-block--standard .c-project-timeline-card::after {
  content: '';
  position: absolute;
  top: 36px;
  height: 2px;
  width: 32px;
  background: var(--timeline-accent);
}

.timeline-block--standard .c-project-timeline-card:nth-child(odd)::after {
  left: calc(50% - 32px);
}

.timeline-block--standard .c-project-timeline-card:nth-child(even)::after {
  left: 50%;
}

/* Information about the timeline */
.info {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background: var(--color-dead-pixel-100);
  color: var(--color-dead-pixel-1300);
  border: 1px solid var(--color-dead-pixel-400);
  border-radius: var(--border-radius-5, 10px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
  padding: 16px;
}

.c-project-timeline-card .image {
  margin-top: 1rem;
}

/* Headline area */
.c-project-timeline-card .headline {
  display: flex;
  justify-content: space-between;
}

/* Title of the card */
.c-project-timeline-card .title {
  color: var(--timeline-accent);
  position: relative;
  margin: 0;
}

.c-project-timeline-card .text ul,
.c-project-timeline-card .text ol {
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.c-project-timeline-card .text ul {
  list-style-type: disc;
}

.c-project-timeline-card .text ol {
  list-style-type: decimal;
}

.c-project-timeline-card .text li + li {
  margin-top: 0.35rem;
}

.timeline-block--standard .c-project-timeline-card .info {
  position: relative;
  overflow: visible;
  min-height: 150px;
}

.timeline-block--standard
.c-project-timeline-card--has-image:nth-child(odd)
.info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-areas: 'headline image'
    'text image';
  column-gap: 1rem;
  align-items: end;
}

.timeline-block--standard
.c-project-timeline-card--has-image:nth-child(even)
.info {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-areas: 'image headline'
    'image text';
  column-gap: 1rem;
  align-items: end;
}

.timeline-block--standard .c-project-timeline-card .headline,
.timeline-block--standard .c-project-timeline-card .text {
  width: 100%;
}

.timeline-block--standard .c-project-timeline-card--has-image .headline {
  grid-area: headline;
}

.timeline-block--standard .c-project-timeline-card--has-image .text {
  grid-area: text;
}

.timeline-block--standard .c-project-timeline-card .info,
.timeline-block--standard .c-project-timeline-card .headline,
.timeline-block--standard .c-project-timeline-card .text,
.timeline-block--standard .c-project-timeline-card .text p,
.timeline-block--standard .c-project-timeline-card .text ul,
.timeline-block--standard .c-project-timeline-card .text ol,
.timeline-block--standard .c-project-timeline-card .text li {
  text-align: left;
  align-items: flex-start;
}

.timeline-block--standard .c-project-timeline-card .headline {
  justify-content: flex-start;
}

.timeline-block--standard .c-project-timeline-card .image {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: 1rem;
  z-index: 3;
}

.timeline-block--standard .c-project-timeline-card--has-image .image {
  grid-area: image;
  align-self: end;
  margin-top: 0;
}

.timeline-block--standard .c-project-timeline-card:nth-child(odd) .image {
  right: auto;
}

.timeline-block--standard .c-project-timeline-card:nth-child(even) .image {
  left: auto;
}

.timeline-block--standard .c-project-timeline-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 10%));
}

@media (width < 768px) {
  .timeline-block--standard.c-project-timeline {
    padding: 8px 0;
  }

  .timeline-block--standard.c-project-timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-block--standard .c-project-timeline-card,
  .timeline-block--standard .c-project-timeline-card:nth-child(odd),
  .timeline-block--standard .c-project-timeline-card:nth-child(even) {
    justify-content: flex-start;
    padding-left: 52px;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .timeline-block--standard .c-project-timeline-card::before {
    left: 20px;
    top: 24px;
    transform: translateX(-50%);
  }

  .timeline-block--standard .c-project-timeline-card::after,
  .timeline-block--standard .c-project-timeline-card:nth-child(odd)::after,
  .timeline-block--standard .c-project-timeline-card:nth-child(even)::after {
    left: 20px;
    top: 32px;
    width: 32px;
  }

  .timeline-block--standard .c-project-timeline-card .info,
  .timeline-block--standard
  .c-project-timeline-card--has-image:nth-child(odd)
  .info,
  .timeline-block--standard
  .c-project-timeline-card--has-image:nth-child(even)
  .info {
    display: block;
    min-height: 0;
    padding: 16px;
    text-align: left;
  }

  .timeline-block--standard .c-project-timeline-card .headline,
  .timeline-block--standard .c-project-timeline-card:nth-child(odd) .headline,
  .timeline-block--standard .c-project-timeline-card:nth-child(even) .headline {
    justify-content: flex-start;
  }

  .timeline-block--standard .c-project-timeline-card .image,
  .timeline-block--standard .c-project-timeline-card:nth-child(odd) .image,
  .timeline-block--standard .c-project-timeline-card:nth-child(even) .image {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 96px;
    height: 96px;
    margin-top: 1rem;
    transform: none;
  }
}

/* Compact Timeline Container */
.timeline-block--compact.c-project-timeline {
  --timeline-accent: var(
    --color-ripe-mango-1000,
    var(--color-fg-brand-primary)
  );

  margin: 20px auto;
  padding: 20px;
}

.timeline-block--compact .c-project-timeline-card {
  position: relative;
}

.timeline-block--compact .c-project-timeline-card:nth-child(odd) {
  padding: 30px 0 30px 52px;
}

.timeline-block--compact .c-project-timeline-card:nth-child(even) {
  padding: 30px 52px 30px 0;
}

.timeline-block--compact .c-project-timeline-card::before {
  content: '';
  position: absolute;
  width: 50%;
  border: solid var(--timeline-accent);
}

.timeline-block--compact .c-project-timeline-card:nth-child(odd)::before {
  left: 0;
  top: -4.5px;
  bottom: -4.5px;
  border-width: 5px 0 5px 5px;
  border-radius: 50px 0 0 50px;
}

.timeline-block--compact .c-project-timeline-card:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 5px 5px 5px 0;
  border-radius: 0 50px 50px 0;
}

.timeline-block--compact .c-project-timeline-card:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

.timeline-block--compact
.c-project-timeline-card:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

.timeline-block--compact
.c-project-timeline-card:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

.timeline-block--compact .c-project-timeline-card .headline::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 999px;
  z-index: 2;
  margin-top: 3px;
  border: 3px solid var(--timeline-accent);
}

.timeline-block--compact
.c-project-timeline-card:nth-child(even)
> .info
> .headline {
  flex-direction: row-reverse;
}

.timeline-block--compact .c-project-timeline-card .title {
  color: var(--timeline-accent);
}

.timeline-block--compact .c-project-timeline-card .info,
.timeline-block--compact .c-project-timeline-card .headline,
.timeline-block--compact .c-project-timeline-card .text,
.timeline-block--compact .c-project-timeline-card .text p,
.timeline-block--compact .c-project-timeline-card .text ul,
.timeline-block--compact .c-project-timeline-card .text ol,
.timeline-block--compact .c-project-timeline-card .text li {
  text-align: left;
}

.timeline-block--compact .c-project-timeline-card--has-image > .info {
  display: grid;
  align-items: end;
  column-gap: 1rem;
}

.timeline-block--compact
.c-project-timeline-card--has-image:nth-child(odd)
> .info {
  grid-template-columns: minmax(0, 1fr) 120px;
  grid-template-areas: 'headline image'
    'text image';
}

.timeline-block--compact
.c-project-timeline-card--has-image:nth-child(even)
> .info {
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-areas: 'image headline'
    'image text';
}

.timeline-block--compact
.c-project-timeline-card--has-image
> .info
> .headline {
  grid-area: headline;
  width: 100%;
}

.timeline-block--compact .c-project-timeline-card--has-image > .info > .text {
  grid-area: text;
  width: 100%;
}

.timeline-block--compact .c-project-timeline-card--has-image > .info > .image {
  grid-area: image;
  width: 120px;
  height: 120px;
  margin-top: 0;
  align-self: end;
}

.timeline-block--compact
.c-project-timeline-card--has-image
> .info
> .image
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 10%));
}

.timeline-block--compact
.c-project-timeline-card:nth-child(odd)
> .info
> .headline::before {
  left: -8px;
}

.timeline-block--compact
.c-project-timeline-card:nth-child(even)
> .info
> .headline::before {
  right: -8px;
}

@media only screen and (max-width: 400px) {
  .timeline-block--compact .c-project-timeline-card:nth-child(odd)::before {
    top: -5px;
    bottom: -5px;
  }
}

@media (width < 768px) {
  .timeline-block--compact.c-project-timeline {
    padding: 8px 0;
  }

  .timeline-block--compact .c-project-timeline-card {
    margin-bottom: 15px;
  }

  .timeline-block--compact .c-project-timeline-card:nth-child(odd) {
    padding-left: 34px;
    padding-right: 8px;
  }

  .timeline-block--compact .c-project-timeline-card:nth-child(even) {
    padding-right: 34px;
    padding-left: 8px;
  }

  .timeline-block--compact .c-project-timeline-card:nth-child(odd)::before {
    left: 0;
    right: auto;
    top: -10px;
    bottom: -10px;
  }

  .timeline-block--compact .c-project-timeline-card:nth-child(even)::before {
    right: 0;
    left: auto;
    top: -10px;
    bottom: -10px;
  }

  .timeline-block--compact .c-project-timeline-card:first-child::before {
    top: 0;
  }

  .timeline-block--compact
  .c-project-timeline-card:last-child:nth-child(odd)::before,
  .timeline-block--compact
  .c-project-timeline-card:last-child:nth-child(even)::before {
    bottom: 0;
  }

  .timeline-block--compact .c-project-timeline-card .headline::before {
    content: none;
  }

  .timeline-block--compact .c-project-timeline-card::after {
    content: '';
    position: absolute;
    top: 26px;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid var(--timeline-accent);
    border-radius: 999px;
    z-index: 3;
  }

  .timeline-block--compact .c-project-timeline-card:nth-child(odd)::after {
    left: -5px;
  }

  .timeline-block--compact .c-project-timeline-card:nth-child(even)::after {
    right: -5px;
  }

  .timeline-block--compact .c-project-timeline-card--has-image > .info,
  .timeline-block--compact
  .c-project-timeline-card--has-image:nth-child(odd)
  > .info,
  .timeline-block--compact
  .c-project-timeline-card--has-image:nth-child(even)
  > .info {
    display: block;
  }

  .timeline-block--compact
  .c-project-timeline-card--has-image
  > .info
  > .image {
    width: 96px;
    height: 96px;
    margin-top: 1rem;
  }
}

/* Constrained Timeline Styles */

/* When timeline is in a constrained width (like 1/3 grid), adapt the layout */
.timeline-container--constrained {
  --timeline-constrained-accent: var(--color-fg-muted);
  --timeline-axis-left: 0;

  margin: 20px auto;
  padding: 20px;
}

.timeline-container--constrained .timeline-item__container {
  position: relative;
}

.timeline-container--constrained .timeline-item {
  position: relative;
}

.timeline-container--constrained .timeline-item:nth-child(odd) {
  padding: 30px 0 30px 30px;
}

.timeline-container--constrained .timeline-item:nth-child(even) {
  padding: 30px 30px 30px 0;
}

.timeline-container--constrained .timeline-item::before {
  content: '';
  position: absolute;
  width: 50%;
  border: solid var(--timeline-constrained-accent);
}

.timeline-container--constrained .timeline-item:nth-child(odd)::before {
  left: 0;
  top: -4.5px;
  bottom: -4.5px;
  border-width: 5px 0 5px 5px;
  border-radius: 50px 0 0 50px;
}

@media only screen and (max-width: 400px) {
  .timeline-container--constrained .timeline-item:nth-child(odd)::before {
    top: -5px;
    bottom: -5px;
  }
}

.timeline-container--constrained .timeline-item:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 5px 5px 5px 0;
  border-radius: 0 50px 50px 0;
}

.timeline-container--constrained .timeline-item:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

.timeline-container--constrained
.timeline-item:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

.timeline-container--constrained
.timeline-item:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

.timeline-container--constrained .timeline-item__container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-dead-pixel-1300);
  color: var(--color-dead-pixel-10);
  border-radius: 10px;
  padding: 16px;
}

.timeline-container--constrained .timeline-content {
  width: 100%;
  position: relative;
}

.timeline-container--constrained .timeline-date {
  display: block;
  color: var(--timeline-constrained-accent);
  margin: 0 0 0.5rem;
}

.timeline-container--constrained .timeline-status-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  min-height: 32px;
}

.timeline-container--constrained .timeline-status-pills .status-badge {
  --color-project-planning: var(--color-cornflower-1000);
  --color-project-preparing: var(--color-cornflower-1300);
  --color-project-active: var(--color-ripe-mango-1200);
  --color-project-review: var(--color-violaceous-greti-1200);
  --color-project-done: var(--color-ripe-mango-1400);

  display: inline-flex;
  align-items: center;
  font-size: var(--typo-size-80);
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-pill);
  margin: 0;
  font-weight: var(--font-weight-semiBold);
  background: var(--color-fg-brand-primary);
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;

  &[data-color='preparing'] {
    background-color: var(--color-project-preparing);
  }

  &[data-color='planning'] {
    background-color: var(--color-project-planning);
  }

  &[data-color='active'] {
    background-color: var(--color-project-active);
  }

  &[data-color='review'] {
    background-color: var(--color-project-review);
  }

  &[data-color='done'] {
    background-color: var(--color-project-done);
  }
}

.timeline-container--constrained .timeline-status-arrow {
  color: var(--color-fg-default);
  width: 16px;
  height: 12px;
  flex-shrink: 0;
}

.timeline-container--constrained .timeline-image {
  width: 100%;
  max-width: 200px;
  margin-top: var(--size-2);
}

.timeline-container--constrained .timeline-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-4);
}

.timeline-container--constrained .timeline-connector {
  position: absolute;
  top: 19px;
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 999px;
  z-index: 2;
  border: 3px solid var(--timeline-constrained-accent);
  transform: translateX(-50%);
}

.timeline-container--constrained
.timeline-item:nth-child(odd)
.timeline-connector {
  left: var(--timeline-axis-left);
}

.timeline-container--constrained
.timeline-item:nth-child(even)
.timeline-connector {
  left: var(--timeline-axis-left);
  right: auto;
}

.timeline-container--constrained .timeline-title {
  margin: 0;
  color: var(--timeline-constrained-accent);
}

.timeline-container--constrained .timeline-text {
  color: var(--color-dead-pixel-10);
}

.timeline-container--constrained .timeline-text a,
.c-project-timeline-card .text a {
  color: var(--timeline-constrained-accent, var(--color-fg-muted));
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Compact block reuses the standard card layout; only the date/link styling stays specific */
.timeline-block--compact .timeline-item::before,
.timeline-block--compact .timeline-item:nth-child(odd)::before,
.timeline-block--compact .timeline-item:nth-child(even)::before {
  content: none;
}

.timeline-block--compact .timeline-item__container {
  position: static;
}

.timeline-block--compact .timeline-content {
  width: auto;
  position: static;
}

.timeline-block--compact .timeline-connector {
  display: none;
}

.timeline-block--compact .timeline-title {
  color: var(--color-fg-brand-primary);
}

/* Mobile responsiveness for constrained timeline */
@media (width < 1024px) and (width >= 768px) {
  .timeline-container--constrained .timeline-item {
    margin: 0;
  }

  .timeline-container--constrained .timeline-item__container {
    padding: 16px;
  }
}

@media (width < 768px) {
  .timeline-container--constrained {
    padding: 8px 0;
  }

  .timeline-container--constrained .timeline-item {
    padding-left: 40px;
    padding-right: 0;
    margin: 0;
  }

  .timeline-container--constrained .timeline-item__container {
    padding: var(--size-3);
  }

  .timeline-container--constrained .timeline-connector {
    left: -8px;
    right: auto;
  }

  .timeline-container--constrained .timeline-image {
    max-width: 150px;
    margin: var(--size-2) 0;
  }
}

/* Project step timeline is completely isolated from the generic timeline block */
.project-step-timeline {
  --project-step-card-width: min(100%, 340px);
  --project-step-marker-size: 16px;

  width: 100%;
}

.project-step-timeline-container {
  position: relative;
  margin: 20px auto;
  padding: 20px 0;
  max-width: 340px;
}

.project-step-timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    var(--color-ripe-mango-800) 0%,
    var(--color-ripe-mango-600) 100%
  );
  z-index: 0;
}

.project-step-timeline-item {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0 0 var(--size-7);
  align-items: center;
  justify-content: center;
  padding-top: 14px;
}

.project-step-timeline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--project-step-card-width);
  max-width: var(--project-step-card-width);
  background: #f2f2f2;
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgb(0 0 0 / 10%);
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%),
    0 10px 24px rgb(0 0 0 / 8%);
  z-index: 1;
}

.project-step-timeline-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -14px;
  width: 2px;
  height: 14px;
  background: var(--color-ripe-mango-600);
  transform: translateX(-50%);
}

.project-step-timeline-content {
  width: 100%;
  padding-top: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.project-step-timeline-date {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  color: var(--color-fg-muted);
  font-size: var(--typo-size-80);
  font-weight: var(--font-weight-regular);
  text-align: right;
  white-space: nowrap;
  padding: 0;
  border-radius: 0;
  border: 0;
}

.project-step-timeline-status-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  min-height: 32px;
}

.project-step-timeline-status-pills .status-badge {
  --color-project-planning: var(--color-cornflower-1000);
  --color-project-preparing: var(--color-cornflower-1300);
  --color-project-active: var(--color-ripe-mango-1200);
  --color-project-review: var(--color-violaceous-greti-1200);
  --color-project-done: var(--color-ripe-mango-1400);

  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--typo-size-80);
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-pill);
  margin: 0;
  font-weight: var(--font-weight-semiBold);
  background: var(--color-fg-brand-primary);
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Change badge (Anfangs- zu Endzustand): ein Badge, Farbverlauf per Inline-Style
   aus den obigen --color-project-* Tokens, Pfeil erbt die weiße Textfarbe. */
.project-step-timeline-status-pills .status-badge--change svg {
  flex-shrink: 0;
}

.project-step-timeline-status-pills .status-badge[data-color='preparing'] {
  background-color: var(--color-project-preparing);
}

.project-step-timeline-status-pills .status-badge[data-color='planning'] {
  background-color: var(--color-project-planning);
}

.project-step-timeline-status-pills .status-badge[data-color='active'] {
  background-color: var(--color-project-active);
}

.project-step-timeline-status-pills .status-badge[data-color='review'] {
  background-color: var(--color-project-review);
}

.project-step-timeline-status-pills .status-badge[data-color='done'] {
  background-color: var(--color-project-done);
}

.project-step-timeline-image {
  margin: 0.75rem 0 0;
  border-radius: var(--radius-medium, 0.75rem);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-subtle, var(--color-bg-default));
}

.project-step-timeline-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-step-timeline-title {
  margin: 0.5rem 0;
  color: var(--color-fg-emphasis);
  font-size: var(--typo-size-200);
  line-height: var(--typo-line-height-narrow);
}

.project-step-timeline-text {
  color: var(--color-fg-default);
  line-height: var(--typo-line-height-regular);
  font-size: var(--typo-size-100);
}

.project-step-timeline-text a {
  color: var(--color-fg-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.project-step-timeline-connector {
  position: absolute;
  left: 50%;
  top: 6px;
  width: var(--project-step-marker-size);
  height: var(--project-step-marker-size);
  background: var(--color-ripe-mango-600);
  border: 3px solid white;
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 1px var(--color-border-default);
}

@media (width < 1024px) and (width >= 768px) {
  .project-step-timeline-item {
    margin: 0 0 var(--size-6);
  }
}

@media (width < 768px) {
  .project-step-timeline-container {
    padding: var(--size-3) 0;
  }

  .project-step-timeline-item {
    margin: 0 0 var(--size-5);
    justify-content: center;
    padding-top: 12px;
  }

  .project-step-timeline-card {
    padding: 0.9rem 0.9rem 1rem;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    margin-left: 0;
  }

  .project-step-timeline-card::before {
    content: none;
  }

  .project-step-timeline-connector {
    left: 50%;
    top: 4px;
  }
}

.designer > li {
  padding-inline: 2rem;
  line-height: 2.5rem;
}

.designer > p {
  margin-bottom: 2rem;
}

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-details {
  background-color: var(--color-white);
  border: 1px solid var(--color-dead-pixel-300);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.accordion-details[open] {
  background-color: var(--color-dead-pixel-200);
  border-color: var(--color-dead-pixel-400);
  box-shadow: 0 6px 16px rgb(0 0 0 / 6%);
}

.accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--color-fg-brand-primary);
  border-bottom: 1px solid var(--color-fg-brand-primary);
}

.accordion-details[open] .accordion-summary {
  color: var(--color-dead-pixel-1200);
  border-bottom-color: var(--color-dead-pixel-300);
}

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

.accordion-summary::after {
  content: '';
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.accordion-details[open] .accordion-summary::after {
  transform: rotate(-135deg);
}

.accordion-summary:focus-visible {
  outline: 2px solid var(--color-fg-brand-primary);
  outline-offset: 2px;
}

.accordion-text {
  margin: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  color: var(--color-dead-pixel-1200);
  font-size: 1.05rem;
  line-height: 1.65;
}

.accordion-text p {
  margin: 0;
}

.accordion-text ul,
.accordion-text ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.accordion-text ul {
  list-style-type: disc;
}

.accordion-text ol {
  list-style-type: decimal;
}

.accordion-text li {
  margin: 0.25rem 0;
}

/** CARD **/
.c-card {
  grid-column: span 4;
  display: flex;
  padding-bottom: 2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(0 0 0 / 10%);
  background: #fff;
  overflow: hidden;
  contain: content;
}

.c-card-content {
  padding: 0 1rem;
  width: 100%;
}

.c-card-hero {
  --aspected-ration: 24/9;

  display: block;
  width: 100%;
  aspect-ratio: var(--aspected-ration);
  object-fit: cover;
  background: red;

  @media (width > 489px) {
    & {
      --aspected-ration: 21/9;
    }
  }
  @media (width > 767px) {
  }
  @media (width > 1039px) {
  }
  @media (width > 1439px) {
  }
}


blockquote {
  hanging-punctuation: first last;
  display: grid;
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1.5;
  padding-left: 1rem;
  border-left: solid var(--color-fg-brand-primary) 2px;
  position: relative;

  &::before {
    content: '';
    z-index: -1;
    position: absolute;
    inset-inline: 10%;
    inset-block: -50%;
    aspect-ratio: 1;
    border-radius: 1e3px;
    background: #0ff2;
    filter: blur(25px);
  }

  > p {
    inline-size: 40ch;
    text-wrap: balance;

    &::before {
      content: open-quote;
    }

    &::after {
      content: close-quote;
    }
  }
}

.c-external_video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  @media (width > 767px) {
    & {
      --grid-gap: 1rem;
      --grid-colums-count: 8;
    }
  }
  @media (width > 1039px) {
    & {
      --grid-colums-count: 12;
    }
  }
  @media (width > 1439px) {
    & {
      --grid-colums-count: 12;
      --grid-gap: 2rem;
    }
  }
}

.c-gallery-image {
  border-radius: var(--border-radius-5);
  border: var(--color-dead-pixel-800);
}

.searchbar {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  align-items: center;
}

.searchbar input[type='search'] {
  flex-grow: 1;
  min-width: 0;
  padding: var(--_padding-vertical, 0.5rem) var(--_padding-horizontal, 1rem);
  font-size: var(--_font-size, 0.875rem);
  font-weight: var(--_font-weight, 600);
  color: var(--_foreground, var(--color-ripe-mango-1400));
  border: var(
    --_border-primary-enabled,
    1px solid var(--color-dead-pixel-1200)
  );
  border-radius: var(--_border-radius, var(--border-radius-pill));
  background: var(--_background, none);
  transition: border-color 0.3s ease;
  height: var(--_height, 2.25rem);
  box-sizing: border-box;
}

.searchbar input[type='search']::placeholder {
  color: var(--color-dead-pixel-400);
}

.searchbar input[type='search']:hover,
.searchbar input[type='search']:focus {
  border-color: var(--color-dead-pixel-800, var(--color-dead-pixel-25));
  outline: none;
}

.c-downloadBlock {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-dead-pixel-300);
  border-radius: 0.5rem;
  background-color: var(--color-dead-pixel-10);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s,
    box-shadow 0.2s;
}

.c-downloadBlock:hover {
  background-color: var(--color-dead-pixel-100);
  box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

/* Icon links */
.c-downloadBlock__icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-dead-pixel-1500);
}

/* Textbereich */
.c-downloadBlock__content {
  flex: 1;
}

/* Titel = primary color */
.c-downloadBlock__title {
  color: var(--color-ripe-mango-1200);
  font-weight: 500;
  margin: 0 0 0.25rem;
}

/* Beschreibung = schwarz */
.c-downloadBlock__description {
  color: var(--color-dead-pixel-1500);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.c-downloadBlock__size {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--color-dead-pixel-1000);
}

.c-downloadBlock__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.two-column-table {
  width: 100%;
}

.two-column-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.two-column-table td {
  padding: 0.75rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--color-dead-pixel-300);
}

/* zebra crossing */
.two-column-table tr:nth-child(even) {
  background-color: var(--color-dead-pixel-100);
}

/* columns */
.two-column-table {
  width: 100%;
  color: var(--color-dead-pixel-1300);
}

/* Divider Block */

.c-divider {
  --_color: var(--color-dead-pixel-300);
  --_thickness: 1px;
  --_style: solid;
  --_spacing: 1.5rem;

  width: 100%;
  height: 0;
  border: 0;
  border-top: var(--_thickness) var(--_style) var(--_color);
  margin-block: var(--_spacing);
}

/* Line style */

.c-divider[data-line-style='dashed'] {
  --_style: dashed;
}

.c-divider[data-line-style='dotted'] {
  --_style: dotted;
}

/* Thickness */

.c-divider[data-thickness='regular'] {
  --_thickness: 2px;
}

.c-divider[data-thickness='thick'] {
  --_thickness: 4px;
}

/* Color */

.c-divider[data-color='dark'] {
  --_color: var(--color-dead-pixel-1200);
}

.c-divider[data-color='brand'] {
  --_color: var(--color-fg-brand-primary);
}

/* Spacing */

.c-divider[data-spacing='small'] {
  --_spacing: 0.75rem;
}

.c-divider[data-spacing='large'] {
  --_spacing: 3rem;
}

/* Image Placeholder */

/* Branded stand-in for cards without a cover image */
.c-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;

  /* ueberschreibbarer Hook, mit Default aus der Markenpalette */
  background: var(--color-dead-pixel-100);
}

.c-image-placeholder img {
  width: 40%;
  max-width: 10rem;
  height: auto;
  opacity: 0.7;
}


:root {
}

/* ------------------------------------
   GRID CONTAINER
------------------------------------ */

.grid {
  --grid-colums-count: 1;
  --grid-gap: 1rem;

  display: grid;
  grid-template-columns: repeat(var(--grid-colums-count), minmax(0, 1fr));
  gap: var(--grid-gap);
}

/* Breakpoints steuern nur die Anzahl der Gesamtspalten */

@media (min-width: 768px) {
  .grid {
    --grid-colums-count: 8;
  }
}

@media (min-width: 1040px) {
  .grid {
    --grid-colums-count: 12;
  }
}

@media (min-width: 1440px) {
  .grid {
    --grid-colums-count: 12;
    --grid-gap: 2rem;
  }
}

/* ------------------------------------
   GRID ITEMS = KIRBY COLUMNS
   (Nur Breite definieren – KEINE Position!)
------------------------------------ */

/* Mobile: alles untereinander */
.grid-item {
  grid-column: span 1;
}

/* Inhalte innerhalb einer Spalte sauber stapeln */
.grid-item {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* ------------------------------------
   TABLET (8-Spalten-System)
------------------------------------ */

@media (min-width: 768px) {
  .grid-item[data-span='1/1'] {
    grid-column: span 8;
  }

  .grid-item[data-span='1/2'] {
    grid-column: span 4;
  }

  .grid-item[data-span='1/3'] {
    grid-column: span 8;
  } /* stacked for readability */
  .grid-item[data-span='2/3'] {
    grid-column: span 8;
  }

  .grid-item[data-span='1/4'] {
    grid-column: span 4;
  }

  .grid-item[data-span='3/4'] {
    grid-column: span 8;
  }
}

/* ------------------------------------
   DESKTOP (12-Spalten-System)
------------------------------------ */

@media (min-width: 1040px) {
  .grid-item[data-span='1/1'] {
    grid-column: span 12;
  }

  .grid-item[data-span='1/2'] {
    grid-column: span 6;
  }

  .grid-item[data-span='1/3'] {
    grid-column: span 4;
  }

  .grid-item[data-span='2/3'] {
    grid-column: span 8;
  }

  .grid-item[data-span='1/4'] {
    grid-column: span 3;
  }

  .grid-item[data-span='3/4'] {
    grid-column: span 9;
  }
}

/* ------------------------------------
   OPTIONAL HELPERS (falls genutzt)
------------------------------------ */

.grid-item-span1 {
  grid-column: span 1;
}

.grid-item-span2 {
  grid-column: span 2;
}

.grid-item-span3 {
  grid-column: span 3;
}

.grid-item-span4 {
  grid-column: span 4;
}

.grid-item-span5 {
  grid-column: span 5;
}

.grid-item-span6 {
  grid-column: span 6;
}

/* ------------------------------------
   DEBUG (optional entfernen)
------------------------------------ */

.test-column {
  display: block;
  width: 100%;
  height: 20rem;
  background: red;
}

@media (min-width: 768px) {
  .test-column {
    height: 100vh;
  }
}

/* Paddings */

/* Margins */
.block {
  display: block;
}

.width100 {
  width: 100%;
}

.flex {
  --gap: 0;

  display: flex;
}

.flex > * + * {
  margin-left: var(--gap);
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-baseline {
  align-items: baseline;
}

.items-stretch {
  align-items: stretch;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 2.5rem;
}

.mb-7 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

.mt-6 {
  margin-top: 2.5rem;
}

.mt-7 {
  margin-top: 3rem;
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.p-4 {
  padding: 2rem;
}

.p-lr-0 {
  padding: 0;
}

.p-lr-1 {
  padding: 0 0.5rem;
}

.p-lr-2 {
  padding: 0 1rem;
}

.p-lr-3 {
  padding: 0 1.5rem;
}

.p-lr-4 {
  padding: 0 2rem;
}

.p-tb-0 {
  padding: 0;
}

.p-tb-1 {
  padding: 0.5rem 0;
}

.p-tb-2 {
  padding: 1rem 0;
}

.p-tb-3 {
  padding: 1.5rem 0;
}

.p-tb-4 {
  padding: 2rem 0;
}



/* Site-Specific - MachMit!Haus Goslar styles */
/* Site-Specific Styles */

/* MachMit!Haus Goslar website-specific components and layouts */

/* Layout Components */
:root {
}

header,
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 0 2rem;
  height: 3rem;
  overflow: hidden;
  background-color: var(--color-dead-pixel-10);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px 0 rgb(0 0 0 / 8%),
    0 4px 8px 0 rgb(0 0 0 / 4%),
    0 2px 4px 0 rgb(0 0 0 / 2%);
  transition: all 0.25s ease;

  @media (width < 768px) {
    & {
      padding: 0.5rem 1rem 0;
      flex-direction: column;
      justify-content: flex-start;
    }
  }

  & .logo {
    height: 2rem;

    & svg {
      height: 100%;
    }
  }

  & .placeholder {
    width: 7rem;
    @media (width < 768px) {
      & {
        display: none;
      }
    }
  }

  & .mainNav {
    display: block;
    @media (width < 768px) {
      & {
        display: none;
      }
    }
  }

  & .mainNav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    & .mainNav-list-item {
      flex-grow: 0;

      &:hover {
        text-decoration: underline var(--color-fg-brand-primary) 2px;
      }

      & a:focus {
        opacity: 0.3;
      }
      @media (width < 768px) {
        & {
          font-size: var(--typo-size-500);
          font-weight: var(--font-weight-bold);
        }
      }

      & a.active {
        color: var(--color-fg-brand-primary);
        font-weight: var(--font-weight-medium);
      }
    }

    @media (width < 768px) {
      & {
        padding-top: 3rem;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 1rem;
      }
    }
  }

  & .hamburger {
    display: none;
    height: 2rem;

    & svg {
      height: 100%;
    }
    @media (width < 768px) {
      & {
        display: block;
      }
    }
  }

  & .mobileMenuWrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    @media (width < 768px) {
      & {
        width: 100%;
      }
    }
  }
}

.mainNav.is-active {
  display: block;
  width: 100%;
}

.header.is-active {
  height: 100vh;
  width: 100%;
  position: absolute;
  padding: 0.5rem 1rem 0;
}

footer.footer {
  background: var(--color-dead-pixel-100);
  padding: 2rem 0 4rem;
}

body > footer {
  position: sticky;
  top: 100vh;
}

.c-hero {
  background: var(--color-bg-brand-primary);
  border-bottom: 1px solid var(--color-bg-brand-primary);
}

.c-hero img {
  --aspected-ration: 16/9;

  aspect-ratio: var(--aspected-ration);
  object-fit: cover;

  @media (width > 489px) {
    & {
      --grid-colums-count: 1;
    }
  }
  @media (width > 767px) {
    & {
      --aspected-ration: 24/9;
    }
  }
  @media (width > 1039px) {
    & {
      --aspected-ration: 28/9;
    }
  }
  @media (width > 1439px) {
    & {
      --aspected-ration: 28/9;
    }
  }
}


/* Content-Type Components */
:root {
}

.c-projectTeaserCard {
  grid-column: span 4;
  display: flex;
  padding-bottom: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(0 0 0 / 10%);
  background: #fff;
  overflow: hidden;
  contain: content;
  height: 100%;

  & .content {
    padding: 0 1rem 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;

    /* Call to action stays on the bottom edge so buttons line up across a row */
    & .gs-c-btn {
      margin-top: auto;
      align-self: flex-start;
    }

    /* Sits between the excerpt and the CTA; not a .gs-c-btn so it is
       unaffected by the bottom-anchor rule above. */
    & .project-teaser-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.375rem;
      margin-bottom: 0.75rem;
    }

    & .project-teaser-tag {
      display: inline-flex;
      align-items: center;
      padding: 0.125rem 0.5rem;
      border: 1px solid var(--color-dead-pixel-400);
      border-radius: var(--border-radius-pill, 999px);
      color: var(--color-fg-muted);
      font-size: var(--typo-size-80);

      &::before {
        content: '#';
      }

      &:hover {
        border-color: var(--color-fg-brand-primary);
      }
    }

    /* Status Header */
    & .statusheader {
      display: flex;
      justify-content: space-between;

      /* gleiche Datumsfarbe wie in Newsletter- und Tagebuch-Karte */
      & time {
        color: var(--color-fg-muted);
      }

      & .status-badge {
        --color-project-planning: var(--color-cornflower-1000);
        --color-project-preparing: var(--color-cornflower-1300);
        --color-project-active: var(--color-ripe-mango-1200);
        --color-project-review: var(--color-violaceous-greti-1200);
        --color-project-done: var(--color-ripe-mango-1400);

        display: inline-flex;
        padding: 0.125rem 0.5rem;
        font-size: var(--typo-size-80);
        font-weight: var(--font-weight-semiBold);
        border-radius: 4px;
        background: var(--color-fg-brand-primary);
        color: var(--color-white);

        &[data-color='preparing'] {
          background-color: var(--color-project-preparing);
        }

        &[data-color='planning'] {
          background-color: var(--color-project-planning);
        }

        &[data-color='active'] {
          background-color: var(--color-project-active);
        }

        &[data-color='review'] {
          background-color: var(--color-project-review);
        }

        &[data-color='done'] {
          background-color: var(--color-project-done);
        }
      }
    }
  }

  /* Hero */
  & .hero-wrapper {
    --aspected-ration: 24/9;

    display: block;
    width: 100%;
    aspect-ratio: var(--aspected-ration);
    overflow: hidden;

    @media (width > 489px) {
      & {
        --aspected-ration: 21/9;
      }
    }
  }

  & .hero {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
  }
}

/* Themenfeld-Gruppierung und Filter auf der Projektübersicht */

.projects-listing .section-title,
.project-archive .section-title {
  margin-bottom: var(--spacing-4, 1.5rem);
  padding-bottom: var(--spacing-2, 0.5rem);
  border-bottom: 2px solid var(--color-primary, #000);
  scroll-margin-top: 6rem;
}

/* Abstand zwischen zwei Themenblöcken, aber nicht über dem ersten */
.projects-listing .section-title:not(:first-child) {
  margin-top: var(--spacing-6, 3rem);
}

.projects-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.projects-filter-heading {
  font-size: var(--typo-size-80);
  font-weight: var(--font-weight-bold);
}

.projects-filter-row .projects-filter-pill {
  flex: 0 0 auto;
  gap: 0.6rem;
}

.projects-filter-pill:hover {
  transform: translateY(-2px);
}

.projects-filter-pill__count {
  font-weight: 700;
}

@media (width <= 489px) {
  .projects-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .projects-filter-row::-webkit-scrollbar {
    display: none;
  }
}

/* Themenfeld-Chips auf der Projektdetailseite */
.project-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1rem 0;
}

.project-topic-chip:hover {
  transform: translateY(-2px);
}

/* Tag-Chips auf der Projektdetailseite: eigenes, dezenteres Aussehen als
   die Themenfeld-Chips, damit "Hauptthema" vs. "Tags" auf einen Blick
   unterscheidbar bleiben. */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.5rem 0;
}

.project-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-dead-pixel-400);
  border-radius: var(--border-radius-pill, 999px);
  color: var(--color-fg-muted);
  font-size: var(--typo-size-80);
  font-weight: var(--font-weight-semiBold);
  transition: transform 0.2s ease,
    border-color 0.2s ease;

  &::before {
    content: '#';
  }

  &:hover {
    transform: translateY(-2px);
    border-color: var(--color-fg-brand-primary);
  }
}

/* Tag-Pills auf der Projektübersicht: gleiche Filter-Mechanik wie die
   Themenfeld-Pills, aber bewusst kleiner/unauffälliger, damit die Themen die
   primäre Navigation bleiben und die Tags als Verfeinerung danebenstehen. */
.projects-filter-pill--tag {
  --_height: 1.5rem;
  --_font-size: 0.6875rem;
  --_font-weight: 500;
  --_padding-horizontal: 0.625rem;
  --_padding-vertical: 0.25rem;

  opacity: 0.8;

  &::before {
    content: '#';
  }

  &:hover,
  &[data-active='true'] {
    opacity: 1;
  }
}

:root {
}

.c-projectUpdateTeaser-card {
  grid-column: span 4;
  display: flex;
  padding-bottom: 2rem;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(0 0 0 / 10%);
  background: #fff;
  overflow: hidden;
  height: 100%;

  /* Hero */
  & .hero-wrapper {
    --aspected-ration: 24/9;

    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--aspected-ration);
    overflow: hidden;

    @media (width > 489px) {
      & {
        --aspected-ration: 21/9;
      }
    }
  }

  & .hero {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
  }

  & .outlook-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    padding: 0.1875rem 0.625rem;
    font-size: var(--typo-size-80);
    font-weight: var(--font-weight-medium);
    border-radius: 1rem;
    background: var(--color-ripe-mango-200);
    color: var(--color-ripe-mango-1400);
    border: 1px solid var(--color-ripe-mango-300);
    box-shadow: 0 2px 8px rgb(0 0 0 / 16%);
  }

  & .content {
    padding: 0 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;

    /* Status Header */
    & .statusheader {
      display: flex;
      justify-content: space-between;

      /* gleiche Datumsfarbe wie in Newsletter- und Tagebuch-Karte */
      & time {
        color: var(--color-fg-muted);
      }

      & .status-badge {
        --color-project-planning: var(--color-cornflower-1000);
        --color-project-preparing: var(--color-cornflower-1300);
        --color-project-active: var(--color-ripe-mango-1200);
        --color-project-review: var(--color-violaceous-greti-1200);
        --color-project-done: var(--color-ripe-mango-1400);

        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.125rem 0.5rem;
        font-size: var(--typo-size-80);
        font-weight: var(--font-weight-semiBold);
        border-radius: 4px;
        background: var(--color-fg-brand-primary);
        color: var(--color-white);

        &[data-color='preparing'] {
          background-color: var(--color-project-preparing);
        }

        &[data-color='planning'] {
          background-color: var(--color-project-planning);
        }

        &[data-color='active'] {
          background-color: var(--color-project-active);
        }

        &[data-color='review'] {
          background-color: var(--color-project-review);
        }

        &[data-color='done'] {
          background-color: var(--color-project-done);
        }

        &.status-badge--change svg {
          flex-shrink: 0;
        }
      }
    }
  }
}

:root {
}

.c-teamMemberCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(0 0 0 / 8%);
  background: #fff;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  color: inherit;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgb(0 0 0 / 10%);
    border-color: rgb(0 0 0 / 12%);
    text-decoration: none;
  }

  .profile-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;

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

    .placeholder-avatar {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(
        135deg,
        var(--color-fg-brand-primary),
        var(--color-bg-brand-primary)
      );
      color: white;
      font-weight: var(--font-weight-semiBold);
      font-size: 1.75rem;
    }
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .name {
    font-size: var(--typo-size-200);
    font-weight: var(--font-weight-semiBold);
    line-height: var(--typo-line-height-narrow);
    color: var(--color-black);
    margin: 0;
  }

  .role {
    font-size: var(--typo-size-90);
    font-weight: var(--font-weight-regular);
    color: var(--color-cornflower-1000);
    line-height: var(--typo-line-height-narrow);
  }

  .description {
    font-size: var(--typo-size-90);
    line-height: var(--typo-line-height-regular);
    color: var(--color-black-80);
    margin: 0;

    /* Multi-line text overflow */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    p {
      display: inline;
      margin: 0;
    }

    p + p::before {
      content: '\A';
      white-space: pre;
    }

    strong,
    em {
      font: inherit;
    }
  }

  .contact-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }

  .contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-grey-200);
    color: var(--color-black-60);
    transition: all 0.2s ease;
    text-decoration: none;

    &:hover {
      background: var(--color-ripe-mango-800);
      color: white;
      transform: scale(1.1);
    }

    svg {
      width: 16px;
      height: 16px;
    }
  }
}

/* Team Gallery Section */
.c-teamGallery {
  margin: 3rem 0;

  .section-title {
    /* font-size: var(--typo-size-140);
    font-weight: var(--font-weight-semiBold);
    color: var(--color-black); */
    margin-bottom: 1rem;
    text-align: center;
  }

  .section-subtitle {
    /* font-size: var(--typo-size-100);
    color: var(--color-black-70); */
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .c-teamMemberCard {
    padding: 1rem;

    .profile-image {
      width: 70px;
      height: 70px;
    }

    .name {
      font-size: var(--typo-size-100);
    }
  }

  .c-teamGallery {
    .team-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
    }
  }
}

/* Member Detail Page Styles */
.member-detail {
  .member-hero {
    padding: 3rem 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 2px solid var(--color-ripe-mango-200);

    .member-hero-content {
      display: flex;
      align-items: flex-start;
      gap: 2rem;
      width: 100%;

      @media (max-width: 768px) {
        & {
          flex-direction: column;
          gap: 1.5rem;
        }
      }
    }
  }

  .profile-image-large {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 8px 32px rgb(0 0 0 / 12%);

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

    .placeholder-avatar-large {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(
        135deg,
        var(--color-fg-brand-primary),
        var(--color-bg-brand-primary)
      );
      color: white;
      font-weight: var(--font-weight-bold);
      font-size: 4rem;
    }
  }

  .contact-profile-section {
    display: flex;
    flex: 0 0 min(28rem, 40%);
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    align-self: stretch;
  }

  .member-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;

    .member-name {
      font-size: var(--typo-size-500);
      font-weight: var(--font-weight-bold);
      color: var(--color-black);
      margin: 0;
      line-height: 1.2;
    }

    .member-role {
      font-size: var(--typo-size-300);
      color: var(--color-ripe-mango-1000);
      margin-bottom: 0;
      font-weight: var(--font-weight-medium);
    }
  }

  .team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;

    &.team-badges--profile {
      margin-bottom: 0;
      max-width: none;
    }

    .team-badge {
      padding: 0.25rem 0.75rem;
      border-radius: 1rem;
      font-size: var(--typo-size-90);
      font-weight: var(--font-weight-medium);
      background: white;
      color: var(--color-ripe-mango-1000);
      border: 1px solid var(--color-ripe-mango-300);

      &[data-team='staff'] {
        background: var(--color-ripe-mango-200);
        color: var(--color-ripe-mango-1400);
      }

      &[data-team='volunteer'] {
        background: var(--color-cornflower-200);
        color: var(--color-cornflower-1200);
      }

      &[data-team='partner'] {
        background: var(--color-violaceous-greti-200);
        color: var(--color-violaceous-greti-1200);
      }

      &[data-team='issuer'] {
        background: var(--color-grey-200);
        color: var(--color-black-80);
      }
    }
  }

  .contact-section-grid {
    .contact-card {
      background: white;
      border-radius: 0.75rem;
      border: 1px solid var(--color-ripe-mango-200);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgb(0 0 0 / 4%);

      .contact-card-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--color-grey-200);

        svg {
          color: var(--color-ripe-mango-800);
        }

        h3 {
          font-size: var(--typo-size-200);
          font-weight: var(--font-weight-semiBold);
          margin: 0;
          color: var(--color-black);
        }
      }

      .contact-card-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .contact-item-inline {
          display: flex;
          align-items: center;
          gap: 0.75rem;
          padding: 0.75rem 1rem;
          border-radius: 0.5rem;
          background: var(--color-grey-50);
          color: var(--color-black);
          text-decoration: none;
          transition: all 0.2s ease;
          border: 1px solid transparent;

          &:hover {
            background: var(--color-ripe-mango-50);
            border-color: var(--color-ripe-mango-200);
            transform: translateX(4px);
          }

          svg {
            color: var(--color-ripe-mango-800);
            flex-shrink: 0;
          }

          span {
            font-weight: var(--font-weight-medium);
            font-size: var(--typo-size-100);
          }
        }
      }
    }
  }

  /* Unified Contact & Map Section */
  .contact-section-unified {
    margin-bottom: 0;
    width: 100%;
    flex: 1 1 auto;

    @media (max-width: 768px) {
      & {
        margin-bottom: 1.5rem;
      }
    }
  }

  .unified-contact-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--color-ripe-mango-200);
    padding: 2rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
    width: 100%;

    .contact-card-header {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.75rem;
      margin-bottom: 2rem;
      padding-bottom: 1rem;
      border-bottom: 2px solid var(--color-grey-200);

      svg {
        color: var(--color-ripe-mango-800);
      }

      h3 {
        font-size: var(--typo-size-300);
        font-weight: var(--font-weight-semiBold);
        margin: 0;
        color: var(--color-black);
      }
    }

    .contact-content-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 3rem;

      &.contact-content-grid--without-map {
        grid-template-columns: 1fr;
      }

      @media (max-width: 768px) {
        & {
          grid-template-columns: 1fr;
          gap: 2rem;
        }
      }
    }

    .section-subtitle {
      font-size: var(--typo-size-200);
      font-weight: var(--font-weight-semiBold);
      color: var(--color-black);
      margin: 0 0 1.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--color-grey-200);
    }

    .contact-info-section {
      display: flex;
      align-items: stretch;
      justify-content: flex-start;
    }

    .contact-items {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      justify-content: center;
      height: 100%;
      width: 100%;
    }

    .contact-item-inline {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      border-radius: 0.5rem;
      color: var(--color-black);
      text-decoration: none;
      transition: all 0.2s ease;
      border: 1px solid transparent;
      text-align: left;

      &:hover {
        background: var(--color-ripe-mango-50);
        border-color: var(--color-ripe-mango-200);
        transform: translateX(4px);
      }

      svg {
        color: var(--color-ripe-mango-800);
        flex-shrink: 0;
      }

      span {
        font-weight: var(--font-weight-medium);
        font-size: var(--typo-size-100);
        min-width: 0;
      }
    }

    .map-container {
      display: flex;
      flex-direction: column;
      gap: 1rem;

      .member-map {
        width: 100%;
        height: 200px;
        border-radius: 0.5rem;
        border: 1px solid var(--color-grey-300);
        overflow: hidden;
      }

      .map-address {
        font-size: var(--typo-size-100);
        color: var(--color-black-70);
        text-align: center;
        margin: 0;
        font-weight: var(--font-weight-medium);
        padding: 0.5rem;
        background: var(--color-grey-50);
        border-radius: 0.25rem;
      }
    }
  }

  /* Custom Map Marker Styles */
  .custom-marker {
    cursor: pointer;
    transition: transform 0.2s ease;

    &:hover {
      transform: scale(1.1);
    }
  }

  .member-description,
  .member-projects,
  .member-newsletters,
  .member-notes,
  .member-social {
    margin-bottom: 3rem;

    h2 {
      font-size: var(--typo-size-400);
      font-weight: var(--font-weight-semiBold);
      color: var(--color-black);
      margin-bottom: 2rem;
      border-bottom: 2px solid var(--color-ripe-mango-200);
      padding-bottom: 0.75rem;
    }
  }

  .member-description {
    margin-top: -0.75rem;
  }

  .description-content {
    font-size: var(--typo-size-100);
    line-height: var(--typo-line-height-regular);
    color: var(--color-black-85);

    p {
      margin-bottom: 1rem;
    }
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }

  .newsletters-grid,
  .notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .newsletter-card,
  .note-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid var(--color-grey-300);
    transition: all 0.2s ease;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px -5px rgb(0 0 0 / 10%);
      border-color: var(--color-cornflower-300);
    }

    .newsletter-meta,
    .note-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      font-size: var(--typo-size-90);
      color: var(--color-black-60);
    }

    .note-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;

      .tag {
        padding: 0.125rem 0.5rem;
        background: var(--color-ripe-mango-100);
        color: var(--color-ripe-mango-1000);
        border-radius: 0.25rem;
        font-size: var(--typo-size-80);
      }
    }

    h3 {
      margin: 0 0 1rem;
      font-size: var(--typo-size-200);
      font-weight: var(--font-weight-semiBold);

      a {
        color: var(--color-black);
        text-decoration: none;

        &:hover {
          color: var(--color-ripe-mango-800);
        }
      }
    }

    .newsletter-excerpt,
    .note-excerpt {
      font-size: var(--typo-size-100);
      line-height: var(--typo-line-height-regular);
      color: var(--color-black-70);
      margin-bottom: 1rem;
    }

    .newsletter-link,
    .note-link {
      font-size: var(--typo-size-90);
      color: var(--color-ripe-mango-800);
      text-decoration: none;
      font-weight: var(--font-weight-medium);

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;

    .social-link {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      border-radius: 0.5rem;
      background: white;
      color: var(--color-black);
      text-decoration: none;
      border: 1px solid var(--color-grey-300);
      transition: all 0.2s ease;
      font-weight: var(--font-weight-medium);

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
      }

      &.facebook:hover {
        background: #1877f2;
        color: white;
      }

      &.instagram:hover {
        background: #e4405f;
        color: white;
      }

      &.linkedin:hover {
        background: #0a66c2;
        color: white;
      }

      &.github:hover {
        background: #333;
        color: white;
      }

      &.youtube:hover {
        background: #f00;
        color: white;
      }
    }
  }

  @media (max-width: 768px) {
    .member-hero {
      padding: 2rem 0;
      margin-bottom: 2rem;
    }

    .profile-image-large {
      width: 152px;
      height: 152px;
      border-width: 3px;
    }

    .member-info {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;

      .member-name {
        margin: 0;
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.05;
        text-wrap: balance;
      }

      .member-role {
        margin-bottom: 0;
        max-width: 24rem;
        font-size: var(--typo-size-100);
        line-height: 1.3;
      }
    }

    .team-badges {
      justify-content: center;
      margin-bottom: 0.5rem;

      &.team-badges--card {
        position: static;
        max-width: none;
        justify-content: center;
        margin-bottom: 1rem;
      }
    }

    .unified-contact-card {
      padding: 1.25rem;
      border-radius: 1rem;

      .contact-card-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.85rem;
        padding-right: 0;
        justify-content: center;
        text-align: center;

        h3 {
          font-size: var(--typo-size-200);
        }
      }

      .contact-content-grid {
        gap: 1.25rem;
      }

      .contact-info-section,
      .map-info-section {
        width: 100%;
      }

      .contact-items {
        gap: 0.75rem;
      }

      .contact-item-inline {
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        padding: 0.85rem 0.9rem;

        span {
          word-break: break-word;
        }
      }

      .map-container {
        .member-map {
          height: 180px;
        }
      }
    }

    .member-description,
    .member-projects,
    .member-newsletters,
    .member-notes,
    .member-social {
      margin-bottom: 2.25rem;

      h2 {
        margin-bottom: 1.25rem;
        padding-bottom: 0.6rem;
        font-size: var(--typo-size-300);
      }
    }

    .description-content {
      font-size: var(--typo-size-100);
      line-height: 1.6;
    }

    .projects-grid,
    .newsletters-grid,
    .notes-grid,
    .social-links {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .newsletter-card,
    .note-card {
      padding: 1.1rem;

      .newsletter-meta,
      .note-meta {
        align-items: flex-start;
        gap: 0.5rem;
        flex-direction: column;
      }
    }

    .contact-profile-section {
      width: 100%;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  }
}

:root {
  --events-surface: #fff;
  --events-surface-soft: #f4f6fb;
  --events-ink: #182033;
  --events-ink-soft: #6a7388;
  --events-border: #dfe5f0;
  --events-accent: #162034;
  --events-highlight: #ff4d4f;
  --events-free: #16c768;
  --events-gold: var(--color-ripe-mango-1000);
}

/* Basis-Kachel. Lag frueher global in newsletter.css und hat von dort
   Startseite und Terminseite mitgestylt -- inklusive `height: fit-content`,
   das das Grid-Stretch aushebelte und die Kacheln einer Reihe
   unterschiedlich hoch machte. */
.eventsListItem {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: var(--size-5);
  border: 1px solid var(--color-dead-pixel-300);
  border-left: 4px solid var(--color-ripe-mango-800);
  border-radius: var(--border-radius-4);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition-property: transform, box-shadow, border-color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

.eventsListItem:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-ripe-mango-600);
}

/* Der Link fuellt die Kachel, damit der Inhalt bei gleicher Zeilenhoehe
   sauber verteilt wird. */
.eventsListItem > a {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.eventsListItem time {
  display: block;
  color: var(--color-ripe-mango-1000);
  font-weight: var(--font-weight-semiBold);
}

.eventsListItem h3,
.eventsListItem h4 {
  color: var(--color-dead-pixel-1400);
}

.eventsListItem p {
  color: var(--color-dead-pixel-1000);
}

.eventsListItem p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.main--events .events-toolbar {
  display: grid;
  gap: 1rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.main--events .events-toolbar .searchbar {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.main--events .events-toolbar__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.main--events .events-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main--events .events-filter-row .events-filter-pill {
  flex: 0 0 auto;
}

.main--events .events-filter-row::-webkit-scrollbar {
  display: none;
}

.events-toolbar-chip:hover,
.events-filter-pill:hover,
.events-day-chip:hover,
.eventsListItem__link:hover {
  transform: translateY(-2px);
}

.events-toolbar-chip__count,
.events-filter-pill__count {
  font-weight: 700;
}

.events-toolbar-chip,
.events-filter-pill {
  gap: 0.6rem;
}

.main--events .events-calendar-shell {
  padding: 1.4rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--events-border);
  border-radius: 1.8rem;
  background: var(--events-surface);
  box-shadow: 0 20px 45px rgb(20 30 50 / 6%);
}

.main--events .events-calendar-shell__header,
.main--events .events-results-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.main--events .events-calendar-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.main--events .events-calendar-shell__reset {
  color: var(--events-gold);
  font-weight: 600;
  text-decoration: none;
}

.main--events .events-calendar-picker__toggle {
  color: var(--events-gold);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.main--events .events-calendar-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.events-day-chip {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  width: 5.2rem;
  min-width: 5.2rem;
  text-decoration: none;
  height: auto;
  min-height: 5.4rem;
  padding: 0.7rem 0.55rem;
  line-height: 1;
}

.main--events .events-calendar-strip::-webkit-scrollbar {
  display: none;
}

.events-day-chip__weekday,
.events-day-chip__month {
  font-size: 0.78rem;
  line-height: 1.1;
}

.events-day-chip__day {
  font-size: 1.8rem;
  line-height: 1;
}

.main--events .events-results-head__count {
  color: var(--events-ink-soft);
  white-space: nowrap;
}

.main--events .events-grid {
  row-gap: 1.4rem;
}

.main--events .events-grid .eventsListItem {
  display: flex;
}

.main--events .events-grid .eventsListItem > a {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  width: 100%;
}

.main--events .events-grid .eventsListItem time,
.main--events .events-grid .eventsListItem h3,
.main--events .events-grid .eventsListItem p {
  overflow: hidden;
}

.main--events .events-grid .eventsListItem h3 {
  display: block;
}

.main--events .events-grid .eventsListItem p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
}

.main--events .events-empty-state {
  padding: 2rem;
  border: 1px dashed var(--events-border);
  border-radius: 1.45rem;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.main--events .events-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.main--events .events-calendar-modal[data-open='false'] {
  display: none;
}

.main--events .events-calendar-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(14 18 28 / 58%);
  backdrop-filter: blur(6px);
}

.main--events .events-calendar-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.35rem;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 26px 60px rgb(8 14 26 / 24%);
}

.main--events .events-calendar-modal__header {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.main--events .events-calendar-modal__title {
  margin: 0;
  color: var(--events-ink);
  font-size: 1.2rem;
  text-align: center;
}

.main--events .events-calendar-modal__nav {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #f2f4f8;
  color: var(--events-ink-soft);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.main--events .events-calendar-modal__weekdays,
.main--events .events-calendar-modal__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.main--events .events-calendar-modal__weekdays {
  margin-bottom: 0.4rem;
}

.main--events .events-calendar-modal__weekdays span {
  color: #9aa3b5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.main--events .events-calendar-modal__day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.8rem;
  color: var(--events-ink);
  text-decoration: none;
}

.main--events .events-calendar-modal__day[data-current-month='false'] {
  color: #c5cbd7;
}

.main--events .events-calendar-modal__day[data-selected='true'] span {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.8rem;
  background: var(--events-accent);
  color: #fff;
  font-weight: 700;
}

.main--events .events-calendar-modal__day i {
  position: absolute;
  bottom: 0.35rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: #ff6b6b;
  font-style: normal;
}

.main--events .events-calendar-modal__close {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--events-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.main--events .events-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.main--events .events-pagination[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .main--events .events-toolbar {
    grid-template-columns: 1fr;
  }

  .main--events .events-toolbar .searchbar,
  .main--events .events-calendar-shell {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .main--events .events-toolbar {
    gap: 1.25rem;
  }

  .main--events .events-toolbar > * {
    min-width: 0;
  }

  .main--events .events-toolbar .searchbar {
    flex-wrap: wrap;
  }

  .main--events .events-toolbar .searchbar > * {
    min-width: 0;
  }

  .main--events .events-toolbar__stats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main--events .events-toolbar__stats::-webkit-scrollbar,
  .main--events .events-calendar-strip::-webkit-scrollbar {
    display: none;
  }

  .main--events .events-calendar-shell {
    padding: 1rem;
    border-radius: 1.35rem;
  }

  .main--events .events-calendar-shell__header,
  .main--events .events-results-head,
  .main--events .events-pagination {
    align-items: start;
    flex-direction: column;
  }

  .main--events .events-calendar-actions {
    align-items: stretch;
    width: auto;
    margin-bottom: 0.65rem;
  }

  .main--events .events-calendar-strip {
    gap: 0.6rem;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0.25rem;
  }

  .events-day-chip {
    flex: 0 0 auto;
    width: auto;
    width: 4.9rem;
    min-width: 4.9rem;
    min-height: 5.8rem;
    padding: 0.75rem 0.5rem;
  }

  .events-day-chip__weekday,
  .events-day-chip__month {
    font-size: 0.72rem;
  }

  .events-day-chip__day {
    font-size: 1.55rem;
  }

  .main--events .events-results-head__count {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .main--events .events-filter-row {
    gap: 0.55rem;
  }

  .main--events .events-calendar-shell {
    padding: 0.85rem;
    overflow: hidden;
  }

  .main--events .events-calendar-strip {
    gap: 0.5rem;
  }

  .events-day-chip {
    width: 4.35rem;
    min-width: 4.35rem;
    min-height: 5.35rem;
    padding: 0.7rem 0.45rem;
  }

  .events-day-chip__day {
    font-size: 1.4rem;
  }
}

.c-event {
  --event-gap: 1.5rem;
  --event-radius: 0.75rem;
  --event-border: 1px solid rgb(0 0 0 / 10%);

  display: flex;
  flex-direction: column;
  gap: var(--event-gap);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.c-event__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: var(--typo-size-80);
  padding-top: 3%;
  color: var(--color-dead-pixel-1200);

  &:hover {
    color: var(--color-fg-brand-primary);
  }
}

/* Header -- a div on purpose: the global `header` rule in layout/header.css
   forces height: 3rem, overflow: hidden and position: sticky */

.c-event__header {
  display: grid;
  gap: var(--event-gap);
  grid-template-columns: 1fr;

  @media (width > 767px) {
    & {
      grid-template-columns: 3fr 2fr;
      align-items: end;
    }
  }
}

.c-event__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--event-radius);
  background: var(--color-ripe-mango-200);
}

.c-event__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-event__dateBadge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgb(0 0 0 / 15%);

  & span {
    font-size: var(--typo-size-80);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-fg-brand-primary);
  }

  & strong {
    font-size: var(--typo-size-200);
    line-height: 1.1;
  }
}

.c-event__intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-event__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.c-event__pill {
  display: inline-flex;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--color-dead-pixel-100);
  font-size: var(--typo-size-80);
  font-weight: var(--font-weight-semiBold);
  color: var(--color-dead-pixel-1300);
}

.c-event__pill--accent {
  background: var(--color-fg-brand-primary);
  color: var(--color-white);
}

.c-event__pill--free {
  background: var(--color-ripe-mango-200);
  color: var(--color-ripe-mango-1400);
}

.c-event__title {
  margin: 0;
}

/* Notices */

.c-event__notices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-event__notice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--event-radius);
  font-size: var(--typo-size-90);
  background: var(--color-dead-pixel-100);
  color: var(--color-dead-pixel-1300);

  &[data-tone='critical'] {
    background: #fdecec;
    color: #8a1f1f;
  }

  &[data-tone='warning'] {
    background: var(--color-ripe-mango-200);
    color: var(--color-ripe-mango-1400);
  }
}

.c-event[data-cancelled='true'] .c-event__title {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* Body layout */

.c-event__body {
  display: grid;
  gap: var(--event-gap);
  grid-template-columns: 1fr;

  @media (width > 1039px) {
    & {
      grid-template-columns: 2fr 1fr;
      align-items: start;
    }
  }
}

.c-event__main,
.c-event__aside {
  display: flex;
  flex-direction: column;
  gap: var(--event-gap);
}

/* Glance row -- fact grid plus map, three columns from tablet up */

.c-event__glance {
  display: grid;
  gap: var(--event-gap);
  grid-template-columns: 1fr;

  @media (width > 767px) {
    & {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

/* Fact grid -- icons first */

.c-event__facts {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-content: start;
  padding: 1.25rem;
  border: var(--event-border);
  border-radius: var(--event-radius);
  background: var(--color-white);

  @media (width > 489px) {
    & {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (width > 767px) {
    & {
      grid-column: span 2;
    }
  }
}

/* Without a map the facts use the full row */
.c-event__glance[data-has-map='false'] .c-event__facts {
  @media (width > 767px) {
    & {
      grid-column: span 3;
    }
  }
}

.c-event__map {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-event__mapCanvas {
  width: 100%;
  aspect-ratio: 4/3;
  border: var(--event-border);
  border-radius: var(--event-radius);
  overflow: hidden;
  background: var(--color-dead-pixel-100);

  /* Next to the facts the map fills the row instead of keeping its ratio */
  @media (width > 767px) {
    & {
      flex: 1;
      aspect-ratio: auto;
      min-height: 14rem;
    }
  }
}

.c-event__mapLink {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  font-size: var(--typo-size-80);
  color: var(--color-fg-brand-primary);

  &:hover {
    text-decoration: underline;
  }
}

.c-event__fact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.c-event__factIcon {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-fg-brand-primary);
  color: var(--color-white);
}

.c-event__factBody {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  align-self: center;
}

.c-event__factLabel {
  font-size: var(--typo-size-80);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-dead-pixel-1100);
}

.c-event__factValue {
  font-size: var(--typo-size-90);
  line-height: var(--typo-line-height-regular);
  overflow-wrap: anywhere;
}

.c-event__factLink,
.c-event__cardLink {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: var(--typo-size-80);
  color: var(--color-fg-brand-primary);

  &:hover {
    text-decoration: underline;
  }
}

/* Sections */

.c-event__section h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c-event__description {
  white-space: normal;
  overflow-wrap: anywhere;
}

.c-event__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.c-event__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border: var(--event-border);
  border-radius: 999px;
  font-size: var(--typo-size-80);
  color: var(--color-dead-pixel-1200);
}

.c-event__dates {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-event__date {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0.875rem;
  border: var(--event-border);
  border-radius: 0.5rem;
  background: var(--color-white);
  font-size: var(--typo-size-90);

  &:hover {
    border-color: var(--color-fg-brand-primary);
  }
}

.c-event__dateTime {
  color: var(--color-dead-pixel-1100);
  white-space: nowrap;
}

/* Aside cards */

.c-event__card {
  padding: 1.25rem;
  border: var(--event-border);
  border-radius: var(--event-radius);
  background: var(--color-white);

  & h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.c-event__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  & .gs-c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
}

.c-event__address {
  display: flex;
  flex-direction: column;
  font-style: normal;
  font-size: var(--typo-size-90);
  line-height: var(--typo-line-height-regular);
}

.c-event__organizer {
  font-size: var(--typo-size-90);
  font-weight: var(--font-weight-semiBold);
}

.c-event__organizerMeta {
  font-size: var(--typo-size-80);
  color: var(--color-dead-pixel-1100);
}

.c-event__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.75rem;

  & a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--typo-size-90);
    overflow-wrap: anywhere;

    &:hover {
      color: var(--color-fg-brand-primary);
    }
  }
}

.c-event__source {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--typo-size-80);
  color: var(--color-dead-pixel-1100);

  & a {
    text-decoration: underline;
  }

  & svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
  }
}

/**
 * Newsletter Template Styles
 * MachMit!Haus Newsletter Design - Design System Component
 */

/* ==========================================
   NEWSLETTER SPECIFIC COMPONENTS
   ========================================== */

/* Newsletter Cover/Hero */
.newsletter-cover {
  background: linear-gradient(135deg, #5d4e37 0%, #6b5b47 50%, #4a3c28 100%);
  color: var(--color-white);
  padding: calc(var(--size-10) + 80px) 0 var(--size-10) 0;
  text-align: center;
  min-block-size: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: var(--size-8);
  width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);

  @media (width < 768px) {
    & {
      min-block-size: 60vh;
      padding: calc(var(--size-9) + 160px) 0 var(--size-9) 0;
    }
  }
}

.newsletter-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgb(0 0 0 / 30%) 0%,
    rgb(0 0 0 / 10%) 20%,
    transparent 30%,
    transparent 70%,
    rgb(0 0 0 / 10%) 80%,
    rgb(0 0 0 / 30%) 100%
  );
  backdrop-filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}

.newsletter-cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--max-width, 83rem);
  margin: 0 auto;
  padding: 0 var(--padding-lr, 2rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-logo {
  inline-size: 250px;
  block-size: auto;
  margin: 0 auto 6rem;
  display: block;
}

.newsletter-title {
  color: var(--color-white);
  margin-block-end: var(--size-8);
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.newsletter-date {
  color: var(--color-accent-light);
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

/* Newsletter Author Section */
.newsletter-author-section {
  background: var(--color-dead-pixel-1200);
  border-radius: var(--border-radius-3);
  padding: var(--size-8);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
  position: relative;
  overflow: hidden;
}

.newsletter-author-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--size-8);
  align-items: start;

  @media (width < 768px) {
    & {
      grid-template-columns: 1fr;
      gap: var(--size-6);
    }
  }
}

.newsletter-author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  @media (width < 768px) {
    & {
      flex-direction: row;
      align-items: center;
      text-align: left;
      gap: var(--size-4);
    }
  }
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
  margin-bottom: var(--size-4);
  margin-right: 10px;
  flex-shrink: 0;

  @media (width < 768px) {
    & {
      width: 60px;
      height: 60px;
      margin-bottom: 0;
    }
  }
}

.author-info {
  @media (width < 768px) {
    & {
      flex: 1;
    }
  }
}

.author-name {
  color: var(--color-white);
  margin-bottom: var(--size-1);
  font-weight: var(--font-weight-semiBold);
}

.author-role {
  color: var(--color-dead-pixel-400);
  font-size: var(--typo-size-90);
}

.newsletter-author-message {
  color: var(--color-dead-pixel-200);
  font-style: italic;
  font-weight: var(--font-weight-light);
  line-height: var(--typo-line-height-wide);
  font-size: var(--typo-size-90);
}

/* Newsletter Grid */
.newsletter-grid {
  gap: var(--size-6);
  list-style: none;
  margin: 0;
  padding: 0;

  @media (width < 768px) {
    & {
      gap: var(--size-4);
    }
  }
}

/* Weekly Calendar */
.weekly-calendar {
  background: var(--color-white);
  border-radius: var(--border-radius-5);
  padding: var(--size-8);
  border: 1px solid rgb(0 0 0 / 10%);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%),
    0 2px 4px -1px rgb(0 0 0 / 6%);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--size-6);

  @media (width < 768px) {
    & {
      grid-template-columns: 1fr;
      gap: var(--size-4);
    }
  }
}

.calendar-day {
  display: flex;
  flex-direction: column;
}

.calendar-day-label {
  font-weight: var(--font-weight-semiBold);
  color: var(--color-white);
  padding: var(--size-3);
  background: var(--color-ripe-mango-1000);
  border-radius: var(--border-radius-3);
  margin-bottom: var(--size-4);
  text-align: center;
  font-size: var(--typo-size-90);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
}

.calendar-event {
  background: var(--color-ripe-mango-100);
  border-left: 3px solid var(--color-ripe-mango-800);
  border-radius: var(--border-radius-2);
  padding: var(--size-3);
  transition: all 0.2s ease;
}

.calendar-event:hover {
  background: var(--color-ripe-mango-200);
  transform: translateX(2px);
}

.event-time {
  color: var(--color-ripe-mango-1200);
  font-weight: var(--font-weight-semiBold);
  font-size: var(--typo-size-80);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: var(--size-1);
}

.event-title {
  color: var(--color-dead-pixel-1400);
  font-weight: var(--font-weight-medium);
  line-height: var(--typo-line-height-regular);
  margin-bottom: var(--size-1);
}

.event-location {
  color: var(--color-dead-pixel-900);
  font-size: var(--typo-size-80);
}

.calendar-empty {
  color: var(--color-dead-pixel-600);
  font-style: italic;
  text-align: center;
  padding: var(--size-4);
}

/* Events List */
.main--newsletter .events-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--size-4);

  @media (width >= 768px) {
    & {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--size-6);
    }
  }

  @media (width >= 1200px) {
    & {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

/* Newsletter Months Grid */
.newsletter-months-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--size-8);

  @media (width >= 1024px) {
    & {
      grid-template-columns: repeat(3, 1fr);
      gap: var(--size-10);
    }
  }
}

.newsletter-month-item {
  /* No background, border, or shadow - clean container only */
}

.newsletter-month-item h3 {
  color: var(--color-ripe-mango-1000);
  border-bottom: 2px solid var(--color-ripe-mango-200);
  padding-bottom: var(--size-3);
  margin-bottom: var(--size-6);
  font-weight: var(--font-weight-semiBold);
}

/* Adjust events list within month items */
.newsletter-month-item .events-list {
  gap: var(--size-5);
}

.newsletter-month-item .eventsListItem {
  padding: var(--size-4);
  margin-bottom: 0;
}

/* Timeline Styles */
.timeline-container {
  position: relative;
  padding: var(--size-8) 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--color-ripe-mango-800) 0%,
    var(--color-ripe-mango-600) 100%
  );
  transform: translateX(-50%);
  z-index: 0;

  @media (width < 1024px) {
    & {
      width: 2px;
      z-index: 0;
    }
  }
}

.timeline-item {
  position: relative;
  margin-bottom: var(--size-2) 0;
  display: flex;
  align-items: center;
  min-height: 200px;

  @media (width >= 1024px) {
    & {
      margin-bottom: var(--size-1);
      min-height: 150px;
    }
  }

  @media (width < 1024px) {
    & {
      flex-direction: column;
      align-items: center;
      min-height: auto;
      margin: var(--size-10) 0;
      padding: 0 var(--size-4);
    }
  }
}

.timeline-item--left .timeline-item__container {
  justify-content: flex-start;
  text-align: right;

  @media (width < 1024px) {
    & {
      flex-direction: row;
      align-items: flex-start;
      justify-content: center;
      width: 100%;
      max-width: 600px;
      position: relative;
    }
  }
}

.timeline-item--left .timeline-content {
  order: 1;
  margin-right: calc(50% + 80px);

  @media (width < 1024px) {
    & {
      order: 2;
      margin-right: 0;
      margin-left: 0;
      flex: 1;
      margin-top: 0;
      position: relative;
      z-index: 2;
    }
  }
}

.timeline-item--left .timeline-image {
  order: 2;
  position: absolute;
  right: calc(50% + 15px);

  @media (width < 1024px) {
    & {
      order: 1;
      position: absolute;
      right: 67%;
      top: 0;
      transform: translateY(-50%);
      z-index: 3;
    }
  }
}

.timeline-item--right .timeline-item__container {
  justify-content: flex-end;
  text-align: left;

  @media (width < 1024px) {
    & {
      flex-direction: row;
      align-items: flex-start;
      justify-content: center;
      width: 100%;
      max-width: 600px;
      position: relative;
    }
  }
}

.timeline-item--right .timeline-content {
  order: 1;
  margin-left: calc(50% + 80px);

  @media (width < 1024px) {
    & {
      order: 1;
      margin-left: 0;
      margin-right: 0;
      flex: 1;
      margin-top: 0;
      position: relative;
      z-index: 2;
    }
  }
}

.timeline-item--right .timeline-image {
  order: 2;
  position: absolute;
  left: calc(50% + 15px);

  @media (width < 1024px) {
    & {
      order: 2;
      position: absolute;
      left: 67%;
      top: 0;
      transform: translateY(-50%);
      z-index: 3;
    }
  }
}

.timeline-item__container {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.timeline-content {
  flex: 1;
  max-width: 350px;
  background: var(--color-dead-pixel-100);
  padding: var(--size-6);
  border-radius: var(--border-radius-5);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
  border: 1px solid var(--color-dead-pixel-400);
  position: relative;

  @media (width < 1024px) {
    & {
      max-width: none;
      background: var(--color-white);
      border: 1px solid var(--color-dead-pixel-300);
      box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
      padding: var(--size-6) var(--size-5) var(--size-5) var(--size-5);
      border-radius: var(--border-radius-4);
    }
  }
}

.timeline-image {
  flex-shrink: 0;
  position: relative;
  width: 120px;
  height: 120px;

  @media (width < 768px) {
    & {
      width: 100px;
      height: 100px;
      z-index: 2;
      margin-bottom: -40px;
    }
  }
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
}

.timeline-connector {
  width: 20px;
  height: 20px;
  background: var(--color-ripe-mango-800);
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%);
  flex-shrink: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;

  @media (width < 1024px) {
    & {
      width: 24px;
      height: 24px;
      border: 3px solid var(--color-white);
      top: 0;

      /* transform: translateX(-50%); */
      z-index: 4;
    }
  }
}

.timeline-date {
  color: var(--color-ripe-mango-1000);
  margin-bottom: var(--size-2);
  font-weight: var(--font-weight-semiBold);
}

.timeline-text {
  color: var(--color-dead-pixel-1300);
  line-height: var(--typo-line-height-wide);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--size-2);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--size-2);
}

.contact-item span {
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: var(--color-ripe-mango-1000);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--color-ripe-mango-1200);
  text-decoration: underline;
}

/* Social Info */
.main--newsletter .social-info {
  margin-top: var(--size-6);
  padding-top: var(--size-6);
  border-top: 1px solid var(--color-dead-pixel-400);
}

/* Newsletter signup teaser (used in footer/sidebar) */
.c-newsletter-teaser {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-dead-pixel-1300);
  padding: 2rem;
}

/* Map */
.main--newsletter #map {
  height: 200px;
  border-radius: var(--border-radius-4);
  border: 1px solid var(--color-dead-pixel-400);
}

.main--newsletter .custom-marker {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.main--newsletter .custom-marker:hover {
  transform: scale(1.1);
}

/* Newsletter Teaser Card Component Styles */

.c-newsletterTeaserCard {
  grid-column: auto;
  display: flex;
  min-width: 0;
  padding-bottom: 2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(0 0 0 / 10%);
  background: #fff;
  overflow: hidden;
  contain: content;
  transition: all 0.3s ease;
}

.c-newsletterTeaserCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgb(0 0 0 / 15%);
  border-color: rgb(59 130 246 / 30%);
}

.c-newsletterTeaserCard .content {
  min-width: 0;
  padding: 0 1rem;
  width: 100%;
}

.c-newsletterTeaserCard:not(:has(.hero)) .content {
  padding-top: 1.25rem;
}

/* Status Header */
.c-newsletterTeaserCard .statusheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.c-newsletterTeaserCard .newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: var(--typo-size-80);
  font-weight: var(--font-weight-semiBold);
  border-radius: 1rem;
  background: var(--color-cornflower-400);
  color: var(--color-white);
}

.c-newsletterTeaserCard .newsletter-badge-icon {
  font-size: var(--typo-size-90);
}

.c-newsletterTeaserCard .newsletter-badge-text {
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: var(--typo-size-80);
}

.c-newsletterTeaserCard time {
  color: var(--color-fg-muted);
  font-weight: var(--font-weight-medium);
}

/* Hero Image */
.c-newsletterTeaserCard .hero {
  --aspected-ratio: 24/9;

  display: block;
  width: 100%;
  aspect-ratio: var(--aspected-ratio);
  object-fit: cover;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  transition: transform 0.3s ease;
}

.c-newsletterTeaserCard:hover .hero {
  transform: scale(1.05);
}

@media (width > 489px) {
  .c-newsletterTeaserCard .hero {
    --aspected-ratio: 21/9;
  }
}

/* Content Styling */
.c-newsletterTeaserCard a {
  text-decoration: none;
  color: inherit;
}

.c-newsletterTeaserCard a:hover h3 {
  color: var(--color-cornflower-600);
}

.c-newsletterTeaserCard h3 {
  transition: color 0.2s ease;
  color: var(--color-gray-900);
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.c-newsletterTeaserCard p {
  margin-bottom: 1rem;
  color: var(--color-gray-700);
}

/* Button Override for Newsletter Context */
.c-newsletterTeaserCard .gs-c-btn {
  margin-top: auto;
}

/* Featured newsletter item */
.c-newsletterTeaserCard.newsletter-item--featured {
  border-color: var(--color-cornflower-300);
  background: linear-gradient(135deg, #fef7ff 0%, #f0f9ff 100%);
}

.c-newsletterTeaserCard.newsletter-item--featured .newsletter-badge {
  background: var(--color-cornflower-600);
  box-shadow: 0 2px 4px rgb(59 130 246 / 20%);
}

/* Subscription modal */
.newsletter-subscribe-modal {
  --modal-width: min(90vw, 36rem);
  --modal-border-radius: 1rem;
}

.newsletter-subscribe-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-subscribe-form__feedback {
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-weight: var(--font-weight-medium);
}

.newsletter-subscribe-form__feedback[data-success='true'] {
  background: rgb(16 185 129 / 12%);
  color: #065f46;
}

.newsletter-subscribe-form__feedback[data-success='false'] {
  background: rgb(239 68 68 / 10%);
  color: #991b1b;
}

/* Entry modal — base styles via gs-c-modal, only overrides here */
.newsletter-entry-modal {
  --modal-width: min(90vw, 680px);
  --modal-border-radius: 0.75rem;
}

.newsletter-entry-modal__text {
  line-height: 1.7;
  color: var(--color-dead-pixel-1300);

  & p {
    margin-bottom: 0.75rem;
  }
}

.newsletter-entry-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Footer meta (links/email) sits on the left; close button on the right via gs-c-modal__footer */
.newsletter-entry-modal__footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .c-newsletterTeaserCard {
    padding-bottom: 1.5rem;
    gap: 0.75rem;
  }

  .c-newsletterTeaserCard .content {
    padding: 0 0.75rem;
  }

  .c-newsletterTeaserCard .newsletter-badge {
    padding: 0.1875rem 0.5rem;
  }

  .c-newsletterTeaserCard .newsletter-badge-icon {
    font-size: var(--typo-size-80);
  }
}

/* ==========================================
   NEWSLETTER LISTING — Panels
   Ersetzen die uebriggebliebenen Tailwind-Klassen
   (bg-gray-50 / bg-blue-50 / rounded-lg / p-8 / text-center),
   fuer die es in diesem Projekt nie CSS gab.
   ========================================== */

.newsletter-listing__intro {
  max-width: 48rem;
}

.newsletter-empty,
.newsletter-cta {
  padding: var(--size-6);
  border-radius: var(--border-radius-5);
  text-align: center;
}

.newsletter-empty {
  background: var(--color-dead-pixel-25);
  border: 1px solid var(--color-dead-pixel-300);
  color: var(--color-fg-muted);
}

.newsletter-cta {
  background: var(--color-ripe-mango-200);
  border: 1px solid var(--color-ripe-mango-300);
}

.newsletter-cta__text {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--color-dead-pixel-1300);
}

.c-blog-text {
  margin-top: 1.5rem;

  & * + p {
    margin-top: 1rem;
    font-family: var(--font-family-sans);
    font-size: var(--typo-size-100);
    line-height: var(--typo-line-height-regular);
    font-weight: var(--font-weight-regular);
  }
}

.c-blog-text ul,
.c-blog-text ol {
  margin-left: 0;
  padding-left: 0;
  list-style-position: inside;
}

.c-blog-text li {
  margin-left: 1.5em;
}

.c-blog-list {
  margin-top: 1rem;

  & ul {
    margin-left: 1em;
  }

  & ol {
    margin-left: 1.5em;
  }

  & ol > li {
    list-style: decimal-leading-zero;
    padding-left: 0.25em;
  }

  & ul > li {
    list-style: disc;
  }

  & ul ul > li {
    list-style: disc;
  }
}

.c-blog-heading {
  & h1 {
    margin-bottom: 1.5rem;
  }

  & h2 {
    font-size: var(--typo-size-300);
    margin-top: 1.5rem;
  }

  & h3 {
    font-size: var(--typo-size-100);
    margin-top: 1.5rem;
  }
}

.c-blog-image {
  margin-top: 1rem;

  & figure figcaption {
    margin-top: 0.5rem;
    font-size: var(--typo-size-80);
  }
}

.c-blog-video {
  margin-top: 1rem;

  & figure {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
  }
}

.c-blog-video iframe {
  width: 100%;
  height: 100%;
  background: blue;
  object-fit: cover;
}

.c-blog-cta {
  display: flex;
  height: 100%;
  align-items: start;
  justify-content: center;
  flex-direction: column;

  & a.gs-c-btn {
    margin-top: 1rem;
  }

  & [data-position='left'] {
    align-items: start;
  }

  & [data-position='middle'] {
    align-items: center;
  }

  & [data-position='right'] {
    align-items: right;
  }
}

:root {
}

/* Cards in one layout row grow to the same height */
.grid-item:has(> .c-blog-card) {
  align-content: stretch;
}

.c-blog-card {
  display: flex;
  padding-bottom: 2rem;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid rgb(0 0 0 / 10%);
  background: #fff;
  overflow: hidden;
  height: 100%;

  /* Hero */

  & figure > .hero {
    --aspected-ration: 24/9;

    display: block;
    width: 100%;
    aspect-ratio: var(--aspected-ration);
    object-fit: cover;

    @media (width > 489px) {
      & {
        --aspected-ration: 21/9;
      }
    }
    @media (width > 767px) {
    }
    @media (width > 1039px) {
    }
    @media (width > 1439px) {
    }
  }

  & .content {
    padding: 0 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;

    & .heading {
      padding-top: 1rem;

      & a {
        color: inherit;
      }

      & a:hover {
        text-decoration: underline;
      }
    }

    /* Footer button sticks to the bottom edge so buttons line up across a row */
    & .card-footer {
      margin-top: auto;
      padding-top: 1rem;
    }

    & .body {
      ul,
      ol {
        margin-left: 0;
        padding-left: 1.5rem;
        list-style-position: outside;
      }

      ul {
        list-style-type: disc;
      }

      ol {
        list-style-type: decimal;
      }

      li {
        margin-left: 0;
      }
    }
  }
}

/**
 * Notes (Tagebuch) Styles
 * Styles for note listing and detail pages
 */

/* ==========================================================================
   Notes Listing Page
   ========================================================================== */

.notes-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary, #f5f5f5);
  margin-bottom: var(--spacing-7, 3rem);
}

.notes-hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.notes-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 30%), rgb(0 0 0 / 60%));
}

.notes-hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-fg-light, #fff);
  text-align: center;
  padding: var(--spacing-5, 2rem);
}

.notes-hero-content h1 {
  color: inherit;
  margin-bottom: var(--spacing-2, 0.5rem);
}

.notes-hero-content p {
  color: inherit;
  opacity: 0.9;
}

.notes-listing {
  padding-bottom: var(--spacing-7, 3rem);
}

.notes-listing .section-title {
  margin-bottom: var(--spacing-4, 1.5rem);
  padding-bottom: var(--spacing-2, 0.5rem);
  border-bottom: 2px solid var(--color-primary, #000);
}

.notes-empty {
  color: var(--color-fg-muted, #666);
  font-style: italic;
}

/* Notes Grid - Card Layout */
.notes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-card-wrapper {
  grid-column: span 1;

  @media (width > 767px) {
    & {
      grid-column: span 4;
    }
  }
  @media (width > 1039px) {
    & {
      grid-column: span 4;
    }
  }
}

.note-card-wrapper--featured {
  grid-column: span 1;

  @media (width > 767px) {
    & {
      grid-column: span 8;
    }
  }
  @media (width > 1039px) {
    & {
      grid-column: span 12;
    }
  }
}

/* ==========================================================================
   Note Card Component
   ========================================================================== */

.note-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  transition: transform 0.2s ease,
    box-shadow 0.2s ease;
  height: 100%;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

/* Image Wrapper - positions authors on border */
.note-card-image-wrapper {
  position: relative;
}

.note-card-image-link {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.note-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.note-card:hover .note-card-image {
  transform: scale(1.05);
}

/* Note Card Authors - positioned on image/content border, right side */
.note-card-authors {
  position: absolute;
  bottom: 0;
  right: var(--spacing-3, 1rem);
  transform: translateY(50%);
  display: flex;
  align-items: center;
  z-index: 2;
}

.note-card-author {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-bg-primary, #fff);
  margin-left: -10px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  background: var(--color-bg-primary, #fff);
}

.note-card-author:first-child {
  margin-left: 0;
}

.note-card-author img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-avatar-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #000);
  color: var(--color-fg-light, #fff);
  font-size: var(--typo-size-90);
  font-weight: var(--font-weight-semiBold);
}

.note-card-author-more {
  margin-left: var(--spacing-1, 0.25rem);
  padding: 0.25rem 0.5rem;
  background: var(--color-bg-primary, #fff);
  border-radius: 1rem;
  color: var(--color-fg-muted, #666);
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

/* Content Area */
.note-card-content {
  padding: var(--spacing-3, 1rem);
  padding-top: calc(
    var(--spacing-3, 1rem) + 8px
  ); /* Extra space for overlapping authors */

  flex: 1;
  display: flex;
  flex-direction: column;
}

.note-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2, 0.5rem);
  align-items: center;
  margin-bottom: var(--spacing-2, 0.5rem);
}

.note-card-date {
  color: var(--color-fg-muted, #666);
}

.note-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-1, 0.25rem);
}

.note-card-tags .tag {
  font-size: var(--typo-size-80);
  color: var(--color-primary, #000);
  opacity: 0.7;
}

.note-card-title {
  margin-bottom: var(--spacing-2, 0.5rem);
}

.note-card-title a {
  color: inherit;
  text-decoration: none;
}

.note-card-title a:hover {
  color: var(--color-primary, #000);
}

.note-card-subtitle {
  color: var(--color-fg-muted, #666);
  margin-bottom: var(--spacing-2, 0.5rem);
}

.note-card-excerpt {
  color: var(--color-fg-secondary, #444);
  margin-bottom: var(--spacing-3, 1rem);
  flex: 1;
}

/* Button is last element - using gs-c-btn secondary styling */
.note-card-content .gs-c-btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Featured Note Card */
.note-card--featured {
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}

.note-card-featured {
  position: relative;
}

.note-card-featured .note-card-image-wrapper {
  position: relative;
}

.note-card-featured .note-card-image-link {
  aspect-ratio: 21 / 9;
}

.note-card-featured .note-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 70%) 0%, transparent 60%);
  pointer-events: none;
}

/* Featured card authors - larger, positioned on right */
.note-card-featured .note-card-authors {
  bottom: 0;
  right: var(--spacing-5, 2rem);
}

.note-card-featured .note-card-author {
  width: 48px;
  height: 48px;
  border-width: 3px;
}

.note-card-featured .note-card-content {
  position: relative;
  color: var(--color-fg-primary, #000);
  padding: var(--spacing-4, 1.5rem);
  padding-top: calc(var(--spacing-4, 1.5rem) + 12px);
}

.note-card-featured .note-card-date {
  color: var(--color-fg-muted, #666);
}

.note-card-featured .note-card-subtitle,
.note-card-featured .note-card-excerpt {
  color: var(--color-fg-secondary, #444);
}

.note-card-featured .note-card-title a {
  color: var(--color-fg-primary, #000);
}

.note-card-featured .note-card-tags .tag {
  color: var(--color-primary, #000);
  opacity: 0.7;
}

/* ==========================================================================
   Note Detail Page
   ========================================================================== */

.note-article {
  padding-bottom: var(--spacing-7, 3rem);
}

/* Hero with Image */
.note-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  margin-bottom: var(--spacing-5, 2rem);
}

.note-hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.note-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 80%) 0%,
    rgb(0 0 0 / 20%) 50%,
    transparent 100%
  );
}

.note-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--spacing-5, 2rem) 0;
}

.note-hero-content .grid-item {
  color: var(--color-fg-light, #fff);
}

.note-meta-hero {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2, 0.5rem);
  align-items: center;
  margin-bottom: var(--spacing-3, 1rem);
}

.note-meta-hero .note-date {
  color: rgb(255 255 255 / 90%);
}

.note-meta-hero .note-tags .tag {
  color: rgb(255 255 255 / 80%);
}

.note-title {
  color: var(--color-fg-light, #fff);
  margin-bottom: var(--spacing-2, 0.5rem);
}

.note-subtitle {
  color: rgb(255 255 255 / 90%);
}

/* Header without Image */
.note-header {
  padding-top: var(--spacing-5, 2rem);
  padding-bottom: var(--spacing-4, 1.5rem);
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  margin-bottom: var(--spacing-4, 1.5rem);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2, 0.5rem);
  align-items: center;
  margin-bottom: var(--spacing-3, 1rem);
}

.note-date {
  color: var(--color-fg-muted, #666);
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-1, 0.25rem);
}

.note-tags .tag {
  color: var(--color-primary, #000);
  opacity: 0.7;
}

/* Authors Section */
.note-authors {
  padding: var(--spacing-4, 1.5rem) 0;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
  margin-bottom: var(--spacing-4, 1.5rem);
}

.authors-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3, 1rem);
}

.author-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-2, 0.5rem);
  padding: var(--spacing-2, 0.5rem);
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.author-card:hover {
  background: var(--color-bg-secondary, #f5f5f5);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #000);
  color: var(--color-fg-light, #fff);
  font-size: 1.25rem;
  font-weight: 600;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  color: var(--color-black, #000);
}

.author-role {
  color: var(--color-fg-muted, #333);
}

/* Main Content */
.note-content {
  padding: var(--spacing-4, 1.5rem) 0;
}

.note-body .c-blog {
  margin-bottom: var(--spacing-4, 1.5rem);
}

/* Sidebar */
.note-sidebar {
  padding-left: var(--spacing-4, 1.5rem);
  border-left: 1px solid var(--color-border, #e0e0e0);
}

@media (max-width: 768px) {
  .note-sidebar {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border, #e0e0e0);
    padding-top: var(--spacing-4, 1.5rem);
    margin-top: var(--spacing-4, 1.5rem);
  }
}

.sidebar-section {
  margin-bottom: var(--spacing-4, 1.5rem);
}

.sidebar-title {
  margin-bottom: var(--spacing-2, 0.5rem);
  color: var(--color-fg-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2, 0.5rem);
}

.share-btn {
  padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--color-fg-light, #fff);
  transition: opacity 0.2s ease;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-facebook {
  background: #1877f2;
}

.share-twitter {
  background: #1da1f2;
}

.share-email {
  background: var(--color-fg-muted, #666);
}

/* Sidebar Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-1, 0.25rem);
}

.sidebar-tag {
  padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
  background: var(--color-bg-secondary, #f5f5f5);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.875rem;
  color: var(--color-fg-secondary, #444);
}

/* Related Notes */
.related-notes {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2, 0.5rem);
}

.related-note-link {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-2, 0.5rem);
  border-radius: var(--radius-sm, 4px);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.related-note-link:hover {
  background: var(--color-bg-secondary, #f5f5f5);
}

.related-note-title {
  color: var(--color-fg-primary, #000);
  margin-bottom: var(--spacing-1, 0.25rem);
}

.related-note-date {
  color: var(--color-fg-muted, #666);
}

/* Navigation */
.note-navigation {
  border-top: 1px solid var(--color-border, #e0e0e0);
  padding-top: var(--spacing-4, 1.5rem);
  margin-top: var(--spacing-4, 1.5rem);
}

.note-nav-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-4, 1.5rem);
  align-items: start;
}

@media (max-width: 768px) {
  .note-nav-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-3, 1rem);
  }
}

.note-nav-link {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-2, 0.5rem);
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.note-nav-link:hover {
  background: var(--color-bg-secondary, #f5f5f5);
}

.note-nav-prev {
  text-align: left;
}

.note-nav-next {
  text-align: right;
}

.note-nav-all {
  text-align: center;
  background: var(--color-bg-secondary, #f5f5f5);
}

.note-nav-placeholder {
  visibility: hidden;
}

.nav-label {
  color: var(--color-fg-muted, #666);
  margin-bottom: var(--spacing-1, 0.25rem);
}

.nav-title {
  color: var(--color-fg-primary, #000);
}

.project-title-wrapper {
  position: relative;
}

.project-team-strip {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0;
}

.project-team-member {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 2px solid var(--color-fg-brand-primary);
  border-radius: 50%;
  background: var(--color-fg-brand-primary);
  box-shadow: 0 6px 14px rgb(0 0 0 / 15%);
  color: #111;
  text-decoration: none;
  transition: transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    opacity 220ms ease;
}

.project-team-member:hover,
.project-team-member:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgb(0 0 0 / 18%);
  outline: none;
}

.project-team-member + .project-team-member {
  margin-left: -1rem;
}

.project-team-member:nth-child(1) {
  z-index: 1;
}

.project-team-member:nth-child(2) {
  z-index: 2;
}

.project-team-member:nth-child(3) {
  z-index: 3;
}

.project-team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.project-team-member img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-team-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-fg-brand-primary);
  color: #111;
  font-size: 1rem;
  font-weight: 700;
}

.project-team-meta {
  display: none;
}

.project-team-name {
  display: block;
  min-width: 0;
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.project-team-label {
  display: none;
  margin: 0;
}

@media (min-width: 768px) {
  .project-team-strip {
    display: none;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
    max-width: min(100%, 38rem);
  }

  .project-team-strip.is-floating {
    display: flex;
  }

  .project-team-member {
    justify-content: flex-start;
    gap: 0.875rem;
    min-width: 12rem;
    width: auto;
    height: auto;
    min-height: 72px;
    padding: 0.75rem 0.9rem;
    border: 1px solid
      color-mix(in srgb, var(--color-fg-brand-primary) 28%, transparent);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 12px 26px rgb(17 17 17 / 8%);
  }

  .project-team-member + .project-team-member {
    margin-left: 0;
  }

  .project-team-avatar {
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
  }

  .project-team-meta {
    display: flex;
    min-width: 0;
    align-items: center;
  }

  .project-team-strip.is-floating {
    position: fixed;
    right: 1rem;
    bottom: 1.5rem;
    z-index: 40;
    display: flex;
    flex-flow: row-reverse nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    width: min(15.75rem, calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    animation: project-team-strip-pop 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .project-team-strip.is-floating.has-overflow::before {
    content: attr(data-overflow-count);
    position: absolute;
    right: 0.25rem;
    bottom: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-fg-brand-primary);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgb(17 17 17 / 16%);
    border: 1px solid
      color-mix(in srgb, var(--color-fg-brand-primary) 18%, transparent);
    z-index: 20;
    pointer-events: none;
  }

  .project-team-strip.is-floating.has-overflow.is-expanded::before,
  .project-team-strip.is-floating.has-overflow:focus-within::before {
    opacity: 0;
    transform: scale(0.92);
  }

  .project-team-strip.is-floating.is-expanded,
  .project-team-strip.is-floating:focus-within {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--project-team-hover-rows, 3), 7.5rem);
    justify-content: center;
    align-items: end;
    gap: 0.75rem;
    height: var(
      --project-team-hover-height,
      calc((3 * 7.5rem) + (2 * 0.75rem))
    );
    width: var(--project-team-hover-width, max-content);
    max-width: calc(100vw - 3rem);
    padding: 1.25rem 1.25rem 4rem;
    border-radius: 2rem;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateY(-1.5rem);
  }

  .project-team-strip.is-floating.is-expanded::after,
  .project-team-strip.is-floating:focus-within::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -0.75rem;
    bottom: -0.75rem;
    width: calc(100% + 2rem);
    transform: translateX(-50%);
    border-radius: 2rem;
    background: rgb(134 104 17 / 55%);
    box-shadow: 0 18px 42px rgb(17 17 17 / 16%);
    backdrop-filter: blur(10px);
    z-index: 0;
    pointer-events: none;
  }

  .project-team-strip.is-floating.is-expanded .project-team-member,
  .project-team-strip.is-floating:focus-within .project-team-member,
  .project-team-strip.is-floating.is-expanded .project-team-label,
  .project-team-strip.is-floating:focus-within .project-team-label {
    position: relative;
    z-index: 1;
  }

  .project-team-strip.is-floating .project-team-label {
    display: none;
  }

  .project-team-strip.is-floating.is-expanded .project-team-label,
  .project-team-strip.is-floating:focus-within .project-team-label {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.1rem;
    transform: none;
    margin: 0;
    padding: 0;
    color: var(--color-white);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    text-shadow: 0 1px 2px rgb(0 0 0 / 25%);
    white-space: nowrap;
    pointer-events: none;
  }

  .project-team-strip.is-floating .project-team-member {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 7.5rem;
    min-width: 7.5rem;
    height: 7.5rem;
    min-height: 7.5rem;
    padding: 0;
    box-sizing: border-box;
    border-radius: 999px;
    border: 2px solid var(--color-fg-brand-primary);
    background: #fff;
    box-shadow: none;
    color: var(--color-white);
  }

  .project-team-strip.is-floating .project-team-member:hover,
  .project-team-strip.is-floating .project-team-member:focus-visible {
    transform: none;
  }

  .project-team-strip.is-floating.is-expanded .project-team-member,
  .project-team-strip.is-floating:focus-within .project-team-member {
    /* wird in site/templates/project.php per JS gesetzt */
    order: var(--expanded-order, 0);
    margin-right: 0;
    right: 0;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(1) {
    z-index: 3;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(2) {
    z-index: 2;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(3) {
    z-index: 1;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(2),
  .project-team-strip.is-floating .project-team-member:nth-child(3) {
    margin-right: -3.4rem;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(n + 4) {
    width: 0;
    min-width: 0;
    max-width: 0;
    height: 0;
    min-height: 0;
    max-height: 0;
    opacity: 0;
    margin-right: -3.4rem;
    padding: 0;
    border-width: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-0.5rem);
  }

  .project-team-strip.is-floating.is-expanded
  .project-team-member:nth-child(n + 4),
  .project-team-strip.is-floating:focus-within
  .project-team-member:nth-child(n + 4) {
    width: 7.5rem;
    min-width: 7.5rem;
    max-width: 7.5rem;
    height: 7.5rem;
    min-height: 7.5rem;
    max-height: 12rem;
    opacity: 1;
    margin-right: 0;
    padding: 0;
    border-width: 2px;
    pointer-events: auto;
    transform: translateX(0);
  }

  .project-team-strip.is-floating.is-expanded .project-team-member:nth-child(2),
  .project-team-strip.is-floating.is-expanded .project-team-member:nth-child(3),
  .project-team-strip.is-floating:focus-within
  .project-team-member:nth-child(2),
  .project-team-strip.is-floating:focus-within
  .project-team-member:nth-child(3) {
    margin-right: 0;
  }

  .project-team-strip.is-floating .project-team-avatar {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
  }

  .project-team-strip.is-floating .project-team-meta {
    display: none;
  }

  .project-team-strip.is-floating .project-team-name {
    color: var(--color-white);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(2) {
    transition-delay: 40ms;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(3) {
    transition-delay: 80ms;
  }

  .project-team-strip.is-floating .project-team-member:nth-child(4) {
    transition-delay: 120ms;
  }
}

@keyframes project-team-strip-pop {
  from {
    opacity: 0;
    transform: translate3d(1rem, 1rem, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.project-form-modal {
  --modal-width: min(90vw, 48rem);
  --modal-border-radius: 1.5rem;
  --modal-close-bg: var(--color-ripe-mango-700);
  --modal-close-bg-hover: var(--color-ripe-mango-300);
  --modal-close-color: var(--color-ripe-mango-1400);
}

.project-form-modal .gs-c-modal__body {
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);

  /* padding-top is inherited from gs-c-modal:not(.gs-c-modal--has-hero): 3.5rem */
}

.project-form-modal__title {
  margin: 0 0 1.5rem;
}

.has-project-form-modal {
  overflow: hidden;
}

.page-cta-modal {
  --modal-width: min(90vw, 38rem);
  --modal-border-radius: 1.5rem;
  --modal-close-bg: var(--color-ripe-mango-700);
  --modal-close-bg-hover: var(--color-ripe-mango-300);
  --modal-close-color: var(--color-ripe-mango-1400);
}

.page-cta-modal .gs-c-modal__body {
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.page-cta-modal__title {
  margin: 0 0 1rem;
}

.page-cta-modal__text > * + * {
  margin-top: 1rem;
}

.page-cta-modal .gs-c-modal__footer {
  justify-content: flex-end;
}

/**
 * Rooms Styles
 * Styles for room listing, detail pages, and booking form
 */

/* ==========================================================================
   Rooms Listing Page
   ========================================================================== */

.rooms-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary, #f5f5f5);
  margin-bottom: var(--spacing-7, 3rem);
}

.rooms-hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rooms-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooms-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 30%), rgb(0 0 0 / 60%));
}

.rooms-hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-fg-light, #fff);
  text-align: center;
  padding: var(--spacing-5, 2rem);
}

.rooms-hero-content h1 {
  color: inherit;
  margin-bottom: var(--spacing-2, 0.5rem);
}

.rooms-hero-content p {
  color: inherit;
  opacity: 0.9;
}

/* Rooms Grid */
.rooms-listing {
  padding-bottom: var(--spacing-7, 3rem);
}

.rooms-grid {
  display: grid;
  gap: var(--spacing-4, 1.5rem);
}

.room-card-wrapper {
  grid-column: span 1;

  @media (width > 767px) {
    & {
      grid-column: span 6;
    }
  }
  @media (width > 1039px) {
    & {
      grid-column: span 4;
    }
  }
}

/* ==========================================================================
   Room Card Component
   ========================================================================== */

.room-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  transition: transform 0.2s ease,
    box-shadow 0.2s ease;
  height: 100%;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.room-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.room-card-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.room-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.room-card:hover .room-card-image {
  transform: scale(1.05);
}

.room-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary, #f5f5f5);
  font-size: 3rem;
}

/* Room Card Badges */
.room-card-badges {
  position: absolute;
  top: var(--spacing-2, 0.5rem);
  left: var(--spacing-2, 0.5rem);
  display: flex;
  gap: var(--spacing-1, 0.25rem);
  flex-wrap: wrap;
}

.room-card-badge {
  padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

.badge-capacity {
  background: var(--color-primary, #000);
  color: var(--color-fg-light, #fff);
}

.badge-accessible {
  background: var(--color-success, #28a745);
  color: var(--color-fg-light, #fff);
}

/* Room Card Content */
.room-card-content {
  padding: var(--spacing-3, 1rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-card-title {
  margin-bottom: var(--spacing-2, 0.5rem);
  color: var(--color-fg-primary, #000);
}

.room-card-description {
  color: var(--color-fg-secondary, #444);
  margin-bottom: var(--spacing-2, 0.5rem);
  flex: 1;
}

.room-card-equipment {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-1, 0.25rem);
  margin-bottom: var(--spacing-2, 0.5rem);
}

.equipment-icon-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-bg-secondary, #f5f5f5);
  border-radius: var(--radius-sm, 4px);
  color: var(--color-fg-muted, #666);
}

.equipment-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-1, 0.25rem);
  color: var(--color-fg-muted, #666);
}

.room-card-pricing {
  color: var(--color-primary, #000);
  font-weight: 600;
  margin-bottom: var(--spacing-3, 1rem);
}

.room-card-free {
  color: var(--color-success, #28a745);
}

.room-card-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Room Detail Page
   ========================================================================== */

.room-detail {
  padding-bottom: var(--spacing-7, 3rem);
}

/* Breadcrumb */
.room-breadcrumb {
  padding: var(--spacing-3, 1rem) 0;
  margin-bottom: var(--spacing-4, 1.5rem);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-1, 0.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  color: var(--color-fg-muted, #666);
}

.breadcrumb-list li::after {
  content: '›';
  margin-left: var(--spacing-1, 0.25rem);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--color-fg-muted, #666);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--color-primary, #000);
}

/* Room Header */
.room-header {
  margin-bottom: var(--spacing-5, 2rem);
}

.room-header-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3, 1rem);
}

@media (width > 767px) {
  .room-header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.room-title {
  margin-bottom: var(--spacing-2, 0.5rem);
}

.room-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3, 1rem);
}

.room-info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-1, 0.25rem);
  color: var(--color-fg-secondary, #444);
}

.room-info-item svg {
  color: var(--color-fg-muted, #666);
}

.room-header-cta {
  flex-shrink: 0;
}

/* Room Gallery Section */
.room-gallery-section {
  margin-bottom: var(--spacing-5, 2rem);
}

/* Main Image */
.room-main-image {
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  margin-bottom: var(--spacing-3, 1rem);
}

.room-main-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

/* Gallery Grid */
.room-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-2, 0.5rem);
  margin-bottom: var(--spacing-3, 1rem);
}

.room-gallery-item {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
  display: block;
  transition: opacity 0.2s ease,
    transform 0.2s ease;
}

.room-gallery-item:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.room-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Virtual Tour Button */
.room-virtual-tour {
  margin-top: var(--spacing-3, 1rem);
}

/* Virtual Tour */
.room-virtual-tour {
  margin-bottom: var(--spacing-5, 2rem);
}

.virtual-tour-embed {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

.virtual-tour-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Room Description */
.room-description {
  margin-bottom: var(--spacing-5, 2rem);
}

.room-description-title {
  margin-bottom: var(--spacing-3, 1rem);
}

/* Room Equipment */
.room-equipment {
  margin-bottom: var(--spacing-5, 2rem);
}

.room-equipment-title {
  margin-bottom: var(--spacing-3, 1rem);
}

.equipment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-2, 0.5rem);
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2, 0.5rem);
  padding: var(--spacing-2, 0.5rem);
  background: var(--color-bg-secondary, #f5f5f5);
  border-radius: var(--radius-sm, 4px);
}

.equipment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-fg-muted, #666);
}

.equipment-name {
  flex: 1;
  color: var(--color-fg-primary, #000);
}

.equipment-included {
  font-size: 0.75rem;
  color: var(--color-fg-muted, #666);
  padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-sm, 4px);
}

.equipment-included.extra-charge {
  color: var(--color-warning, #ffc107);
}

/* Room Pricing */
.room-pricing {
  margin-bottom: var(--spacing-5, 2rem);
  padding: var(--spacing-4, 1.5rem);
  background: var(--color-bg-secondary, #f5f5f5);
  border-radius: var(--radius-md, 8px);
}

.room-pricing-title {
  margin-bottom: var(--spacing-3, 1rem);
}

.room-pricing-free {
  color: var(--color-success, #28a745);
  font-weight: 600;
}

.pricing-table {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2, 0.5rem);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2, 0.5rem) 0;
  border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-label {
  color: var(--color-fg-secondary, #444);
}

.pricing-value {
  color: var(--color-fg-primary, #000);
  font-weight: 600;
}

.pricing-discount {
  margin-top: var(--spacing-2, 0.5rem);
  color: var(--color-success, #28a745);
}

.pricing-notes {
  margin-top: var(--spacing-3, 1rem);
  padding: var(--spacing-2, 0.5rem);
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-sm, 4px);
  font-style: italic;
  color: var(--color-fg-secondary, #444);
}

.nonprofit-discount {
  margin-top: var(--spacing-2, 0.5rem);
  color: var(--color-success, #28a745);
}

/* Room Calendar */
.room-calendar {
  margin-bottom: var(--spacing-5, 2rem);
}

.room-calendar-title {
  margin-bottom: var(--spacing-3, 1rem);
}

.calendar-embed {
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid var(--color-border, #e0e0e0);
}

.calendar-embed iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* Quick Info (Header) */
.quick-info-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1, 0.25rem);
}

.quick-info-label {
  color: var(--color-fg-muted, #666);
}

.quick-info-value {
  color: var(--color-fg-primary, #000);
}

.quick-info-badge .badge-accessible {
  display: inline-block;
  padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
  background: var(--color-success, #28a745);
  color: var(--color-fg-light, #fff);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.875rem;
}

/* Room Sidebar */
.room-sidebar {
  padding-left: var(--spacing-4, 1.5rem);
  border-left: 1px solid var(--color-border, #e0e0e0);
}

@media (max-width: 768px) {
  .room-sidebar {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border, #e0e0e0);
    padding-top: var(--spacing-4, 1.5rem);
    margin-top: var(--spacing-4, 1.5rem);
  }
}

.sidebar-card {
  margin-bottom: var(--spacing-4, 1.5rem);
  padding: var(--spacing-3, 1rem);
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.sidebar-card h3 {
  margin-bottom: var(--spacing-2, 0.5rem);
}

.sidebar-booking {
  background: var(--color-primary, #000);
  color: var(--color-fg-light, #fff);
  text-align: center;
}

.sidebar-booking-title {
  color: inherit;
  margin-bottom: var(--spacing-2, 0.5rem);
}

.sidebar-booking p {
  color: rgb(255 255 255 / 80%);
  margin-bottom: var(--spacing-3, 1rem);
}

.sidebar-other-rooms {
  margin-bottom: var(--spacing-4, 1.5rem);
}

.sidebar-title {
  margin-bottom: var(--spacing-2, 0.5rem);
  color: var(--color-fg-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.other-rooms-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2, 0.5rem);
}

.other-room-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-2, 0.5rem);
  padding: var(--spacing-2, 0.5rem);
  border-radius: var(--radius-sm, 4px);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.other-room-link:hover {
  background: var(--color-bg-secondary, #f5f5f5);
}

.other-room-thumb {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm, 4px);
  object-fit: cover;
  flex-shrink: 0;
}

.other-room-info {
  flex: 1;
}

.other-room-title {
  color: var(--color-fg-primary, #000);
  margin-bottom: 0;
}

.other-room-capacity {
  color: var(--color-fg-muted, #666);
}

/* Contact Sidebar */
.sidebar-contact p {
  margin-bottom: var(--spacing-2, 0.5rem);
}

.sidebar-contact p:last-child {
  margin-bottom: 0;
}

.sidebar-contact a {
  color: var(--color-primary, #000);
  text-decoration: none;
}

.sidebar-contact a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Booking Form
   ========================================================================== */

.booking-section {
  padding: var(--spacing-7, 3rem) 0;
  background: var(--color-bg-secondary, #f5f5f5);
}

.booking-section-title {
  margin-bottom: var(--spacing-4, 1.5rem);
}

.booking-form {
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-md, 8px);
  padding: var(--spacing-5, 2rem);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.form-section {
  border: none;
  padding: 0;
  margin: 0 0 var(--spacing-5, 2rem) 0;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section legend {
  padding: 0;
  margin-bottom: var(--spacing-3, 1rem);
  color: var(--color-fg-primary, #000);
}

.form-help {
  color: var(--color-fg-muted, #666);
  margin-bottom: var(--spacing-3, 1rem);
}

/* Room Selection Grid */
.room-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-2, 0.5rem);
}

.room-checkbox-card {
  cursor: pointer;
}

.room-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.room-checkbox-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-2, 0.5rem);
  padding: var(--spacing-2, 0.5rem);
  border: 2px solid var(--color-border, #e0e0e0);
  border-radius: var(--radius-md, 8px);
  transition: border-color 0.2s ease,
    background-color 0.2s ease;
}

.room-checkbox-card:hover .room-checkbox-content {
  border-color: var(--color-primary, #000);
}

.room-checkbox:checked + .room-checkbox-content {
  border-color: var(--color-primary, #000);
  background: var(--color-bg-secondary, #f5f5f5);
}

.room-checkbox-image {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm, 4px);
  object-fit: cover;
  flex-shrink: 0;
}

.room-checkbox-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-checkbox-title {
  color: var(--color-fg-primary, #000);
}

.room-checkbox-capacity {
  color: var(--color-fg-muted, #666);
}

.room-checkbox-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border, #e0e0e0);
  border-radius: 4px;
  flex-shrink: 0;
  transition: background-color 0.2s ease,
    border-color 0.2s ease;
}

.room-checkbox:checked + .room-checkbox-content .room-checkbox-indicator {
  background: var(--color-primary, #000);
  border-color: var(--color-primary, #000);
}

.room-checkbox:checked
+ .room-checkbox-content
.room-checkbox-indicator::after {
  /* Icon as a mask so it matches the svg icon set */
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-fg-light, #fff);
  mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%224 12.5 9.5 18 20 6.5%22/%3E%3C/svg%3E')
    center / 0.75rem no-repeat;
}

.selected-capacity-display {
  margin-top: var(--spacing-2, 0.5rem);
  padding: var(--spacing-2, 0.5rem);
  background: var(--color-success, #28a745);
  color: var(--color-fg-light, #fff);
  border-radius: var(--radius-sm, 4px);
  text-align: center;
}

/* Form Rows */
.form-row {
  display: grid;
  gap: var(--spacing-3, 1rem);
  margin-bottom: var(--spacing-3, 1rem);
}

@media (width > 767px) {
  .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.form-row:last-child {
  margin-bottom: 0;
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-group-checkbox {
  flex-direction: row;
  align-items: center;
}

.form-label {
  margin-bottom: var(--spacing-1, 0.25rem);
  color: var(--color-fg-primary, #000);
  font-weight: 500;
}

.form-input {
  padding: var(--spacing-2, 0.5rem) var(--spacing-3, 1rem);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: var(--radius-sm, 4px);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary, #000);
}

.form-input::placeholder {
  color: var(--color-fg-muted, #666);
}

textarea.form-input {
  resize: vertical;
}

.form-hint {
  margin-top: var(--spacing-1, 0.25rem);
  color: var(--color-fg-muted, #666);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-2, 0.5rem);
  cursor: pointer;
}

.form-checkbox {
  margin-top: 0.25em;
  accent-color: var(--color-primary, #000);
}

/* Recurring Options */
.recurring-options {
  margin-top: var(--spacing-3, 1rem);
  padding: var(--spacing-3, 1rem);
  background: var(--color-bg-secondary, #f5f5f5);
  border-radius: var(--radius-sm, 4px);
}

/* Form Submit */
.form-section-submit {
  padding-top: var(--spacing-4, 1.5rem);
  border-top: 1px solid var(--color-border, #e0e0e0);
}

.form-row-submit {
  justify-content: center;
}

.form-note {
  text-align: center;
  color: var(--color-fg-muted, #666);
  margin-top: var(--spacing-3, 1rem);
}

/* Form Feedback */
.booking-form-feedback {
  padding: var(--spacing-5, 2rem);
  text-align: center;
  background: var(--color-bg-primary, #fff);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  min-height: 200px;
}

.feedback-success,
.feedback-error {
  padding: var(--spacing-4, 1.5rem);
  border-radius: var(--radius-md, 8px);
}

.feedback-success {
  background: var(--color-success-light, #d4edda);
  color: var(--color-success, #28a745);
}

.feedback-error {
  background: var(--color-error-light, #f8d7da);
  color: var(--color-error, #dc3545);
}

.feedback-success h3,
.feedback-error h3 {
  margin-bottom: var(--spacing-2, 0.5rem);
}

/* Firefox height fix - ensure body doesn't collapse on form state change */
.booking-section {
  min-height: auto;
  contain: layout;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.rooms-cta {
  padding: 3rem;
  background: var(--color-bg-secondary, #f5f5f5);
  text-align: center;
  margin-bottom: 2rem;
}

.rooms-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.rooms-cta h2 {
  margin-bottom: var(--spacing-2, 0.5rem);
}

.rooms-cta p {
  margin-bottom: var(--spacing-4, 1.5rem);
  color: var(--color-fg-secondary, #444);
}

/* ==========================================================================
   Booking Info Section
   ========================================================================== */

.booking-info {
  padding: var(--spacing-5, 2rem) 0;
}

.booking-info-title {
  margin-bottom: var(--spacing-3, 1rem);
}


#project-description .project-layout-grid {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}


:root {
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-dead-pixel-400);
}

.content {
  --padding-lr: 1rem;
  --max-width: 100%;
  --breakpoint-1: 490px;
  --breakpoint-2: 768px;
  --breakpoint-3: 1040px;
  --breakpoint-4: 1440px;

  max-width: var(--max-width);
  margin: 0 auto 1rem;
  padding: 0 var(--padding-lr);
  @media (width > 489px) {
    & {
      --padding-lr: 1rem;
    }
  }
  @media (width > 767px) {
    & {
      --padding-lr: 2rem;
    }
  }
  @media (width > 1039px) {
    & {
      --padding-lr: 2rem;
    }
  }
  @media (width > 1439px) {
    & {
      --max-width: 83rem;
      --padding-lr: 0;
    }
  }
}

*,
*::after,
*::before {
  border-width: 0;
  border-style: solid;
  border-color: currentcolor;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

audio,
canvas,
embed,
figure,
iframe,
img,
object,
svg,
video {
  display: block;
  vertical-align: middle;
}

body {
  /* `clip` statt `hidden`: `hidden` wuerde per Spec overflow-y auf `auto`
     zwingen und den Body zum Scroll-Container machen (Safari-Layoutfehler) */
  overflow-x: clip;
}

html,
body {
  min-height: 100%;

  --color-page-background: var(--color-dead-pixel-10);

  background: var(--color-page-background);
}

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
  width: 100%;
  transform-style: preserve-3d;
}
