@import url("bulma.min.css");

/* ══════════════════════════════════════════════════════════
   Abel Stein GmbH — stylesheet
   Bulma is the only grid/layout dependency.
   All custom classes are minimal section-scoping classes.
   BEM notation removed; Bulma native classes overridden.
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   FONTS (self-hosted)
   ══════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    url("../fonts/work-sans-latin.woff2") format("woff2"),
    url("../fonts/work-sans-300.woff") format("woff");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/work-sans-latin.woff2") format("woff2"),
    url("../fonts/work-sans-400.woff") format("woff");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("../fonts/work-sans-latin.woff2") format("woff2"),
    url("../fonts/work-sans-400.woff") format("woff");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("../fonts/work-sans-latin.woff2") format("woff2"),
    url("../fonts/work-sans-700.woff") format("woff");
}
@font-face {
  font-family: "Bodoni PT VF";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("../fonts/bodoni-pt-vf.woff2") format("woff2"),
    url("../fonts/bodoni-pt-vf.woff") format("woff");
}
@font-face {
  font-family: "Bodoni PT VF";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("../fonts/bodoni-pt-vf-italic.woff2") format("woff2"),
    url("../fonts/bodoni-pt-vf-italic.woff") format("woff");
}
@font-face {
  font-family: "Sfizia";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/sfizia-regular.woff2") format("woff2"),
    url("../fonts/sfizia-regular.ttf") format("truetype");
}

/* ══════════════════════════════════════════════════════════
   TOKENS
   ══════════════════════════════════════════════════════════ */
:root {
  --nav-height: 100px;
  --color-red: #b61f29;
  --color-dark: #1f222a;
  --color-dark-deep: #13151b;
  --color-card-bg: #20232b;
  --color-light: #ebebeb;
  --color-white: #ffffff;
  --color-gray: #d6d6d6;
  --font-bodoni: "Bodoni PT VF", "Bodoni Moda", serif;
  --font-work: "Work Sans", sans-serif;
  --font-sfizia: "Sfizia", serif;
}

/* ══════════════════════════════════════════════════════════
   RESET / BASE
   ══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}
::selection {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* ══════════════════════════════════════════════════════════
   HTML / BODY
   ══════════════════════════════════════════════════════════ */
html {
  background-color: var(--color-dark);
}

body {
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-work);
  font-weight: 300;
}

/* light-variant page */
body.light {
  background-color: var(--color-light);
  color: var(--color-dark);
}

/* per-section vertical grid lines */
.section-bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 180px
  );
  pointer-events: none;
  z-index: 0;
}
.section-bg-lines--light {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(31, 34, 42, 0.07) 0px,
    rgba(31, 34, 42, 0.07) 1px,
    transparent 1px,
    transparent 180px
  );
}

/* text color utilities — applied per-element via blueprint color picker */
.t-white {
  color: var(--color-white) !important;
}
.t-red {
  color: var(--color-red) !important;
}
.t-dark {
  color: var(--color-dark) !important;
}

/* font family utilities */
.ff-bodoni {
  font-family: var(--font-bodoni) !important;
}
.ff-work {
  font-family: var(--font-work) !important;
}
.ff-sfizia {
  font-family: var(--font-sfizia) !important;
}

/* font size utilities */
.fs-sm {
  font-size: 0.875rem !important;
}
.fs-md {
  font-size: 1rem !important;
}
.fs-lg {
  font-size: 1.25rem !important;
}
.fs-xl {
  font-size: 1.5rem !important;
}

/* flexible body bard output */
.flexible-body > p {
  margin-bottom: 0.75em;
}
.flexible-body > p:last-child {
  margin-bottom: 0;
}

main {
  padding-top: var(--nav-height);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   BULMA GLOBAL OVERRIDES
   ══════════════════════════════════════════════════════════ */

/* Links */
a {
  color: inherit;
}
a:hover {
  color: inherit;
  text-decoration: none;
}

/* ── Danger color → brand red ──────────────────────────── */
.has-text-danger {
  color: var(--color-red) !important;
}
.has-background-danger {
  background-color: var(--color-red) !important;
}

/* ── Title / Subtitle ──────────────────────────────────── */
.title {
  font-family: var(--font-bodoni);
  font-style: italic;
  font-weight: 400;
  color: inherit;
  line-height: 1.2;
  margin-bottom: 0;
}
.title.is-1 {
  font-size: clamp(2.5rem, 5.88vw + 1.125rem, 7rem);
  line-height: 1.1;
}
.title.is-2 {
  font-size: clamp(1.625rem, 2.29vw + 1.0625rem, 3.375rem);
  line-height: 1.15;
}
.title.is-3 {
  font-size: clamp(1.375rem, 1.63vw + 1rem, 2.875rem);
  line-height: 1.2;
}
.title.is-4 {
  font-size: clamp(1.25rem, 1vw + 1rem, 2.1875rem);
  line-height: 1.25;
}
.title.is-5 {
  font-size: clamp(1.125rem, 0.65vw + 0.95rem, 1.75rem);
  line-height: 1.3;
}
.title.is-6 {
  font-size: clamp(0.75rem, 0.3vw + 0.65rem, 0.9375rem);
  font-family: var(--font-bodoni);
}

.subtitle {
  font-family: var(--font-work);
  font-weight: 300;
  color: inherit;
  margin-bottom: 0;
  font-size: clamp(1rem, 0.65vw + 0.875rem, 1.5rem);
  line-height: 1.75;
}

/* ── Buttons ───────────────────────────────────────────── */
.button {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0;
  height: 55px;
  padding-left: 2rem;
  padding-right: 2rem;
  white-space: nowrap;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Red solid */
.button.is-danger {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}
.button.is-danger:hover {
  background-color: #8f161f;
  border-color: #8f161f;
  color: var(--color-white);
}

/* Red outline */
.button.is-outlined {
  background: transparent;
  border: 2px solid var(--color-red);
  color: var(--color-white);
}
.button.is-outlined:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

/* White bg / red text (project cards) */
.button.is-white {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-red);
  font-weight: 500;
}
.button.is-white:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

/* Full-width helper */
.button.is-fullwidth {
  width: 100%;
}

/* Size: sm */
.button.is-small {
  height: 44px;
  font-size: 0.875rem;
}

/* ── Tags (filter pills) ────────────────────────────────── */
.tags {
  gap: 0.75rem;
}
.tags .tag,
.feature-card .tags .tag {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--color-red);
  color: var(--color-white);
  border-radius: 0;
  height: auto;
  padding: 4px 14px;
}

/* ── Section ────────────────────────────────────────────── */
.section {
  padding-block: clamp(60px, 8vw, 100px);
  position: relative;
}
/* section stripe bg for light variant */
.section.is-light.has-lines::before,
.section.has-background-light.has-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 0px,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px,
    transparent 180px
  );
  pointer-events: none;
  z-index: 0;
}
.section > .container {
  position: relative;
  z-index: 1;
}

/* ── Columns gap ─────────────────────────────────────────── */
.columns:not(.is-gapless) {
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-top: -1.25rem;
}
.columns:not(.is-gapless):last-child {
  margin-bottom: -1.25rem;
}
.columns:not(.is-gapless) > .column {
  padding: 1.25rem;
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  border-radius: 0;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════
   SHARED UTILITIES
   ══════════════════════════════════════════════════════════ */

/* Eyebrow — small red uppercase tracked heading used across all sections */
.eyebrow {
  font-family: var(--font-bodoni);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.75rem, 0.3vw + 0.65rem, 0.9375rem);
  letter-spacing: 0.7em;
  text-transform: uppercase;
  color: var(--color-red);
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
  display: block;
}

/* Cross (+) marker — shared across hero, accordion, section dividers */
.cross-icon {
  position: relative;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
}
.cross-icon::before,
.cross-icon::after {
  content: "";
  position: absolute;
  background: var(--color-red);
}
.cross-icon::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.cross-icon::after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.25s ease;
}

/* KPI number — Sfizia display font */
.kpi-num {
  font-family: var(--font-sfizia);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  color: var(--color-red);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
/* Steinhintergrund: footer-stone-2880.jpg ist der 2x-Export (2880x2000).
   Der ursprüngliche 1440px-Export (footer-stone-only.png) musste vom
   Browser auf Retina-Displays um Faktor ~2 hochgezogen werden und wirkte
   dadurch unscharf. Die JPEG-Fassung ist zudem ~950 KB kleiner. */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* mask-image: url("../img/icon-linkedin.png"); */
  /* background: rgba(19, 21, 27, 0.9) !important; */
  background: var(--color-dark-deep) url("../img/footer-stone-2880.jpg") center
    center / cover no-repeat;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: var(--nav-height);
}

.navbar > .container {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
}
.navbar > .container.has-nav-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-left: 0 !important;
  margin-right: auto;
}

.navbar-brand > .navbar-item {
  padding: 0;
  background: transparent !important;
}

.navbar-brand img {
  min-height: 52px !important;
}

.navbar-burger {
  color: var(--color-white) !important;
  height: auto;
}

.navbar-burger span {
  background-color: var(--color-white) !important;
  width: 22px;
  height: 2px;
  left: calc(50% - 11px);
}
.navbar-burger span:nth-child(1) {
  top: calc(50% - 7px);
}
.navbar-burger span:nth-child(2) {
  top: calc(50% - 1px);
}
.navbar-burger span:nth-child(3) {
  top: calc(50% + 5px);
}

/* Desktop: navbar-menu */
.navbar-menu {
  background: transparent !important;
  box-shadow: none !important;
  margin-right: 0 !important;
  flex: 1;
}

/* Desktop: hide burger */
@media screen and (min-width: 1024px) {
  .navbar-burger {
    display: none !important;
  }

  .navbar-menu {
    display: flex !important;
  }
}

.navbar-start {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.navbar-start > .navbar-item {
  font-family: var(--font-work);
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray);
  background: transparent !important;
  transition: color 0.25s ease;
  padding: 0 0.6rem !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-start > .navbar-item:hover,
.navbar-start > .navbar-item:focus {
  color: var(--color-white);
  background: transparent !important;
}

.navbar-start > .navbar-item.is-active {
  font-weight: 700;
  color: var(--color-white);
  background: transparent !important;
}

.navbar-end {
  display: flex;
  margin-left: auto;
}

.navbar-end > .navbar-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 !important;
}

/* Mobile: remove backdrop-filter so position:fixed menu is viewport-relative */
@media screen and (max-width: 1023px) {
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--color-dark-deep) url("../img/footer-stone-2880.jpg") center
      center / cover no-repeat !important;
  }
}

/* Mobile */
@media screen and (max-width: 1023px) {
  .navbar > .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Burger: right-aligned */
  .navbar-burger {
    display: flex !important;
    margin-left: auto;
    color: var(--color-white) !important;
    height: var(--nav-height);
    align-items: center;
    cursor: pointer;
  }

  /* Offcanvas panel from right */
  .navbar-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-dark-deep) url("../img/footer-stone-2880.jpg") center
      center / cover no-repeat !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding-top: var(--nav-height);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 110;
    flex: none;
  }

  .navbar-menu.is-active {
    transform: translateX(0);
  }

  .navbar-start {
    flex-direction: column;
    justify-content: flex-start;
    flex: none;
    width: 100%;
  }

  .navbar-start > .navbar-item {
    width: 100%;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-start;
    color: var(--color-gray) !important;
    font-weight: 400;
  }
  .navbar-start > .navbar-item.is-active {
    color: var(--color-white) !important;
    font-weight: 700;
  }

  .navbar-end {
    width: 100%;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 0;
  }
}

/* Offcanvas close button */
.nav-close {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: var(--nav-height);
  height: var(--nav-height);
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-close:hover {
  color: var(--color-gray);
}

@media screen and (max-width: 1023px) {
  .nav-close {
    display: flex;
  }
}

/* Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Social icon masks */
.icon-linkedin,
.icon-facebook {
  background-color: var(--color-gray);
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: background-color 0.25s ease;
}
.icon-linkedin:hover,
.icon-facebook:hover {
  background-color: var(--color-white);
}
.icon-linkedin {
  width: 19px;
  height: 19px;
  mask-image: url("../img/icon-linkedin.png");
  mask-size: 19px 19px;
  -webkit-mask-image: url("../img/icon-linkedin.png");
  -webkit-mask-size: 19px 19px;
}
.icon-facebook {
  width: 20px;
  height: 19px;
  mask-image: url("../img/icon-facebook.png");
  mask-size: 20px 19px;
  -webkit-mask-image: url("../img/icon-facebook.png");
  -webkit-mask-size: 20px 19px;
}

/* ══════════════════════════════════════════════════════════
   HERO — s-hero
   ══════════════════════════════════════════════════════════ */
.s-hero {
  position: relative;
  min-height: calc(90vh - var(--nav-height));
  --s-hero-pt: clamp(60px, 12vh, 130px);
  --hero-marker-bottom: 30px;
}
.s-hero__inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* red radial glow behind the statue */
.s-hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 70% 65% at 85% 50%,
    rgba(182, 31, 41, 0.95) 0%,
    rgba(182, 31, 41, 0.5) 35%,
    rgba(182, 31, 41, 0.1) 65%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
}

/* bottom divider line */
.s-hero.has-lines::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
}

/* statue image — right-aligned inside container, extends above/below */
.s-hero .hero-figure {
  position: absolute;
  right: 0;
  width: clamp(240px, 34vw, 520px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.s-hero .hero-figure img {
  width: 100%;
  height: auto;
}

/* rotated contact sidebar */
.s-hero .hero-contact {
  position: absolute;
  left: var(--hero-contact-left, 32px);
  bottom: clamp(80px, 15vh, 160px);
  z-index: 2;
  gap: 2rem;
}
@media (max-width: 1270px) {
  .s-hero .hero-contact {
    left: 10px;
  }
}
.s-hero .hero-contact__item {
  gap: 0.5rem;
}
.s-hero .hero-contact__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-bodoni);
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-gray);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.s-hero .hero-contact__icon {
  width: 14px;
  height: auto;
  opacity: 0.6;
  transform: rotate(-90deg);
  transform-box: fill-box;
}

/* content area */
.s-hero .hero-body {
  min-height: calc(90vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 45px;
  padding-bottom: var(--s-hero-pt);
}
.s-hero .hero-body .container {
  width: 100%;
  position: relative;
}

/* text column */
.s-hero .hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.s-hero .title {
  color: var(--color-white);
}
.s-hero .subtitle {
  color: var(--color-white);
  max-width: 540px;
}

/* corner cross markers — children of .s-hero, bottom relative to section */
.s-hero .hero-marker {
  position: absolute;
  bottom: var(--hero-marker-bottom, 30px);
  width: 25px;
  height: 25px;
  pointer-events: none;
  z-index: 2;
}
.s-hero .hero-marker.is-top {
  bottom: auto;
  top: var(--hero-marker-top, 30px);
}
.s-hero .hero-marker::before,
.s-hero .hero-marker::after {
  content: "";
  position: absolute;
  background: var(--color-red);
}
.s-hero .hero-marker::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.s-hero .hero-marker::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
/* below widescreen: container has no max-width, 32px inner padding */
.s-hero .hero-marker--left {
  left: 19.5px;
}
.s-hero .hero-marker--right {
  right: 19.5px;
}
/* widescreen 1216px+: container max-width 1152px */
@media (min-width: 1216px) {
  .s-hero .hero-marker--left {
    left: calc((100% - 1152px) / 2 - 12.5px);
  }
  .s-hero .hero-marker--right {
    right: calc((100% - 1152px) / 2 - 12.5px);
  }
}
/* fullhd 1408px+: container max-width 1344px */
@media (min-width: 1408px) {
  .s-hero .hero-marker--left {
    left: calc((100% - 1344px) / 2 - 12.5px);
  }
  .s-hero .hero-marker--right {
    right: calc((100% - 1344px) / 2 - 12.5px);
  }
}

/* ── Section cross markers (shared across all .section elements) ── */
/* bottom divider line — same as hero, tied to show_lines */
.section.has-lines::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
}
.section-marker {
  position: absolute;
  bottom: var(--section-marker-bottom, 30px);
  width: 25px;
  height: 25px;
  pointer-events: none;
  z-index: 2;
}
.section-marker.is-top {
  bottom: auto;
  top: var(--section-marker-top, 30px);
}
.section-marker::before,
.section-marker::after {
  content: "";
  position: absolute;
  background: var(--color-red);
}
.section-marker::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.section-marker::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.section-marker--left {
  left: 19.5px;
}
.section-marker--right {
  right: 19.5px;
}
@media (min-width: 1216px) {
  .section-marker--left {
    left: calc((100% - 1152px) / 2 - 12.5px);
  }
  .section-marker--right {
    right: calc((100% - 1152px) / 2 - 12.5px);
  }
}
@media (min-width: 1408px) {
  .section-marker--left {
    left: calc((100% - 1344px) / 2 - 12.5px);
  }
  .section-marker--right {
    right: calc((100% - 1344px) / 2 - 12.5px);
  }
}

@media (max-width: 1024px) {
  .s-hero::before {
    background: radial-gradient(
      ellipse 70% 65% at 95% 35%,
      rgba(182, 31, 41, 0.95) 0%,
      rgba(182, 31, 41, 0.5) 35%,
      rgba(182, 31, 41, 0.1) 65%,
      transparent 80%
    );
  }
}
@media (min-width: 700px) and (max-width: 768px) {
  .s-hero .columns {
    display: flex;
  }
  .s-hero .hero-text {
    flex: none;
    width: 50%;
  }
  .s-hero .hero-figure {
    width: 50%;
  }
}
@media (max-width: 700px) {
  .s-hero {
    min-height: 50vh;
  }
  .s-hero .hero-body {
    min-height: 50vh;
  }
  .s-hero::before {
    display: none;
  }
  .s-hero .hero-figure {
    width: 80%;
    right: 50%;
    transform: translateX(50%);
    opacity: 0.1;
  }
  .s-hero .hero-text {
    position: relative;
    z-index: 1;
  }
}

/* ══════════════════════════════════════════════════════════
   KPIs — s-kpis
   ══════════════════════════════════════════════════════════ */
.s-kpis {
  background: var(--color-light);
  color: var(--color-dark);
}
.s-kpis .title {
  color: var(--color-dark);
}
.s-kpis .subtitle {
  color: var(--color-dark);
}
.s-kpis p {
  color: var(--color-dark);
}

.s-kpis .kpis-intro {
  margin-bottom: clamp(50px, 6vw, 80px);
}
.s-kpis .kpis-grid {
  margin-bottom: clamp(40px, 5vw, 60px);
}
.s-kpis .kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.s-kpis .award {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.s-kpis .award svg {
  color: var(--color-red);
}
.s-kpis .award p {
  color: var(--color-dark);
}
.s-kpis .award a {
  color: var(--color-dark);
  font-family: var(--font-sfizia);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════
   LEISTUNGEN — s-leistungen
   ══════════════════════════════════════════════════════════ */
.s-leistungen {
  background: var(--color-dark);
  color: var(--color-white);
}
.s-leistungen .eyebrow {
  font-family: var(--font-sfizia);
  font-style: normal;
}

/* Service card */
.s-leistungen .card {
  background: rgba(30, 30, 30, 0.5);
  border: 2px solid var(--color-red);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 25px 0;
  gap: 1.25rem;
}
.s-leistungen .card figure {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.s-leistungen .card figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s-leistungen .card .title {
  color: var(--color-white);
  flex-shrink: 0;
}
.s-leistungen .card .subtitle {
  color: var(--color-white);
  flex: 1;
  font-size: 1rem;
  line-height: 2;
}
.s-leistungen .card .button {
  margin-top: auto;
  width: calc(100% + 50px);
  margin-left: -25px;
  margin-right: -25px;
  margin-bottom: 0;
  height: 50px;
}

/* ══════════════════════════════════════════════════════════
   DENKMALPFLEGE — s-denkmal
   ══════════════════════════════════════════════════════════ */
.s-denkmal {
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
}
.s-denkmal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/denkmal-bg.jpg") center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.s-denkmal > .container {
  position: relative;
  z-index: 1;
}
.s-denkmal .title {
  color: var(--color-white);
}
.s-denkmal p {
  color: var(--color-white);
}

/* left column layout */
.s-denkmal .denkmal-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* video/photo container */
.s-denkmal .denkmal-video {
  position: relative;
  aspect-ratio: 553 / 369;
  overflow: hidden;
}
.s-denkmal .denkmal-video img,
.s-denkmal .denkmal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.s-denkmal .denkmal-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 34, 42, 0.8);
}
.s-denkmal .denkmal-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.s-denkmal .denkmal-video__circle {
  position: absolute;
  width: 70px;
  height: 70px;
}
.s-denkmal .denkmal-video__arrow {
  position: relative;
  width: 17px;
  height: 31px;
  filter: brightness(0) invert(1);
  margin-left: 4px;
}
.s-denkmal .denkmal-photo-offset {
  margin-left: 37%;
}
.s-denkmal .denkmal-photo-offset img {
  display: block;
  width: 100%;
  aspect-ratio: 380 / 254;
  object-fit: cover;
}

/* right column layout */
.s-denkmal .denkmal-right {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  align-items: flex-end;
}
.s-denkmal .denkmal-right img {
  display: block;
  width: 100%;
  aspect-ratio: 585 / 391;
  object-fit: cover;
}

@media (max-width: 769px) {
  .s-denkmal .denkmal-photo-offset {
    margin-left: 0;
  }
  .s-denkmal .denkmal-right .button {
    align-self: stretch;
  }
}

/* ══════════════════════════════════════════════════════════
   PROJEKTABLAUF — s-ablauf
   ══════════════════════════════════════════════════════════ */
.s-ablauf {
  background: var(--color-light);
  color: var(--color-dark);
}
.s-ablauf .title {
  color: var(--color-dark);
}
.s-ablauf p {
  color: var(--color-dark);
}

.s-ablauf .ablauf-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.s-ablauf .ablauf-left img {
  display: block;
  width: 100%;
  aspect-ratio: 585 / 350;
  object-fit: cover;
}

/* accordion */
.s-flexible .accordion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.s-flexible .accordion-item {
  border-top: 1px solid rgba(31, 34, 42, 0.2);
}
.s-flexible .accordion-item:last-child {
  border-bottom: 1px solid rgba(31, 34, 42, 0.2);
}
.s-flexible .accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.s-flexible .accordion-btn[aria-expanded="true"] .cross-icon::after {
  opacity: 0;
}
.s-flexible .accordion-btn .title {
  color: var(--color-dark);
}
.s-flexible .accordion-body {
  display: none;
  color: var(--color-dark);
  padding: 0 0 1.5rem 45px;
}
.s-flexible .accordion-item.is-open .accordion-body {
  display: block;
}

/* ══════════════════════════════════════════════════════════
   GRABMALE SECTION — s-grabmale
   ══════════════════════════════════════════════════════════ */
.s-grabmale {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-white);
}
.s-grabmale::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url("../img/grabmale-bg.png") center / cover no-repeat;
  filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.s-grabmale > .container {
  position: relative;
  z-index: 1;
}
.s-grabmale .title {
  color: var(--color-white);
}
.s-grabmale p {
  color: var(--color-white);
}

.s-grabmale .grabmale-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.s-grabmale .grabmale-left img.is-small {
  width: 82%;
  aspect-ratio: 481 / 321;
  object-fit: cover;
}
.s-grabmale .grabmale-left img.is-large {
  width: 100%;
  aspect-ratio: 585 / 391;
  object-fit: cover;
}
.s-grabmale .grabmale-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-end;
}
.s-grabmale .grabmale-right img.is-detail {
  width: 68%;
  aspect-ratio: 395 / 264;
  object-fit: cover;
  margin-top: auto;
  padding-top: 1.875rem;
}

@media (max-width: 769px) {
  .s-grabmale .grabmale-left img.is-small {
    width: 100%;
  }
  .s-grabmale .grabmale-right img.is-detail {
    width: 100%;
  }
  .s-grabmale .grabmale-right .button {
    align-self: stretch;
  }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--color-red);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer-middle, .footer-bottom{
  position: relative;
}

/* ── OBERE ZEILE: Adresse + Oeffnungszeiten ───────────────── */
/* Der Footer beginnt direkt mit der Adresse. Das padding-top haelt den
   Abstand zur Footer-Oberkante auf dem Mass, das frueher zwischen Logo
   und Adresse stand (gemessen: 97px bei 1400px, 60px bei 390px). */
.footer .footer-middle {
  padding: clamp(36px, 4vw, 57px) 0 0;
}
.footer .footer-middle-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) clamp(40px, 5.5vw, 80px);
}

.footer .footer-address {
  color: var(--color-white);
  font-style: normal;
}
.footer .footer-address p {
  color: var(--color-white);
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Deutlicher Abstand zwischen Adresse und Oeffnungszeiten. Die Auswahl muss
   spezifischer sein als ".footer .footer-address p" darueber (margin: 0). */
.footer .footer-address .footer-hours {
  margin-top: 1.5rem;
}

/* ── UNTERE ZEILE: Copyright + Links ──────────────────────── */
.footer .footer-bottom {
  padding: 0;
}
.footer .footer-bottom-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 80px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(240px, 30vw, 369px);
}

.footer .footer-copy {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: clamp(0.6875rem, 0.41vw + 0.5rem, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  white-space: nowrap;
}

.footer .footer-nav {
  display: flex;
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: flex-start;
}

.footer .footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer .footer-links-heading {
  font-family: var(--font-bodoni);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-white);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

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

.footer .footer-links a {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer .footer-links a:hover {
  opacity: 0.7;
}

.footer .footer-links--legal {
  margin-top: auto;
  padding-top: 2rem;
}

.footer .footer-stone-bg {
  position: absolute;
  inset: 0;
  background: url("../img/footer-stone-2880.jpg") center center / cover
    no-repeat;
  transform: rotate(180deg);
  z-index: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer .footer-bottom-inner {
    flex-direction: column;
    min-height: unset;
  }
  .footer .footer-nav {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════
   SUBPAGE HERO — s-subhero
   ══════════════════════════════════════════════════════════ */
.s-subhero {
  position: relative;
  /* Feste Hoehe statt min-height: so ist das Band auf jedem Reiter gleich
     hoch, egal ob die Ueberschrift ein- oder zweizeilig laeuft. */
  height: clamp(320px, 26vw, 400px);
  display: flex;
  align-items: center;
  background-color: var(--color-dark);
  overflow: hidden;
}
.s-subhero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  overflow: hidden;
}
/* Das Bild haengt an der Hoehe, behaelt also sein Seitenverhaeltnis und wird
   nur verkleinert. Der Verlauf liegt auf dem Bild selbst und laeuft ueber das
   erste Drittel seiner Breite aus, damit schmale Motive nicht hart abbrechen. */
.s-subhero__media img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 33%);
  mask-image: linear-gradient(to right, transparent 0%, #000 33%);
  /* Abdunklung liegt auf dem Bild statt als Flaeche ueber dem ganzen Kopf:
     so folgt sie dem Verlauf und trifft Projektseiten ohne Motiv nicht. */
  filter: brightness(0.55);
}
.s-subhero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.s-subhero .title {
  color: var(--color-white);
  text-align: left;
  margin: 0;
}
@media (max-width: 768px) {
  /* Auf dem Telefon steht das Titelbild ungeschnitten oben und die
     Ueberschrift darunter auf dem dunklen Grund. Dafuer keine feste Hoehe
     mehr, sondern eine Spalte, die dem Bild folgt. min-height haelt das Band
     auch ohne Motiv (Projektseiten, Impressum) als ordentlichen Balken. */
  .s-subhero {
    height: auto;
    min-height: 220px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  /* Ohne Seitenabstand klebt die Ueberschrift an der Displaykante. 40px
     entspricht dem Einzug, den Fliesstext und Footer auf dem Telefon haben.
     Der vertikale Abstand haelt sie von Bild und Unterkante frei. */
  .s-subhero > .container {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 28px;
    padding-bottom: 28px;
    /* Ohne Titelbild (Projektseiten, Impressum, Datenschutz) waechst der
       Container auf die ganze min-height; die Ueberschrift soll dort mittig
       im Balken stehen statt oben zu kleben. Mit Bild ist der Container so
       hoch wie sein Inhalt, dann aendert das Zentrieren nichts. */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Das Bild liegt nicht mehr hinter der Schrift, sondern im normalen Fluss
     ueber der Ueberschrift. */
  .s-subhero__media {
    position: static;
    width: 100%;
  }
  /* Volle Breite im eigenen Seitenverhaeltnis: kein Beschnitt, keine
     Verzerrung. Abdunklung und seitlicher Verlauf entfallen, sie waren nur
     noetig, solange die Schrift auf dem Bild stand. */
  .s-subhero__media img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
  }
}
.s-subhero.has-lines::after {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 0;
}
/* Auf dem Telefon steht die Ueberschrift seit dem neuen Kopf nicht mehr
   mittig, sondern unter dem Bild im unteren Teil des Bands - die Linie 30px
   ueber der Unterkante liefe dort quer durch die Schrift. Gemessen bei 390px:
   Linie auf y=463,5, Ueberschrift 420,5-465,5 (/grabmale). Darum hier aus.
   Steht hinter der Grundregel, weil beide gleich spezifisch sind. */
@media (max-width: 768px) {
  .s-subhero.has-lines::after {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════
   DENKMAL & BAU PAGE
   ══════════════════════════════════════════════════════════ */
.s-denkmal-intro {
  background: var(--color-dark);
  color: var(--color-white);
}
.s-denkmal-intro .title {
  color: var(--color-white);
}
.s-denkmal-intro p {
  color: var(--color-light);
  line-height: 2;
}
.s-denkmal-intro .subtitle {
  color: var(--color-light);
  line-height: 1.8;
}

/* shared card tokens */
:root {
  --card-bg: #20232b;
  --card-gradient: linear-gradient(
    170deg,
    rgba(32, 35, 43, 0) 27.25%,
    #20232b 51.61%
  );
}

.s-projects {
  background: var(--color-dark);
  position: relative;
}
.s-projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.s-projects .projects-inner {
  position: relative;
}
.s-projects .projects-inner > .columns {
  margin-top: clamp(20px, 3vw, 30px);
}
.s-projects .projects-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 60px);
}
.s-projects .column.is-project-hidden {
  display: none;
}

/* Two-tone card title */
.card-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.card-title span {
  font-family: var(--font-bodoni);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.1875rem);
  line-height: 1.18;
}
.card-title .t-white {
  color: var(--color-white);
}
.card-title .t-red {
  color: var(--color-red);
}

/* Card meta */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.card-meta p {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-light);
}

/* Card description */
.card-desc {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-light);
}

/* ── Feature card (horizontal) ── */
.feature-card {
  position: relative;
  border: 2px solid var(--color-red);
  background: var(--card-bg);
  overflow: hidden;
}
.feature-card.is-full {
  margin-bottom: clamp(20px, 3vw, 30px);
}
.feature-card .columns {
  margin: 0;
  height: 100%;
  align-items: stretch;
}
.feature-card .columns > .column {
  display: block;
  padding: 0;
}
.feature-card .card-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  height: 100%;
}
.feature-card .card-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.feature-card .card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(32, 35, 43, 0) 45%,
    var(--card-bg) 96%
  );
  pointer-events: none;
}
.feature-card:hover .card-image-wrap img {
  transform: scale(1.03);
}
.feature-card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(28px, 4vw, 52px);
}
.feature-card .card-content .button {
  align-self: flex-start;
  min-width: min(334px, 100%);
}

/* ── Project card (vertical) ── */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 2px solid var(--color-red);
  background: var(--card-bg);
  overflow: hidden;
  height: 100%;
  min-height: clamp(460px, 44vw, 627px);
  padding: clamp(24px, 2.5vw, 32px);
}
.project-card .card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.project-card .card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.project-card .card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-gradient);
  pointer-events: none;
}
.project-card:hover .card-bg img {
  transform: scale(1.04);
}
.project-card .card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}
.project-card .card-meta {
  align-items: center;
}
.project-card .card-content .button {
  width: 100%;
  padding-inline: 0.75rem;
  white-space: normal;
}

/* ensure full height in Bulma column */
.s-projects .column > .feature-card,
.s-projects .column > .project-card {
  height: 100%;
  width: 100%;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   PROJEKTDETAIL PAGE
   ══════════════════════════════════════════════════════════ */
.s-pd-intro {
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
}
.s-pd-intro .title {
  color: var(--color-light);
}
.s-pd-intro p {
  color: var(--color-light);
  line-height: 2;
}
.s-pd-intro .subtitle {
  color: var(--color-light);
  font-size: clamp(1rem, 0.82vw + 0.875rem, 1.5rem);
  line-height: 1.75;
}

.s-pd-data {
  background: var(--color-dark-deep);
  color: var(--color-light);
}
.s-pd-data .pd-list {
  display: flex;
  flex-direction: column;
}
.s-pd-data .pd-row {
  display: grid;
  grid-template-columns: minmax(140px, 42%) 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.s-pd-data .pd-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.s-pd-data dt {
  font-family: var(--font-work);
  font-weight: 500;
  font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);
  color: var(--color-white);
  line-height: 1.6;
}
.s-pd-data dd {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);
  color: var(--color-light);
  line-height: 1.6;
  margin: 0;
}

.s-pd-gallery {
  background: var(--color-dark);
}
.s-pd-more {
  background: var(--color-dark-deep);
}

/* ── Gallery grid (shared) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(150px, 18.5vw, 285px);
  gap: clamp(12px, 1.5vw, 30px);
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-tile:hover img {
  transform: scale(1.05);
}

/* Videokachel in der Galerie: Standbild + Play-Symbol, oeffnet die Lightbox */
.gallery-tile--video .gallery-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(46px, 4.4vw, 66px);
  height: clamp(46px, 4.4vw, 66px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(31, 34, 42, 0.45);
  pointer-events: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}
.gallery-tile--video .gallery-tile__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--color-white);
}
.gallery-tile--video:hover .gallery-tile__play {
  background: var(--color-red);
  border-color: var(--color-red);
}

/* Projektgalerie — fortlaufendes Raster: jede Kachel belegt genau eine
   Zelle, damit alle Bilder gleich groß sind und dasselbe Seitenverhältnis
   haben. Beliebig viele Bilder möglich; die Zeilen laufen einfach weiter.
   (Vorher: feste grid-template-areas für exakt 7 Bilder — weitere Bilder
   landeten alle in derselben Area und lagen übereinander.) */
.gallery-grid--pd {
  grid-auto-flow: row;
}
/* Die Auswahl "Gitter-Position" im Control Panel (a1/b/c1/a/c2/w/a4) hat
   damit bewusst keine Wirkung mehr. */
.gallery-grid--pd .gallery-tile {
  grid-area: auto;
}

@media (max-width: 900px) {
  .gallery-grid--pd {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(160px, 28vw, 240px);
  }
}
@media (max-width: 560px) {
  .gallery-grid--pd {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(200px, 60vw, 300px);
  }
}

/* Grabmale gallery — auto-flow masonry */
.gallery-grid--masonry {
  grid-auto-flow: dense;
}
.gallery-tile--tall {
  grid-row: span 2;
}
.gallery-tile--wide {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(150px, 30vw, 240px);
  }
  .gallery-tile--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(200px, 60vw, 300px);
  }
  /* Einspaltig behaelt die hohe Kachel ihre doppelte Zeile: sonst landet jedes
     Hochformat wieder in einer Querkachel (342x234 statt 342x480 bei 390px
     Viewport) und verliert rund die Haelfte der Bildhoehe. */
  .gallery-tile--wide {
    grid-row: span 1;
    grid-column: span 1;
  }
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* More-projects mini-cards */
.s-pd-more .card {
  background: var(--color-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.s-pd-more .card .card-image {
  overflow: hidden;
  aspect-ratio: 380 / 254;
  position: relative;
}
.s-pd-more .card .card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.s-pd-more .card:hover .card-image img {
  transform: scale(1.04);
}
.s-pd-more .card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  background: transparent;
}
.s-pd-more .card .card-label {
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-red);
}
.s-pd-more .card .title {
  color: var(--color-white);
}
.s-pd-more .card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-family: var(--font-work);
  font-weight: 300;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-light);
  transition: color 0.2s ease;
}
.s-pd-more .card .card-link::after {
  content: "\2192";
}
.s-pd-more .card .card-link:hover {
  color: var(--color-red);
}

/* light variant */
body.light .s-pd-intro {
  background: var(--color-light);
  color: var(--color-dark);
}
body.light .s-pd-intro .title,
body.light .s-pd-intro p,
body.light .s-pd-intro .subtitle {
  color: var(--color-dark);
}
body.light .s-pd-data {
  background: #dcdcdc;
}
body.light .s-pd-data .pd-row {
  border-top-color: rgba(31, 34, 42, 0.15);
}
body.light .s-pd-data .pd-row:last-child {
  border-bottom-color: rgba(31, 34, 42, 0.15);
}
body.light .s-pd-data dt,
body.light .s-pd-data dd {
  color: var(--color-dark);
}
body.light .s-pd-gallery {
  background: var(--color-light);
}
body.light .s-pd-more {
  background: #dcdcdc;
}
body.light .s-pd-more .card {
  background: var(--color-light);
  box-shadow: 0 1px 4px rgba(31, 34, 42, 0.1);
}
body.light .s-pd-more .card .title {
  color: var(--color-dark);
}
body.light .s-pd-more .card .card-link {
  color: var(--color-dark);
}
body.light .button.is-outlined {
  color: var(--color-dark);
}
body.light .button.is-outlined:hover {
  color: var(--color-white);
}
/* Dieselbe Umkehr fuer helle Abschnitte: body.light greift nur, wenn die
   ganze Seite hell ist, nicht bei einem einzelnen hellen Abschnitt. */
.s-flexible--light .button.is-outlined {
  color: var(--color-dark);
}
.s-flexible--light .button.is-outlined:hover {
  color: var(--color-white);
}

/* ══════════════════════════════════════════════════════════
   GRABMALE PAGE
   ══════════════════════════════════════════════════════════ */
.s-grabmale-intro {
  background: var(--color-dark-deep);
  color: var(--color-white);
}
.s-grabmale-intro .title {
  color: var(--color-white);
  font-size: clamp(2rem, 1.4vw + 1.6rem, 2.875rem);
}
.s-grabmale-intro .subtitle {
  color: var(--color-white);
  font-size: clamp(1rem, 0.82vw + 0.875rem, 1.5rem);
  line-height: 1.5;
}
.s-grabmale-intro p {
  color: var(--color-white);
}

/* ══════════════════════════════════════════════════════════
   FLEXIBLE SECTION — s-flexible
   ══════════════════════════════════════════════════════════ */
.s-flexible {
  color: var(--color-white);
}
.s-flexible.has-bg-image {
  position: relative;
  overflow: hidden;
}
.s-flexible .s-flexible__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.s-flexible .s-flexible__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.08);
  opacity: 0.45;
}
.s-flexible.has-bg-image > .section-bg-lines,
.s-flexible.has-bg-image > .container,
.s-flexible.has-bg-image > .section-marker {
  position: relative;
  z-index: 1;
}
.s-flexible--dark {
  background-color: var(--color-dark);
}
.s-flexible--light {
  background-color: var(--color-light);
  color: var(--color-dark);
}
.s-flexible--light .title,
.s-flexible--light p {
  color: var(--color-dark);
}
.s-flexible--red {
  background-color: var(--color-red);
}
.s-flexible .title {
  color: inherit;
}
.s-flexible p {
  color: inherit;
}
.s-flexible .column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.s-flexible .flexible-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.s-flexible .flexible-video iframe,
.s-flexible .flexible-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* Medienband: drei gleich breite Spalten aus Bildern (frueher Video und
   Bilder). Ohne gemeinsames Seitenverhaeltnis stehen sie unterschiedlich
   hoch, weil die Fotos verschiedene Formate haben. Greift auf eine
   Spaltenreihe mit mindestens drei Spalten, deren Bilder direkt in der
   Spalte stehen. Karten (.flexible-card) und Kennzahlen (.kpi) bringen
   keine .flexible-img als Spaltenkind mit und bleiben unberuehrt. */
.s-flexible .columns:has(> .column:nth-child(3))
  > .column
  > .flexible-img img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.s-flexible .flexible-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.s-flexible .flexible-img.is-rounded img {
  border-radius: 1rem;
}
.s-flexible .flexible-img figcaption {
  font-size: 0.8125rem;
  color: var(--color-gray);
  margin-top: 0.5rem;
}
/* bg variants */
.s-flexible.is-light,
.s-flexible[style*="--bg:light"] {
  background-color: var(--color-light);
  color: var(--color-dark);
}

/* spacing modifiers */
.s-flexible.no-padding-top {
  padding-top: 0 !important;
}
.s-flexible.no-padding-bottom {
  padding-bottom: 0 !important;
}
.s-flexible.compact {
  padding-block: clamp(30px, 4vw, 50px);
}

/* KPI in flexible section */
.s-flexible .kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

/* Award in flexible section */
.s-flexible .award {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.s-flexible .award svg {
  color: var(--color-red);
}
.s-flexible--light .award p,
.s-flexible--light .award a {
  color: var(--color-dark);
}
.s-flexible .award a {
  font-family: var(--font-sfizia);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Card in flexible section */
.s-flexible .flexible-card {
  background: rgba(30, 30, 30, 0.5);
  border: 2px solid var(--color-red);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 25px 0;
  gap: 1.25rem;
}
.s-flexible--light .flexible-card {
  background: rgba(255, 255, 255, 0.6);
}
.s-flexible .flexible-card__icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin: 0;
}
.s-flexible .flexible-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s-flexible .flexible-card .title {
  color: inherit;
  flex-shrink: 0;
}
.s-flexible .flexible-card .subtitle {
  color: inherit;
  flex: 1;
  font-size: 1rem;
  line-height: 2;
}
.s-flexible .flexible-card .button {
  margin-top: auto;
  width: calc(100% + 50px);
  margin-left: -25px;
  margin-right: -25px;
  margin-bottom: 0;
  height: 50px;
}

/* Photo collage in flexible section */
/* Senkrechter Abstand der Bilder = gleicher Abstand wie zwischen den Spalten.
   Die Spalten haben je 1.25rem Padding, zwischen zwei Spalten liegen also
   2 x 1.25rem = 2.5rem. Damit ist der Abstand ueber dem zweiten Bild genauso
   gross wie der zum Detailbild rechts daneben. */
.s-flexible .flexible-collage {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.s-flexible .flexible-collage__item img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.s-flexible .flexible-collage__item--sm img {
  width: 82%;
  aspect-ratio: 481 / 321;
}
.s-flexible .flexible-collage__item--lg img {
  width: 100%;
  aspect-ratio: 585 / 391;
}
/* Detailbild der Kollage: linksbuendig in seiner Spalte und unten buendig
   mit dem grossen Bild der Nachbarspalte (siehe Designvorlage).
   Die Spalte wird dafuer zur Flex-Spalte, die Kollage per margin-top:auto
   nach unten geschoben — schliesst unten buendig ab. */
.s-flexible .flexible-collage__item--detail {
  display: flex;
  justify-content: flex-start;
}
.s-flexible .column:has(.flexible-collage__item--detail) {
  display: flex;
  flex-direction: column;
}
.s-flexible .column:has(.flexible-collage__item--detail)
  > .flexible-collage:last-child {
  margin-top: auto;
}
.s-flexible .flexible-collage__item--detail img {
  width: 68%;
  aspect-ratio: 395 / 264;
}

@media (max-width: 769px) {
  .s-flexible .flexible-collage__item--sm img,
  .s-flexible .flexible-collage__item--detail img {
    width: 100%;
  }
}

/* Lightbox trigger in flexible section */
.s-flexible .is-lightbox {
  cursor: zoom-in;
}

/* Spacer in flexible section */
.s-flexible .flexible-spacer {
  display: block;
}
.s-flexible .flexible-spacer--xs {
  height: 8px;
}
.s-flexible .flexible-spacer--sm {
  height: 16px;
}
.s-flexible .flexible-spacer--md {
  height: 32px;
}
.s-flexible .flexible-spacer--lg {
  height: 64px;
}
.s-flexible .flexible-spacer--xl {
  height: 96px;
}

/* Filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.375rem;
  justify-content: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.filter-bar .button {
  border: 1px solid var(--color-red);
  background: transparent;
  color: var(--color-white);
  height: auto;
  padding: 12px 20px;
}
.filter-bar .button:hover,
.filter-bar .button.is-active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

/* ══════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════ */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 2rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 9, 12, 0.93);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lb-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lb-dialog {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: min(1100px, 88vw);
}
.lb-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-media img,
.lb-media video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  border: 2px solid var(--color-red);
  background: #000;
}
.lb-media iframe {
  width: min(960px, 88vw);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--color-red);
  display: block;
}
.lb-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  z-index: 2;
}
.lb-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  background: var(--color-white);
}
.lb-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lb-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-red);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  cursor: pointer;
}
.lb-arrow--prev {
  left: clamp(0.75rem, 3vw, 2.5rem);
}
.lb-arrow--next {
  right: clamp(0.75rem, 3vw, 2.5rem);
}
.lb-arrow:hover {
  background: var(--color-red);
}
@media (max-width: 700px) {
  .lb-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ============================================================
   KONTAKT
   ============================================================ */
.s-kontakt {
  background: var(--color-bg);
  padding: 5rem 0;
}

.kontakt-info {
  padding-right: 3rem;
}

.kontakt-info .eyebrow {
  display: block;
  margin-bottom: 1rem;
}

.kontakt-info .title.is-2 {
  font-family: var(--font-bodoni);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

.kontakt-lead {
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.kontakt-adresse {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.kontakt-adresse p {
  color: var(--color-light);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.kontakt-adresse a {
  color: var(--color-red);
  text-decoration: none;
  transition: opacity 0.2s;
}

.kontakt-adresse a:hover {
  opacity: 0.75;
}

.kontakt-form .field {
  margin-bottom: 1.25rem;
}

.kontakt-form .label {
  display: block;
  font-family: var(--font-work);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.kontakt-form .required {
  color: var(--color-red);
}

.kontakt-form .input,
.kontakt-form .textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-light);
  font-family: var(--font-work);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.kontakt-form .input:focus,
.kontakt-form .textarea:focus {
  border-color: var(--color-red);
}

.kontakt-form .input.is-danger,
.kontakt-form .textarea.is-danger {
  border-color: var(--color-red);
}

.kontakt-form .textarea {
  resize: vertical;
  min-height: 150px;
}

.kontakt-form .help.is-danger {
  color: var(--color-red);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.kontakt-form .checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
}

.kontakt-form .checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--color-red);
  width: 16px;
  height: 16px;
}

.kontakt-form .checkbox-label a {
  color: var(--color-red);
  text-decoration: none;
}

.form-errors {
  background: rgba(182, 31, 41, 0.12);
  border: 1px solid var(--color-red);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-light);
  font-size: 0.9rem;
}

.form-success {
  background: rgba(40, 160, 80, 0.12);
  border: 1px solid #28a050;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-light);
}

@media (max-width: 768px) {
  .kontakt-info {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  .s-kontakt .columns {
    flex-direction: column;
  }
}
